Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there a better way?

  • Is there a better way?

    Posted by Griffin Englander on October 10, 2019 at 7:12 am

    Evening peoples,

    Out of boredom, I’ve been exploring a way to change the length of an animation (likely for mograph templates) while maintaining my graph curves.

    I’ve got the below working, I’m just curious if anyone has a better way, or if I’m missing something obvious.

    Basically for the sake of the example, the animation takes 1 second to complete, and I’d change a slider value for the time I want said animation to take . (ie 1 for 1 second, 2 for seconds etc).

    So on my animated properties I have this;

    v = effect(“seconds”)(“Slider”);
    valueAtTime(v);

    And with the slider being what I would change in Pr, I have this;

    v = value;
    linear(time,0,v,0,1)

    So yeah, it works. I’m just curious what the actually intelligent minds come up with.

    Griffin Englander replied 6 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Alex Printz

    October 10, 2019 at 2:03 pm

    I frequently do something like this:

    That way I can keyframe all of the points I want, and later just animate a slider from 0-100 to scrub through all of the keyed states.

    s = effect("Slider 1")(1);
    valueAtTime(linear( s, 0, 100, key(1).time , key(numKeys).time ) );

    Alex Printz
    Mograph Designer

  • Griffin Englander

    October 10, 2019 at 11:45 pm

    Thanks mate, nice solution!

    That’s kinda where I started, I was just trying to avoid having to animate the slider in-case it goes into Premiere.

    NumKeys is definitely cleaner though, thankyou!

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