Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
3

Trim Paths > offset

Explorer ,
Jan 19, 2024 Jan 19, 2024

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. 

 

Screenshot 2024-01-19 at 7.01.09 PM.pngScreenshot 2024-01-19 at 7.04.57 PM.png

4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 24, 2024 Jan 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. Screenshot 2024-01-24 at 11.21.28 PM.png

Translate
Community Expert ,
Jan 19, 2024 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

Oh! Thank you. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2024 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 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.    

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

I've kept but hidden the original layer with shy switch. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

The size of the composition and imported artwork is the same. Here's a ss of the properties of the path I created in Ai if it helps. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

The original artwork was created that way, yes! I made two halves then joined them at anchor points using cmd+J+option and cmd+J.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

Shape layer's stroke settings 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2024 Jan 22, 2024

Apologies, I didn't get a chance to look at this until now.

I think you must be onto something with your shape layer bounding box theory, but I'm stumped as to the cause. 

@Rick Gerard - you know shape layers forwards and backwards, any ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 22, 2024 Jan 22, 2024

I tried using grow bounds on my layer and it still didn't solve the problem. 

 

Animating the layer individually in a new file doesn't cause this, I think. It's when all the layers of my artwork are together. I'm trying to animate a snowflake so every layer is like similar and artwork has symmetry so repetitive. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2024 Jan 19, 2024

Could it be the shape layer outlines causing this? Screenshot 2024-01-20 at 12.25.44 AM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2024 Jan 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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 22, 2024 Jan 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2024 Jan 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?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2024 Jan 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.

RickGerard_0-1705941883550.gif

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 22, 2024 Jan 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.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 22, 2024 Jan 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. 
 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 24, 2024 Jan 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. Screenshot 2024-01-24 at 11.21.28 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2024 Jan 24, 2024
LATEST

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. 

RickGerard_0-1706168328960.gif

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines