Notifications
Clear all

[Closed] Access history categories?

Is there any way I can access the list of paths from maxscript’s default “MAXScriptFileOpenSave” history category, or maybe even a custom category?

My goal is to get the last path and use it as initialDir for getSavePath.

3 Replies

Never mind. After a lot of digging around I found it in 3dsmax.ini

useful thing to know

Yes, and for those not familiar with ini’s, it’s easy to get the values too:

maxini = getMAXIniFile()
lastpath = getINISetting maxini "MAXScriptFileOpenSave" "History_00"

You can also use hasINISetting to test the section and key, but I found that getINISetting returns an empty string if they don’t exist.