The following methods allow you to access the 3ds Max system directories:
Returns as a string the directory specified in the Customize > Configure Paths dialog for the specified file type.
The valid <filetype_name> values are:
#animations -- available in 3ds Max 9 and higher #archives -- available in 3ds Max 9 and higher #autoback#defaults#downloads -- available in 3ds Max 9 and higher #drivers#export#expression#font#help#image#import#matlib#maxData -- available in 3ds Max 9 and higher #maxroot#maxstart#pageFile -- available in 3dsMax 2010 and higher #Photometric -- available in 3ds Max 9 and higher #plugcfg#preview#proxies -- available in 3ds Max 9 and higher #renderassets -- available in 3ds Max 9 and higher #renderPresets -- available in 3ds Max 9 and higher #renderoutput -- available in 3ds Max 9 and higher #scene#scripts#sound#startupScripts#temp -- available in 3ds Max 9 and higher #ui#userMacros -- available in 3ds Max 9 and higher #userScripts -- available in 3ds Max 9 and higher #userStartupScripts -- available in 3ds Max 9 and higher #userIcons -- available in 3ds Max 9 and higher #vpost
Sets the directory specified in string. Replicated in the Customize > Configure Paths dialog for the specified file type.
The valid <filetype_name> values are the same as for GetDir.
Returns true if successful, false if not. Does not check to see if <string> is a valid path. Any change made through this function is immediately reflected in the 3dsmax.ini file and so is persistent. Use with caution.
Returns an Integer corresponding to the given system directory name.
Available in 3ds Max 9 and higher.
The following methods let you get, add or delete Bitmap and XRef paths, corresponding to the Bitmaps and XRefs tabs in the Configure Paths dialog in 3ds Max. Any changes made through these functions are immediately reflected in the 3dsmax.ini file and so are persistent.
Appends the specified path to the list of Bitmap search paths.
Returns the number of Bitmap search paths defined.
Returns the indexed Bitmap search path as a string. The index is 1-based.
Deletes the indexed Bitmap search path. The index is 1-based.
Resolves the filename using map paths, returns fully qualified filename if the file is found. Available in 3ds Max 9 and higher.
Appends the specified path to the list of XRef search paths.
Returns the number of XRef search paths defined.
Returns the indexed XRef search path as a string. The index is 1-based.
Deletes the indexed XRef search path. The index is 1-based.
Resolves the filename using xref paths, returns fully qualified filename if the file is found.
Available in 3ds Max 9 and higher.