Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3 Point Loop for Wiggle Expression.

  • 3 Point Loop for Wiggle Expression.

    Posted by Lisa Ruiz on August 7, 2012 at 11:20 pm

    I want to know if I can set parameters for a wiggle expression to have a 3 point loop. This is my current wiggle expression

    wiggle(.5,23)

    My comp is 516 frames and I need the loop point to be at 33 frames.

    I found this online but I don’t quite understand it so I’m not sure if it can be edited for what I need, but here it is.

    Thanks for any help.
    -Lisa

    freq = 1;
    amp = 110;
    loopTime = 3;
    t = time % loopTime;
    wiggle1 = wiggle(freq, amp, 1, 0.5, t);
    wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
    linear(t, 0, loopTime, wiggle1, wiggle2)

    Lisa Ruiz replied 13 years, 9 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    August 7, 2012 at 11:25 pm

    What do you mean by “3 point loop”.

    Dan

  • Lisa Ruiz

    August 8, 2012 at 4:16 am

    The animation starts at frame 1, ends at frame 516 and will loop back to frame 33. I need my wiggle expression to do the same.

  • Dan Ebberts

    August 8, 2012 at 6:14 am

    See if this does what you want:


    loopStart = framesToTime(33);
    loopEnd = framesToTime(517);

    if (time < loopStart){
    wiggle(.5,23);
    }else{
    dTime = loopEnd-loopStart;
    t = (time - loopStart)%dTime;
    offset = wiggle(.5,23,1,.5,loopEnd) - wiggle(.5,23,1,.5,loopStart);
    wiggle(.5,23,1,.5,loopStart+t) - linear(t,0,dTime,0,offset)
    }

    Dan

  • Lisa Ruiz

    August 8, 2012 at 4:59 pm

    WOW! Thank you so much, this works perfectly.

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