Getting and setting your file paths

To obtain the list of file paths used by 3ds Max

In Opening and saving files, the examples open from and save to the TempDir used by 3ds Max. By default, 3ds Max also creates directories such as ScriptsDir, ExpressionDir and so forth. This list of paths is managed by the PathManager class and you can access its properties to obtain this list, for example, as follows:

import MaxPlus
print 'The Scripts directory is', MaxPlus.PathManager.GetScriptsDir()
print 'The Temp directory is', MaxPlus.PathManager.GetTempDir()

Tool for finding paths and versions

The demoPyVersionTool.py script provides you with useful information such as: your 3ds Max install path, your 3ds Max path environment variable, your Python environment variable, your Python version and prefix, and whether you have imported MaxPlus or other modules.