Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Looping Color Wiggle Expression

  • Looping Color Wiggle Expression

    Posted by Corben Marroquin on April 14, 2015 at 4:30 pm

    I have a grid of white circles that I’ve used expressions to wiggle and loop their opacity using script I’ve found here in the forums. I then added a color overlay to these circles and used wiggle again, shown below, to change each of their colors randomly over time. My question is how can I make the expression below loop seamlessly?

    w = wiggle(2, .5);
    [w[0], w[1], w[2], value[3]];

    Corben Marroquin replied 11 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 14, 2015 at 5:47 pm

    This should work:

    freq = 2;
    amp = .5;
    loopTime = 3;
    t = time % loopTime;
    wiggle1 = wiggle(freq, amp, 1, 0.5, t);
    wiggle2 = wiggle(freq, amp, 1, 0.5, t – loopTime);
    w = linear(t, 0, loopTime, wiggle1, wiggle2);
    [w[0], w[1], w[2], value[3]];

    Dan

  • Corben Marroquin

    April 14, 2015 at 7:02 pm

    Thanks a lot! Works great!

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