Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

loopOut() is not working

Community Beginner ,
Dec 06, 2020 Dec 06, 2020

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.

TOPICS
Expressions
340
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 06, 2020 Dec 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 06, 2020 Dec 06, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2020 Dec 07, 2020
LATEST

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines