ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Randomly trim paths that continue out

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index


Maya Rait
Randomly trim paths that continue out
on Apr 6, 2020 at 3:49:16 pm
Last Edited By Maya Rait on Apr 6, 2020 at 4:06:43 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)


Posts Index 


Current Message Thread:
  • Randomly trim paths that continue out by Maya Rait on Apr 6, 2020 at 3:49:16 pm





© 2020 CreativeCOW.net All Rights Reserved
[TOP]