Running Code Before 3ds Max Loads

Running Code Before 3ds Max Loads

a52_admin
Explorer Explorer
767 Views
1 Reply
Message 1 of 2

Running Code Before 3ds Max Loads

a52_admin
Explorer
Explorer

I'm looking to run some code prior to 3ds max launching. It would essentially be the equivalent of setting an environment variable in a .bat script that then launched 3ds max with the new environment variables.

 

I've tried creating a .ms script inside of the [max install]\stdplugs\stdscripts directory where I was setting an environment variable using System.Environment.SetEnvironmentVariable but it seems to evaluate after 3dsMax has already done some processing.

 

Is there another location that I should be trying since the one above was the first listed in the article

https://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_615D14FB_0F2D_4801_B381_1128C4128C...

 

 

0 Likes
768 Views
1 Reply
Reply (1)
Message 2 of 2

malcomarmstrong
Advocate
Advocate

We have used a startup.ms file as part of our pipeline and that sets up quite a lot before Max runs. We set env vars and implement BLUR python into our set up process, so where you are now is probably the right area. Our pipeline calls one startup from the server, but users also have their own personal startup script that sets their particular env. I cant post any of our code due to NDA, but the startup.ms script is where you want to focus your efforts.

 

regards

0 Likes