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 name Parents Classification MFn type Compatible function sets
remapValue dependNode utility/color kRemapValue kBase
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) Type Default Flags
inputValue (i) float 0.0 outputinputconnectablestorablekeyable
InputValue is the raw input connection to remap.
inputMin (imn) float 0 outputinputconnectablestorablekeyable
This determines the input value which maps to the left of the gradients.
inputMax (imx) float 1 outputinputconnectablestorablekeyable
This determines the input value which maps to the right of the gradients.
outputMin (omn) float 0 outputinputconnectablestorablekeyable
This determines the output value which maps to the bottom of the graph or the color black.
outputMax (omx) float 1 outputinputconnectablestorablekeyable
This determines the output value at the graph top or white value.
value (vl) compound n/a arrayoutputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
Position of ramp value on normalized 0-1 scale
value_FloatValue (vlfv) float 0.0 outputinputconnectablestorablekeyable
Ramp value at the sibling position
value_Interp (vli) enum 0 outputinputconnectablestorablekeyable
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) compound n/a arrayoutputinputconnectablestorablekeyable
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) float 0.0 outputinputconnectablestorablekeyable
Position of ramp value on normalized 0-1 scale
color_Color (clc) float3 outputinputconnectablestorablekeyable
Ramp color at the sibling position
color_ColorR (clcr) float 0.0 outputinputconnectablestorablekeyable
Ramp red channel value at the sibling position
color_ColorG (clcg) float 0.0 outputinputconnectablestorablekeyable
Ramp green channel value at the sibling position
color_ColorB (clcb) float 0.0 outputinputconnectablestorablekeyable
Ramp blue channel value at the sibling position
color_Interp (cli) enum 0 outputinputconnectablestorablekeyable
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) float 0.0 outputconnectable
OutValue is the final remapped value.
outColor (oc) float3 0.0, 0.0, 0.0 outputconnectable
OutColor is the final remapped color.
outColorR (ocr) float 0.0 outputconnectable
The X component of Output
outColorG (ocg) float 0.0 outputconnectable
The Y component of Output
outColorB (ocb) float 0.0 outputconnectable
The Z component of Output