Adobe After Effects Expressions Forum
Randomly trim paths that continue out
Randomly trim paths that continue out
by Maya Rait on Apr 6, 2020 at 3:49:16 pm

Currently, I have a trim path animation that ends all the paths at 100 and then stops. I need to adjust this so that the paths slow down as they near 100 and then continue crawling forward at a constant rate. Here's what it looks like right now:


Essentially, I'm struggling to find an expression that allows me to randomly trim paths and then have each path slow down and continue its trim at a constant rate (the way a LoopOut("continue") expression would do if there were keyframes). I need to use an expression because I'm trying to apply this action to ~500 lines.

I added the code I'm currently using to trim the paths. Thank you!!

minDur = 3;
maxDur = 5;
seedRandom(index,true);
dur = random(minDur,maxDur);
linear(time,0,dur,0,100)






© CreativeCOW.net