Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle with threshold (to be at 0 most of the time)

  • Wiggle with threshold (to be at 0 most of the time)

    Posted by Corrado Carlevaro on September 20, 2011 at 9:53 am

    Hi,
    I’m trying to modify the wiggle expression with some kind of interpolation to get the wiggly movement occurring only occasionally.
    The wiggle expression should give a value of 0 most of the time and give the wiggly movement only when some kind of threshold is reached (something like a noise gate in audio equipment).
    The movement should be smooth too.
    Of course I can’t figure it out. Any idea?

    Thank you
    Corrado Carlevaro

    Corrado Carlevaro replied 14 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 20, 2011 at 1:30 pm

    It’s going to depend on the nature of your threshold detection and how you want to respond to it, but as an example, if you just wanted to ease into the wiggle as a slider value moves through a threshold range, it might look like this:

    control = effect(“Slider Control”)(“Slider”);
    thresholdMin = 10;
    thresholdMax = 15;
    ease(control,thresholdMin,thresholdMax,value,wiggle(1,100))

    Dan

  • Corrado Carlevaro

    September 21, 2011 at 4:59 pm

    Thank you for your reply, but maybe the whole idea of threshold or interpolation is misleading or wrong. I just want the wiggle movement not to be continuous but happening at random intervals for random periods, and I thought I could use the wiggle itself to determine this randomness (e.g. clipping the lower values to 0) but probably not the right way to proceed.

    Corrado

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