Go to: Related nodes. Attributes.

Remap Value is a utility node that allows you to take an input scalar value and remap its value using a gradient. One can remap this to a new output scalar value and/or color.

The input value is used to select a point along the gradient to use for the output value. The value specified by the Min attribute determines the input value that indexes the far left of the ramp while the Max attribute determines the value at far right.

The outColor is determined by the color gradient and the outValue by the value gradient. If one only uses the outValue, for example, then the color gradient is ignored.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets
remapValuenodeutility/color:drawdb/shader/operation/remapValuekRemapValuekBase
kNamedObject
kDependencyNode
kRemapValue

Related nodes

clamp, lightInfo, gammaCorrect, surfaceLuminance, contrast, luminance, rgbToHsv, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch

Attributes (21)

color, color_Color, color_ColorB, color_ColorG, color_ColorR, color_Interp, color_Position, inputMax, inputMin, inputValue, outColor, outColorB, outColorG, outColorR, outValue, outputMax, outputMin, value, value_FloatValue, value_Interp, value_Position

Long name (short name)TypeDefaultFlags
inputValue (i) float0.0outputinputconnectablestorablekeyable
InputValue is the raw input connection to remap.
inputMin (imn) float0outputinputconnectablestorablekeyable
This determines the input value which maps to the left of the gradients.
inputMax (imx) float1outputinputconnectablestorablekeyable
This determines the input value which maps to the right of the gradients.
outputMin (omn) float0outputinputconnectablestorablekeyable
This determines the output value which maps to the bottom of the graph or the color black.
outputMax (omx) float1outputinputconnectablestorablekeyable
This determines the output value at the graph top or white value.
value (vl) compoundn/aarrayoutputinputconnectablestorablekeyable
Value defines a range of values used to remap the input value to the outValue. The Input Value parameter, along with the min and max attributes determine where to index into this gradient.
value_Position (vlp) float0.0outputinputconnectablestorablekeyable
Position of ramp value on normalized 0-1 scale
value_FloatValue (vlfv) float0.0outputinputconnectablestorablekeyable
Ramp value at the sibling position
value_Interp (vli) enum0outputinputconnectablestorablekeyable
Ramp Interpolation controls the way the intermediate values are calculated. The values are:
    None: No interpolation is done; the different colors just show up as different bands in the final texture.

    Linear: The values are interpolated linearly in RGB color space.

    Smooth: The values are interpolated along a bell curve, so that each color on the ramp dominates the region around it, then blends quickly to the next color.

    Spline: The values are interpolated with a spline curve, taking neighboring indices into account for greater smoothness.

color (cl) compoundn/aarrayoutputinputconnectablestorablekeyable
Color defines a range of color values used to remap the input value to the outColor. The Input Value parameter, along with the min and max attributes determine where to index into this ramp.
color_Position (clp) float0.0outputinputconnectablestorablekeyable
Position of ramp value on normalized 0-1 scale
color_Color (clc) float3outputinputconnectablestorablekeyable
Ramp color at the sibling position
color_ColorR (clcr) float0.0outputinputconnectablestorablekeyable
Ramp red channel value at the sibling position
color_ColorG (clcg) float0.0outputinputconnectablestorablekeyable
Ramp green channel value at the sibling position
color_ColorB (clcb) float0.0outputinputconnectablestorablekeyable
Ramp blue channel value at the sibling position
color_Interp (cli) enum0outputinputconnectablestorablekeyable
Ramp Interpolation controls the way the intermediate values are calculated. The values are:
    None: No interpolation is done; the different colors just show up as different bands in the final texture.

    Linear: The values are interpolated linearly in RGB color space.

    Smooth: The values are interpolated along a bell curve, so that each color on the ramp dominates the region around it, then blends quickly to the next color.

    Spline: The values are interpolated with a spline curve, taking neighboring indices into account for greater smoothness.

outValue (ov) float0.0outputconnectable
OutValue is the final remapped value.
outColor (oc) float30.0, 0.0, 0.0outputconnectable
OutColor is the final remapped color.
outColorR (ocr) float0.0outputconnectable
The X component of Output
outColorG (ocg) float0.0outputconnectable
The Y component of Output
outColorB (ocb) float0.0outputconnectable
The Z component of Output