ADOBE AFTER EFFECTS 7.0
User Guide
586
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,
loopOutDuration(“cycle”, 1) loops the last second
of the entire animation. The default of 0 means that the segment to loop begins at the layer In point.
key(index) Return type: Key.
Argument type: index is a Number.
Returns the Key object by number. For example,
key(1) returnsthefirstkey.WhenyouaccessaKeyobject,youcan
get Time, Index, and Value properties from it. For example, the following expression gives you the value of the third
position key:
position.key(3).value. The following expression, when written on a layer’s animated Opacity property,
ignores the keyframe values and uses only the keyframes’ placement in time to determine where a flash should occur:
d = Math.abs(time - nearestKey(time).time); easeOut(d, 0, .1, 100, 0)
key(markerName) Return type: Key.
Returns the keyframe for the marker key with this name. Use only on marker properties.
nearestKey(t) Return type: Key.
Returns the keyframe nearest to a designated time.
numKeys Return type: Number.
Returns the number of keyframes in a property.
propertyGroup(countUp = 1) Return type: Group.
Returns a group of properties relative to the property on which the expression is written. For example, if you add the
propertyGroup(1) expression to a Brush stroke’s Rotation property, the expression targets the Transform property
group, which contains the Rotation property. If you add
propertyGroup(2) instead, the expression targets the Brush
property group. This lets you establish name-independent relationships in the property hierarchy. This is especially
useful when duplicating properties that contain expressions.
propertyIndex Return type: Number.
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
value Return type: Number or Array.
Returns the value of the keyframe.
time Return type: Number.
Returns the time of the keyframe.
index Return type: Number.
Returns the index of the keyframe.