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

Synopsis

internalVar [-userAppDir] [-userBitmapsDir] [-userHotkeyDir] [-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, userHotkeyDir, userMarkingMenuDir, userPrefDir, userPresetsDir, userScriptDir, userShelfDir, userTmpDir, userWorkspaceDir
Long name (short name) Argument types Properties
-userAppDir(-uad) create
Return the user application directory.
-userBitmapsDir(-ubd) create
Return the user bitmaps prefs directory.
-userHotkeyDir(-uhk) create
Return the user hotkey directory.
-userMarkingMenuDir(-umm) create
Return the user marking menu directory.
-userPrefDir(-upd) create
Return the user preference directory.
-userPresetsDir(-ups) create
Return the user presets directory.
-userScriptDir(-usd) create
Return the user script directory.
-userShelfDir(-ush) create
Return the user shelves 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`;