Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

xformConstraint [-alongNormal int] [-live] [-type string]

xformConstraint is undoable, queryable, and editable.

This command allows you to change the transform constraint used by the transform tools during component transforms.

Return value

None

In query mode, return type is based on queried flag.

Related

move, rotate, scale

Flags

alongNormal, live, type
Long name (short name) Argument types Properties
-alongNormal(-n) int queryedit
When set the transform constraint will first be applied along the vertex normals of the components being transformed. When queried, returns the current state of this option.
-live(-l) query
Query-only flag that can be used to check whether the current live surface will be used as a transform constraint.
-type(-t) string createqueryedit
Set the type of transform constraint to use. When queried, returns the current transform constraint as a string.
  • none - no constraint
  • surface - constrain components to their surface
  • edge - constrain components to surface edges

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.

MEL examples

// Return the current transform constraint
xformConstraint -query -type;

// Constrain moving components to the surface
xformConstraint -type "surface";