I want to run some MAXscript when MAX opens, I’ve been trying to use 3dsmax.exe with the -mxs option like so:
"F:\Program Files\Autodesk\3ds Max 2020\3dsmax.exe" -mxs "messageBox \"My Dumb Test\""
This sorta works, the problem that I have is that MAX will immediately close after the script is run (in the above example MAX closes once I click the OK button in the message box). If I instead use
-U MAXScript "C:\\MyDumbTest.ms"
then MAX does stay open however this doesn’t help me because in my real example I need to define some global variables. I’m launching MAX through cmd.EXE on Windows 10 and I’ve tested it with MAX 2016, 2017 and 2020. Any ideas?