Your Ad Here

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

Synopsis

cpRigidCollisionFilter [-addRigidBody objectName] [-removeRigidBody objectName] [object]

cpRigidCollisionFilter is undoable, queryable, and editable.

Creates a new dynamic attribute on the rigidBody that allows it to toggle collisions for a given collision constraint set.

Flags

addRigidBody, removeRigidBody
Long name (short name) [argument types] Properties
-addRigidBody(-arb) objectName create
Adds a rigid collision filter for the given object on the specified collision constraint. This flag and -rrb/removeRigidBody are mutually exclusive.
-removeRigidBody(-rrb) objectName create
Removes a rigid collision filter for the given object on the specified collision constraint. This flag and -arb/addRigidBody are mutually exclusive.

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


Nothing.

Related

cpCollision

MEL examples

  // Add a rigid collision filter such that all particles in the
  // collision constraint set, collisionShape1, can have their
  // collisions toggled for pCubeShape1.
  //
cpRigidCollisionFilter -arb pCubeShape1 collisionShape1;

  // Remove the rigid collision filter.
  //
  cpRigidCollisionFilter -rrb pCubeShape1 collisionShape1;

  

Return to Autodesk Index


Your Ad Here