Add
Add two or more values of any numeric type (element-wise). This includes simple values, tuples, arrays, and arrays of tuples. If one input has a higher dimension than the other, then the input with lower dimension will be added to each element of the higher-dimension input. Examples: - scalar + tuple = resultTuple (where resultTuple is formed by adding scalar to each element in tuple). - tuple + arrayOfTuples = resultArrayOfTuples (where resultArrayOfTuples is formed by adding each element in tuple with each corresponding element of each tuple in arrayOfTuples). - scalar + arrayOfTuples = resultArrayOfTuples (where resultArrayOfTuples is formed by adding scalar to each element of every tuple in arrayOfTuples). To add/remove addends on this node, select the node and press the small “+”/”-” buttons in the bottom-right corner of the “Inputs” widget in the “Property” window.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
A (inputs:a) |
|
First number or collection of numbers to add. |
None |
B (inputs:b) |
|
Second number or collection of numbers to add. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Sum (outputs:sum) |
|
The element-wise sum of the input numerical values (with preserved typing). |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.Add |
Version |
2 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Add |
Categories |
math:operator |
Generated Class Name |
OgnAddDatabase |
Python Module |
omni.graph.nodes |