2017

Table Of Contents
DescriptionOperatorOrder
Boolean OR||8
When operators with the same precedence are encountered, operators are evaluated from left to right.
However, when part of a formula is enclosed in parentheses, it is evaluated first.
Function Reference
You can easily create very complex expressions by using the available functions. This function reference
provides detailed information about each function. Function arguments in square brackets are optional.
However, if you give a value to an optional argument, you must also give a value to every optional argument
before that one.
Animation Functions
Use the following functions to animate channels in a general way.
NOTE Arguments shown in square brackets are optional. For example, in the syntax of the align function, the
options [AxisToAlign] and [BankingAngle] are optional.
align
Returns a rotation vector such that a designated axis of an object is aligned with the direction of the object's
movement. You can also bank the rotation around the axis. The result should usually be assigned to a
rotation channel.
align(PosToFollow, [AxisToAlign], [BankingAngle])Syntax:
Arguments:
PosToFollow is the vector representing the channel to align on, typically an animated
position.
AxisToAlign is the vector representing the axis with which to align, by default the X-
axis (1,0,0).
BankingAngle is the angle in radians by which to rotate the result about the AxisToAlign
(performs banking). If the BankingAngle argument is specified, the AxisToAlign argument
must also be specified.
align(axis.position, (0,0,1), frame * PI / 8) returns a rotation vector that points the object's
Z-axis in the direction of its motion while the rest of the axis rotates along this axis.
Example:
lookat
Returns a rotation vector based on an object's position that points it towards a second moving object. The
result should usually be assigned to a rotation channel.
lookat(TargetPos, ObserverPos, [AlignVector], [UpVector])Syntax:
Advanced Animation: About Expressions | 1249