Rendering From Script Editor

30 views
Skip to first unread message

sab

unread,
Apr 10, 2014, 11:08:33 AM4/10/14
to python_in...@googlegroups.com
Hi guy's


I am trying to launch command line render from script editor, it seems to be not working

this is my code

import subprocess

subprocess.Popen('render -s 1 -e 30 -x 320 -y 240 rnd_v001.ma' )

is there any other method to do this




Thanks and Regards
Sabareesh RG

damon shelton

unread,
Apr 10, 2014, 11:28:54 AM4/10/14
to python_in...@googlegroups.com

You will probably need a full file path and possibly a full path to render.exe

--
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/a74b8649-c65e-4331-838a-9bbe8e8908b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcus Ottosson

unread,
Apr 10, 2014, 12:34:59 PM4/10/14
to python_in...@googlegroups.com
Popen is the equivalent of running a command from the command-line, and I think you are trying to run the MEL command 'render' when what you probably want to do is run Maya in batch mode with the render flag. I'm not any good with that but I'm sure there are others around that are.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoJpWsqwHY5UjQATrVGYodOGtFDAz5Ehns77smKVu-ao%2Bg%40mail.gmail.com.

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


--
Marcus Ottosson
konstr...@gmail.com


Reply all
Reply to author
Forward
0 new messages