Tutorial Python Node: Attributes With Simple Data

This is a tutorial node. It creates both an input and output attribute of every simple supported data type. The values are modified in a simple way so that the compute modifies values. It is the same as node omni.graph.tutorials.SimpleData, except it is implemented in Python instead of C++.

Installation

To use this Node, you must enable omni.graph.tutorials in the Extension Manager.

Inputs

Name

Type

Description

Default

a_bool

bool

This is an attribute of type boolean

True

a_half

half

This is an attribute of type 16 bit float

0.0

a_int

int

This is an attribute of type 32 bit integer

0

a_int64

int64

This is an attribute of type 64 bit integer

0

a_float

float

This is an attribute of type 32 bit floating point

0

a_double

double

This is an attribute of type 64 bit floating point

0

a_path

path

This is an attribute of type path

a_string

string

This is an attribute of type string

helloString

a_token

token

This is an attribute of type interned string with fast comparison and hashing

helloToken

a_objectId

objectId

This is an attribute of type objectId

0

a_uchar

uchar

This is an attribute of type unsigned 8 bit integer

0

a_uint

uint

This is an attribute of type unsigned 32 bit integer

0

a_uint64

uint64

This is an attribute of type unsigned 64 bit integer

0

a_constant_input

int

This is an input attribute whose value can be set but can only be connected as a source.

Outputs

Name

Type

Description

Default

a_bool

bool

This is a computed attribute of type boolean

a_half

half

This is a computed attribute of type 16 bit float

a_int

int

This is a computed attribute of type 32 bit integer

a_int64

int64

This is a computed attribute of type 64 bit integer

a_float

float

This is a computed attribute of type 32 bit floating point

a_double

double

This is a computed attribute of type 64 bit floating point

a_path

path

This is a computed attribute of type path

/Child

a_string

string

This is a computed attribute of type string

This string is empty

a_token

token

This is a computed attribute of type interned string with fast comparison and hashing

a_objectId

objectId

This is a computed attribute of type objectId

a_uchar

uchar

This is a computed attribute of type unsigned 8 bit integer

a_uint

uint

This is a computed attribute of type unsigned 32 bit integer

a_uint64

uint64

This is a computed attribute of type unsigned 64 bit integer

a_nodeTypeUiName

string

Computed attribute containing the UI name of this node type

a_a_boolUiName

string

Computed attribute containing the UI name of input a_bool