Filters
(→object_set filter) |
(→ground_plane filter) |
||
Line 55: | Line 55: | ||
= ground_plane filter = | = ground_plane filter = | ||
+ | Tests if a body is the built-in ground plane. | ||
+ | |||
[[File:Ground plane filter.png]] | [[File:Ground plane filter.png]] | ||
= size filter = | = size filter = | ||
[[File:Size filter.png]] | [[File:Size filter.png]] |
Revision as of 04:01, 17 July 2012
Filters are logical tests applied to one or both of the rigid bodies in a colliding pair, used to describe conditions that must be satisied in order for a collision event to be triggered. All filters must evaluate to true for the event to be triggered and the script to execute.
Contents |
trigger filter
Allow a rigid body to participate in this event either repeatedly or only once.
type | enum |
---|---|
default | repeated |
indices | once : repeated |
Limit the number of times this event may be triggered for each object. Requires the script to set "trigger:"+$thisPlug. |
chance filter
DG filter
object filter
Tests if a rigid body is derived from a particular input mesh.
object_set filter
Evaluates to true if a body is derived from an input mesh which is a member of a particular maya set.
difference filter
Returns true if the two colliding rigid bodies are from different input meshes.
time filter
contact filter
data filter
Compares the value of custom data attached to a body, with some constant value. The test may be applied to the first or second body, either (logical OR), or both (logical AND). If the body doesn't have the data attached, the filter evaluates to false.
ground_plane filter
Tests if a body is the built-in ground plane.