2017

Table Of Contents
Examples
The following expression uses the noise function to create a random positioning effect for axis1.
ExpressionChannel
noise(frame)*5axis1.position.x
The following expression uses the eval function to make the position of axis2 the same as that of axis1, but
delayed by 10 frames.
ExpressionChannel
eval(axis1.position, frame - 10)axis2.position
The following expression uses the eval function to make the animation of axis3 the same as that of axis1,
but at half the speed.
ExpressionChannel
eval(axis1, frame / 2)axis3
Keywords and Constants
Use the keyword frame in an expression to get the value of the current frame number in your animation.
This allows you to create an animation by specifying how a value changes over a sequence of frames.
Use the constant PI instead of the literal numeric value of π (3.1416...).
NOTE Keywords and constant names are case-sensitive.
To display:Select:
3.1416...PI
Euler's number (2.7182818284...)e
Golden Ratio (1.6180339887...)phi
Speed of light in vacuum (299792458 m/sec)c
Standard free fall acceleration near the earth's surface (9.80665 m/sec^2)freefall
Elementary charge (1.602176487e-19 Coulomb)echarge
Simplified Expressions
A reference to another channel does not have to be fully qualified when it is at the same hierarchical level
as the channel to which the expression is being applied. For example, the following simplified expressions
1246 | Chapter 24 Animating Keyframes