I know this is a strange request.
We are working is c++ and send our renders though deadline command lines and this works great.
deadlinecommand “C:\job_info.job” “C:\max_info.job” “C:\MyScene.max”
For our animation previews we are making our own viewport with the SDK and need to start a full workstation version of 3dsmax.
If I open CMD in windows I would pass 3dsmax this…
“C:\Program Files\Autodesk\3ds Max 2017\3dsmax” -silent -U MAXScript “p:\test_render_01.ms” “p:\Submit.max”
Works great, but would like to send our animation previews to deadline.
We have tried a standard deadline submit with force workstation Mode and Submit Script Job but it looks like it runs 3dsmax with -mip switch. We just get black frames from our playblast just if we run…
“C:\Program Files\Autodesk\3ds Max 2017\3dsmax” -mip -U MAXScript “p:\test_render_01.ms” “p:\Submit.max”
So how do we submit to deadline this command…
“C:\Program Files\Autodesk\3ds Max 2017\3dsmax” -silent -U MAXScript “p:\test_render_01.ms” “p:\Submit.max”
Any help would be great.
Si
In our “3dsmax.py” plugin file, around lines #1091, this is the CLI flags we are setting:
parameters += " -p \"" + pluginIni + "\" -q"
if( self.UseSlaveMode ):
parameters = parameters + " -s"
if( self.UseSilentMode ):
parameters = parameters + " -silent"
MaxScript/Python script files are executed via Lightning plugin, but will behave the same as if you passed the “-U” CLI flag. Line: #2266 for your reference:
# If we are running a max script job, then just execute the script.
if( self.MaxScriptJob ):
self.ExecuteScript( self.CurrentFrame, self.MaxScriptJobScript, True, False )
We don’t use the “-mip” flag, but the behaviour you describe would happen if “-s” had been passed to the process.
Can you share the full job log report so we can see what is going on here? An alternative would be to take one of our plugins such as 3dsmax or 3dsCmd or indeed, just our really simple “CommandLine” plugin and fork that code into your own custom Deadline app plugin, which you could control the CLI flags exactly as you wish. I’m also assuming the machine you were running your test job on has graphics card capabilities to produce an animation preview?
Sorry Mike, you lost me. Not sure about the python examples.
Doing a search with the job_info.job file we make from c++ there is…
UseSlaveMode=1
Are you saying with your python example this should be…
UseSlaveMode=-s
and…
UseSilentMode=0
should say
UseSilentMode=-silent ?
are they not bools? Have they changed?
No, I was referring to how we build up the arguments in the 3dsmax python plugin which is what gets executed on a Slave when it picks up a 3dsmax job (Plugin=3dsmax). In your job_info.job file you should be declaring:
UseSlaveMode=0
UseSilentMode=0
Nothing has changed. If this doesn’t work, please can you provide the full job log report so we can inspect?
Mike, don’t worries. I’m going to send this to support.