Submit AE to Rush script - example included
Posted: January 25th, 2011, 6:06 am
We recently started using Rush for AE renders and it works great. In Nuke it's possible to script so that when you run the script, it starts Rush and loads the current project, and the numbers of frames to render. Could this be done in AE aswell? At the moment I manually have to start the submit program, navigate to the project file and set the number of frames. Below is the Nuke script.
def RushSubmit():
nukescript = nuke.Root().name()
sfrm = nuke.Root().firstFrame()
efrm = nuke.Root().lastFrame()
cmd = ( "perl //Volumes/misc/rushscripts//submit-nuke.pl " +
"-field Frames: %(sfrm)s-%(efrm)s " +
"-field NukeScript: \"%(nukescript)s\" 2>&1 " ) % locals()
if ( os.path.isdir("/var/tmp") ): cmd += "&"
os.system(cmd)
def RushSubmit():
nukescript = nuke.Root().name()
sfrm = nuke.Root().firstFrame()
efrm = nuke.Root().lastFrame()
cmd = ( "perl //Volumes/misc/rushscripts//submit-nuke.pl " +
"-field Frames: %(sfrm)s-%(efrm)s " +
"-field NukeScript: \"%(nukescript)s\" 2>&1 " ) % locals()
if ( os.path.isdir("/var/tmp") ): cmd += "&"
os.system(cmd)