Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions loopOut/In together?

  • loopOut/In together?

  • Adam Zygadlo

    June 24, 2016 at 3:53 pm

    Good evening everyone,

    Is there a way to combine loopIn with loopOut expression together?

    Here’s an example of workflow…

    Lets imagine that, I have setup two keyframes in the position settings between location B and C, where I am happy with the movement of the graphics.

    Later on that week, the client gets back in touch and asks to extend the sequence by 5 seconds. Instead of reworking the two keyframes [B & C], I tend to use the expression: loopOut(‘continue’); to extend the sequence to make up location D.

    However, the client makes another request to the animation and wants to have a run up (or handles) to the animation by 5 seconds. So, instead of loopOut(‘continue’);, I use loopIn(‘continue’) for the run up and add the code before the loopOut expression. (Between A & B keyframes)

    So the code looks like this in the timeline:

    loopIn('continue');
    loopOut('continue');

    I am having problems with this code, it is only using the last line of codes.

    So my question is; is there a way to combine both expression for the desire effect as described?

    Thank you!

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

  • Dan Ebberts

    June 24, 2016 at 4:23 pm

    This should work:


    if (time < key(1).time)
    loopIn("continue")
    else
    loopOut("continue")

    Dan

  • Adam Zygadlo

    June 24, 2016 at 5:19 pm

    Thank you Dan… It’s funny how easy to code, once we know how to do it! Didn’t realise I could use the if/else command for this but it makes all sense! Thank you again!

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

  • Roei Tzoref

    June 15, 2021 at 6:32 am

    also this can work:
    loopIn(“continue”)+loopOut(“continue”)-value

Viewing 1 - 4 of 4 posts

Log in to reply.

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