I'm working on a complex map graphic in Illustrator that includes hundreds of layers, compound paths, etc. I want to create a clipping mask out of a rectangular portion of this map, but when I do the usual Object > Clipping Mask > Make, one of the compound paths goes all screwy. Is there a workaround for this? I've included before/after screenshots so you can see the problemo. The grey features (walls) seem to spill out some of their fills after the mask is made! Curiously, other compound features were unaffected.
Very odd. Assuming those grey shapes are closed shapes, my inclination would be a bug. (Which is honestly rare for me to think.) Without more detail regarding the construction of the problem shapes, that's the best I can come up with unfortunately. If those problem shapes are indeed open paths you need to close them.
Just a thought....
When working with complex multi-layered files I find Clipping Masks at the layer level work best. However, you can only have one of these per layer, unlike the standard clipping masks.
- Create a new Layer at the top of the stack
- Draw a shape/rectangle to define the area to clip.
- With the rectangle selected, from the Layer Panel Menu choose
Make Clipping Mask.
This is the only way to create a layer-based clipping mask.
- Move all other layers below the new clipping mask in this new layer as sub-layers.
This method has some benefits and drawback though. It does allow you to essentially keep your layer structure in tact as sublayers, unlike a standard clipping mask which combines everything to a single layer. But this can make copying/duplicating those sub-layers problematic (see link below). In addition, you only need one mask to clip multiple things rather than possibly multiple masks. But, you can only use this once per layer.
More detail regarding layer-based v object-based clipping masks can be found here: Copying an artboard with a clipping mask