March 2019: ewertb.soundlinker.com is getting relocated to ewertb.mayasound.com, please update your bookmarks.

MEL How-To #33

Back · Previous · Next Maya

How do I change units (e.g. Angular or Time) via MEL?

Surprisingly enough, the command for this is currentUnit.

To set the Angle Unit to "radians":

currentUnit -angle radian;

To set the Time Unit to PAL:

currentUnit -time pal;

Refer to Maya's online docs ("MEL Command Reference") for more details and examples.