Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Stop wiggle after x frames based on layers in point

  • Stop wiggle after x frames based on layers in point

    Posted by Olly Starkey on February 10, 2022 at 4:48 pm

    I have this wonderful piece of code (courtesy of Dan)…

    stopFrame = 100;

    t = Math.min(time,framesToTime(stopFrame));

    wiggle(3,10,1,.5,t)

    … which I am using to stop the wiggle expression after 100 frames, however I would like to be able to move my layers around on the timeline but still have the wiggle expression stop after 100 frames.

    So can the stopFrame be based on the layers in Point. Is that possible??

    Olly Starkey replied 4 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 10, 2022 at 6:27 pm

    Try replacing the first line with this:

    stopFrame = timeToFrames(inPoint) + 100;
  • Olly Starkey

    February 11, 2022 at 9:00 am

    Amazing, as always. Thank you Dan

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