Skip to main content
Lukas Sliva
Participating Frequently
December 7, 2020
Question

loopOut() is not working

  • December 7, 2020
  • 1 reply
  • 353 views

Hi there

 

Trying to do a simple loop but for some reason its not working here. Please check screenshot for more info.

 

Thank you in advance for any tip.

 

Lukas.

This topic has been closed for replies.

1 reply

Mylenium
Brainiac
December 7, 2020

It can't work because your function has no parameters and is applied to a property that doesn't even have keyframes nor would it actualyl do anything to generate a path without additional expression code. You have a major misunderstanding there.

 

Mylenium

Lukas Sliva
Participating Frequently
December 7, 2020

Code works great before on other tasks like simple object moving but not here for some reason. I'm not sure if you saw the attached image, but i use keyframes on vector path which are moving and i need to loop that. Any recommendation what i can do to make it works? Or its simle not posible in AE to loop vector path?

Dan Ebberts
Adobe Expert
December 7, 2020

You can roll your own loopOut() like this:

 

if (numKeys >1){
  if (time > key(numKeys).time){
    t = (time - key(numKeys).time)%(key(numKeys).time - key(1).time);
    valueAtTime(key(1).time + t);
  }else{
    value;
  }
}else
  value