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.

On Thursday, 10 April 2014, damon shelton <[email protected]> wrote:

> You will probably need a full file path and possibly a full path to
> render.exe
> On Apr 10, 2014 8:08 AM, "sab" 
> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>>
> wrote:
>
>> 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
>>
>> --
>> 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 
>> [email protected]<javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');>
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/a74b8649-c65e-4331-838a-9bbe8e8908b4%40googlegroups.com<https://groups.google.com/d/msgid/python_inside_maya/a74b8649-c65e-4331-838a-9bbe8e8908b4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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 
> [email protected]<javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoJpWsqwHY5UjQATrVGYodOGtFDAz5Ehns77smKVu-ao%2Bg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAM9RXoJpWsqwHY5UjQATrVGYodOGtFDAz5Ehns77smKVu-ao%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
*Marcus Ottosson*
[email protected]

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAtS-Y77F7gU48qLWEfqO77Ayycc-_9Me3E_RZw120Pdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to