Tutorial Python Node: Tokens#
This is a tutorial node. It exercises the feature of providing hardcoded token values in the database after a node type has been initialized. It sets output booleans to the truth value of whether corresponding inputs appear in the hardcoded token list.
Installation#
To use this node enable omni.graph.tutorials in the Extension Manager.
Inputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Values To Check (inputs:valuesToCheck) |
|
Array of tokens that are to be checked |
[] |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Is Color (outputs:isColor) |
|
True values if the corresponding input value appears in the token list |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.graph.tutorials.TokensPy |
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.TokensPy.svg |
Has State? |
False |
Implementation Language |
Python |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Tutorial Python Node: Tokens |
__tokens |
[“red”, “green”, “blue”] |
Categories |
tutorials |
Generated Class Name |
OgnTutorialTokensPyDatabase |
Python Module |
omni.graph.tutorials |
See the accompanying tutorial and annotated code at Tutorial 20 - Tokens