pymel.core.system.internalVar¶
- internalVar(*args, **kwargs)¶
This command returns the values of internal variables. No modification of these variables is supported.
Flags:
Long Name / Short Name Argument Types Properties userAppDir / uad bool Return the user application directory. userBitmapsDir / ubd bool Return the user bitmaps prefs directory. userHotkeyDir / uhk bool Return the user hotkey directory. userMarkingMenuDir / umm bool Return the user marking menu directory. userPrefDir / upd bool Return the user preference directory. userPresetsDir / ups bool Return the user presets directory. userScriptDir / usd bool Return the user script directory. userShelfDir / ush bool Return the user shelves directory. userTmpDir / utd bool Return a temp directory. Will check for TMPDIR environment variable, otherwise will return the current directory. userWorkspaceDir / uwd bool Return the user workspace directory (also known as the projects directory). Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.internalVar
Example:
import pymel.core as pm myScriptDir = pm.internalVar(userScriptDir=True)