Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › Speed expression for metronome animation

  • Speed expression for metronome animation

    Posted by Dex Nguyen on April 9, 2021 at 2:43 pm

    I’m currently trying to animate a metronome. My reference is at 00:10 of this video: https://www.youtube.com/watch?v=LVOjKCztqTs&ab_channel=GreenScaleGuitar

    Right now I’m using this expression:

    spd = effect(“speed”)(“Slider”);

    rng = effect(“range”)(“Slider”);

    d = 60/spd;

    fd = d * 2;

    p1 = -rng;

    p2 = rng;

    t = (time – inPoint) % fd;

    if(t <= d) ease(t, 0, d, p1, p2);

    else ease(t, d, fd, p2, p1);
    The problem with this is that if i keyframe the “spd”(speed) slider, the animation will mess up and the stick doesn’t sway seamlessly, but rather have a jerk back movement before committing to the new speed. Anyone has an answer on how i can achieve the smooth speed down/up motion like in the reference?

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Filip Vandueren replied 5 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply

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