Python: Scene Time laps/ Hardware 2.0 Batch render

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 12 December 2012   #16
Forget .cpp, forget .exe, python is more than enough.

Did you try to copy/paste my os.system example to the script editor and run it? The command is quite straight forward, you put in the string the command you want to execute in the cmd. If you need formal doc:

http://docs.python.org/2/library/os.html#os.system

So to run an external script c:\8\out.py that contains the following code:

# out.py
print 'hi'
raw_input("press")


from maya:

import os
 os.system("start /b python -E /8/out.py")
 


or if you want to use maya's python:

import os
 os.system("start /b mayapy -E /8/out.py")
 
 
Old 12 December 2012   #17
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:57 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.