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 ../../../_images/create.gif
 
Return the user application directory.
userBitmapsDir (ubd) bool ../../../_images/create.gif
 
Return the user bitmaps prefs directory.
userMarkingMenuDir (umm) bool ../../../_images/create.gif
 
Return the user marking menu directory.
userPrefDir (upd) bool ../../../_images/create.gif
 
Return the user preference directory.
userPresetsDir (ups) bool ../../../_images/create.gif
 
Return the user presets directory.
userScriptDir (usd) bool ../../../_images/create.gif
 
Return the user script directory.
userShelfDir (ush) bool ../../../_images/create.gif
 
Return the user shelves directory.
userTmpDir (utd) bool ../../../_images/create.gif
 
Return a temp directory. Will check for TMPDIR environment variable, otherwise will return the current directory.
userWorkspaceDir (uwd) bool ../../../_images/create.gif
 

Return the user workspace directory (also known as the projects directory).Flag can appear in Create mode of commandFlag 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

import maya.cmds as cmds

myScriptDir = pm.internalVar(userScriptDir=True)

Previous topic

pymel.core.system.importFile

Next topic

pymel.core.system.iterReferences

Core

Core Modules

Other Modules

This Page