ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Finding value of a keyframe

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dennis Cheung
Finding value of a keyframe
on Mar 18, 2020 at 10:27:42 pm

Hi

How do I load the value of a keyframe into a variable?
For example: I have 4 keyframes in the position[0] property, I want to take the second keyframe's value and put it in a variable.

Thank you for your time,
Keep your hands and keyboard clean!


Return to posts index

Dan Ebberts
Re: Finding value of a keyframe
on Mar 18, 2020 at 10:36:03 pm

Something like this:

myKeyValue = transform.xPosition.key(2).value;

or (if dimensions aren't separated):

myKeyValue = transform.position.key(2).value[0];


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]