Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Ease expression works unnaturally.

  • Ease expression works unnaturally.

    Posted by Kyuhyun Cho on June 10, 2019 at 2:40 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]

    Kalleheikki Kannisto replied 7 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    June 11, 2019 at 4:28 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy