Skip to content
← Back to Blog

Loop the Path with Expressions

March 16, 2021
Max Kravchenko
Max Kravchenko Motion Designer & Tutor

The loopOut expressions is used so many times in our workflow.
Unfortunately, it’s not working for a path. But we have the solution for you. Just use this expression, and it will be working even with the path:

timeStart = thisProperty.key(1).time; 
 duration = thisProperty.key(thisProperty.numKeys).time-timeStart; 
 pingPong = true; 
 if(quant<0) quant = 0 //no negative numbers
 if(quant%2 == 1 && pingPong == true){ 
 t = 2timeStart+ (quant+1)duration - time; }
 t = time-quant*duration; }

Congratulations on the new achievement. Now you can loop the path with expressions! Woohoo!

What is the Motion Beast course?

This is the must-see course for any Motion Designer. It lays the foundation for all aspects of modern motion design and covers every topic from AE basics to character rigging and frame by frame animation.

The course will help you overcome AE-related barriers and fears which are standing between you and the wonderful world of animation and motion design


Motion Beast

    Your Cart