-
Layer follows Stroke start
hey all. first post here. i’ve been searching for an answer for this problem for about a week. im starting to think an expression is the only way to solve it, and even then, im not sure…
here is the issue:
i am animating a map. i have a traveling line setup as a path with a Stroke effect applied. the ‘start’ has been animated to have the path travel over time. nothing new here.
i also want a layer to sit ontop of the head of the Stroke as it travels (a graphic, say a ball/circle, so its not just a line traveling over a map).
in searching for how to get a layer to follow a paths position, i found that apparently the only way to do this is to paste the path into the layers position channel. so i did this and it works.
so lets say i set the start key for both the stroke and the layer at 1, and the end key at 100. they both move along the shape of the path together. no problem.
the problem is i dont want a linear animation. i have not been able to figure out a way to make a change to the animation of 1 and have the other do the same thing, so they are always on the same position on the map. the stroke is animating off a % of the ‘start’ property, and the layer is following a path with 2 keyframes and all those ‘rove across time’ black circles in-between.
i though, perhaps there is an expression that could say “When the layer is here (the starting point) this is 0%, and when the layer is here (the ending point), this is 100%”, and then that would be a value that the Stroke start would understand. this way, at least in my head, i would think that i could make changes to the animation of the layer by adding keys to the roving keys, and sliding them around so i get some animation happening, and then theoretically the Stroke would follow since animating the layer position is now effectively animating the Stroke start value.
though, im not entirely sure this would work, as the path is NOT a straight line, and i dont know that position to percent translation would work. i dunno… im just thinking out loud here.
so yes, this is the problem! im open to ANY solution at this point, even if it means a completely new way of setting this up.
my current fallback plan is to use a ‘write-on’ effect instead of a stroke as that has a ‘brush position’ property which i could probably set to follow the path, and pickup any timing changes i make to it, though i havent tried this yet.
2nd fallback plan is to precomp it and and time remap it, though i realy dont want to have to do that, as the layer is actually already a looping graphic precomp, and if i time remap THAT, the animation will get all weird.
surely someone must have done this before as it seems a very common thing to have to do. inquiries on other forums have not yielded any results, so im hoping the bright minds here can shed some light.
thanks all! (sorry for the overly wordy description)