ReferenceScript nodesMath › Integer
Clamp (Integer)
Value kept from Min to Max (with Min above Max: Min below Min, Max at or above it).
ƒClamp (Integer)
Value0Result
Min0
Max10
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Valuex | int | 0 | – |
Minlow | int | 0 | – |
Maxhigh | int | 10 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒClamp (Integer)
Value0Result
Min0
Max10
ƒ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.