Go to: Synopsis. Return value. Flags. Python examples.
internalVar([userAppDir=boolean], [userBitmapsDir=boolean], [userMarkingMenuDir=boolean],
[userPrefDir=boolean],
[userPresetsDir=boolean],
[userScriptDir=boolean],
[userShelfDir=boolean],
[userTmpDir=boolean],
[userWorkspaceDir=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
internalVar is undoable, NOT queryable, and NOT
editable.
This command returns the values of internal variables. No
modification of these variables is supported.
string |
The value of the variable specified by the flag use. |
userAppDir, userBitmapsDir, userMarkingMenuDir, userPrefDir, userPresetsDir, userScriptDir, userShelfDir, userTmpDir, userWorkspaceDir
Long name (short name) |
Argument types |
Properties |
userAppDir(uad) |
boolean |
|
|
Return the user application directory. |
|
userScriptDir(usd) |
boolean |
|
|
Return the user script directory. |
|
userPrefDir(upd) |
boolean |
|
|
Return the user preference directory. |
|
userPresetsDir(ups) |
boolean |
|
|
Return the user presets directory. |
|
userShelfDir(ush) |
boolean |
|
|
Return the user shelves directory. |
|
|
boolean |
|
|
Return the user marking menu directory. |
|
userBitmapsDir(ubd) |
boolean |
|
|
Return the user bitmaps prefs directory. |
|
userTmpDir(utd) |
boolean |
|
|
Return a temp directory. Will check for TMPDIR environment
variable, otherwise will return the current directory. |
|
userWorkspaceDir(uwd) |
boolean |
|
|
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 have multiple arguments, passed
either as a tuple or a list. |
import maya.cmds as cmds
myScriptDir = cmds.internalVar(userScriptDir=True)