Formula Variables
Pi
EG
ConRoll
RelRoll
Segments
T
X
Y
Z
B
Variables are Case-Insensitive.
This means that MYVAR is the same as MyVar is the same as myvar.
There are 3 types of variables that can be used in a formula.
They are:
Global
These variables are always available.
They can not be over-ridden and do not need to be initialized.
Reserved
These variables are a mix of Global and User-Made styles.
Most of these are used to access the special features and functionality of the formula parser.
User-Made
These variables are set and updated by the user within the formula.
These variables serve the purpose of allowing changes to the formula by changing 1 value in 1 place, or to perform a calculation 1 time that will be used more than once within the formula to optimize the speed of the formula calculation.
Global: Pi |
Pi = 3.141592
Value of Pi.
This is a Global Variable and can be used at any time in a formula without being initialized.
|
Global: EG |
EG = 9.81
Common value used in math for Earth's Gravity.
This is a Global Variable and can be used at any time in a formula without being initialized.
|
Reserved: ConRoll |
ConRoll = 0
ConRoll set the Continuous Roll flag to all the segments created by the formula.
By default, this is turned off.
ConRoll = 0 (ConRoll is OFF)
ConRoll = 1 (ConRoll is ON)
This variable can be set by the user and should be placed in the Formula Initialize.
|
Reserved: RelRoll |
RelRoll = 0
RelRoll sets the Relative Roll flag to all the segments created by the formula.
By default, this is turned off.
RelRoll = 0 (RelRoll is OFF)
RelRoll = 1 (RelRoll is ON)
This variable can be set by the user and should be placed in the Formula Initialize.
|
Reserved: Segments |
Segments = 0
Segments sets the number of Segments the formula will create.
By default, this is turned off to allow the formula to create as many or few segments as it feels are needed for the element.
Values must be a power of 2.
Acceptable values are: 0, 2, 4, 8, 16, 32 or 64.
This variable can be set by the user and should be placed in the Formula Initialize.
|
Reserved: T |
T = (Loop-Time)
T is the loop time.
This is the core of how an element is made with a formula.
T will be set to a value of 1 / Divisions each time the formula is called.
This variable is set by the formula engine and can not be modified by the user.
|
Reserved: X |
X = (Position X)
X sets the plot position for the X value of a 3D vertex at the current T iteration.
This is part of the set that defines the shape of your element.
This variable must be set by the user in formula.
|
Reserved: Y |
Y = (Position Y)
Y sets the plot position for the Y value of a 3D vertex at the current T iteration.
This is part of the set that defines the shape of your element.
This variable must be set by the user in formula.
|
Reserved: Z |
Z = (Position Z)
Z sets the plot position for the Z value of a 3D vertex at the current T iteration.
This is part of the set that defines the shape of your element.
This variable must be set by the user in formula.
|
Reserved: B |
B = (Banking)
B sets the Banking of the plot position at the current T iteration.
This is part of the set that defines the shape of your element.
This variable is optional to use in formula.
|
|