A mask conceals, or covers, parts of an object behind the mask, yet it reveals parts of the object behind it as well. For example, a mask that you wear to a masquerade party might cover parts of your face, yet some parts might not be covered. A mask in Illustrator works in much the same way: You can use just about any shape or object in Illustrator to mask other elements in your design. After a mask is applied, you can edit the art behind the mask or the mask itself, independently of each other. You can apply basically three types of masks in Illustrator: a clipping mask, a layer clipping mask, and an opacity mask. Each of these masks has its own specific uses and capabilities. Clipping MasksThe clipping mask, the simplest kind of mask in Illustrator, can be made of any vector shape. A clipping mask works in this way: You have a shape that sits on top of your objects. When the mask is created, any objects that fall within the boundary of the top shape (the mask) are visible, but anything that falls outside that boundary is hidden. It's important to realize that the hidden art is not deletedit's still there, but it's hidden from view. To create a clipping mask, draw a shape for your mask and bring it to the front of the stacking order. Position your mask over the art you want the mask to affect and select both the art objects and the mask shape above it (see Figure 7.109). Then choose Object, Clipping Mask, Make to create the mask (see Figure 7.110). When the mask is applied, both the objects and the mask above it are grouped together; however, you can use the Group Selection tool to select just the mask or just the objects to make edits. This is useful when you want to reposition the mask to reveal a different part of the objects below it. Figure 7.109. The objects selected, with the object that will be the mask on top.Figure 7.110. The masked art.To release a mask (and have all the objects below the mask revealed again), select the group of the mask and objects, and choose Object, Clipping Mask, Release. Layer Clipping MasksLayer clipping masks are very similar in concept to clipping masks, except that they are applied in the Layers palette and affect all items on a specific layer. To create a layer clipping mask, simply create a shape that's on the same layer as the art you want to mask, and click on the layer listing in the Layers palette to highlight it. Then click the Make/Release Clipping Mask button at the bottom of the Layers palette (see Figure 7.111). Figure 7.111. Creating a layer clipping mask.Any object you add to that layer automatically becomes masked as well. Likewise, any object you pull out of that layer no longer is masked. A mask object is indicated by a listing in the Layers palette with an underline (see Figure 7.112). To release a layer clipping mask, highlight the layer in the Layers palette and click the Make/Release Clipping Mask button. Figure 7.112. An object with an underline in the Layers palette indicates that it's a clipping mask.Opacity MasksAs Emeril Lagasse says, let's kick it up a notch! Opacity masks are like clipping masks on steroids. First of all, you can use just about anything as an opacity maskeven gradients and photographs. If you remember how we discussed creating alpha channels and layer masks inside of Photoshop, you'll quickly see that opacity masks inside Illustrator are practically the same thing. Did you Know? Because opacity masks use the luminosity values of the mask itself, you can actually create a photograph or a vector object that truly fades to transparent. Simply use a black-to-white gradient as your opacity mask. The same basic rule applies to opacity masks, in that you place the mask at the top of the stacking order and then select both the mask and objects under it before applying the mask. When you have the objects selected, open the Transparency palette and expand the palette so that you can see all the options. You'll see a thumbnail of your selection on the left side of the palette (see Figure 7.113). From the Transparency palette flyout menu, choose Make Opacity Mask (see Figure 7.114). You'll now see that a second thumbnail appears in the Transparency palette beside the original one, which is the mask itself (see Figure 7.115). Figure 7.113. The fully expanded Transparency palette with the thumbnail visible.Figure 7.114. Creating an opacity mask.Figure 7.115. After the opacity mask is created, both thumbnails are visible.Did you Know? The thumbnail icons in Illustrator's Transparency palette function exactly the same way layer mask icons work in Photoshop. For example, if you Shift+click on the mask thumbnail, the mask is disabled. After an opacity mask is applied, you have several options in the Transparency palette:
An object with an opacity mask applied to it is indicated in the Layers palette with a dashed underline (see Figure 7.117). To release an opacity mask, select the masked object and choose Release Opacity Mask from the Transparency palette flyout menu. Figure 7.117. An object with an opacity mask applied to it, as seen from the Layers palette. |