georgedrakakis
10-31-2008, 09:44 PM
hi,
i had troubles rendering all the frames in one go in this thread (http://forums.cgsociety.org/showthread.php?f=176&t=690800) , so i thought i could try to run a script that batch renders a sequence of images, when the frame parameter in the render settings is set to "current frame". (render single images in a row).
this is the script
// render single frames
// a simple script for rendering a batch of images
// when the frame is in "current frame" mode
main(doc,op)
{
//var first = RDATA_FRAMEFROM;
//var last = RDATA_FRAMETO ;
//op#RDATA_FRAMESEQUENCE=0;
var first = 0; // a dialogue box is needed to specify
var last =24 ; // the start & end of the sequence
var i;
for (i=first; i<last; i++)
{
CallCommand(12414); // Goto Next Frame
CallCommand(12099); // Render to Picture Viewer
}
the script seems to work, but there is a major problem; i can't find a way to delay the timeline moving a frame ahead, until the render is finished.
how can i declare "Goto Next Frame only if the render is finished"?
any help is much appreciated,
george
i had troubles rendering all the frames in one go in this thread (http://forums.cgsociety.org/showthread.php?f=176&t=690800) , so i thought i could try to run a script that batch renders a sequence of images, when the frame parameter in the render settings is set to "current frame". (render single images in a row).
this is the script
// render single frames
// a simple script for rendering a batch of images
// when the frame is in "current frame" mode
main(doc,op)
{
//var first = RDATA_FRAMEFROM;
//var last = RDATA_FRAMETO ;
//op#RDATA_FRAMESEQUENCE=0;
var first = 0; // a dialogue box is needed to specify
var last =24 ; // the start & end of the sequence
var i;
for (i=first; i<last; i++)
{
CallCommand(12414); // Goto Next Frame
CallCommand(12099); // Render to Picture Viewer
}
the script seems to work, but there is a major problem; i can't find a way to delay the timeline moving a frame ahead, until the render is finished.
how can i declare "Goto Next Frame only if the render is finished"?
any help is much appreciated,
george
