Tutorial Node: Role-Based Attributes

This is a tutorial node. It creates both an input and output attribute of every supported role-based 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_color3d

colord[3]

This is an attribute interpreted as a double-precision 3d color

[0.0, 0.0, 0.0]

a_color3f

colorf[3]

This is an attribute interpreted as a single-precision 3d color

[0.0, 0.0, 0.0]

a_color3h

colorh[3]

This is an attribute interpreted as a half-precision 3d color

[0.0, 0.0, 0.0]

a_color4d

colord[4]

This is an attribute interpreted as a double-precision 4d color

[0.0, 0.0, 0.0, 0.0]

a_color4f

colorf[4]

This is an attribute interpreted as a single-precision 4d color

[0.0, 0.0, 0.0, 0.0]

a_color4h

colorh[4]

This is an attribute interpreted as a half-precision 4d color

[0.0, 0.0, 0.0, 0.0]

a_frame

frame[4]

This is an attribute interpreted as a coordinate frame

[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]

a_matrix2d

matrixd[2]

This is an attribute interpreted as a double-precision 2d matrix

[[1.0, 0.0], [0.0, 1.0]]

a_matrix3d

matrixd[3]

This is an attribute interpreted as a double-precision 3d matrix

[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]

a_matrix4d

matrixd[4]

This is an attribute interpreted as a double-precision 4d matrix

[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]

a_normal3d

normald[3]

This is an attribute interpreted as a double-precision 3d normal

[0.0, 0.0, 0.0]

a_normal3f

normalf[3]

This is an attribute interpreted as a single-precision 3d normal

[0.0, 0.0, 0.0]

a_normal3h

normalh[3]

This is an attribute interpreted as a half-precision 3d normal

[0.0, 0.0, 0.0]

a_point3d

pointd[3]

This is an attribute interpreted as a double-precision 3d point

[0.0, 0.0, 0.0]

a_point3f

pointf[3]

This is an attribute interpreted as a single-precision 3d point

[0.0, 0.0, 0.0]

a_point3h

pointh[3]

This is an attribute interpreted as a half-precision 3d point

[0.0, 0.0, 0.0]

a_quatd

quatd[4]

This is an attribute interpreted as a double-precision 4d quaternion

[0.0, 0.0, 0.0, 0.0]

a_quatf

quatf[4]

This is an attribute interpreted as a single-precision 4d quaternion

[0.0, 0.0, 0.0, 0.0]

a_quath

quath[4]

This is an attribute interpreted as a half-precision 4d quaternion

[0.0, 0.0, 0.0, 0.0]

a_texcoord2d

texcoordd[2]

This is an attribute interpreted as a double-precision 2d texcoord

[0.0, 0.0]

a_texcoord2f

texcoordf[2]

This is an attribute interpreted as a single-precision 2d texcoord

[0.0, 0.0]

a_texcoord2h

texcoordh[2]

This is an attribute interpreted as a half-precision 2d texcoord

[0.0, 0.0]

a_texcoord3d

texcoordd[3]

This is an attribute interpreted as a double-precision 3d texcoord

[0.0, 0.0, 0.0]

a_texcoord3f

texcoordf[3]

This is an attribute interpreted as a single-precision 3d texcoord

[0.0, 0.0, 0.0]

a_texcoord3h

texcoordh[3]

This is an attribute interpreted as a half-precision 3d texcoord

[0.0, 0.0, 0.0]

a_timecode

timecode

This is a computed attribute interpreted as a timecode

1.0

a_vector3d

vectord[3]

This is an attribute interpreted as a double-precision 3d vector

[0.0, 0.0, 0.0]

a_vector3f

vectorf[3]

This is an attribute interpreted as a single-precision 3d vector

[0.0, 0.0, 0.0]

a_vector3h

vectorh[3]

This is an attribute interpreted as a half-precision 3d vector

[0.0, 0.0, 0.0]

Outputs

Name

Type

Description

Default

a_color3d

colord[3]

This is a computed attribute interpreted as a double-precision 3d color

a_color3f

colorf[3]

This is a computed attribute interpreted as a single-precision 3d color

a_color3h

colorh[3]

This is a computed attribute interpreted as a half-precision 3d color

a_color4d

colord[4]

This is a computed attribute interpreted as a double-precision 4d color

a_color4f

colorf[4]

This is a computed attribute interpreted as a single-precision 4d color

a_color4h

colorh[4]

This is a computed attribute interpreted as a half-precision 4d color

a_frame

frame[4]

This is a computed attribute interpreted as a coordinate frame

a_matrix2d

matrixd[2]

This is a computed attribute interpreted as a double-precision 2d matrix

a_matrix3d

matrixd[3]

This is a computed attribute interpreted as a double-precision 3d matrix

a_matrix4d

matrixd[4]

This is a computed attribute interpreted as a double-precision 4d matrix

a_normal3d

normald[3]

This is a computed attribute interpreted as a double-precision 3d normal

a_normal3f

normalf[3]

This is a computed attribute interpreted as a single-precision 3d normal

a_normal3h

normalh[3]

This is a computed attribute interpreted as a half-precision 3d normal

a_point3d

pointd[3]

This is a computed attribute interpreted as a double-precision 3d point

a_point3f

pointf[3]

This is a computed attribute interpreted as a single-precision 3d point

a_point3h

pointh[3]

This is a computed attribute interpreted as a half-precision 3d point

a_quatd

quatd[4]

This is a computed attribute interpreted as a double-precision 4d quaternion

a_quatf

quatf[4]

This is a computed attribute interpreted as a single-precision 4d quaternion

a_quath

quath[4]

This is a computed attribute interpreted as a half-precision 4d quaternion

a_texcoord2d

texcoordd[2]

This is a computed attribute interpreted as a double-precision 2d texcoord

a_texcoord2f

texcoordf[2]

This is a computed attribute interpreted as a single-precision 2d texcoord

a_texcoord2h

texcoordh[2]

This is a computed attribute interpreted as a half-precision 2d texcoord

a_texcoord3d

texcoordd[3]

This is a computed attribute interpreted as a double-precision 3d texcoord

a_texcoord3f

texcoordf[3]

This is a computed attribute interpreted as a single-precision 3d texcoord

a_texcoord3h

texcoordh[3]

This is a computed attribute interpreted as a half-precision 3d texcoord

a_timecode

timecode

This is a computed attribute interpreted as a timecode

a_vector3d

vectord[3]

This is a computed attribute interpreted as a double-precision 3d vector

a_vector3f

vectorf[3]

This is a computed attribute interpreted as a single-precision 3d vector

a_vector3h

vectorh[3]

This is a computed attribute interpreted as a half-precision 3d vector