ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to Loop In and Out?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Walczak
How to Loop In and Out?
on Apr 18, 2013 at 2:52:51 pm

Hi everyone,

I have two linear keyframes within a Time Remap that allow me to recreate a timewarp that I was given from an Avid clip. I'm quite accustomed to using loopOut("Continue"), as well as the respective loopIn equivalent, but is there a way to 'stack' the two, so I can continue the defined rate both before and after the set of keyframes that I have established?

In my limited knowledge of expressions, I would imagine that it would look something like this, but it doesn't work:

loopOut("Continue");
loopIn("Continue")

Thank you so much in advance for your help!

http://vimeo.com/explosivegraffix


Return to posts index

Kevin Camp
Re: How to Loop In and Out?
on Apr 18, 2013 at 9:17:24 pm

you need to set conditions to loopIn when time is before the first key, use the value when between the keys and loopOut after the last key...

this should do it:
if (time >= key(1).time){
if (time > key(2).time) loopOut('continue') else value;
}else{
if (time < key(1).time) loopIn('continue');
}


Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

Mark Walczak
Re: How to Loop In and Out?
on Jun 5, 2013 at 2:29:29 pm

Kevin, I'm so sorry that it took me this long to reply, but your solution was absolutely perfect.

Thank you so much!

http://vimeo.com/explosivegraffix


Return to posts index


Roei Tzoref
Re: How to Loop In and Out?
on Nov 8, 2018 at 11:00:26 pm

also this:
loopIn()+loopOut()-value

Roei Tzoref
2D/VFX Generalist & Instructor
♫ AeBlues Tutorials ♫
http://www.tzoref.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]