chramp expression function

Returns the value of a ramp parameter at a specific position.

Replaced by: hou.evalParmTuple, hou.parmTuple

All Usage Examples

See also: chrampf, chrampt, ch

Usage

chramp(ramp_path, position, component_index)

position must be a value from 0 to 1.

component_index is the component of the evaluated value to return. For color ramps, it must be either 0, 1, or 2. For single-valued ramps, component_index must be 0.

Examples

chramp("/obj/geo1/popnet1/color1/rampcolor", 0.33, 1)

Returns second component of the evaluated ramp value at a position of 0.33