Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Stopping the wiggle expression after a few second.

  • Stopping the wiggle expression after a few second.

    Posted by Ruo Zheng on May 17, 2019 at 9:08 pm

    Hey everyone,

    I just starting learning about expressions and currently, I’m trying to make a flicker-in effect for this logo.

    I have wiggle(100,100) in the Opacity property of the logo but I’m trying to stop the flicker after like 5 second into the animation.

    What code should I use? I’ve studied C# before so my first instinct is to make an if statement and turn the wiggle into false statement after a period of time. But since AE expression uses JS so it’s different (not to mention all the expression properties). Would an array be better for this?

    Thanks!

    Gaurav Kumar replied 6 years, 10 months ago 4 Members · 3 Replies
  • 3 Replies
  • Andy Zou

    May 17, 2019 at 9:41 pm

    Personally, I’d whip/tie the wiggle function to a Slider, then keyframe the slider from 100 to 0 when you want it. That way you can also “fade” the wiggle using keyframes and avoiding expressions.

  • Dan Ebberts

    May 18, 2019 at 6:20 pm

    This should work:

    time < 5 ? wiggle(100,100) : value

    Dan

  • Gaurav Kumar

    June 26, 2019 at 2:19 pm

    Dan Ebberts thanks i was looking for this expression it’s save my lots of time

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