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

Synopsis

cpCollision [-cloth boolean] [-help] [-name objectName] [-rigid boolean] [objects ...]

cpCollision is undoable, queryable, and editable.

Flags

cloth, help, name, rigid
Long name (short name) [argument types] Properties
-help(-h) create
Prints a quick help message.
-name(-n) objectName create
Specifies the name of the constraint object transform. The actual shape name will be objectNameShape.
-cloth(-c) boolean create
Enable collisions Cloth-to-cloth.
-rigid(-r) boolean create
Enable collisions to Rigid bodies.

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

Return value


String: Name of cpCollisionSet

Related

cpButton, cpConstraint, cpPanel, cpProperty, cpSeam, cpSolver, cpTool

MEL examples

// Select some vertices of the cloth mesh
//
cpCollision;