OmniGraph Node omni.graph.nodes.AnyZero

omni.graph.nodes.AnyZero Properties

Name

Value

Version

1

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Any Zero

__categories

math:condition

Generated Class Name

OgnAnyZeroDatabase

Python Module

omni.graph.nodes

omni.graph.nodes.AnyZero Description

Outputs a boolean indicating if any of the input values are zero within a specified tolerance.

omni.graph.nodes.AnyZero Inputs

Name

Type

Default

Required?

Descripton

inputs:tolerance

double

0.0

Y

How close the value must be to 0 to be considered “zero”.

uiName

Tolerance

inputs:value

[‘colord[3]’, ‘colord[3][]’, ‘colord[4]’, ‘colord[4][]’, ‘colorf[3]’, ‘colorf[3][]’, ‘colorf[4]’, ‘colorf[4][]’, ‘colorh[3]’, ‘colorh[3][]’, ‘colorh[4]’, ‘colorh[4][]’, ‘double’, ‘double[2]’, ‘double[2][]’, ‘double[3]’, ‘double[3][]’, ‘double[4]’, ‘double[4][]’, ‘double[]’, ‘float’, ‘float[2]’, ‘float[2][]’, ‘float[3]’, ‘float[3][]’, ‘float[4]’, ‘float[4][]’, ‘float[]’, ‘frame[4]’, ‘frame[4][]’, ‘half’, ‘half[2]’, ‘half[2][]’, ‘half[3]’, ‘half[3][]’, ‘half[4]’, ‘half[4][]’, ‘half[]’, ‘int’, ‘int64’, ‘int64[]’, ‘int[2]’, ‘int[2][]’, ‘int[3]’, ‘int[3][]’, ‘int[4]’, ‘int[4][]’, ‘int[]’, ‘matrixd[3]’, ‘matrixd[3][]’, ‘matrixd[4]’, ‘matrixd[4][]’, ‘normald[3]’, ‘normald[3][]’, ‘normalf[3]’, ‘normalf[3][]’, ‘normalh[3]’, ‘normalh[3][]’, ‘pointd[3]’, ‘pointd[3][]’, ‘pointf[3]’, ‘pointf[3][]’, ‘pointh[3]’, ‘pointh[3][]’, ‘quatd[4]’, ‘quatd[4][]’, ‘quatf[4]’, ‘quatf[4][]’, ‘quath[4]’, ‘quath[4][]’, ‘texcoordd[2]’, ‘texcoordd[2][]’, ‘texcoordd[3]’, ‘texcoordd[3][]’, ‘texcoordf[2]’, ‘texcoordf[2][]’, ‘texcoordf[3]’, ‘texcoordf[3][]’, ‘texcoordh[2]’, ‘texcoordh[2][]’, ‘texcoordh[3]’, ‘texcoordh[3][]’, ‘timecode’, ‘timecode[]’, ‘transform[4]’, ‘transform[4][]’, ‘uchar’, ‘uchar[]’, ‘uint’, ‘uint64’, ‘uint64[]’, ‘uint[]’, ‘vectord[3]’, ‘vectord[3][]’, ‘vectorf[3]’, ‘vectorf[3][]’, ‘vectorh[3]’, ‘vectorh[3][]’]

None

Y

Value(s) to check for zero.

uiName

Value

omni.graph.nodes.AnyZero Outputs

Name

Type

Default

Required?

Descripton

outputs:result

bool

None

Y

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.

uiName

Result