Skip to main content
Inspiring
January 19, 2024
Answered

Trim Paths > offset

  • January 19, 2024
  • 6 replies
  • 4531 views

Hi 

I'm trying to animate a shape layer in Ae using trim paths. I've applied the offset 180/90 degrees so that trim starts from a point I want it to. I created the path in Ai and is sort of like a rectangle, and then converted to shape layer in Ae. But the corner of the triangle where the trim ends to 100% leaves the corner faded and of a different color. The original path was closed using command+option+J and command+J to make a perfect corner. I've checked if the anchor points joined properly and they did.         If I change the offset so that path starts from the corner or any other place, it animates the shape perfectly and no fade appears.  Tried with different colors and with grey caps are clealy visible. 

 

    This topic has been closed for replies.
    Correct answer Shubhi345721392tx8

    Was able to fix it with solution from @ShiveringCactus. Simply select the vertex, right click and choose 'set first vertex' and it fixes the problem. In some cases glitches occur still but unsetting and then setting back as first vertex or adjusting the offset according to how one would like the trim path direction fixes the problem. 

    6 replies

    Shubhi345721392tx8AuthorCorrect answer
    Inspiring
    January 24, 2024

    Was able to fix it with solution from @ShiveringCactus. Simply select the vertex, right click and choose 'set first vertex' and it fixes the problem. In some cases glitches occur still but unsetting and then setting back as first vertex or adjusting the offset according to how one would like the trim path direction fixes the problem. 

    Adobe Expert
    January 25, 2024

    If you connect all of those vertices so you have one path,  you can get corners at the correct angle or points.  You will have a devil of a time trying to fix every one of the separate paths. 

     

    Adobe Expert
    January 22, 2024

    You will never get smooth corners unless the vertices are in exactly the same position. The endpoints of two shape layer paths will not snap to each other, but they will snap to a grid or guide.  Unless the angle between both lines is 90º, you will never get a smooth corner from two lines unless you choose Round Caps. The artwork needs to be redrawn using a single path, or the points will always look strange.

    The only other option you have for snapping endpoints to each other would be to use the Create Nulls from Paths/Points Follow Nulls script and snap the nulls for the endpoints to the same position. That will not solve the round cap issue. The endpoints of your paths may match up. If they do, there is no way to get a flat end to the lines because the flat ends of the lines will always be perpendicular to the path. Grouping or Merge Paths will not solve the issue. If you want flat ends to the pointed lines, redrawing the artwork is the only solution.

     

    If you want to redraw the artwork quickly, select all of the paths, copy them, paste them into a comp-sized Illustrator document, and then use the direct selection tool (a) and drag a selection around the endpoints, right-click or use the Keyboard Shortcut Ctrl/Cmnd + j to join the vertices. When you have all of the paths joined and verified by checking the Layer Panel, you can copy and paste the path to a new shape layer in After Effects or just finish the artwork in Illustrator and import the new file as a composition retaining layer size. 

     

    You should see the mismatched endpoints if you toggle mask and shape path visibility to on. 

    Inspiring
    January 22, 2024

    Hi Rick 

    Apologies but I think you've misunderstood the issue. 

    I made the path in Illustrator. Followed -  "use the direct selection tool (a) and drag a selection around the endpoints, right-click or use the Keyboard Shortcut Ctrl/Cmnd + j to join the vertices" (I made one half of the shape, replicated it and joined the end points). 

    Then imported it to Ae.  

    Inspiring
    January 22, 2024

    Not looking for a smooth corner. 

    I'm looking for a sharp extended corner like that of a triangle, perfectly crisp. Somehow when I use trim paths, in the preview and export the end of the sharp corner gets cut off or appears faded. Not sure how to fix it. 
     

    Jacob Bugge
    Adobe Expert
    January 22, 2024

    Shubhi,

     

    The Best and safest way to join is to ensure that the two end Anchor Points coincide, and then simply Cmd+J.

     

    You can ClickDrag either path by its relevant end Anchor Point with the (normal) Selection Tool to snap to its counterpart on the other path, Smart Guides being your friends by saying anchor when you are within snapping distance.

     

    Then you can deselect and ClickDrag over the two coinciding end Anchor Points with the Direct Selection Tool and Cmd+J.

     

    If done in the right way, you get the option of clicking Corner rather than Smooth.

     

     

    Using a less accurate way than the one described can lead to two non coincident Anchor Points which will need to be brought to together with Average or whatever, and this can lead further to unecessary issues.

     

    Inspiring
    January 22, 2024

    Thank you Jacob I understand your points.

     I think I'd tried Cmd+J but I weren't getting the desired pointy end. And so possibly wasn't done the right way. Couldn't get the points to snap even with 'snap to point' on and everything else unselected. 

    Jacob Bugge
    Adobe Expert
    January 22, 2024

    Shubhi,

     

    If any of certain kinds of snapping is on, Smart Guides will fail to guide you, however smart they are, have you tried with all snappings off?

     

    Inspiring
    January 19, 2024

    Could it be the shape layer outlines causing this? 

    ShiveringCactus
    Brainiac
    January 19, 2024

    Could you post a screenshot of the shape layer's Stroke settings.  It looks to me a little like each line is its own shape with it's own end cap.  And is there a chance that there's your original layer still turned on underneath it?  Actually could you also post a screenshot of your timeline

    Inspiring
    January 19, 2024

    Each line is it's own group under a shape layer. Stroke settings for all groups are similar, I just copy pasted. PFA ss of one group's stroke settings.    

    Peru Bob
    Brainiac
    January 19, 2024

    I've moved this from the Using the Community forum (which is the forum for issues using the forums) to the AE forum so that proper help can be offered.

    Inspiring
    January 19, 2024

    Oh! Thank you.