ReferenceScript nodesMath › Number
Remap Clamped
Moves a value from one range to another, kept inside the second (an empty first range gives Out Range B at or past In Range B, Out Range A below it).
ƒRemap Clamped
Value0.5Result
In Range A0
In Range B1
Out Range A0
Out Range B1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Valuex | number | 0.5 | – |
In Range AfromLow | number | 0 | – |
In Range BfromHigh | number | 1 | – |
Out Range AtoLow | number | 0 | – |
Out Range BtoHigh | number | 1 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
In a graph
◆On Scene Start
ƒRemap Clamped
Value0.5Result
In Range A0
In Range B1
Out Range A0
Out Range B1
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.