Skip to main content
Participant
October 3, 2023
質問

Trim Paths is growing the thickness of the line that has already been revealed

  • October 3, 2023
  • 返信数 1.
  • 1208 ビュー

Hello! This is my first time posting to this board. 

I have a small issue that has been bugging me that I cannot seem to fix. 
I am creating shot tracers for golf videos. This requires me to create a tapered stroke (so that the end of the line is thinner than the beginning). 
This helps give the perception that the line is getting farther away.

However, when I apply Trim Paths to the line, it isn't just "revealing" the shape that is already there. It is actually changing in thickness a bit once it has already been created. It is a little bit hard to explain, so I will attach a screenshot. 

Please let me know if you have any questions or if I can clarify anything. 

The 7:15 mark in the link provided is a good example as well. 
Although the animation looks decent, you can see how the thickness of what has already been revelaed changes a bit over time.



このトピックへの返信は締め切られました。

返信数 1

Community Expert
October 3, 2023

If your path starts at the bottom of the frame, you'll have to animate the end width of the taper in the opposite direction as the end value of trim paths. The Trim Paths/End value would go from zero to 100, so Shape/Taper/End Width would go from 100 to your desired end width. If you want the end of the line to be 5%, then you could use a simple linear interpolation method like this to solve the animation problem and you will only have to deal with two keyframes.

t = content("Shape 1").content("Trim Paths 1").end;
linear(t, 0, 100, 100, 5)

If this gives you a backward result, you can change the first vertex to the bottom of the path or use the Change Direction switch just to the right of the path. It looks like two lines.

 

Participant
October 3, 2023

Hey Rick, thanks so much for the response and putting your time into this.
I cannot thank you enough. This looks to be exactly what I am after. I will give this a shot. Thanks again!