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, you must enable omni.graph.tutorials in the Extension Manager.

Inputs#

Name

Type

Description

Default

Float Or Token (floatOrToken)

float, token

Attribute that can either be a float value or a token value

To Negate (toNegate)

bool[], float[]

Attribute that can either be an array of booleans or an array of floats

Tuple Values (tuple)

any

Variable size/type tuple values

Flexible Values (flexible)

float[3][], token

Flexible data type input

Outputs#

Name

Type

Description

Default

Doubled Input Value (doubledResult)

any

If the input ‘floatOrToken’ is a float this is 2x the value. If it is a token this contains the input token repeated twice.

Negated Array Values (negatedResult)

bool[], float[]

Result of negating the data from the ‘toNegate’ input

Negative Tuple Values (tuple)

any

Negated values of the tuple input

Inverted Flexible Values (flexible)

float[3][], token

Flexible data type output