Key Attributes And Methods - Adobe AFTER EFFECTS 7.0 Manual

Table of Contents

Advertisement

ADOBE AFTER EFFECTS 7.0
586
User Guide
Loops a segment of time that is measured from the last keyframe on the layer back toward the layer's In point. The
loop occurs from the last keyframe on the layer to the layer's Out point. The segment to loop is delineated by the
specified duration. The duration value sets the number of composition seconds in a segment to loop; the specified
range is measured backward from the last keyframe. For example,
loops the last second
l o opO ut D u r at i on ( "c ycle", 1 )
of the entire animation. The default of 0 means that the segment to loop begins at the layer In point.
Return type: Key.
key(index)
Argument type: index is a Number.
Returns the Key object by number. For example,
returns the first key. When you access a Key object, you can
ke y(1 )
get Time, Index, and Value properties from it. For example, the following expression gives you the value of the third
position key:
. The following expression, when written on a layer's animated Opacity property,
p osition.ke y(3).va lue
ignores the keyframe values and uses only the keyframes' placement in time to determine where a flash should occur:
d = Mat h.abs(t ime - ne arestKe y(time).time); e as eO ut(d, 0, .1, 100, 0)
Return type: Key.
key(markerName)
Returns the keyframe for the marker key with this name. Use only on marker properties.
Return type: Key.
nearestKey(t)
Returns the keyframe nearest to a designated time.
Return type: Number.
numKeys
Returns the number of keyframes in a property.
Return type: Group.
propertyGroup(countUp = 1)
Returns a group of properties relative to the property on which the expression is written. For example, if you add the
expression to a Brush stroke's Rotation property, the expression targets the Transform property
prop e r t y Group ( 1 )
group, which contains the Rotation property. If you add
instead, the expression targets the Brush
prop er tyGroup(2)
property group. This lets you establish name-independent relationships in the property hierarchy. This is especially
useful when duplicating properties that contain expressions.
Return type: Number.
propertyIndex
Returns the index of a property relative to other properties in its property group, including property groups within
masks, effects, text animators, selectors, trackers, and track points.

Key attributes and methods

Return type: Number or Array.
value
Returns the value of the keyframe.
Return type: Number.
time
Returns the time of the keyframe.
Return type: Number.
index
Returns the index of the keyframe.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents