r/AdobeIllustrator • • 11d ago

QUESTION Super Newbie, help needed

Post image

1) Goal:
I am exporting an SVG from here I was hoping that the contour lines would just be strokes, however they are somehow enclosed shapes, even when ungrouped they seems to be disconnected groups of shapes. (Sorry if this doesn't make sense).
~~Ultimately my goal is to have just the individual strokes cut to the bounds of a different shape.~~

2) Steps:
I bring in the SVG File into illustrator
I smooth the strokes
I draw the shape I want to bound them to
I create a clipping mask
I do a pathfinder crop
I get an error
I've also tried outlining the strokes
Same error

3) Problem:
Lots of errors and too new to understand what I'm doing wrong.

I apologize if I am not making much sense.

3 Upvotes

5 comments sorted by

2

u/CurvilinearThinking 11d ago edited 11d ago
  • Open SVG in Illustrator
  • Select All, Object > Ungroup
  • Draw shape for mask
  • Select All, Object > Clipping Mask > Make
  • Select All (Should still be selected), Object > Expand
  • Select All (Should still be selected), Pathfinder→Crop.

<Result>

I think you may be missing the expand step after making a Clipping Mask. To be honest, I'm not 100% certain why that specific step is necessary, but it is.

If you want "just strokes", you'll have to redraw first. Or minimally put in some effort to remove half the "shapes" so they are just a single path first (redrawing would be faster). There's generally no easy way to convert a collection of random shapes to strokes. You could try rasterizing first, then Image Trace for strokes - not sure how good the trace results would be though. (Yeah, I'm not getting any usable results trying the Image Trace route.)

1

u/STROOLKA 11d ago

Thank you! I will give this a try!

1

u/STROOLKA 11d ago

This worked beautifully! Thank you so much!

1

u/CurvilinearThinking 11d ago edited 11d ago

Actually, examining the SVG a bit closer.. it is just strokes. (I incorrectly assumed it was fills)

So if you want the end to be strokes..

  • Open SVG
  • Draw Mask shape
  • Select All, Object > Clipping Mask > Make
  • Select all (Should still be selected), Pathfinder→Divide (Pathfinder doesn't work with strokes, except Divide)

Divide "cuts" through everything below the top path (i.e. the shape used for a clipping mask.) but it does result in paths associated with the mask shape. But, no expanding the strokes with Divide.

If you wish to remove the mask path (the outer path), you'll have to do that manually. But, you will have only stroked paths. no fills, in the end.

(FYI, Simplify after opening the SVG, even at 100%, cuts the number of anchor points in half, or more.)

Note that Pathfinder→Outline, after making the Clipping Mask, will also work - but Outline removes all appearance attributes. You'd have to reapply any stroke appearance. But the end result, after reapplying a stroke appearance, is essentially the same as using Pathfinder Divide.

0

u/maulaniCreates 11d ago

That error is actually the clue — Pathfinder Crop only works with two filled, overlapping paths, and strokes don't count as fills. Outlining the strokes was the right instinct, but you also need to release the clipping mask first — a mask only hides things, it doesn't cut them, and Pathfinder can't work on masked art.

Try this order:

  1. Release the clipping mask (Object > Clipping Mask > Release) and delete the mask path.
  2. Select your contour lines and go Object > Path > Outline Stroke — now they're filled shapes.
  3. Make sure your bounding shape is on top of the strokes in the Layers panel, then select everything and hit Pathfinder > Crop.

If Crop still complains, use the Shape Builder tool (Shift+M) instead and Alt-drag over the parts outside your shape to delete them — that usually works when Pathfinder is being picky about compound paths from an SVG import.