Any Zero
Outputs a boolean indicating if any of the input values are zero within a specified tolerance.
Installation
To use this Node, you must enable omni.graph.nodes
in the Extension Manager.
Inputs
Name |
Type |
Description |
Default |
---|---|---|---|
Value (value) |
|
Value(s) to check for zero. |
|
Tolerance (tolerance) |
|
How close the value must be to 0 to be considered zero. |
Outputs
Name |
Type |
Description |
Default |
---|---|---|---|
Result (result) |
|
If ‘value’ is a scalar then ‘result’ will be true if ‘value’ is zero. If ‘value’ is non-scalar (array, tuple, matrix, etc) then ‘result’ will be true if any of its elements are zero. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if ‘value’ is [3, 0, 1] then ‘result’ will be true because the second element is zero. But if ‘value’ is [[3, 0, 1], [-5, 4, 17]] then ‘result’ will be false because neither of the two vectors is fully zero. |