DocsNodesValues

Map Range

Takes a value from one range and spreads it across another.

remap, rescale, range, normalize, convert, fit to range, 0 to 1
Category
Values
Outputs
value
Runs live in
no target yet

A height that runs from 0 to 12 becomes a thickness that runs from 0.4 to 0.05. A noise that comes out between 0 and 1 becomes an offset between -1 and 1. Almost every field needs this on the way to wherever it is going.

Clamp keeps the result inside the target range when the input strays outside the one you named, which is usually what you want.

Inputs

SocketTypeWiring
fieldValuefield, optional

Parameters

NameTypeDefaultAvailable whenWhat it does
inputValuenumber0always
From Minnumber0always
From Maxnumber1always
To Minnumber0always
To Maxnumber1always
Clampcheckboxonalways
Stepsnumber0always

Watch out

Do not reach for Steps to make a simple two-level signal. It does not produce the two endpoints you would expect. Compare into Math is the direct way to get one.

Built with this node

See also

  • quantiseTo snap onto a grid measured in real units rather than bands inside a range.
  • valueRampWhen the relationship is a shape rather than a straight line between two ranges.

Open the editor and try it