3ds max System Directories

The following methods allow you to access the 3ds max system directories:

GetDir <filetype_name>

Returns as a string the directory specified in the Customize > Configure Paths dialog for the specified file type. The valid <filetype_name> values are:

#autoback

#drivers

#export

#expression

#font

#help

#image

#import

#matlib

#maxroot

#maxstart

#plugcfg

#preview

#scene

#scripts

#sound

#startupScripts

#ui

#vpost

The following functions 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.

mapPaths.add <path_string>

Appends the specified path to the list of Bitmap search paths.

mapPaths.count()

Returns the number of Bitmap search paths defined.

mapPaths.get <index>

Returns the indexed Bitmap search path as a string. The index is 1-based.

mapPaths.delete() <index>

Deletes the indexed Bitmap search path. The index is 1-based.

xrefPaths.add <path_string>

Appends the specified path to the list of XRef search paths.

xrefPaths.count()

Returns the number of XRef search paths defined.

xrefPaths.get <index>

Returns the indexed XRef search path as a string. The index is 1-based.

xrefPaths.delete <index>

Deletes the indexed XRef search path. The index is 1-based.