FORUMS: list search recent posts

Trim paths and offset issue

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam Lewen
Trim paths and offset issue
on Sep 16, 2019 at 1:30:07 pm

Hi.
When animating a dashed stroke with trim paths, once the line starts animating in or out, the dashes run fast.
How can I prevent it? I would like to have the dashes moving (offset) in the same speed and not to be effected by the fact its trim paths start/end...

Thanks so much!


Return to posts index

Walter Soyka
Re: Trim paths and offset issue
on Sep 17, 2019 at 10:36:51 am

Can you cheat? Duplicate the shape layer, animate Trim Paths use a slightly thicker, non-dashed stroke, and use it as a track matte for the dashed layer underneath?

Otherwise, the best I can figure is approximate the length of the path and use that to drive the dash's Offset value as the Trim Paths "Start" property is animated with an expression like this:

var approxPathLength = length(content("Path 1").path.pointOnPath(0, time), content("Path 1").path.pointOnPath(0.01, time)) * 100;
linear(content("Trim Paths 1").start, 0, 100, 0, approxPathLength)+value;


Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Adam Lewen
Re: Trim paths and offset issue
on Sep 18, 2019 at 6:05:39 am

Walter! What a simple solution! ☺ Why the hell didn't I think about it?!
Thanks so much! Big help!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]