Tutorial Python Node: Generic Math Node
This is a tutorial node. It is functionally equivalent to the built-in Multiply node, but written in python as a practical demonstration of using extended attributes to write math nodes that work with any numeric types, including arrays and tuples.
Installation
To use this node enable omni.graph.tutorials in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
A (inputs:a) |
|
First number to multiply |
None |
B (inputs:b) |
|
Second number to multiply |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Product (outputs:product) |
|
Product of the two numbers |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.tutorials.GenericMathNode |
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.GenericMathNode.svg |
Has State? |
False |
Implementation Language |
Python |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Tutorial Python Node: Generic Math Node |
Categories |
tutorials |
Generated Class Name |
OgnTutorialGenericMathNodeDatabase |
Python Module |
omni.graph.tutorials |
See the accompanying tutorial and annotated code at Tutorial 26 - Generic Math Node