Adobe AFTER EFFECTS CS3 PROFESSIONAL User Manual page 565

Hide thumbs Also See for AFTER EFFECTS CS3 PROFESSIONAL:
Table of Contents

Advertisement

The value of each component of value is constrained to fall between the values of the corresponding values of limit1
and limit2.
Return type: Number.
dot(vec1, vec2)
Argument type: vec1 and vec2 are Arrays.
Returns the dot (inner) product of the vector arguments.
Return type: Array [2 or 3].
cross(vec1, vec2)
Argument type: vec1 and vec2 are Arrays [2 or 3].
Returns the vector cross product of vec1 and vec2. Refer to a math reference or JavaScript guide for more infor-
mation.
Return type: Array.
normalize(vec)
Argument type: vec is an Array.
Normalizes the vector so that its length is 1.0. This is a short way of writing
Return type: Number.
length(vec)
Argument type: vec is an Array.
Returns the length of vector vec.
Return type: Number.
length(point1, point2)
Argument type: point1 and point2 are Arrays.
Returns the distance between two points. The point2 argument is optional. For example,
is the same as
length(sub(point1, point2))
lookAt(fromPoint, atPoint)
Argument type: fromPoint and atPoint are Arrays [3].
The argument fromPoint is the location in world space of the layer you want to orient. The argument atPoint is the
point in world space you want to point the layer at. The return value can be used as an expression for the Orientation
property, making the layer's z-axis point at atPoint. This method is especially useful for cameras and lights. If you use
this on a camera, turn off auto-orientation. Example:
Random Numbers methods
seedRandom(offset, timeless=false)
Argument type: offset is a Number, timeless is a Boolean.
The
and
random
gaussRandom
is computed as a function of a unique layer identifier, the property within the layer, the current time, and an offset
value of 0. Call
seedRandom
for the timeless argument to not use the current time as input to the random seed; this allows you to generate
true
a random number that doesn't vary depending on the time of evaluation. The offset value, but not the timeless value,
is also used to control the initial value of the
Return type: Number.
random()
Returns a random number between 0 and 1.
.
Return type: Array [3].
lookAt(position, thisComp.layer(1).position)
Return type: none.
methods use a seed value that controls the sequence of numbers. By default, the seed
to set the offset to something other than 0 to create a different random sequence. Use
function.
wiggle
div(vec, length(vec))
length(point1, point2)
AFTER EFFECTS CS3
559
User Guide
.

Advertisement

Table of Contents
loading

Table of Contents