Go to: Synopsis. Return value. Flags. MEL examples.
upAxis [-axis string] [-rotateView]
upAxis is undoable, queryable, and NOT editable.
The upAxis command changes the world up direction. Current implementation provides only two choices of axis (the Y-axis or the Z-axis) as the world up direction. By default, the ground plane in Maya is on the XY plane. Hence, the default up-direction is the direction of the positive Z-axis. The -ax flag is mandatory. In conjunction with the -ax flag, when the -rv flag is specified, the camera of currently active view is revolved about the X-axis such that the position of the groundplane in the view will remain the same as before the the up direction is changed. The screen update is applied to all cameras of all views.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-axis(-ax)
|
string
|
|||
|
||||
-rotateView(-rv)
|
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
// 1. to make the Y-axis of the world to be the up axis: upAxis -ax y; // 2. to make the Z-axis of the world to be the up axis, // and rotate the view: upAxis -ax z -rv; // 3. to query which axis is the current up axis // (returns a string: a "y" or a "z"): upAxis -q -axis;