Notifications
Clear all

[Closed] Save latest settings of utility

Hi!
I have a problem. I have a utility for my script with spinners and checkbox and I want to save the inputs of the latest use of the script. Is that possible? I mean that when in the beginning for example a value of 1 is suggested, but the user gives in a value of 2 then I want that the next time the script is called a 2 is suggested.

Respectfully, cgneuling

1 Reply

If you’re talking about ‘global’ tool settings (so not scene-specific) then 3dsMax does not offer any mechanism for this (for as far as I know). So you’ll have to write something yourself, for example by getting and setting values in an ini file.

You could have a look at this struct I use in the Outliner (and other tools) and you’re free to reuse it (it’s published under BSD license)
https://github.com/Pjanssen/Outliner/blob/master/maxscript/script/preferences.ms