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

Synopsis

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

internalVar is undoable, queryable, and editable.

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

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

Return value


The value of the variable specified by the flag use.

MEL examples

string $myScriptDir = `internalVar -userScriptDir`;