PDA

View Full Version : Adding a "wait" command to script?


cgbeige
08-19-2009, 04:59 PM
I have this script that's very useful for rendering lights separately but it overwrites the images in the temp directory with each successive render. Instead of completely rewriting the script to create separate files, I figured it would be easier to add a wait after the render command so I can just copy the file before its overwritten. Is it easy to append a wait for 10 seconds after the redoPreviousRender command here:

{ // renders a standard image
if (`window -ex renderViewWindow`)
renderWindowRender redoPreviousRender renderView;
else renderIntoNewWindow render;
}

cgbeige
08-19-2009, 05:10 PM
or what would work too is if I could tell it to advance one frame before redoing the render since there's no animation.

cgbeige
08-19-2009, 05:30 PM
ok - I figured it out without hacking at the script. I just added a playButtonStepForward; command to the Post render layer MEL field and now I have 3 images. sweet.

thanks me

goleafsgo
08-19-2009, 07:39 PM
In case you ever have need of it again, you can do this:


pause -seconds 10;

cgbeige
08-20-2009, 06:11 PM
cool - thanks. Go Habs. :beer:

CGTalk Moderation
08-20-2009, 06:11 PM
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.