Activity › Forums › Adobe After Effects › Keframe Duration
-
Keframe Duration
Posted by Chris Abolt on February 19, 2008 at 9:59 pmHi all, Just wondering… Any ideas on how to get the duration between two keyframes??
Thanks in advance for your help.
CChris Abolt replied 18 years, 2 months ago 2 Members · 2 Replies -
2 Replies
-
Darby Edelen
February 19, 2008 at 11:33 pmWhat do you mean by ‘get the duration’? If you want to know how many seconds separate the two keyframes you need an expression such as:
k1 = position.key(1).time; //Time of the first position keyframe
k2 = position.key(2).time; //Time of the second position keyframek2 - k1; //Difference in time in seconds
Which would return the difference in time between the first and second keyframes of the layer’s position property.
If you mean something else, please try to rephrase the question.
Darby Edelen
Designer
Left Coast Digital
Santa Cruz, CA -
Chris Abolt
February 20, 2008 at 2:10 pmThat is exactly what I meant. This will work.
Chris Abolt
Motion designer
Abolt Media
Reply to this Discussion! Login or Sign Up