Notifications
Clear all

[Closed] Saving tool defaults across sessions

Suppose I have a tool with a user specified footpath as a parameter. I want to preserve that parameter across sessions, so the next time the tools runs, It still points to the previously specified file. My current approach is to write / read a .txt file. Is there a better approach?

4 Replies
1 Reply
(@gazybara)
Joined: 11 months ago

Posts: 0

Or XML.
Or this forum You can find a few examples and I think that Denis have one nice post about XDocument usage.

there is. you can use setINISetting and [i]getINISetting.

[/i]

thanks Dennis.
Would there be any reason not to use 3dsMax.ini file returned by getMaxIniFile() for this purpose? Or is it more wise to create my own .ini file for my tool?

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

only your own! would you like if everyone could store anything in your garage?

i usually store my tools settings in the same file … let’s say dts_tools.ini. every tool has it’s own category. so all tools can have the same (general) settings. like pos, size, etc.