ReferenceScripting APIMotionMathsremap
MotionMaths.remap
methodA value from one range to another.
| Name | remap |
|---|---|
| Kind | method of MotionMaths |
| Called as | maths.remap(…) |
| As a node | Remap Clamped (logic graph) |
| Since | 0.4 |
Syntax
remap( v: number, a0: number, a1: number, b0: number, b1: number, clamp?: boolean): numberParameters
| Name | Type | Description |
|---|---|---|
v | number | The value |
a0 | number | Its range's start |
a1 | number | Its range's end |
b0 | number | The new range's start |
b1 | number | The new range's end |
clamp | boolean | Optional. Keep it within the new range |
Returns
number: the value in the new range.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.