Find Array Value
Searches for a value in an array, returning either the index of the first occurrence of the value or -1 if the value is not found.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (inputs:array) |
|
The array in which “Value” is to be searched for. |
None |
Value (inputs:value) |
|
The value to be found in “Array”. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Index (outputs:index) |
|
The index of the first occurrence of “Value” in “Array”, or -1 if no instances of “Value” are found in “Array”. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ArrayFindValue |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Find Array Value |
Categories |
math:array |
Generated Class Name |
OgnArrayFindValueDatabase |
Python Module |
omni.graph.nodes |