Sending multiples .vrscene via command line

I exported a scene frame by frame in .vrscene format from maya and i want to send this files to deadline via command line.The files have similar name with only one change,the frame number(e.g scene01_001.vrscene,scene01_002.vrscene,etc…).

I went through the thinkbox tutorials about command line and the best i could make was this:

deadlinecommand.exe -SubmitCommandLineJob -executable “C:/Program Files/Autodesk/Maya2016/vray/bin/vray.exe” -arguments “-sceneFile Z:/<my_path>/scene01_001.vrscene” -name “my_test_job” -frames 1-100

The job is sent to deadline but it raises some errors.The most common being:

Error: Renderer returned non-zero error code, 3. Check the log for more information.
em Deadline.Plugins.PluginWrapper.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel)

My question is how can i send this files to deadline via command line properly?

I’m using deadline 8 on windows 10.Thanks!

I almost never use the command line submitter as it’s not quite powerful enough (only runs command line jobs, lacks progress, etc). I’m more of the job/plugin info files kind of guy. You can save existing jobs’ files from the job properties.

The error you got was actually from running the V-Ray executable though, so I think you got the options right. Want to post the job report and we can try to guess what happened there?

For V-Ray though, have you tried the V-Ray standalone submitter from the Monitor? It’ll likely do everything you need:

Indeed there was some mistakes in the vray call(each argument has a “=” char while on deadline it doesn’t), but even fixing that it is not working.

So i made a test just to see if vray itself was working.I ran this on console:

vray.exe -scenefile=“Z:/TD/test_deadline_0001.vrscene” -frames=1-1 -autoclose=1

and it just works! so i tried to send this file to deadline by command line(following the manual job submission page explanation):

deadlinecommand.exe -SubmitCommandLineJob -executable “C:/Program Files/Autodesk/Maya2016/vray/bin/vray.exe” -arguments “-scenefile=Z:/TD/test_deadline_0001.vrscene -frames=1-1” -name “my_test_job” -frames 1-1

The job was sent but it still not rendering.The job report is this:

Any idea of what it could be? thanks!

EDIT: So i finally discovered why it was not rendering: Aparently deadline doesn’t want vray to open a render window as it does by default so i simply used a flag -display=0 on vray and it worked.Now my only question left is how do i send a vrscene sequence at once(one job)?Thanks!

I think the best approach is going to be to reverse engineer the V-Ray submission window so that you can get things like proper progress, error handling, optional tile rendering, and a host of other nice things.

To do that, use the submission window from the Monitor (as shown above), then copy the job and plugin info files and feed them through deadlinecommand as a normal submission. This will require that you create two temporary files, but it opens up the system for you and gives you all the benefits of submitting a real V-Ray job. Here are the fields from my test submission:

JobInfo.txt:

UserName=edwin.amsler
Frames=1
MachineName=Mobile-029.local
Plugin=Vray

PluginInfo.txt:

InputFilename=/Users/edwin.amsler/Downloads/vrimgTest.vrscene
Threads=0
OutputFilename=/Users/edwin.amsler/Downloads/Boops.png
SeparateFilesPerFrame=False
CommandLineOptions=

Using the above, you’d submit the real V-Ray job like so:
deadlinecommand /path/to/JobInfo.txt /path/to/PluginInfo.txt

The only difficult part is creating those files, but if you let me know what’ll be calling deadlinecommand I can provide some tips there.