Submit script only (3dsMax)

Discussion and Support of Deadline, the Render Management System
JonAspeheim
Posts: 4
Joined: Thu Mar 01, 2018 6:32 am

Submit script only (3dsMax)

Postby JonAspeheim » Tue Mar 13, 2018 10:08 am

I'm using deadlinecommand to submit renders from python and it works great.

Is there any way to submit a job that is ony a script and no render? Without a max-file attached but only a max-script?

Thanks!
/Jon

User avatar
Bobo
Posts: 6107
Joined: Tue Nov 15, 2005 10:26 am
Location: Vancouver, Canada
Contact:

Re: Submit script only (3dsMax)

Postby Bobo » Tue Mar 13, 2018 11:59 am

Not quite.
You still need to provide a scene file as argument to the submission, but it could be a dummy empty file. You can easily create one using the MAXScript function call

Code: Select all

SaveNodes #() "c:/temp/emptyfile.max"

Then you have to provide the .MS file as second auxiliary file argument after the MAX scene file in the deadlineCommand call.
In the job submission's plugin info file, you must set the property

Code: Select all

MAXScriptJob=1

to inform the Deadline Slave not to render the scene but to run the included MAXScript.
You can also set

Code: Select all

UseSlaveMode=0

to force 3ds Max to run in Workstation mode, since MAXScript has a long list of limitations when executing in Slave mode without the GUI. However, a 3ds Max license would be required by the render node in this case.
Borislav "Bobo" Petrov
Product Specialist
Thinkbox Software Inc.

User avatar
Bobo
Posts: 6107
Joined: Tue Nov 15, 2005 10:26 am
Location: Vancouver, Canada
Contact:

Re: Submit script only (3dsMax)

Postby Bobo » Wed Mar 14, 2018 2:29 am

I guess I should have also pointed out we have this Tutorial about MAXScript Jobs on the Deadline site:
https://deadline.thinkboxsoftware.com/s ... -maxscript

It shows how to write scripts that run on a Deadline Slave and access Deadline settings, as well as how to create a MAXScript-based submitter to send such a job without using the SMTD UI. While not exactly what you asked for, it might still be useful...
Borislav "Bobo" Petrov
Product Specialist
Thinkbox Software Inc.

JonAspeheim
Posts: 4
Joined: Thu Mar 01, 2018 6:32 am

Re: Submit script only (3dsMax)

Postby JonAspeheim » Wed Mar 14, 2018 3:11 am

That worked!

Thanks!


Return to “Thinkbox Software - Deadline”

Who is online

Users browsing this forum: No registered users and 7 guests