Jump to content

Mplay Loader


IIIROFLIII

Recommended Posts

Hi All,

 
I have a little question about Mplay.
I want to make an HDA which can launch a sequence image file in Mplay.
Actually I use the subprocess.Popen(['mplay', 'path']) command.
But I want to configure this Mplay session (setting FPS and other things;)
But I don't understand how to do it.
I search in the documentation and internet, and I can't find a hou.something which can launch Mplay, maybe to have a connection between Mplay and the current houdini session.
 
Can you give me a basic structure of python code to do this kind of things?
 
Thanks
Link to comment
Share on other sites

import subprocess
subprocess.Popen(r"C:\Program Files\Side Effects Software\Houdini 18.0.391\bin\mplay.exe -f 1 100 1 -r 30 D:\Houdini\render\preview\v014\v014.$F.jpg")

you can use flags to configure mplay session like -f for frame range -r for fps etc, check out the docs for more info: https://www.sidefx.com/docs/houdini/mplay/mplay_options.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...