OmniGraph Node omni.graph.tutorials.RoleData

omni.graph.tutorials.RoleData Properties

Name

Value

Version

1

Extension

omni.graph.tutorials

Icon

ogn/icons/omni.graph.tutorials.RoleData.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Node: Role-Based Attributes

__categories

tutorials

Generated Class Name

OgnTutorialRoleDataDatabase

Python Module

omni.graph.tutorials

omni.graph.tutorials.RoleData Description

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.

omni.graph.tutorials.RoleData Inputs

Name

Type

Default

Required?

Descripton

inputs:a_color3d

colord[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_color3f

colorf[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_color3h

colorh[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_color4d

colord[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_color4f

colorf[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_color4h

colorh[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_frame

frame[4]

[[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]]

Y

This is an attribute interpreted as a coordinate frame

__default

[[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]]

inputs:a_matrix2d

matrixd[2]

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

Y

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

__default

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

inputs:a_matrix3d

matrixd[3]

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

Y

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

__default

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

inputs:a_matrix4d

matrixd[4]

[[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]]

Y

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

__default

[[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]]

inputs:a_normal3d

normald[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_normal3f

normalf[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_normal3h

normalh[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_point3d

pointd[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_point3f

pointf[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_point3h

pointh[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_quatd

quatd[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_quatf

quatf[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_quath

quath[4]

[0.0, 0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0, 0.0]

inputs:a_texcoord2d

texcoordd[2]

[0.0, 0.0]

Y

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

__default

[0.0, 0.0]

inputs:a_texcoord2f

texcoordf[2]

[0.0, 0.0]

Y

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

__default

[0.0, 0.0]

inputs:a_texcoord2h

texcoordh[2]

[0.0, 0.0]

Y

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

__default

[0.0, 0.0]

inputs:a_texcoord3d

texcoordd[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_texcoord3f

texcoordf[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_texcoord3h

texcoordh[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_timecode

timecode

1.0

Y

This is a computed attribute interpreted as a timecode

__default

1.0

inputs:a_vector3d

vectord[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_vector3f

vectorf[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

inputs:a_vector3h

vectorh[3]

[0.0, 0.0, 0.0]

Y

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

__default

[0.0, 0.0, 0.0]

omni.graph.tutorials.RoleData Outputs

Name

Type

Default

Required?

Descripton

outputs:a_color3d

colord[3]

None

Y

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

outputs:a_color3f

colorf[3]

None

Y

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

outputs:a_color3h

colorh[3]

None

Y

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

outputs:a_color4d

colord[4]

None

Y

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

outputs:a_color4f

colorf[4]

None

Y

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

outputs:a_color4h

colorh[4]

None

Y

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

outputs:a_frame

frame[4]

None

Y

This is a computed attribute interpreted as a coordinate frame

outputs:a_matrix2d

matrixd[2]

None

Y

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

outputs:a_matrix3d

matrixd[3]

None

Y

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

outputs:a_matrix4d

matrixd[4]

None

Y

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

outputs:a_normal3d

normald[3]

None

Y

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

outputs:a_normal3f

normalf[3]

None

Y

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

outputs:a_normal3h

normalh[3]

None

Y

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

outputs:a_point3d

pointd[3]

None

Y

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

outputs:a_point3f

pointf[3]

None

Y

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

outputs:a_point3h

pointh[3]

None

Y

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

outputs:a_quatd

quatd[4]

None

Y

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

outputs:a_quatf

quatf[4]

None

Y

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

outputs:a_quath

quath[4]

None

Y

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

outputs:a_texcoord2d

texcoordd[2]

None

Y

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

outputs:a_texcoord2f

texcoordf[2]

None

Y

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

outputs:a_texcoord2h

texcoordh[2]

None

Y

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

outputs:a_texcoord3d

texcoordd[3]

None

Y

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

outputs:a_texcoord3f

texcoordf[3]

None

Y

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

outputs:a_texcoord3h

texcoordh[3]

None

Y

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

outputs:a_timecode

timecode

None

Y

This is a computed attribute interpreted as a timecode

outputs:a_vector3d

vectord[3]

None

Y

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

outputs:a_vector3f

vectorf[3]

None

Y

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

outputs:a_vector3h

vectorh[3]

None

Y

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