Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Using loop expressions in an effect property

  • Using loop expressions in an effect property

  • Rod Duarte

    April 22, 2018 at 10:40 pm

    Hello!
    I followed this tutorial to create some sun rays:
    https://www.youtube.com/watch?v=vBliVk_E-rk

    It’s all well and good, but, the animation does that little “bump” when it reaches the end and jumps back to the beginning.
    So I’m thinking about how to make it loop forever without that nasty bump.
    From previous experience I guess the smart way to do it would be to use a loop expression, right?
    But none of the ways I know how, work in this scenario.

    In the tutorial above, the instructions are to just use a “time*100” expression inside the Evolution parameter of the Fractal effect.
    When I try to plug in the loop one, it doesn’t work.

    Why? How do I do this?

    time*100
    LoopOut(“PingPong”);

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Dan Ebberts

    April 23, 2018 at 12:57 am

    You can’t just add loopOut() like that (it invalidates everything that comes before).

    You could try something like this 5-second ping pong loop, but I’m guessing it won’t be very convincing where the ping pong happens:

    loopDur = 5;
    t = time%loopDur;
    n = Math.floor(time/loopDur);
    if(n%2) t*100 else (loopDur-t)*100

    Dan

  • Rod Duarte

    April 23, 2018 at 1:54 am

    Thank you!!!

    I did kind of a workaround, which was keyframing the property, then adding a keyframe halfway through the timeline and make the evolution go a full cycle (360), then two more keyframes, both at 0 at start and end.

    A LOT more work than just adding the expression, and I suspect the expression will look better, so I’ll still try it. Let’s see.

  • Rod Duarte

    April 23, 2018 at 2:06 am

    So… yeah that didn’t work. I still see a “bump” when it loops.
    The expression itself worked as far as making it loop, but I need it to loop smooth, without giving away when the loop ends and restarts…

  • Dan Ebberts

    April 23, 2018 at 3:38 am

    I don’t know if you’ll be able to use this for your application, but it does make a pretty convincing loop. You would duplicate the Noise layer. The top layer gets this for Evolution:

    loopDur = 6;
    t = time%loopDur;
    t*100;

    and this for layer Opacity:

    loopDur = 6;
    rampDur = 1;
    t = time%loopDur;
    linear(t,loopDur-rampDur,loopDur,100,0)

    The bottom copy gets this for Evolution:

    loopDur = 6;
    rampDur = 1;
    t = time%loopDur;
    linear(t,loopDur-rampDur,loopDur,-rampDur,0)*100

    Dan

Viewing 1 - 5 of 5 posts

Log in to reply.

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