OmniGraph Node omni.graph.tutorials.OverrideType¶
omni.graph.tutorials.OverrideType Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.OverrideType.svg |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Tutorial Node: Overriding C++ Data Types |
__categories |
tutorials |
Generated Class Name |
OgnTutorialOverrideTypeDatabase |
Python Module |
omni.graph.tutorials |
omni.graph.tutorials.OverrideType Description¶
This is a tutorial node. It has an input and output of type float[3], an input and output of type double[3], and a type override specification that lets the node use Carbonite types for the generated data on the float[3] attributes only. Ordinarily all of the types would be defined in a seperate configuration file so that it can be shared for a project. In that case the type definition build flag would also be used so that this information does not have to be embedded in every .ogn file in the project. It is placed directly in the file here solely for instructional purposes. The compute is just a rotation of components from x->y, y->z, and z->x, for each input type.
omni.graph.tutorials.OverrideType Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:data |
double[3] |
[0.0, 0.0, 0.0] |
Y |
The value to rotate |
uiName |
Input value with a standard double type |
|||
inputs:typedData |
float[3] |
[0.0, 0.0, 0.0] |
Y |
The value to rotate |
uiName |
Input value with a modified float type |
omni.graph.tutorials.OverrideType Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:data |
double[3] |
None |
Y |
The rotated version of inputs::data |
uiName |
Output value with a standard double type |
|||
outputs:typedData |
float[3] |
None |
Y |
The rotated version of inputs::typedData |
uiName |
Output value with a modified float type |