-
Playing easy in keyframes using expressions.
I have a design that uses ease keyframes as below.
I’m trying to play these keyframes using expressions but i can’t seem to match the speed of this. I know the distance between these two keyframes is 1.76 and i used something like below
ti= linear(time,dur,dur+1.76,key(1).value,key(2).value);
AND
ti= easeIn(time,dur,dur+1.76,key(1).value,key(2).value);
“dur” here is the duration at what time i want to start playing this expression, so i do a check with an if statement as follows:
if (time >= dur)
{
ti= easeIn(time,dur,dur+1.76key(1).value,key(2).value);
}
so it starts off playing this expression at the dur time but cannot match the speed of the keyframes. I’m applying this at the position property. So can see that for example at keyframe.time+18 frames the value of x is 131.5. But my expression produces a result for x as 484.8 at dur+18.
So it’s playing way too slow. How do i fix this through expressions.