OmniGraph Node omni.graph.examples.python.PositionToColor

omni.graph.examples.python.PositionToColor Properties

Name

Value

Version

1

Extension

omni.graph.examples.python

Has State?

False

Implementation Language

Python

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

PositionToColor

__categories

examples

__language

Python

Generated Class Name

OgnPositionToColorDatabase

Python Module

omni.graph.examples.python

omni.graph.examples.python.PositionToColor Description

This node takes positional data (double3) and converts to a color, and outputs as color3f[] (which seems to be the default color connection in USD)

omni.graph.examples.python.PositionToColor Inputs

Name

Type

Default

Required?

Descripton

inputs:color_offset

colorf[3]

[0.0, 0.0, 0.0]

Y

Offset added to the scaled color to get the final result

__default

[0.0, 0.0, 0.0]

inputs:position

double[3]

[0.0, 0.0, 0.0]

Y

Position to be converted to a color

__default

[0.0, 0.0, 0.0]

inputs:scale

float

1.0

Y

Constant by which to multiply the position to get the color

__default

1.0

omni.graph.examples.python.PositionToColor Outputs

Name

Type

Default

Required?

Descripton

outputs:color

colorf[3][]

None

Y

Color value extracted from the position