Adobe AFTER EFFECTS CS3 PROFESSIONAL User Manual page 575

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

Advertisement

Return type: Property.
metal
Returns the metal component value as a percentage.
Layer Space Transforms methods
Use layer space transform methods to transform values from one space to another, such as from layer space to world
space. The "from" methods transform values from the layer's space to the named space (composition or world). The
"to" methods transform values from the named space (composition or world) to the layer space. Each transform
method takes an optional argument to determine the time at which the layer's transform is computed; however, you
can almost always use the current (default) time.
Use "Vec" transform methods when transforming a direction vector, such as the difference between two position
values. Use the plain (non-"Vec") transform methods when transforming a point, such as position. Composition
(comp) and world space are the same for 2D layers. For 3D layers, however, composition space is relative to the active
camera, and world space is independent of the camera.
Return type: Array [2 or 3].
toComp(point, t=time)
Argument type: point is an Array [2 or 3], and t is a Number.
Transforms a point from layer space to composition space.
fromComp(point, t=time)
Argument type: point is an Array [2 or 3], and t is a Number.
Transforms a point from composition space to layer space. The resulting point in a 3D layer may have a nonzero
value even though it is in layer space. Example:
Return type: Array [2 or 3].
toWorld(point, t=time)
Argument type: point is an Array [2 or 3], and t is a Number.
Transforms a point from layer space to view-independent world space. Example:
toWorld.effect("Bulge")("Bulge Center")
fromWorld(point, t=time)
Argument type: point is an Array [2 or 3], and t is a Number.
Transforms a point from world space to layer space. Example:
Return type: Array [2 or 3].
toCompVec(vec, t=time)
Argument type: vec is an Array [2 or 3], and t is a Number.
Transforms a vector from layer space to composition space. Example:
fromCompVec(vec, t=time)
Argument type: vec is an Array [2 or 3], and t is a Number.
Transforms a vector from composition space to layer space. Example (2D layer):
dir=sub(position, thisComp.layer(2).position);
fromCompVec(dir)
toWorldVec(vec, t=time)
Argument type: vec is an Array [2 or 3], and t is a Number.
Return type: Array [2 or 3].
fromComp(thisComp.layer(2).position)
Return type: Array [2 or 3].
Return type: Array [2 or 3].
Return type: Array [2 or 3].
fromWorld(thisComp.layer(2).position)
toCompVec([1, 0])
AFTER EFFECTS CS3
569
User Guide

Advertisement

Table of Contents
loading

Table of Contents