pymel.core.system.internalVar

static system.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 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)

Previous topic

pymel.core.system.importFile

Next topic

pymel.core.system.iterReferences

Core

Core Modules

Other Modules

This Page