[Maxscript] Adding new paths to 3ds Max System Paths

I want to be able to, using maxscript, add paths to the 3rd Party Plug-Ins list in the Customize -> Configure System Paths dialog. Anyone know how do to that? I can’t find anything in the documentation.

Look into the PathConfig struct.

Found it:



baseDir = pathConfig.removePathLeaf (getDir #temp)
iniFile = baseDir + "\\Plugin.UserSettings.ini"
setIniSetting iniFile "Directories" "Your Plugin Name" "Your Plugin Directory"