2017

Table Of Contents
min(-14, -32) returns -32.
min(axis1.position.x, axis2.position.x) returns the smaller of axis1.position.x or axis2.po-
sition.x.
mod
Returns the integer remainder from dividing one number by another. This function is useful for repeating
an animation every given number of frames.
mod(Number, Divisor)Syntax:
Arguments:
Number is the number to divide.
Divisor is the number by which you want to divide Number.
Examples:
mod(8, 3) returns 2 because 8 divided by 3 is 2 with 2 as the remainder.
mod(-8, 3) returns -2.
mod(8, -3) returns 2.
mod(-8, -3) returns -2.
mod(7.5, 2.25) returns 0.75.
mod(frame, 20) * 5 yields the following curve:
Random Number Functions
Use the following functions to create curves based on random values.
rand
Returns a random value between -1 and 1, based on the value used as an argument, called the seed. Using
the same seed in the rand function for multiple channels produces the exact same results. To create completely
random results, use the true rand function.
rand(Seed)Syntax:
Arguments:
Seed is the value used to generate the random return value. This is usually set to a
changing value such as the current frame number.
Advanced Animation: About Expressions | 1257