Vray standalone rendering multiple vrscenes

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.

cheers
Ricardo

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.

Best regards,
Vlado

Thanks Vlado. i’m on Mac. going to sort out some incremental shell script to make it work then . thanks

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)

-------

worked like a charm

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)

-------

worked like a charm

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?

-frames=1-100,2

Best regards,
Vlado

hey,
i’m trying to batch a couple of vrscenes with a simple DOS .bat file by setting the following up:

vray.exe -sceneFile=“X:\10 Projects\Kash_og_Zook\60_3D\Maya\scenes\vrscenes\ReflectionSign.vrscene” -frames=20-20,1

vray.exe -sceneFile=“X:\10 Projects\Kash_og_Zook\60_3D\Maya\scenes\vrscenes\Alley.vrscene” frames=20-20,1

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?

You have two options here:
1. Use -display=0 - doesn’t show a VFB
2. Use -autoClose=1 - closes the VFB at the end of the render

/Teodor

excellent, thanks Teodor :slight_smile: