Adobe After Effects User Manual
Page 701

loopOut(type="cycle", numKeyframes=0)
loopInDuration(type="cycle", duration=0)
loopOutDuration(type="cycle", duration=0)
key(index)
key(markerName)
nearestKey(t)
numKeys
Note:
propertyGroup(countUp = 1)
propertyIndex
Todd Kopriva provides an example project on
Paul Tuersley provides a script on the
properties.
Return type: Number or Array.
Loops a segment of time that is measured from the last keyframe on the layer back toward the In point of the layer. The loop plays until the Out
point of the layer. The segment to loop is determined by the specified number of keyframes. The numKeyframes value sets the number of
keyframe segments to loop; the specified range is measured backward from the last keyframe. For example, loopOut("cycle", 1) loops the
segment bounded by the last keyframe and second-to-last keyframe. The default value of 0 means that all keyframes will loop. See the entry for
loopIn
for more information.
David Van Brink provides an instructional article and sample project on his
that show how to use the Echo effect, the Particle
Playground effect, and the loopOut method to animate a swarm of stylized swimming bacteria.
Return type: Number or Array.
Loops a segment of time that is measured from the first keyframe on the layer forward toward the Out point of the layer. The loop plays from the In
point of the layer. The segment to loop is determined by the specified duration. The duration value sets the number of composition seconds in a
segment to loop; the specified range is measured from the first keyframe. For example, loopInDuration("cycle",1) loops the first second of
the entire animation. The default of 0 means that the segment to loop begins at the layer Out point. See the entry for loopIn for more
information.
Return type: Number or Array.
Loops a segment of time that is measured from the last keyframe on the layer back toward the In point of the layer. The loop plays until the Out
point of the layer. The segment to loop is determined 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. See the entry for loopIn for
more information.
Return type: Key or MarkerKey.
Argument type: index is a Number.
Returns the Key or MarkerKey object by number. For example, key(1) returns the first keyframe.
Return type: MarkerKey.
Argument type: markerName is a String.
Returns the MarkerKey object with this name. Use only on marker properties.
Return type: Key or MarkerKey.
Returns the Key or MarkerKey object nearest to a designated time.
Return type: Number.
Returns the number of keyframes on a property. Returns the number of markers on a marker property.
If you use the Separate Dimensions command to separate the dimensions of the Position property into individual components, the number
of keyframes changes, so the value returned by this method changes.
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 the Rotation property of a brush stroke, 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 method lets you establish name-independent
relationships in the property hierarchy. This method is especially useful when duplicating properties that contain expressions.
The numProperties method for propertyGroup returns the number of properties in the property group.
This example returns the number of properties in the group that contains the property on which the expression is written:
thisProperty.propertyGroup(1).numProperties
Return type: Number.
697