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

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

Sample Half Precision Input (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_token

token

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

helloToken

a_path

path

This is an attribute of type path

a_string

string

This is an attribute of type string

helloString

a_objectId

objectId

This is an attribute of type objectId

0

unsigned:a_uchar

uchar

This is an attribute of type unsigned 8 bit integer

0

unsigned:a_uint

uint

This is an attribute of type unsigned 32 bit integer

0

unsigned: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

Sample Boolean Output (a_bool)

bool

This is a computed attribute of type boolean

False

Sample Half Precision Output (a_half)

half

This is a computed attribute of type 16 bit float

1.0

a_int

int

This is a computed attribute of type 32 bit integer

2

a_int64

int64

This is a computed attribute of type 64 bit integer

3

a_float

float

This is a computed attribute of type 32 bit floating point

4.0

a_double

double

This is a computed attribute of type 64 bit floating point

5.0

a_token

token

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

six

a_path

path

This is a computed attribute of type path

/

a_string

string

This is a computed attribute of type string

seven

a_objectId

objectId

This is a computed attribute of type objectId

8

unsigned:a_uchar

uchar

This is a computed attribute of type unsigned 8 bit integer

9

unsigned:a_uint

uint

This is a computed attribute of type unsigned 32 bit integer

10

unsigned:a_uint64

uint64

This is a computed attribute of type unsigned 64 bit integer

11