Efficient frame rendering

Hi,

I was wondering if it was
possible (or whether any of you scripters have an implementation) to
script rendering frames on 8s or 16s. I ask as sometimes my renders
are long... and I would like to get a sense of what the sequence
looks like before it has finished every frame.

eg render
frames 1, 16, 32, 64 128   then 2, 17, 33, 65.

I
realize that a good render manager might do this? But I only have one
box for rendering and don't currently have a render manager. I'm
wondering if this can be written into a .bat script or maybe a mel
from maya. Any thoughts or pointers appreciated.

Tek

Yes theres several ways, you can wirte a prerender script, call a acript or launch the render form commandline.

I'm wondering if this can be written into a .bat script

Yes just call (please note if you call this from commandline itself and not a batch file %%i becomes %i)

put this in your bat file

 FOR /F  %i in (file.txt) do render -s %i -e %i mayaFilename

you may wish to put echo after do as long as your working with testing the script :wink:

then put the frames you want to render in a file named ffile.txt (in same directory as the bat) like this:

1
16
32
64
128
2
17
33
65

this si not the most optimal way but good enough + even if it crashes it will continue on the next frame

Thanks vmuch :slight_smile: thats a great help.

Tek