- Posts: 10
- Joined: Tue Jan 05, 2016 9:09 am
So, for my first post (ok, first thread) I thought I'd challenge you all with a tricky little thing i encountered the other day.
Here's what I did: I first created a motion path (and the same thing happened if I did it by keyframe animation or if I tracked something in a footage). Then I added a paint-node with a polyline stroke. I published the path (from the animation) so that I could connect the polyline stroke to it. So far so good, now the polyline exactly follows the animation path.
Then, I connect the Write On End-attribute of the stroke to the Displacement-attribute of the path, and that's where the problem occurs. The Write On End-attribute just looks at the path as a whole, so when it reaches 0.5 (for instance), it has reached the half way point of the path. However, the displacement-value in the animation path first looks at another curve (from what I understood of the manual) which decides where to place the animated object. Unless that curve also is linear (which it rarely is), the stroke and the animated object will be out of sync.
Simple example: Let's say I animate an object along a curve with three key frames. The timing between all keyframes is the same, but the distance between the 1st and the 2nd is much shorter (let's say 1/3 of the distance) than the 2nd and the 3rd (so, the movement between Key 1 and 2 is slower).
That means that the animated object reaches 1/3 of the distance in half the time (when displacement is 0.5). If I where to connect the displacement of that movement to the Write On End-value as above, it would reach half the distance in the same time.
So, what are your thoughts to sync the stroke more exact to the animation? So far, my only solution is to animate the Write On End by hand, which of course works, but seems like a hassle when it's more complex movements.
Would be grateful for all tips
Kind Regards
Here's what I did: I first created a motion path (and the same thing happened if I did it by keyframe animation or if I tracked something in a footage). Then I added a paint-node with a polyline stroke. I published the path (from the animation) so that I could connect the polyline stroke to it. So far so good, now the polyline exactly follows the animation path.
Then, I connect the Write On End-attribute of the stroke to the Displacement-attribute of the path, and that's where the problem occurs. The Write On End-attribute just looks at the path as a whole, so when it reaches 0.5 (for instance), it has reached the half way point of the path. However, the displacement-value in the animation path first looks at another curve (from what I understood of the manual) which decides where to place the animated object. Unless that curve also is linear (which it rarely is), the stroke and the animated object will be out of sync.
Simple example: Let's say I animate an object along a curve with three key frames. The timing between all keyframes is the same, but the distance between the 1st and the 2nd is much shorter (let's say 1/3 of the distance) than the 2nd and the 3rd (so, the movement between Key 1 and 2 is slower).
That means that the animated object reaches 1/3 of the distance in half the time (when displacement is 0.5). If I where to connect the displacement of that movement to the Write On End-value as above, it would reach half the distance in the same time.
So, what are your thoughts to sync the stroke more exact to the animation? So far, my only solution is to animate the Write On End by hand, which of course works, but seems like a hassle when it's more complex movements.
Would be grateful for all tips
Kind Regards
------------
Ulf Andersson
Ulf Andersson