Value Test
Send particles on to another event by one of their values: above a number, below one, between two, or set to yes or no.
Particles whose value is above or below a number (a part of a vector's), or set to yes or no, go along the wire.
- Add it
- EventAdd OperatorTestsValue Test
- Sends on
- Along its wire: particles whose value passes the test.
- Influence
- Yes: it works only on particles whose value is above a half.
When to use it
To branch on anything a particle carries: those tagged hit, those with
more than three bounces, those whose heat has dropped below a half. Give
them the value with Set Value, then test
it here.
Set it up
Here bounces is a Whole Number value starting at 0. The Value Test
comes before the Age Test, so the first test to pick a particle out wins.
Settings
As the flow editor’s sidebar shows them. Changing any of them marks the bake old; those marked Keyframable can also change through a bake.
One of the flow's values (added under Values in the sidebar); Set Value can also set the particle's own position, velocity, speed, scale, color, spin or shape.
Which part of the vector to use.
- All: The whole vector.
- X
- Y
- Z
- Length: How long it is.
Shown when The value is a Vector.
How the value is compared.
- Above
- Below
- Between
Shown when The value is a Number, Vector or Whole Number.
Passes when the value is above this.
Shown when The value is a Number, Vector or Whole Number, and Test is Above or Between.
Passes when the value is below this.
Shown when The value is a Number, Vector or Whole Number, and Test is Below or Between.
One of the flow’s number values, to weigh it by, particle by particle. Empty for all of it, on all of them. See Influence.
Numbers and vectors
A Number or Whole Number is tested Above a number, Below one, or Between two. A Vector is tested by one Part: X, Y, Z or its length. So with a vector value set from velocity, Z below -5 picks those falling faster than 5 m/s.
Yes or No
A Yes or No is tested by Is Yes: on sends those set to yes, off those set to no.
The wire
Not wired, a Value Test does nothing: particles stay. The first test in the stack that picks a particle out wins.
Works with
- Set Value above it in the stack, or in an event before: the test sees what it set.
- Influence: weighed by another value, only particles whose value is above a half are tested.
Problems you may see
event: operator: 'value' is a vector: pick a Part of it to test
event: operator: nothing is above number and below number
Errors stop a bake; warnings don’t. Every message is on the Messages page.
Related
- Values: data each particle carries
- Using values, a guide with examples