Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing INI settings post system shutdown?

1 REPLY 1
Reply
Message 1 of 2
KasperFilipsen
58 Views, 1 Reply

Changing INI settings post system shutdown?

I have created a startup script that uses callbacks to change my ENU settings to what I prefer.

I've looked through the system callbacks, and the latest callback, from what I can see is postSystemShutdown, which is what I'm trying to use whenever changing INI files.


The problem is, some of the INI files get overwritten by Max when it shuts down. So even if I change them during postSystemShutdown, they just get overwritten.

E.g. the SME.ini file, which is located in the plugcfg_ln folder.

 

Is there somekind of workaround or solution to this problem?

I'd very much prefer to be able to just have it be a part of my startup script, rather than having to fix it myself manually outside of max.

1 REPLY 1
Message 2 of 2
miauuuu
in reply to: KasperFilipsen

Use your script to run a python, or powershell or batch file which will set the desired INI settings(or directly will replace the INI files).

 

I have a script which uses the #postSystemShutdown callback to run a powershell file. In the powershell file I have a loop which checks every 5 sec(10 iterations) if 3dsmax.exe is still open. When the 3dsmax.exe no longer exist as a process the PS script does what I want(not related with INI files).

https://miauu-maxscript.com/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report