ReferenceScript nodesMath › Number
Clamp
The value kept from Min to Max.
ƒClamp
Value0Result
Min0
Max1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Valuex | number | 0 | – |
Minlow | number | 0 | – |
Maxhigh | number | 1 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
In a graph
◆On Scene Start
ƒClamp
Value0Result
Min0
Max1
ƒ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.