Go to: Synopsis. Return value. Flags. MEL examples.
matchTransform [-pivots] [-position] [-rotation] [-scale]
[objects...]
matchTransform is undoable, NOT queryable, and NOT editable.
This command modifies the source object's transform to match the target object's transform.If no flags are specified then the command will match position, rotation and scaling.
None
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
-pivots(-piv)
|
|
|
||
|
||||
-position(-pos)
|
|
|
||
|
||||
-rotation(-rot)
|
|
|
||
|
||||
-scale(-scl)
|
|
|
||
|
||||
// create a cone and randomly transform it polyCone -n cone1; scale 0.2 2.0 0.2; rotate 20 45 70; move -2 0 2; // create a cylinder polyCylinder -n cylinder1; // modify the cylinder's transform to match the cone matchTransform cylinder1 cone1;