Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

internalVar [-userAppDir] [-userBitmapsDir] [-userMarkingMenuDir] [-userPrefDir] [-userPresetsDir] [-userScriptDir] [-userShelfDir] [-userTmpDir] [-userWorkspaceDir]

internalVar is undoable, NOT queryable, and NOT editable.

This command returns the values of internal variables. No modification of these variables is supported.

Return value

stringThe value of the variable specified by the flag use.

Flags

userAppDir, userBitmapsDir, userMarkingMenuDir, userPrefDir, userPresetsDir, userScriptDir, userShelfDir, userTmpDir, userWorkspaceDir
Long name (short name) Argument types Properties
-userAppDir(-uad) create
Return the user application directory.
-userScriptDir(-usd) create
Return the user script directory.
-userPrefDir(-upd) create
Return the user preference directory.
-userPresetsDir(-ups) create
Return the user presets directory.
-userShelfDir(-ush) create
Return the user shelves directory.
-userMarkingMenuDir(-umm) create
Return the user marking menu directory.
-userBitmapsDir(-ubd) create
Return the user bitmaps prefs directory.
-userTmpDir(-utd) create
Return a temp directory. Will check for TMPDIR environment variable, otherwise will return the current directory.
-userWorkspaceDir(-uwd) create
Return the user workspace directory (also known as the projects directory).

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

string $myScriptDir = `internalVar -userScriptDir`;