ReferenceScript nodesMath › Number
Snap
To the nearest step (halves go up; a step of 0 leaves x).
ƒSnap
Location0.37Result
Grid Size0.25
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Locationx | number | 0.37 | – |
Grid Sizestep | number | 0.25 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
In a graph
◆On Scene Start
ƒSnap
Location0.37Result
Grid Size0.25
ƒ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.