Go to: Synopsis. Return value. Related. Flags. Python examples.
xformConstraint([alongNormal=int], [live=boolean], [type=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
xformConstraint is undoable, queryable, and editable.
This command allows you to change the transform constraint used by the transform tools during component transforms.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
alongNormal(n)
|
int
|
|||
|
||||
live(l)
|
boolean
|
|||
|
||||
type(t)
|
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 have multiple arguments, passed either as a tuple or a list. |
import maya.cmds as cmds # Return the current transform constraint cmds.xformConstraint(query=True, type=True) # Constrain moving components to the surface cmds.symmetricModelling(type="surface")