Go to: Synopsis. Flags. Return value. 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, queryable, and editable.
This command returns the values of internal variables. No modification
of these variables is supported.
userAppDir, userBitmapsDir, 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.
|
The value of the variable specified by the flag use.
import maya.cmds as cmds
myScriptDir = cmds.internalVar(userScriptDir=True)