File path variables
 
 
 
MAYA_APP_DIR (Windows and Linux)

This variable defines your personal Maya application directory. This directory contains your projects and other important items:

You can only set MAYA_APP_DIR from the operating system; you cannot use Maya.env. If you do not set it, the default values are: ~username/maya (Linux) or drive:\Documents and Settings\username\My Documents\maya (Windows).

For Mac OS X, you cannot set environment variables from the operating system.

MAYA_CMD_FILE_OUTPUT

This variable enables the cmdFileOutput command during startup so the content in the script editor automatically outputs to a designated file. If no file name is specified, then errors are sent to the standard error output, for example the Terminal window. This feature is useful for tracking down error messages when Maya crashes upon startup.

NoteThe content in the Script Editor displays in both the Script Editor and the designated output location.
MAYA_FILE_ICON_PATH

This variable has become obsolete since Maya 3.0. See XBMLANGPATH as this variable should be used instead.

MAYA_MODULE_PATH

Defines the search paths for Maya module files. A module file describes the install location for certain Maya components, such as subdivision surfaces. Generally, you don’t need to set this variable. But, keep in mind that for each path extracted from the modules files, Maya appends the suffixes “plug-ins”, “presets”, “scripts”, and “icons”, and then adds the appended path to MAYA_PLUG_IN_PATH, MAYA_PRESET_PATH, MAYA_SCRIPT_PATH, and XBMLANGPATH, respectively.

The following table lists the default paths, which will always follow any path that you specify.

Default for Windows Default for Mac OS X, Linux
<user’s directory>/My Documents/maya/2009/modules<user’s directory>/My Documents/maya/modulesC:/Program Files/Common Files/Autodesk Shared/Modules/maya/2009

C:/Program Files/Common Files/Autodesk Shared/Modules/maya

<maya_directory>/modules/

$MAYA_APP_DIR/maya/2009/modules $MAYA_APP_DIR/maya/modules /usr/autodesk/modules/maya/2009 /usr/autodesk/modules/maya

NoteIf you use spaces in a file path that you create, you may have problems accessing icon image files stored within that directory, because the file path does not appear in Maya. You can avoid this problem by only specifying file paths that do not include spaces.
MAYA_MOVIE_DIR

This variable is used to override the directory where movie files are found. The default is $MAYA_LOCATION/movies.

MAYA_LOCATION

The path for the Maya installation directory. If it is not set, it defaults to /usr/autodesk/mayaVersionNumber (Linux) or C:\Program Files\Autodesk \MayaVersionNumber (Windows).

On Mac OS X, Maya is installed as /Applications/Maya 2009/Maya.app. Since Mac OS X architecture makes it difficult to access the contents of the Maya application package, we strongly discourage the use of MAYA_LOCATION on Mac OS X. Instead, use the following alternate locations:

On Linux, set TMPDIR only. On Windows, set both TEMP and TMPDIR. If not set, the temporary directory is /tmp (Linux), or C:/temp (Windows), or under your Home folder in Documents/temp.

XBMLANGPATH

This variable specifies the location of icon files, such as icons used for Shelf buttons. On Linux, the syntax is slightly different then other paths. For example:

XBMLANGPATH = "./icons/%B:$HOME/dev/icons/%B"

In this example, %B is acts as a placeholder that will be replaced by Maya with the bitmap filename.

The following table lists the default paths, which will always follow any path that you specify.

Default for Windows Default for Linux Default for Mac OS X

%MAYA_APP_DIR%\maya\2009\prefs\icons%MAYA_APP_DIR%\maya\prefs\icons

%MAYA_LOCATION%\icons

%MAYA_LOCATION%\icons \paintEffects

%MAYA_LOCATION%\icons \cloth

%MAYA_LOCATION%\icons \fur

$MAYA_APP_DIR/maya/2009/prefs/icons/%B

$MAYA_APP_DIR/maya/prefs/icons/%B

/usr/autodesk/userconfig/maya/2009/icons/%B

/usr/autodesk/userconfig/maya/icons/%B

$MAYA_LOCATION/icons/%B

$MAYA_LOCATION/icons/paintEffects/%B

$MAYA_LOCATION/icons/cloth/%B

$MAYA_LOCATION/icons/fur/%B

In your Home folder, in Library/Preferences/Autodesk/maya/2009/prefs/icons

In your Home folder, in Library/Preferences/Autodesk/maya/prefs/icons

/Users/Shared/Autodesk/maya/2009/icons

/Users/Shared/Autodesk/maya/icons

Inside the Maya package in /Applications/Autodesk/Maya 2009/Maya.app

MAYA_MR_STARTUP_DIR

This variable can be used to specify the location of the maya.rayrc file.