OmniGraph Node omni.graph.tutorials.TokensPy¶
omni.graph.tutorials.TokensPy Properties¶
Name |
Value |
---|---|
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 |
__language |
Python |
Generated Class Name |
OgnTutorialTokensPyDatabase |
Python Module |
omni.graph.tutorials |
omni.graph.tutorials.TokensPy Description¶
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.
omni.graph.tutorials.TokensPy Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:valuesToCheck |
token[] |
[] |
Y |
Array of tokens that are to be checked |
omni.graph.tutorials.TokensPy Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:isColor |
bool[] |
None |
Y |
True values if the corresponding input value appears in the token list |