I added the following Windows args in SG’s Software Admin page to launch 3ds Max 2020 via Shotgun Desktop:
C:\Program Files\Autodesk\3ds Max 2020\3dsmax.exe
-U MAXScript “C:\Temp\Startup.ms”
When I launch through SG desktop the Startup.ms script is not being executed.
The last entries I see in the MAXScript Listener is:
Shotgun: Resolving project…
Shotgun: Resolving configuration…
Shotgun: Updating configuration…
Shotgun: Starting up Toolkit…
Shotgun: Resolving context…
Shotgun: Launching Engine…
Shotgun: Engine launched.
Shotgun: Bootstrap successfully.
However, when I execute this command on the command line:
“C:\Program Files\Autodesk\3ds Max 2020\3dsmax.exe” -U MAXScript “C:\Temp\Startup.ms”
it works as advertised.
Is there something I need to configure when launching a DCC with arguments from Shotgun via Shotgun Desktop?
As you can see, there are now two -U arguments; the one that’s been added to the software entity and the one that Toolkit adds to allow the integration bootstrap code to run on startup.
So I suspect it is just running the last -U argument found in the command.
As Toolkit needs to provide it’s startup script, maybe there is a different way you can get it to run your startup script as well?
Looking at the documentation it seems you can use the PATH env var:
The directories that are listed in the PATH environment variable
You could either set the PATH env var globally on each machine, or you could set it during the Toolkit Launch process:
Thanks for the information Philip. I’ll have another look at the SG toolkit. To behonest, I was just looking for a quick and easy (no dev work) way to distribute DCC configurations across multiple team members w/o them having to touch their OS configurations.
Thus far using SG toolkit to achieve this proved more challenging than expected.