Go to: Synopsis. Return value. Related. Flags. MEL examples.
rotate [-absolute] [-centerPivot] [-euler] [-objectCenterPivot] [-objectSpace] [-pivot double double double] [-reflection] [-reflectionAboutBBox] [-reflectionAboutOrigin] [-reflectionAboutX] [-reflectionAboutY] [-reflectionAboutZ] [-reflectionTolerance float] [-relative] [-rotateX] [-rotateXY] [-rotateXYZ] [-rotateXZ] [-rotateY] [-rotateYZ] [-rotateZ] [-worldSpace]
x y z [object 1] [object 2] ...
rotate is undoable, queryable, and editable.
The rotate command is used to change the rotation of geometric objects. The rotation values are specified as Euler angles (rx, ry, rz). The values are interpreted based on the current working unit for Angular measurements. Most often this is degrees. The default behaviour, when no objects or flags are passed, is to do a absolute rotate on each currently selected object in the world space.None
In query mode, return type is based on queried flag.
Long name (short name) | argument types | Properties | ||
---|---|---|---|---|
-absolute(-a)
|
|
|||
|
||||
-relative(-r)
|
|
|||
|
||||
-reflection(-rfl)
|
|
|||
|
||||
-reflectionAboutOrigin(-rao)
|
|
|||
|
||||
-reflectionAboutBBox(-rab)
|
|
|||
|
||||
-reflectionAboutX(-rax)
|
|
|||
|
||||
-reflectionAboutY(-ray)
|
|
|||
|
||||
-reflectionAboutZ(-raz)
|
|
|||
|
||||
-reflectionTolerance(-rft)
|
float
|
|||
|
||||
-centerPivot(-cp)
|
|
|||
|
||||
-objectCenterPivot(-ocp)
|
|
|||
|
||||
-pivot(-p)
|
double double double
|
|||
|
||||
-objectSpace(-os)
|
|
|||
|
||||
-worldSpace(-ws)
|
|
|||
|
||||
-euler(-eu)
|
|
|||
|
||||
-rotateX(-x)
|
|
|||
|
||||
-rotateY(-y)
|
|
|||
|
||||
-rotateZ(-z)
|
|
|||
|
||||
-rotateXY(-xy)
|
|
|||
|
||||
-rotateXZ(-xz)
|
|
|||
|
||||
-rotateYZ(-yz)
|
|
|||
|
||||
-rotateXYZ(-xyz)
|
|
|||
|
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 |
// create a circle and grouped cone to rotate; circle -n circle1; cone -ax 0 1 0 -n cone1; group -n group1 cone1; // rotate the active objects 45 degrees about the world space X axis // centered at each object's rotate pivot point. select cone1; rotate -r 45deg 0 0; // Set the rotation values for group1 to (90, 0, 0). This is // equivalent to 'setAttr group1.rx 90; setAttr group1.ry 0; // setAttr group1.rz 0;'. rotate 90deg 0 0 group1; // rotate the circle 180 degrees about its local space Y axis // centered at the rotate pivot point 1 0 0. rotate -pivot 1 0 0 0 180deg 0 circle1;