Tutorial Python Node: Extended Attribute Types
This is a tutorial node. It exercises functionality for the manipulation of the extended attribute types. It is identical to OgnTutorialExtendedTypes.ogn, except the language of implementation is selected to be python.
Installation
To use this node enable omni.graph.tutorials in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Flexible Values (inputs:flexible) |
|
Flexible data type input |
None |
Float Or Token (inputs:floatOrToken) |
|
Attribute that can either be a float value or a token value |
None |
To Negate (inputs:toNegate) |
|
Attribute that can either be an array of booleans or an array of floats |
None |
Tuple Values (inputs:tuple) |
|
Variable size/type tuple values |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Doubled Input Value (outputs:doubledResult) |
|
If the input ‘floatOrToken’ is a float this is 2x the value. If it is a token this contains the input token repeated twice. |
None |
Inverted Flexible Values (outputs:flexible) |
|
Flexible data type output |
None |
Negated Array Values (outputs:negatedResult) |
|
Result of negating the data from the ‘toNegate’ input |
None |
Negative Tuple Values (outputs:tuple) |
|
Negated values of the tuple input |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.tutorials.ExtendedTypesPy |
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.ExtendedTypesPy.svg |
Has State? |
False |
Implementation Language |
Python |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Tutorial Python Node: Extended Attribute Types |
Categories |
tutorials |
Generated Class Name |
OgnTutorialExtendedTypesPyDatabase |
Python Module |
omni.graph.tutorials |
See the accompanying tutorial and annotated code at Tutorial 19 - Extended Attribute Types