After Effects CS3  |  Go to CS4 Help

Key attributes and methods

When you access a Key object, you can get time, index, and value properties from it. For example, the following expression gives you the value of the third Position keyframe: position.key(3).value.

The following expression, when written on an Opacity property with keyframes, 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)
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.


Comments

Comments are no longer accepted for After Effects CS3. After Effects CS4 is the current version. To discuss After Effects CS3, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-79f6.html