-
Get Position of Stroke Offset
Does anyone know how to get the position of the Start or End point of a stroke on a shape layer? I’m using Trim Paths on a rounded cap stroke to create a small circle that travels along the spline by animating the Offset. I basically have the Start set to “0” and End set to “0.01.” I’m also animating the Path of the shape layer. The tricky part is that I want a trailing line that is dynamic and requires position data. I could just use a duplicate of my original Shape layer and extend the Start/End to make it longer, but when I animate the Path, that trailing line animates in an undesirable way. I could also copy the Path and paste it as Position keyframes on a circle layer, but since I’m animating the path, that doesn’t work. My work-around right now is to precomp the offset animation, then track the motion, and apply that to my layer that I’m using for the dynamic trail. But it doesn’t allow for easy changes to my animation. I’m open to any other ideas! Thanks!