Mel: Internal Global Variables

From wikinotes
Revision as of 16:20, 6 October 2014 by Will (talk | contribs) (Created page with "=== env === ----- <blockquote> The command env lists all of maya's default environment variables. For example, one of the entries is $gPanelLabels <pre> print $gPanelLabels <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

env


The command env lists all of maya's default environment variables. For example, one of the entries is $gPanelLabels

print $gPanelLabels

getenv


Query one of maya's environment variables. For example, to get the locations where maya checks for scripts:

getenv MAYA_SCRIPT_PATH ;


other useful tricks


get maya version

getApplicationVersionAsFloat