Map Range
Remaps a value from one numeric range to another. The most-used math block — essential for turning variables into useful dimensions.
Block
Interactive preview is available in the interactive reader.
Parameters
input- The value to remap. Usually a Variable block (normZ, t, etc.).
from min- Lower bound of the input range.
from max- Upper bound of the input range.
to min- Lower bound of the output range.
to max- Upper bound of the output range.
How it works
Map Range performs linear interpolation. When the input equals "from min", the output equals "to min". When the input equals "from max", the output equals "to max". Values between are scaled proportionally.
Examples
| Input | From | To | Effect |
|---|---|---|---|
| normZ | 0–1 | 10–25 | Radius from 10 mm (bottom) to 25 mm (top) |
| normZ | 0–1 | 25–10 | Radius from 25 mm (bottom) to 10 mm (top) — inverted |
| normZ | 0–1 | 900–2400 | Speed from 900 to 2400 mm/min over height |
| t | 0–1 | 0.8–1.2 | Flow varies along each loop |