Camera Attributes And Methods - Adobe AFTER EFFECTS 7.0 Manual

Table of Contents

Advertisement

ADOBE AFTER EFFECTS 7.0
582
User Guide
Transforms a point from layer space to view-independent world space. Example:
to World. e f fe c t ("Bu l ge" )("Bu lge
C enter")
Return type: Array [2 or 3].
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:
f rom World(t hisC omp. layer(2).p osit ion)
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:
toC ompVe c ([1, 0])
Return type: Array [2 or 3].
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(p osit ion, t hisC omp.layer(2).p osit ion); f romC ompVe c(dir)
Return type: Array [2 or 3].
toWorldVec(vec, t=time)
Argument type: vec is an Array[2 or 3], and t is a Number.
Transforms a vector from layer space to world space. Example:
p1 = ef fe c t("Eye Bu lge 1")("Bu lge C enter"); p2 = ef fe c t("Eye Bu lge 2")("Bulge C enter"); toWorld(sub(p1, p2))
Return type: Array [2 or 3].
fromWorldVec(vec, t=time)
Argument type: vec is an Array [2 or 3], and t is a Number.
Transforms a vector from world space to layer space. Example:
f rom World(t hisC omp. layer(2).p osit ion)
Return type: Array [2].
fromCompToSurface(point, t=time)
Argument type: point is an Array [2 or 3], and t is a Number.
Projects a point located in composition space to a point on the surface of the layer (zero z-value) at the location where
it appears when viewed from the active camera. This is useful for setting effect control points. Use with 3D layers
only.

Camera attributes and methods

Camera objects have the same attributes and methods as Layer objects, except for
,
,
,
,
s ou rc e
ef fe c t
mask
w i dt h
,
,
,
,
,
, and all of the material properties.
heig ht
anchorPoi nt
s c a le
op ac it y
audioL e vels
t i meR emap
Return type: Property [3].
pointOfInterest
Returns the camera's point of interest values in world space.
Return type: Property.
zoom
Returns the camera's zoom values in pixels.
Return type: Property.
depthOfField
Returns 1 if the camera's Depth Of Field property is on, or returns 0 if it is off.
Return type: Property.
focusDistance
Returns the camera's focus distance values, in pixels.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents