Go to: Synopsis. Return value. Related. Flags.
cpConstraint(
[objects ...]
, [assigner=[assigner, type]], [help=boolean], [name=objectName], [type=[type, name]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
cpConstraint is undoable, queryable, and editable.
This command creates a constraint on a cloth mesh. The use of this command requires multiple selection. One selection is an object which will act as the constraint. The other selection is either a group of cloth vertices to be constrained, or a curve on the cloth panel. There are currently 5 types of constraints: 1. Transform constraint, which constrains a set of cloth vertices to follow another object's transform. 2. Mesh constraint, which constrains a set of cloth vertices to follow a set of triangles of a rigid body. 3. Field constraint, which affects a set of cloth vertices by a dynamics field. 4. Cloth constraint, which constrains points on one cloth to the triangles of another cloth (or the same cloth).string Name of constraint.
In query mode, return type is based on queried flag.
| Long name (short name) | argument types | Properties | ||
|---|---|---|---|---|
help(h)
|
boolean
|
|
||
|
||||
type(t)
|
[type, name]
|
|
||
|
||||
assigner(a)
|
[assigner, type]
|
|
||
|
||||
name(n)
|
objectName
|
|
||
|
||||