FORUMS: list search recent posts

linear expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Zoltán Riskó
linear expression
on Aug 23, 2016 at 8:49:44 pm

Hy guys!

I have an expression which link my animation to my marker so i can strech the animation.
Can you help me how can I achieve to use bezier animation because linear()...is linear.

Thank you very much! :)

L = thisComp.layer("Point_Control");
if ((L.marker.numKeys > 0) && (numKeys > 1)){
t1 = key(1).time;
t2 = L.marker.key(1).time;
val1 = valueAtTime(key(1).time);
val2 = valueAtTime(key(2).time);
linear(time,t1,t2,val1,val2);
} else {
value;
}


Return to posts index

Dan Ebberts
Re: linear expression
on Aug 23, 2016 at 10:58:53 pm

If you want the same ease as your keyframed animation, this should work:


L = thisComp.layer("Point_Control");
if ((L.marker.numKeys > 0) && (numKeys > 1)){
t1 = key(1).time;
t2 = L.marker.key(1).time;
t = linear(time,t1,t2,t1,key(2).time);
valueAtTime(t)
} else {
value;
}


Dan



Return to posts index

Zoltán Riskó
Re: linear expression
on Aug 24, 2016 at 5:34:34 am

Thanks Dan how simple and gentle solution! :) Works like a charm!


Return to posts index

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