How can I determine if the batch render is done?

57 views
Skip to first unread message

郭金锋

unread,
Oct 9, 2013, 9:39:06 PM10/9/13
to python_in...@googlegroups.com
Hi there,
Good day!
As in the title, how can I figure out whether the Maya batch render is finished in a programming way? So that I could make a batch render queue tool? Is detecting the process mayabatchrender.exe a reasonable way? Can this be done within Maya?
Thanks!

Jerry

DayDreamer

unread,
Nov 8, 2013, 8:23:15 AM11/8/13
to python_in...@googlegroups.com
Never done it, but i think follwoing code will help

all_render_files = ['file.ma', 'file2.ma']
for render_file in all_render_files:
   # Don't know the exact command for render 
    subprocess.call('"..../maya.exe" "{0}"').format(render_file)

this will render the given files in queue.

Note :- You can also multithread it , look for memory and processor usage.

Does it help ?

---
Day Dreamer

damon shelton

unread,
Nov 8, 2013, 11:32:26 AM11/8/13
to python_in...@googlegroups.com
You can setup a postrender mel script to trigger something once the render completes
if you are doing commandline the flag is -postRender 



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/023651cf-d375-4a28-8b21-db0f5bf8d636%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages