Go to: Synopsis. Return value. Related. Flags. MEL examples.
move [-absolute] [-componentSpace] [-constrainAlongNormal] [-deletePriorHistory boolean] [-localSpace] [-moveX] [-moveXY] [-moveXYZ] [-moveXZ] [-moveY] [-moveYZ] [-moveZ] [-objectSpace] [-orientJoint string] [-parameter] [-preserveChildPosition] [-preserveGeometryPosition] [-preserveUV] [-reflection] [-reflectionAboutBBox] [-reflectionAboutOrigin] [-reflectionAboutX] [-reflectionAboutY] [-reflectionAboutZ] [-reflectionTolerance float] [-relative] [-rotatePivotRelative] [-scalePivotRelative] [-secondaryAxisOrient string] [-symNegative] [-worldSpace] [-worldSpaceDistance] [-xformConstraint string]
float float float [objects]
move is undoable, NOT queryable, and NOT editable.
The move command is used to change the positions of geometric objects. The default behaviour, when no objects or flags are passed, is to do a absolute move on each currently selected object in the world space. The value of the coordinates are interpreted as being defined in the current linear unit unless the unit is explicitly mentioned. When using -objectSpace there are two ways to use this command. If numbers are typed without units then the internal values of the object are set to these values. If, on the other hand a unit is specified then the internal value is set to the equivalent internal value that represents that world-space distance. The -localSpace flag moves the object in its parent space. In this space the x,y,z values correspond directly to the tx, ty, tz channels on the object. The -rotatePivotRelative/-scalePivotRelative flags can be used with the -absolute flag to translate an object so that its pivot point ends up at the given absolute position. These flags will be ignored if components are specified. The -worldSpaceDistance flag is a modifier flag that may be used in conjunction with the -objectSpace/-localSpace flags. When this flag is specified the command treats the x,y,z values as world space units so the object will move the specified world space distance but it will move along the axis specified by the -objectSpace/-localSpace flag. The default behaviour, without this flag, is to treat the x,y,z values as units in object space or local space. In other words, the worldspace distance moved will depend on the transformations applied to the object unless this flag is specified.None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-absolute(-a)
|
|
|||
|
||||
-componentSpace(-cs)
|
|
|||
|
||||
-constrainAlongNormal(-xn)
|
|
|||
|
||||
-deletePriorHistory(-dph)
|
boolean
|
|||
|
||||
-localSpace(-ls)
|
|
|||
|
||||
-moveX(-x)
|
|
|||
|
||||
-moveXY(-xy)
|
|
|||
|
||||
-moveXYZ(-xyz)
|
|
|||
|
||||
-moveXZ(-xz)
|
|
|||
|
||||
-moveY(-y)
|
|
|||
|
||||
-moveYZ(-yz)
|
|
|||
|
||||
-moveZ(-z)
|
|
|||
|
||||
-objectSpace(-os)
|
|
|||
|
||||
-orientJoint(-oj)
|
string
|
|||
|
||||
-parameter(-p)
|
|
|||
|
||||
-preserveChildPosition(-pcp)
|
|
|||
|
||||
-preserveGeometryPosition(-pgp)
|
|
|||
|
||||
-preserveUV(-puv)
|
|
|||
|
||||
-reflection(-rfl)
|
|
|||
|
||||
-reflectionAboutBBox(-rab)
|
|
|||
|
||||
-reflectionAboutOrigin(-rao)
|
|
|||
|
||||
-reflectionAboutX(-rax)
|
|
|||
|
||||
-reflectionAboutY(-ray)
|
|
|||
|
||||
-reflectionAboutZ(-raz)
|
|
|||
|
||||
-reflectionTolerance(-rft)
|
float
|
|||
|
||||
-relative(-r)
|
|
|||
|
||||
-rotatePivotRelative(-rpr)
|
|
|||
|
||||
-scalePivotRelative(-spr)
|
|
|||
|
||||
-secondaryAxisOrient(-sao)
|
string
|
|||
|
||||
-symNegative(-smn)
|
|
|||
|
||||
-worldSpace(-ws)
|
|
|||
|
||||
-worldSpaceDistance(-wd)
|
|
|||
|
||||
-xformConstraint(-xc)
|
string
|
|||
|
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. |
polySphere; move 1 1 1; move -y 5; move -relative -objectSpace -worldSpaceDistance 1in 1in 1in; move -absolute 0 0 0 pSphere1; // To specify one or more object(s), all three lengths must be specified, // although not all values may actually be used. For example, with the -y flag, // all three values are required, but only the first is applied for the y // operation; in the following example, only the value 5 is used, and the other // two values could be anything: // move -y 5 3.14159 2.71828 "pSphere1";