Activity › Forums › Adobe After Effects Expressions › control path length using expressions
-
control path length using expressions
Alex Printz replied 6 years, 8 months ago 5 Members · 11 Replies
-
Alex Printz
September 6, 2019 at 8:49 pmI have built a trim paths expression to do this in the past.
IIRC, you need to make a slider to set the ‘full’ length, then create a loop that measures the distances between pointOnPaths on a spline and adds them together, compares that to the ‘full’ length, and if the current spline is measured longer than that trim that percentage. I used a 2nd slider to set the number of points to compare (I think I liked around 12 or so, not too many to bog the system, not too few to look choppy)
It worked well for what I needed to do (swinging rope I think?)
Alex Printz
Mograph Designer
Reply to this Discussion! Login or Sign Up