ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

# Ease expression works unnaturally.

FAQ   •   VIEW ALL
 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]```

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

```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]```