Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions speed plus minmax

  • Posted by Jack Parks on November 6, 2008 at 6:12 pm

    Hello,
    I am using
    thisComp.layer(“Null 1”).transform.position.speed
    to an effect, so as the Null moves faster the effect increases.
    Does anyone know a way of adding to the expression a minimum and maximum parameter?
    So the speed is interpreted to between 1 and 100 for example, is it also possible to smooth it out?
    Currently the null movement has to be quite extreme to see effect and maxes out above low speeds.
    [Plus at no speed there’s no effect].
    Any tips would be great.
    Thanks

    Jack Parks replied 17 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 6, 2008 at 6:22 pm

    It’s going to look like this:

    minEffect = ???;
    maxEffect = ???;
    minSpeed = ???;
    maxSpeed = ???;

    s = thisComp.layer(“Null 1”).transform.position.speed;
    linear(s,minSpeed,maxSpeed,minEffect,maxEffect)

    You need to define the first 4 parameters, based on your setup.

    Instead of linear(), you might also want to try easeIn() or easeOut() to see if they work better for you.

    Dan

  • Jack Parks

    November 7, 2008 at 11:03 am

    That’s fantastic, thanks for your help.

    If its not too much trouble please could you suggest how it might be possible to link the speed to another property, for example 3 key frames with a loop expression. The idea being as the speed increases/decreases the loop would follow (like a heartbeat or wheel rotation or walk cycle).

    Thanks again for your help it’s really appreciated.

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