Map Range

Converts a number from one range to another.

Node id math/map-range

The Map Range node takes a value in the range from fromMin to fromMax, and outputs the number at the same place in the range from toMin to toMax. For example, to turn the distance between two points (0 to 500) into a scale factor (0.2 to 1.5), connect a Distance to value and set the four ends: a distance of 0 gives 0.2, 250 gives 0.85 and 500 gives 1.5.

Parameters

NameTypeDefault
clampbooleanfalse
curveEasingCurve"linear"
modeEasingMode"in-out"

Inputs

NameTypeDefaultNotes
valuenumber0.5
fromMinnumber0
fromMaxnumber1
toMinnumber0
toMaxnumber1

Outputs

NameTypeNotes
resultnumber

Behaviour

  • Defaults. value defaults to 0.5, and both ranges to 0 to 1, so the node outputs value unchanged until the ends are set.
  • Exact ends. fromMin gives exactly toMin, and fromMax exactly toMax.
  • Not clamped by default. A value outside its range continues the line past the ends: from 0–10 to 100–200, 20 gives 300 and -5 gives 50. Turn on the clamp parameter (on the node or in the property inspector) to keep the result between toMin and toMax.
  • Reversed ranges are not an error: they invert the mapping. From 0–10 to 100–0, 2 gives 80. With clamp, the result stays between the lower and the higher of toMin and toMax, whichever is which.
  • An empty source range (fromMin = fromMax) divides by zero, like Divide: the result is Infinity or -Infinity, or NaN when value equals them too. There is no node error. clamp turns an infinite result into the nearest end, but not a NaN.
  • Easing parameters. Parameters curve (default linear) and mode (default in-out) shape the mapped output with non-linear easing curves (such as cubic, bounce, or sine).
© 2026 Wirepaint