Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions stopping an expression after period of time

  • stopping an expression after period of time

    Posted by Jim Marshall on October 27, 2010 at 9:19 pm

    Hi all,

    I’m very new to expressions (and AE in general) and was wondering if there’s a way to stop an expression from acting after a certain amount of time.

    I have a wiggle expression on the null object for a camera, and I want it to stop wiggling after thirty seconds or so, but am not sure how to do it. It seems the expression affects all keyframes after the one to which I think I assigned it. I figured it would be active from that keyframe to the next. All I want to do is make it stop. Please, make it stop!

    Thanks a lot. Excellent site by the way, nice job everyone.

    Jim

    wiggle(.1,5)

    Jim Marshall replied 15 years, 9 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 27, 2010 at 9:57 pm

    One way would be to tie the wiggle amplitude to a slider and keyframe the slider value from 5 to 0 where you want the wiggle to stop. That lets you ease out of the wiggle if you want to (otherwise you might get a glitch as the value jumps to its non-wiggled state). It would look like this:

    slider = effect(“Slider Control”)(“Slider”);
    wiggle(.1,slider)

    Dan

  • Jim Marshall

    October 29, 2010 at 5:57 am

    Thanks a lot for the swift reply. Much appreciated. If I could give you an e-muffin, I would, and an e-pat on the back too.

    I noticed the glitch before after reading another thread that said to make an “if time>x then regain control” or something to that effect (not familiar with the syntax). The camera glitched like you said.

    I’ll give this a whirl. Thanks again.

  • Jim Marshall

    October 29, 2010 at 12:38 pm

    I know I just replied but I’m new here and the post is waiting approval, but it worked! Thank you.

    this thread helped a lot too:


    https://forums.creativecow.net/thread/227/10292

    really appreciate it.

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