Replace Array Value
Creates a copy of an input array where the first occurrence of “Value” is replaced with “New Value” in said array copy. If “Replace All” is true then all occurrences of the value are replaced.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (inputs:array) |
|
The array that serves as the starting point for the modified output array. |
None |
New Value (inputs:newValue) |
|
The value to replace “Value” with in the output array. |
None |
Replace All (inputs:replaceAllFound) |
|
If true, replaces all occurrences of “Value” with “New Value”. |
False |
Value (inputs:value) |
|
The value to be replaced in the output array. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (outputs:array) |
|
An array computed from the input array with some values replaced. |
None |
Found (outputs:found) |
|
Set to true if a value was replaced, false otherwise. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ArrayReplaceValue |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Replace Array Value |
Categories |
math:array |
Generated Class Name |
OgnArrayReplaceValueDatabase |
Python Module |
omni.graph.nodes |