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 enable omni.graph.tutorials in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Sample Boolean Input (inputs:a_bool) |
|
This is an attribute of type boolean |
True |
A Constant Input (inputs:a_constant_input) |
|
This is an input attribute whose value can be set but can only be connected as a source. |
0 |
Metadata |
outputOnly = 1 |
||
A Double (inputs:a_double) |
|
This is an attribute of type 64 bit floating point |
0 |
A Float (inputs:a_float) |
|
This is an attribute of type 32 bit floating point |
0 |
Sample Half Precision Input (inputs:a_half) |
|
This is an attribute of type 16 bit float |
0.0 |
A Int (inputs:a_int) |
|
This is an attribute of type 32 bit integer |
0 |
A Int64 (inputs:a_int64) |
|
This is an attribute of type 64 bit integer |
0 |
A Object Id (inputs:a_objectId) |
|
This is an attribute of type objectId |
0 |
A Path (inputs:a_path) |
|
This is an attribute of type path |
|
A String (inputs:a_string) |
|
This is an attribute of type string |
helloString |
A Token (inputs:a_token) |
|
This is an attribute of type interned string with fast comparison and hashing |
helloToken |
Unsigned A Uchar (inputs:unsigned:a_uchar) |
|
This is an attribute of type unsigned 8 bit integer |
0 |
Unsigned A Uint (inputs:unsigned:a_uint) |
|
This is an attribute of type unsigned 32 bit integer |
0 |
Unsigned A Uint64 (inputs:unsigned:a_uint64) |
|
This is an attribute of type unsigned 64 bit integer |
0 |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Sample Boolean Output (outputs:a_bool) |
|
This is a computed attribute of type boolean |
False |
A Double (outputs:a_double) |
|
This is a computed attribute of type 64 bit floating point |
5.0 |
A Float (outputs:a_float) |
|
This is a computed attribute of type 32 bit floating point |
4.0 |
Sample Half Precision Output (outputs:a_half) |
|
This is a computed attribute of type 16 bit float |
1.0 |
A Int (outputs:a_int) |
|
This is a computed attribute of type 32 bit integer |
2 |
A Int64 (outputs:a_int64) |
|
This is a computed attribute of type 64 bit integer |
3 |
A Object Id (outputs:a_objectId) |
|
This is a computed attribute of type objectId |
8 |
A Path (outputs:a_path) |
|
This is a computed attribute of type path |
/ |
A String (outputs:a_string) |
|
This is a computed attribute of type string |
seven |
A Token (outputs:a_token) |
|
This is a computed attribute of type interned string with fast comparison and hashing |
six |
Unsigned A Uchar (outputs:unsigned:a_uchar) |
|
This is a computed attribute of type unsigned 8 bit integer |
9 |
Unsigned A Uint (outputs:unsigned:a_uint) |
|
This is a computed attribute of type unsigned 32 bit integer |
10 |
Unsigned A Uint64 (outputs:unsigned:a_uint64) |
|
This is a computed attribute of type unsigned 64 bit integer |
11 |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.tutorials.SimpleData |
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.SimpleData.svg |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Tutorial Node: Attributes With Simple Data |
Categories |
tutorials |
Generated Class Name |
OgnTutorialSimpleDataDatabase |
Python Module |
omni.graph.tutorials |
See the accompanying tutorial and annotated code at Tutorial 2 - Simple Data Node