ReferenceScripting APIMotionSceneclamp
MotionScene.clamp
methodA number kept within lo and hi.
| Name | clamp |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.clamp(…) |
| As a node | Clamp (logic graph) |
| Since | 0.3 |
Syntax
clamp( v: number, lo: number, hi: number): numberParameters
| Name | Type | Description |
|---|---|---|
v | number | The number |
lo | number | The lowest |
hi | number | The highest |
Returns
number: the number, within.
See also
In examples: Constellations, Rain Harbour
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.