Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How to do Easing with Expressions?!?

  • How to do Easing with Expressions?!?

    Posted by Brennan on July 9, 2007 at 2:26 pm

    I would love to figure out how to better refine my animations by doing the easing in code.

    Having designed alot in flash, I have quite a few easing libraries of actionscript code that I have used in the past for all things motion. Being that actionscript is somewhat close to java, is it possible to use some software to port actionscript to expressions?

    Or better yet, has anyone come across some good tutorials or code snippets that would explain how to ease using expressions? Surely someone has tried this before. Looking for something similar to the thinking of robert penners easing equations, etc.

    Thanks in advance!

    Brennan

    Brennan replied 18 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Darby Edelen

    July 9, 2007 at 2:42 pm

    AE has a few options for easing values in expressions, you can find them in the Interpolation section of the expressions drop down:

    ease(i, low, high, x, y);
    easeIn(i, low, high, x, y);
    easeOut(i, low, high, x, y);

    All of these take a first value ‘i’ and vary the return value from ‘x’ to ‘y’ based on the value of ‘i’ relative to ‘low’ and ‘high.’

    Here’s an example:

    ease(time, 0, 1, 100, 200);

    This will return 100 when time is equal to 0, and 200 when time is equal to 1 (one second). The interpolation will not be linear (there is a linear() function for that) but instead will ease in and ease out.

    I don’t believe there are any preset functions for more customizable easing of values, however you can create your own functions within AE’s expressions. However, the function has to exist in every expression you want to use it in.

    Darby Edelen
    DVD Menu Artist
    Left Coast Digital
    Aptos, CA

  • Brennan

    July 9, 2007 at 6:09 pm

    Thanks Darby! I will play around with it and try these out.

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