Tutorial 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)

token[]

Array of tokens that are to be checked

[]

Outputs

Name

Type

Descripton

Default

Is Color (outputs:isColor)

bool[]

True values if the corresponding input value appears in the token list

None

Metadata

Name

Value

Unique ID

omni.graph.tutorials.Tokens

Version

1

Extension

omni.graph.tutorials

Icon

ogn/icons/omni.graph.tutorials.Tokens.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Node: Tokens

__tokens

[“red”, “green”, “blue”]

Categories

tutorials

Generated Class Name

OgnTutorialTokensDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 20 - Tokens