ReferenceScript nodesMath › Number
Get Math Constant
A number from maths: pi, tau, e, the golden ratio or the root of 2.
ƒGet Math Constant
ConstantPiResult
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Constantwhich | choice | Pi | One of: Pi, Tau (two pi), e, Golden ratio, Root of 2. |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(Math.PI);In a graph
◆On Scene Start
ƒGet Math Constant
ConstantPiResult
ƒ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.