
AFTER EFFECTS CS3
User Guide
575
zoom Return type: Property.
Returns the camera’s zoom values in pixels.
Here's an expression for the Scale property of a layer that maintains the relative size of the layer in frame while
changing the layer's z position (depth) or the camera's Zoom value:
cam = thisComp.activeCamera;
distance = length(sub(position, cam.position));
scale * distance / cam.zoom;
depthOfField Return type: Property.
Returns 1 if the camera’s Depth Of Field property is on, or returns 0 if it is off.
focusDistance Return type: Property.
Returns the camera’s focus distance value, in pixels.
aperture Return type: Property.
Returns the camera’s aperture value, in pixels.
blurLevel Return type: Property.
Returns the camera’s blur level value as a percentage.
active Return type: Boolean.
Returnstrueifthecameraistheactivecameraforthecompositionatthecurrenttime:thecamera’sVideoswitch
is on, the current time is between the camera’s In and Out points, and it is the first (topmost) such camera listed in
the Timeline panel. Returns false otherwise.
See also
“Cameras, lights, and points of interest” on page 176
Light attributes and methods
Light objects have the same attributes and methods as Layer objects, except for source, effect, mask, width,
height, anchorPoint, scale, opacity, audioLevels, timeRemap, and all of the material properties.
pointOfInterest Return type: Property [3].
Returns the light’s point of interest values in world space.
intensity Return type: Property.
Returns the light’s intensity values as a percentage.
color Return type: Property [4].
Returns the light’s color value.
coneAngle Return type: Property.
Returns the light’s cone angle, in degrees.
coneFeather Return type: Property.
Returns the light’s cone feather value as a percentage.
shadowDarkness Return type: Property.
What talented message