ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Ease expression works unnaturally.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
kyuhyun cho
Ease expression works unnaturally.
on Jun 10, 2019 at 2:40:43 pm

Hello, there!

I have a question about after effects' Expression.

Next is the code for Solid2's Y position.

The X position is fixed at 450.


var y3 = [600,200,600,200,600,200,600,200,600,200]
var sec = Math.floor(time);
var kk = ease(time,sec,sec+2,y3[sec],y3[sec+1]);
[450,kk]

Solid2 moves unnaturally.

I want solid2 to move smoothly for two seconds.(or few seconds..)

What should I do?


The below code operates smoothly.

var y3 = [600,200,600,200,600,200,600,200,600,200]
var sec = Math.floor(time);
var kk = ease(time,sec,sec+1,y3[sec],y3[sec+1]);
[450,kk]


Thank you!

var y3 = [600,200,600,200,600,200,600,200,600,200]
var sec = Math.floor(time);
var kk = ease(time,sec,sec+2,y3[sec],y3[sec+1]);
[450,kk]


Return to posts index

Kalleheikki Kannisto
Re: Ease expression works unnaturally.
on Jun 11, 2019 at 4:28:29 am

Modify time instead:

var y3 = [600,200,600,200,600,200,600,200,600,200]
var sec = Math.floor(time/2);
var kk = ease(time/2,sec,sec+1,y3[sec],y3[sec+1]);
[450,kk]


Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

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