0

I have a group which has a stroke applied:

https://i.imgur.com/YZ5lqqB.png

And I want to mask part of an object to change the color on part of it. But when I mask the two objects, it stops applying the stroke to that object.

enter image description here

Is there any way to fix that or a better way to do this?

0

Firstly, your stroke isn't actually a stroke, but rather a second shape which is slightly larger - behind the path.

Clipping masks follow the path of the topmost object, and they then make that path invisible.

If you wanted an area "clipped" (cut off), you would put the object defining the clipping area - the area you want to keep on the top and then turn it into a clipping mask.


In your scenario, I would suggest that you use an actual stroke for everything (it'll make things simpler later on) and then you can bring the brown box to the front in order to use it as the clipping path.


If you really want to make this properly, I would suggest to merge the two shapes (the ear and the head) using the Shape Builder Tool (Shift+M)

enter image description here

This would also make it that you didn't need clipping masks.

I made my piglet by creating a few circles and polygons (for filler), made one ear and reflected it to the other side, and then merged them all together with Shape Builder:

enter image description here

  • thanks for the detailed response. The shape builder tool worked. I was just hoping there was a less destructive way, but at least it was easy. – stackers Oct 23 '18 at 15:59
0

Kind of looks to me that when you apply the mask, the object and it's mask leave the group with the stroke applied.

You may be able to merely move the <clip group> back inside the <Group>.

Impossible to tell without seeing the layers panel after the mask is applied.

  • The screenshot he attached shows after the mask is applied. – WELZ Oct 23 '18 at 2:32
  • @WELZ How can you tell? There's no <clip group> and the main layer clearly shows there's an Appearance panel stroke applied to the layer. You guessed as much as I did :) they are merely different guesses. I think the path used for the clipping mask in on another layer. so when the mask is applied, the object moves to that layer without the Appearance Panel stroke. – Scott Oct 23 '18 at 2:45
  • From the result - if you look at the layer preview (also the brown triangle) you can see that that's what it looked like after the mask is applied in the gif. – WELZ Oct 23 '18 at 2:47
  • I still think you're guessing as much as I am :). – Scott Oct 23 '18 at 2:48
  • I am too self righteous... :P – WELZ Oct 23 '18 at 2:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.