Hi There.
i have a scene in Maya wich i exported to .vrscene with a .vrscene for each frame.
now i wanted to render the sequence in vray standalone. Is there a way to automatically render the sequence in the command line?
i tried with " -frame = 1,110 " on the options for frame 1 to 110 but it only renders one frame.
its getting really painfull to write every single render command.
If you have exported separate .vrscene files for each frame, then you’ll need to write a simple shell script (or batch file on Windows) to cycle through the files and render them out.
The format for the -frames option would be -frames=1-110 (note that it’s “frames” and not “frame”), but this will only work if you exported the entire animation in a single .vrscene file.
Im not very confortable w shell so i did it with Python. In case someone needs it here goes
in Terminal type:
---------
python
import os
for i in range(1,110):
os.system(“/Applications/Autodesk/maya2012/Maya.app/Contents/vray/bin/vray -sceneFile=‘path_to_file_%04d.vrscene’” %i)
Im not very confortable w shell so i did it with Python. In case someone needs it here goes
in Terminal type:
---------
python
import os
for i in range(1,110): [tab here]os.system(“/Applications/Autodesk/maya2012/Maya.app/Contents/vray/bin/vray -sceneFile=‘path_to_file_%04d.vrscene’” %i)
Is there a particular reason you wrote out a vrscene per frame? I’ve successfully used a single vrscene running on several machines just using the -frames=‘’ command.
On a related subject - Vlado, can you tell me what the syntax for frame step is? On ones it’s easy -frames=1-100 but to run this on 2’s is it -frames=1-100-2?
Now, the first job runs just fine, but when it finishes it never continues onto the next job. Should I be adding the -AutoClose=1 option to get this working or?