Go to: Synopsis. Return value. Related. Flags. MEL examples.
rotate [-absolute] [-centerPivot] [-euler] [-objectCenterPivot] [-objectSpace] [-pivot linear linear linear] [-preserveUV] [-reflection] [-reflectionAboutBBox] [-reflectionAboutOrigin] [-reflectionAboutX] [-reflectionAboutY] [-reflectionAboutZ] [-reflectionTolerance float] [-relative] [-rotateX] [-rotateXY] [-rotateXYZ] [-rotateXZ] [-rotateY] [-rotateYZ] [-rotateZ] [-worldSpace]
float float float [objects]
rotate is undoable, NOT queryable, and NOT 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
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)
|
linear linear linear
|
|||
|
||||
-objectSpace(-os)
|
|
|||
|
||||
-worldSpace(-ws)
|
|
|||
|
||||
-euler(-eu)
|
|
|||
|
||||
-rotateX(-x)
|
|
|||
|
||||
-rotateY(-y)
|
|
|||
|
||||
-rotateZ(-z)
|
|
|||
|
||||
-rotateXY(-xy)
|
|
|||
|
||||
-rotateXZ(-xz)
|
|
|||
|
||||
-rotateYZ(-yz)
|
|
|||
|
||||
-rotateXYZ(-xyz)
|
|
|||
|
||||
-preserveUV(-puv)
|
|
|||
|
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;