ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Keyframe Bounce Back expression.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kamrul Hasan
Keyframe Bounce Back expression.
on Dec 24, 2016 at 3:22:15 pm

Hello,

I gone through Dan's Realistic Bounce and Overshoot article.( http://www.motionscript.com/articles/bounce-and-overshoot.html). I created a text layer as a debugging layer and in it's source I wrote the expression as follow:

L = thisComp.layer("White Solid 1").transform.position;
n=0;
if(L.numKeys>0){
n=L.nearestKey(time).index;
if(L.key(n).time>time) n--;}

the "White Solid 1" has two position keyFrames. What I cannot understand, the debugging Text layer still shows "2" as the timeSlider closes to 2nd key frame. Where I am doing wrong?

Thanks


Return to posts index

Kamrul Hasan
Re: Keyframe Bounce Back expression.
on Dec 24, 2016 at 4:18:27 pm

L = thisComp.layer("White Solid 1").transform.position;
n=0;
if(L.numKeys>0){
n=L.nearestKey(time).index;
if(L.key(n).time>time) n--;}
n;

fixed it. Thanx.


Return to posts index

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