Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Another post on sliders and wiggle expression – time offset / freeze?

  • Another post on sliders and wiggle expression – time offset / freeze?

    Posted by Bart Stevens on December 2, 2011 at 5:19 pm

    I’m trying to “freeze time” in my wiggle expression with a slider.
    I’m currently using a control layer with two sliders for numerous layers with the wiggle expression.
    Two sliders, One for speed, and one for scale.
    Each layer has the expression posted below for position:

    If I animate the “speed” to 0, I get the wiggle expression to stop, which what I want, but the 0 value in my “speed slider” is a specific position for all my layers. This creates two challenges:
    1) I want different freeze positions for my “wiggle layers”
    2) I want to eliminate the “reverse appearing” movement to reach 0 speed from my current speed.

    What I’m trying to do is slow down and stop the wiggle movement at different times, which would give me different arrangements.
    I’m thinking this would be some kind of time offset/freeze expression.
    Thoughts?
    Thanks
    -B

    pos=wiggle(thisComp.layer("Control").effect("speed")("Slider"),thisComp.layer("Control").effect("scale")("Slider"));
    [pos[0],pos[1],pos[2]]

    Bart Stevens replied 14 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 2, 2011 at 6:34 pm

    Animating wiggle frequency never works the way you hope it will. You’re better off animating the time parameter, like this:

    t = thisComp.layer(“Control”).effect(“time”)(“Slider”);
    pos=wiggle(1,thisComp.layer(“Control”).effect(“scale”)(“Slider”),1,.5,t);
    [pos[0],pos[1],pos[2]]

    It’s not ideal, but by controlling the rate at which the time slider increases, you can achieve the effect you’re looking for. Holding the time slider will hold the wiggle at it’s current value.

    Dan

  • Bart Stevens

    December 2, 2011 at 6:40 pm

    You’re the Man Dan.
    Thanks for the help,
    -Bart

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