Launching 3ds max just to execute a script, no rendering.

Hi,

sorry this might not be directly related to deadline, but I’m trying to figure out a way of just executing 3ds Max scripts, without actually requiring a user license for Max (essentially running it on a server side).

The reason is I need a little more complex re-pathing and setup scripts being executed prior to any rendering. And I don’t need it as a pre-load script file, I really just want:

  1. launch Max without requiring a license
  2. execute a more complex maxscript
  3. exit Max.

Is anything like this possible?

I’m asking here because how deadline actually renders Max scenes using the actual 3dsmax.exe executable, instead of the 3dsmaxcmd.exe.

Thanks in advance for any pointers. Cheers.

Or, alternatively, is there a way to utilize Deadline for this task? I mean, just have it launch a 3ds Max scene, execute a script and terminate Max without rendering?

Go to the scripts tab on submission and there is a Maxscript Job option, you can get it to load in Workstation mode if you need full workstation mode to do something like Saving a file for example.

Thanks for pointing that out. I’ll try and see what kind of a job file it generates. Cheers.

You have to remember that there are certain limitations to running MAXScript in Slave mode without a license. For example, you cannot SAVE a Max file in that mode, or do anything that requires the UI to be accessible. The actual limitations are a bit unclear and I always have to do a test run to find out what works and what doesn’t.
The MAXScript mode of Deadline still expects to LOAD a Max scene, but instead of rendering it, it runs the script. Most of the time we launch in Workstation mode to have full access to all MAXScript functions, which of course needs a Max license.

Hi Bobo,

thanks for the input. The license might be an issue for me as I’ll be needing to run scripts on a pure renderfarm (i.e.: there won’t be any licenses issued on the machines).

All I need is to run the:

getMAXFileAssetMetadata and
setMAXFileAssetMetadata

for path remapping.

I’m looking into other options, but this seems to be the only way (I don’t want to re-map the paths during a render session).

The only way to know whether these methods work in slave mode or not will be to try them and see what will happen…

Yep. Will do. :slight_smile: As soon as I sort this bugger out: http://forums.thinkboxsoftware.com/viewtopic.php?f=11&t=7929