Copy link to clipboard
Copied
Copy link to clipboard
Copied
Parent to looping ball to a Null and move the Null.
Mylenium
Copy link to clipboard
Copied
Thanks for your answer. I want to loopout(offset) Squash and Stretch movement, but I couldn't.
Copy link to clipboard
Copied
You can create your own loop for path keyframes using modulo (%) math and valueAtTime(), like this equivalent of loopOut("cycle"):
if (numKeys > 1 && time > key(numKeys).time){
t1 = key(1).time;
t2 = key(numKeys).time;
span = t2 - t1;
delta = time - t2;
t = delta%span;
valueAtTime(t1 + t);
}else
value
By the way, I think "cycle" is what you want, not "offset", but you have other issues to deal with. The main issue is that the duration of your path keframes is different than the position keyframes and the loopOut for the path will quickly get out of sync with the bouncing keyframes. So the timing needs to be driven by the position keyframes. If you delete the last two keyframes of the path animation, that makes the path and position animations the same duration and the above expression might work for you. Play around with it and see what you think.
Copy link to clipboard
Copied
That's a limitation. loopOut() does not work on paths, only on numerical properties. You have to think of an alternative approach like pre-composing the animation, time-remapping it and looping that.
Mylenium
Copy link to clipboard
Copied
Just check these amaizing tutorial ( 1 minute )
https://www.youtube.com/watch?v=Y0i7Wg1XF8w
2 ways to do that
Or just use this expression
valueAtTime(time % key(numKeys).time)
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more