Go to: Synopsis. Return value. Flags. Python examples.
internalVar([userAppDir=boolean], [userBitmapsDir=boolean], [userHotkeyDir=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, userHotkeyDir, userMarkingMenuDir, userPrefDir, userPresetsDir, userScriptDir, userShelfDir, userTmpDir, userWorkspaceDir
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)