PositionToColor

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)

Installation

To use this Node, you must enable omni.graph.examples.python in the Extension Manager.

Inputs

Name

Type

Description

Default

position

double[3]

Position to be converted to a color

[0.0, 0.0, 0.0]

scale

float

Constant by which to multiply the position to get the color

1.0

color_offset

colorf[3]

Offset added to the scaled color to get the final result

[0.0, 0.0, 0.0]

Outputs

Name

Type

Description

Default

color

colorf[3][]

Color value extracted from the position