User Guide

329
ADOBE AFTER EFFECTS 5.0
User Guide
Number or Array ease_out(t, tmin, tmax, val1, val2) {t, tmin, and tmax are numbers, and
val1 and val2 are numbers or arrays} Similar to ease, except that the tangent is 0 only on
the tmax side and is linear on the tmin side.
Color conversion methods
Array [4] rgb_to_hsl(rgba) {rgba is an array [4]} Converts a color in RGBA space to HSLA
space. The input is an array specifying red, green, blue, and alpha, all in the range of 0.0 to
1.0. The resulting value is an array specifying hue, saturation, lightness, and alpha, also in
the range of 0.0 to 1.0. For example, “rgb_to_hsl(effect("Change Color").param("Color To
Change"))”.
Array [4] hsl_to_rgb(hsla) {hsla is an array [4]}. This is the opposite of rgb_to_hsl.
Comp attributes and methods
Camera active_camera Use this to retrieve a value from the camera through which the
composition is rendered at the current frame. This is not necessarily the camera through
which you are looking in the Composition window.
Number width Returns the compositions width value in pixels.
Number height Returns the compositions height value in pixels.
Number duration Returns the compositions duration value in seconds.
Number frame_duration Returns the frame duration in seconds.
Array [4]
bg_color Returns the background color of the composition.
Number shutter_angle Returns the shutter-angle value of the composition in degrees.
Number shutter_phase Returns the shutter-phase of the composition in degrees.
Number num_layers Returns the number of layers in the composition.
Number pixel_aspect Returns the pixel aspect ratio of the composition expressed as
width/height.
Layer, Light, or Camera layer(index) {index is a number} Retrieves the layer by number
(order in the Timeline window). For example, “this_comp.layer(3)”.
UG.book Page 329 Wednesday, February 21, 2001 12:05 PM