Post-render script to open mplay

   2066   2   0
User Avatar
Member
143 posts
Joined: March 2014
Offline
Hello,

Is there a way to open mplay automatically after a file render and load the file(s)? I see how to use the textport directly in MPlay using loadseq to load some files, but I cannot figure out how to open it using python or hscript from the Post-Render script area in the renderer. I wanted to avoid adding another renderer in the chain that would just render to mplay because I have a lot of renderers already and that would double the number; I want to be able to pick one renderer and have it render to file, then open the sequence in mplay so I can review it quickly.

Thank you,
Caesar

Attachments:
mplay.PNG (45.4 KB)

User Avatar
Member
14 posts
Joined: April 2019
Offline
I am interested in this as well
User Avatar
Member
14 posts
Joined: April 2019
Offline
Hello!


Matt from the Staff helped me with this:

import os
img_path = "`chs("picture")`".replace("$F", "\*")
os.system("mplay %s" % img_path)

Place the above code in the Post-Render Script parm of the OpenGL ROP, switch dropdown to Python.
This code works on Linux.
Tested on H17.5.460 and on 18.0.532
  • Quick Links