10. Organizing your Artwork with Layers

Lesson overview

In this lesson, you’ll learn how to do the following:

  • Work with the Layers panel.

  • Create, rearrange, and lock layers and sublayers.

  • Move objects between layers.

  • Merge layers into a single layer.

  • Locate objects in the Layers panel.

  • Copy and paste objects and their layers from one file to another.

  • Apply an appearance attribute to objects and layers.

  • Make a layer clipping mask.

Image

This lesson will take about 45 minutes to complete. To get the lesson files used in this chapter, download them from the web page for this book at www.adobepress.com/IllustratorCIB2021. For more information, see “Accessing the lesson files and Web Edition” in the Getting Started section at the beginning of this book.

Images

Layers let you organize your work so that it can be edited and viewed individually or together. Every Adobe Illustrator document has at least one layer. Creating multiple layers in your artwork lets you easily control how artwork is printed, displayed, selected, and edited.

Starting the lesson

In this lesson, you’ll organize the artwork for an app design as you explore various ways to work with layers in the Layers panel.

Image Note

If you have not already downloaded the project files for this lesson to your computer from your Account page, make sure to do so now. See the “Getting Started” section at the beginning of the book.

  1. To ensure that the tools function and the defaults are set exactly as described in this lesson, delete or deactivate (by renaming) the Adobe Illustrator preferences file. See “Restoring default preferences” in the “Getting Started” section at the beginning of the book.

  2. Start Adobe Illustrator.

    Images
  3. Choose File > Open, and open the L10_end.ai file in the Lessons > Lesson10 folder, located on your hard disk.

  4. Choose View > Fit All In Window.

  5. Choose Window > Workspace > Reset Essentials.

    Image Note

    If you don’t see Reset Essentials in the Workspace menu, choose Window > Workspace > Essentials before choosing Window > Workspace > Reset Essentials.

  6. Choose File > Open. In the Open dialog box, navigate to the Lessons > Lesson10 folder, and select the L10_start.ai file on your hard disk. Click Open.

    The Missing Fonts dialog box may appear, indicating that fonts were used in the file that Illustrator can’t find on your machine. The file uses Adobe fonts that you most likely don’t have activated, so you will fix the missing font(s) before moving on.

    Image Note

    For more information on activating fonts, visit helpx.adobe.com/creative-cloud/help/add-fonts.html.

  7. In the Missing Fonts dialog box, ensure that Activate is selected for each font in the Activate column, and click Activate Fonts. After some time, the font(s) should be activated, and you should see a success message in the Missing Fonts dialog box. Click Close.

    Images

    Image Note

    If you see a warning message in the Missing Fonts dialog box or cannot select Activate Fonts, you can click Find Fonts to replace the font with a local font. In the Find Font dialog box, make sure that a missing font is selected in the Fonts In Document section, and choose System from the Replace With Font From menu. This shows all the local fonts that are available to Illustrator. Select a font from the Fonts In System section, and click Change All to replace the font. Do the same for all missing fonts. Click Done.

  8. Choose File > Save As. If the Cloud Document dialog box opens, click Save On Your Computer. In the Save As dialog box, name the file TravelApp.ai, and select the Lesson10 folder. Leave Adobe Illustrator (ai) chosen from the Format menu (macOS) or Adobe Illustrator (*.AI) chosen from the Save As Type menu (Windows) and then click Save. In the Illustrator Options dialog box, leave the Illustrator options at their default settings and then click OK.

  9. Choose Select > Deselect (if available).

  10. Choose View > Fit All In Window.

Understanding layers

Layers are like invisible folders that help you hold and manage all of the items that make up your artwork. If you shuffle those folders, you change the stacking order of the items in your artwork. You learned about stacking order in Lesson 2.

The structure of layers in your document can be as simple or as complex as you want. When you create a new Illustrator document, all of the content you create is organized in a single layer. However, you can create new layers and sublayers (like subfolders) to organize your artwork, as you’ll learn about in this lesson.

  1. Click the L10_end.ai tab at the top of the document window to show that document.

  2. Click the Layers panel tab in the upper-right corner of the workspace, or choose Window > Layers.

    Image Note

    The figure shows the top and bottom of the Layers panel. The Layers panel in the Essentials workspace is very tall, which is why the figure shows a split (dashed line) in the panel.

    In addition to organizing content, the Layers panel gives you an easy way to select, hide, lock, and change your artwork’s appearance attributes. In the following figure, the Layers panel is showing the content for the L10_end.ai file. It may not match what you see in the file. You can refer to this figure as you progress through the lesson.

    Images
  3. Choose File > Close to close the L10_end.ai file.

Creating layers and sublayers

By default, every document begins with a single layer, named “Layer 1.” As you create artwork, you can rename and add layers and sublayers at any time. Placing objects on separate layers lets you more easily select and organize them because you can temporarily hide the content for a layer, lock the content on a layer, and more. For example, by placing type on a separate layer, you could lock the rest of the artwork in the document so you can focus on the type without affecting the rest of the artwork, or you could have several versions of an icon—one is showing while the rest are hidden.

Creating new layers

Next you’ll change the default layer name and then create new layers using different methods. The idea for this project is to organize the artwork so you can more easily work with it later. Ideally, when you’re working in Illustrator, you’ll set up layers before you begin creating or editing the artwork. In this lesson, you’ll organize artwork with layers after the artwork is created, which can be a bit more challenging. Instead of keeping all the content on a single layer, you’ll create several layers as well as sublayers to better organize the content and to make it easier to select later.

Image Tip

Know that there is no “wrong” layer structure, but as you gain more experience with layers, you’ll see what makes sense for you.

  1. With the TravelApp.ai document showing, if the Layers panel isn’t visible, click the Layers panel tab on the right side of the workspace, or choose Window > Layers.

    In the Layers panel, Layer 1 is highlighted, indicating that it is active. Anything you create or add to the document will go on the active layer.

  2. Click the disclosure triangle (Images) to the left of the Layer 1 name to show the content on the layer.

    Images

    Each object you create is listed under that layer. By default, Illustrator shows groups as <Groups>, paths as <Paths>, images as <Images>, and so on. That makes it easier to glance at the content and see what is there.

  3. Click the disclosure triangle (Images) to the left of the Layer 1 name to hide the content on that layer.

  4. In the Layers panel, double-click directly on the layer name “Layer 1” to edit it inline. Type Phone Body and then press Enter or Return.

    Images
  5. Click the Create New Layer button (Images) at the bottom of the Layers panel.

    Images

    Layers and sublayers that aren’t named are numbered in sequence. For example, the new layer is named Layer 2. When a layer or sublayer in the Layers panel contains other items, a disclosure triangle (Images) appears to the left of the layer or sublayer name. You can click the disclosure triangle to show or hide the contents. If no triangle appears, the layer has no content on it.

    Image Note

    The Layer Options dialog box has a lot of the options you’ve already worked with, including naming layers, setting Preview or Outline mode, locking layers, and showing and hiding layers. You can also deselect the Print option in the Layer Options dialog box, and any content on that layer will not print.

  6. Double-click the white layer thumbnail to the left of the layer name “Layer 2” or to the right of the name in the Layers panel to open the Layer Options dialog box. Change the name to Navigation, and notice all the other options available. Click OK.

    Images

    By default, the new layer is added above the currently selected layer in the Layers panel (Phone Body, in this case) and becomes active. Notice that the new layer has a different layer color (a light red) to the left of the layer name. This will become more important later, as you select content.

    Images

    Next you’ll create a new layer and name it in one step, using a modifier key.

  7. Option-click (macOS) or Alt-click (Windows) the Create New Layer button (Images) at the bottom of the Layers panel (circled in the following figure). In the Layer Options dialog box, change the name to Phone Content and then click OK.

    Images

Creating a sublayer

Think of sublayers as subfolders within a layer—essentially they are a layer nested within a layer. Sublayers can be useful for organizing content within a layer without grouping or ungrouping content. Next you’ll create a sublayer to put the footer content in so you can keep it together.

  1. Click the layer named “Phone Content” to select it, if it isn’t already, and then click the Create New Sublayer button (Images) at the bottom of the Layers panel.

    Images

    Image Tip

    To create a new sublayer and name it in one step, Option-click (macOS) or Alt-click (Windows) the Create New Sublayer button or choose New Sublayer from the Layers panel menu to open the Layer Options dialog box.

    A new sublayer is created on the Phone Content layer and is selected. You can think of this new sublayer as a “child” of the “parent” layer named Phone Content.

  2. Double-click the new sublayer name (Layer 4, in my case), change the name to Footer, and then press Enter or Return.

    Creating a new sublayer opens the selected layer to show existing sublayers and content.

    Images
  3. Click the disclosure triangle (Images) to the left of the Phone Content layer to hide the content of the layer.

    In a few sections, you’ll add content to the Footer sublayer.

    Images

Editing layers and objects

By rearranging the layers in the Layers panel, you can change the stacking order of objects in your artwork. On an artboard, objects in layers that are higher in the Layers panel list are in front of objects located on layers lower in the list. Within each layer there is also a stacking order applied to the objects on that layer. Layers are useful for a variety of reasons, including the ability to move objects between layers and sublayers to organize and more easily select your artwork.

Finding content in the Layers panel

When working in artwork, there may be times when you select content on the artboard and then want to locate that content in the Layers panel. This can help you determine how content is organized.

  1. Drag the left edge of the Layers panel to the left to make it wider.

    When the names of layers and objects are long enough or objects become further nested one in another, the names can become truncated—in other words, you can’t see all of them.

    Images
  2. With the Selection tool (Images), click the “Terraform Hikers” text on the artboard.

  3. Click the Locate Object button (Images) at the bottom of the Layers panel to reveal the selected content (a text group) within the Layers panel.

    Images

    Clicking the Locate Object button will reveal the content for the layer that the selected text is on in the Layers panel. You’ll see a selection indicator (Images) to the far right of the layer that the selected content is on (Phone Body), as well as a <Group> object and the individual text objects. You can see that the selected text is in a group on a layer.

    Images
  4. On the artboard, Shift-click the “$145.00” text to select it as well.

    Images

    In the Layers panel, you should also see a selection indicator (Images) to the far right of the $145.00 text object.

  5. To group the selected text, press Command+G (macOS) or Ctrl+G (Windows).

    When content is grouped, a group object (<Group>) is created that contains the grouped content.

  6. Click the disclosure triangle (Images) to the left of the selected <Group> to show the original group and the $145.00 text object that is now grouped with it.

    Images

    You can rename a <Group> by double-clicking the name in the Layers panel. Renaming a group doesn’t ungroup it, but it can make it easier to recognize what is in the group in the Layers panel.

  7. Double-click the main <Group> name and type Description. Press Return or Enter to accept the name.

    Images
  8. To collapse the group again so you hide the content, click the disclosure triangle (Images) to the left of Description.

  9. Click the disclosure triangle (Images) to the left of the Phone Body layer name to collapse the layer and hide the contents of the entire layer.

    Images

    Keeping layers, sublayers, and groups collapsed is a great way to make the Layers panel less visually cluttered. The Phone Content layer and Phone Body layer are the only layers with a disclosure triangle because they’re the only layers with content on them.

  10. Choose Select > Deselect.

Moving content between layers

Next you’ll move the artwork to the different layers to take advantage of the layers and sublayers you’ve created.

  1. In the artwork, using the Selection tool (Images), click the text “Terraform Hikers” to select that group of content.

    In the Layers panel, notice that the Phone Body layer name has the selected-art indicator (the color square); it’s circled in the figure.

    Images

    Also notice that the color of the bounding box, paths, and anchor points of the selected artwork matches the color of the layer (the small color strip [ Images ] you see to the left of the layer name in the Layers panel).

    If you want to move selected artwork from one layer to another, you can either drag the selected-art indicator to the right of each sublayer or drag the selected-art indicator to the right of the layer name. That’s what you’ll do next.

    Image Tip

    You can also press Option (macOS) or Alt (Windows) and drag the selected-art indicator to another layer to duplicate the content. Remember to release the mouse button first and then the key.

  2. Drag the selected-art indicator (the little blue box) from the far right of the Phone Body layer name straight up to the right of the target icon (Images) on the Phone Content layer.

    Images

    This action moves all of the selected artwork to the Phone Content layer. The color of the bounding box, paths, and anchor points in the artwork changes to the color of the Phone Content layer, which is green (in my case).

    Images
  3. Choose Select > Deselect.

  4. Click the disclosure triangle (Images) to the left of the Phone Body layer and the Phone Content layer to show the content for each layer.

  5. With the Selection tool (Images) selected, move the pointer above the ADD TO BAG button. Drag across the “ADD TO BAG” text and black rectangle at the bottom of the artboard to select a series of objects, making sure not to select the small white rectangle on the bottom edge of the artboard.

    Images

    You should see the blue selection indicators to the right of that content in the Layers panel. Also, notice the icons that are selected but can’t be seen on the artboard because they are behind the black rectangle at the bottom. In the next section you’ll arrange those icons so they are in front. Next you’ll select those objects in the Layers panel and move them to another layer.

    Image Note

    You didn’t need to select the artwork on the artboard to drag content from one layer to another, but it made it easier to find in the Layers panel.

  6. In the Layers panel, click one of the <Group> objects that has the selection indicator to the right of the name. To select the other two groups, Command-click (macOS) or Ctrl-click (Windows) the other two <Group> objects where you see the selected indicator to the right of the name. Drag any of the selected objects to the Footer sublayer in the Phone Content layer above it. When the Footer sublayer shows a highlight, release the mouse button.

    Images

    This is another way to move artwork between layers. Any content that is dragged to another layer or sublayer is automatically at the top of the layer or sublayer ordering. Notice that the color of the bounding box, paths, and anchor points of the selected artwork now matches the color of the Footer sublayer.

  7. Click the disclosure triangle (Images) to the left of the Phone Body and Phone Content layers to hide the layer contents.

  8. Choose Select > Deselect, and then choose File > Save.

Viewing layer content differently

In the Layers panel, you can display layers or objects individually in either Preview or Outline mode. In this section, you’ll learn how to view layers in Outline mode, which can make artwork easier to select.

  1. Choose View > Outline. This displays the artwork so that only its outlines (or paths) are visible.

    You should be able to see the menu icons that are hidden beneath the black shape. They are circled in the figure.

    Images

    Notice the eye icons (Images) in the Layers panel now. They indicate that the content on that layer is in outline mode.

  2. Choose View > Preview (or GPU Preview) to see the painted artwork.

    Images

    Sometimes you may want to view part of the artwork in Outline mode while retaining the strokes and fills for the rest of the artwork. This can be useful if you need to see all artwork in a given layer, sublayer, or group.

  3. In the Layers panel, click the disclosure triangle (Images) for the Phone Content layer to reveal the layer content. Command-click (macOS) or Ctrl-click (Windows) the eye icon (Images) to the left of the Phone Content layer name to show the content for only that layer in Outline mode.

    Images

    You should be able to see the icons near the bottom of the artboard again. Displaying a layer in Outline mode is also useful for selecting the anchor points or center points of objects.

  4. With the Selection tool (Images) selected, click one of the mobile icons to select the group of icons.

  5. Click the disclosure triangle (Images) to the left of the Footer sublayer to show the content on the sublayer.

    Images

    You should be able to find the group of icons in the Footer sublayer.

  6. Choose Object > Arrange > Bring To Front.

    Images

    The Arrange commands simply move the content up or down in the layer stack on an individual layer. The Bring To Front command only brought the icons group to the top of the Footer sublayer. If you decide to create layers and organize your content, and later need to move content in front of other content, for instance, it can be a bit more challenging to use the Arrange commands if that content is not on the same layer. Sometimes you wind up moving content from one layer to another or reordering layers altogether so some content can be in front of other content.

  7. Click the disclosure triangle (Images) to the left of the Phone Content layer to hide the layer content.

  8. Command-click (macOS) or Ctrl-click (Windows) the eye icon (Images) to the left of the Phone Content layer name to show the content for that layer in Preview mode again. You should now see the icons.

    Images
  9. Choose Select > Deselect, and then File > Save.

Reordering layers and content

In earlier lessons you learned that objects have a stacking order, depending on when and how they were created. That stacking order applies to each of the layers in the Layers panel. By creating multiple layers in your artwork, you can control how overlapping objects are displayed. Next you’ll reorder content to change the stacking order.

  1. With the Selection tool (Images) selected, on the artboard, drag across the content at the top of the artboard to select the header content.

    Images

    After attempting to select just the header content, you’ll see that the selection appears to capture other content. You can tell because the bounding box surrounding the selection covers the artboard.

  2. Click the disclosure triangle (Images) to the left of the Phone Body layer name to show the content.

    Images

    You should see the content that is selected. You need to remove a few items from the selection. There is a gradient-filled rectangle and something else.

  3. To remove the rectangle with the gradient fill from the selection, Shift-click the rectangle on the artboard. See the figure.

    Images

    There is still a shape that is the size of the artboard that is selected and needs to be deselected.

  4. In the Layers panel, Shift-click the selection indicator to the right of the bottom <Rectangle> object to remove it from the selection.

    Images

    That happened to be the right thing to deselect, in this case. If it weren’t, you could have Shift-clicked the selection indicator column again to reselect it and tried another object. Just as in the document, you can use the Shift key to add or remove items from a selection in the Layers panel. As I’m sure you’ve figured out by now, selecting the name of a layer or object in the Layers panel does not select it in the document. That’s why you Shift-clicked the selection indicator and not the name of the rectangle.

  5. Click the disclosure triangle (Images) to the left of the Phone Body layer to hide the content. To move the selected content to the Navigation layer, where it belongs, drag the selection indicator to the right of the Phone Body layer up to the Navigation layer and release.

    Images

    The selection indicator to the right of a layer means that there is selected content on that layer. It doesn’t tell you what or how much is selected, but dragging it to another layer moves only the currently selected content.

  6. With the Selection tool (Images) selected, click in a blank area, away from artwork, to deselect, if necessary. Shift-drag the image from off the left edge of the artboard into the approximate center of the artboard. Release the mouse button and then the Shift key.

    Images
  7. The image needs to be on the Phone Content layer, so with it selected, drag the selection indicator in the Layers panel up to the Phone Content layer.

    Images

    Unfortunately, the image now covers the content on the Navigation layer. Next you’ll reorder the layers so you can once again see the navigation content.

  8. Drag the Phone Content layer down below the Navigation layer. When you see a blue line below the Navigation layer, release the mouse button to move the Phone Content layer below the Navigation layer. You should now see the navigation content since it’s above the Phone Content layer content.

    Images
  9. Choose Select > Deselect.

  10. Choose File > Save.

Locking and hiding layers

In Lesson 2, you learned about locking and hiding content. When you lock and hide content using menu commands or keyboard shortcuts, you are actually setting lock, unlock, hide, and show in the Layers panel. The Layers panel lets you hide layers, sublayers, or individual objects from view. When a layer is hidden, the content on the layer is also locked and cannot be selected or printed. In this section, you’ll lock some content and hide other content to make it easier to select things.

  1. Click the image of the hiker on the artboard. Click the Locate Object button (Images) at the bottom of the Layers panel to find it in the layers. Notice the eye icon (Images) to the far left of the <Image> name.

    Images
  2. Choose Object > Hide > Selection.

    Images

    The image is hidden, and the eye for the <Image> object is gone in the Layers panel.

  3. Click where the eye icon (Images) was, to the far left of the <Image> name in the Layers panel, to show the image again.

    Images

    That is the same as choosing Object > Show > All. But in the Layers panel, you don’t have to show everything that you hide, like the command does. You can show or hide layers, sublayers, individual objects, or a combination.

  4. Option-click (macOS) or Alt-click (Windows) the eye icon (Images) to the left of the Phone Body layer to hide the other layers.

    Images

    Hiding all layers except those that you want to work with can make it easier to focus on the content at hand.

  5. Click the gradient-filled rectangle in the top part of the artboard. In the Layers panel, drag the selection indicator up to the Phone Content layer and release.

    Images

    The rectangle will disappear since it is now on a layer that is hidden.

  6. To view the artwork in Outline mode, press Command+Y (macOS) or Ctrl+Y (Windows). You should see four small circles near the center of the artboard that are meant to show navigation for an image slideshow in the app. Click to select them.

    Images
  7. Drag the selection indicator in the Layers panel up to the Phone Content layer and release. The circles disappear since they are now on a layer that is hidden.

    Images
  8. Press Command+Y (macOS) or Ctrl+Y (Windows) to exit Outline mode.

  9. Choose Show All Layers from the Layers panel menu (Images), or Option-click (macOS) or Alt-click (Windows) the eye icon (Images) to the left of the Phone Body layer, to show all layers again.

  10. Click the empty Lock column to the left of the Navigation layer to lock all of the content on that layer.

    Images
  11. Try clicking the “KICKSAPP” text at the top of the artboard and you’ll wind up selecting the gradient-filled rectangle on the layer beneath.

    Images

    Locking a layer makes it so you can’t even select the content on that layer. This can be useful if you don’t want to accidentally move content, for instance. You can also click in the Lock column for an object on a layer to lock or unlock objects on a layer.

  12. Choose Select > Deselect and then choose File > Save.

Duplicating layer content

You can also use the Layers panel as another method for duplicating layers and content. Next you’ll duplicate content on a layer and duplicate a layer.

Image Tip

You can also Option-drag (macOS) or Alt-drag (Windows) the selected-art indicator to duplicate content. You can also select the <Description> row in the Layers panel and choose Duplicate “<Description>” from the Layers panel menu to create a copy of the same content.

Image Note

The original Description group was selected because if you had selected the copy and then attempted to drag it on the artboard, you would have instead dragged the original Description group that was above it in the layer stack. It really didn’t matter which you dragged off the artboard, since they are the same.

  1. With the Phone Content layer content showing in the Layers panel, click the name “Description” to select that group in the Layers panel. Pressing Option (macOS) or Alt (Windows), drag it down until you see a line appear just below the original. Release the mouse button and then the key to duplicate it.

    Dragging with the modifier key copies the content. This is the same as selecting the content on the artboard, choosing Edit > Copy, and then choosing Edit > Paste In Place.

    Images
  2. Option-click (macOS) or Alt-click (Windows) the original group name “Description” to select the text on the artboard.

    Images
  3. Drag the selected text off the artboard to the right.

    Images

    You’ll keep a copy of the original text in case you convert the text on the artboard to outlines. Next you’ll make a copy of the Navigation layer and drag the content for the copy off the artboard. This can be a way to make a design version of the navigation off to the side.

  4. Click the Navigation layer name and drag it down to the Create New Layer button (Images) at the bottom of the Layers panel.

    Images

    This duplicates the layer, and the content is pasted in place, on top of the original Navigation layer content. Notice that the copied layer, named Navigation Copy is also locked.

  5. Click the lock icon (Images) to the left of the Navigation Copy layer name in the panel to unlock it.

    Images
  6. To select the copied content so you can move it off the artboard, click the selection indicator column to the far right of the Navigation Copy name, to select all of the layer content.

    Images
  7. On the artboard, drag the selected navigation content off the artboard to the right.

    Images

Pasting layers

To complete the app design, you’ll copy and paste the remaining pieces of artwork from another file. You can paste a layered file into another file and even keep the layers intact. In this section, you’ll also learn a few new things, including how to apply appearance attributes to layers and how to reorder layers.

  1. Choose Window > Workspace > Reset Essentials.

  2. Choose File > Open. Open the Sizes.ai file in the Lessons > Lesson10 folder on your hard disk.

  3. Choose View > Fit Artboard In Window.

  4. Click the Layers panel tab to show the panel and see the layer named “Sizes” that the content is on.

    Images
  5. Choose Select > All and then choose Edit > Copy to select and copy the content to the clipboard.

  6. Choose File > Close to close the Sizes.ai file without saving any changes. If a warning dialog box appears, click Don’t Save (macOS) or No (Windows).

  7. In the TravelApp.ai file, choose Paste Remembers Layers from the Layers panel menu (Images). A checkmark next to the option indicates that it’s selected.

    Images

    When Paste Remembers Layers is selected, artwork is pasted into the layer(s) from which it was copied, regardless of which layer is active in the Layers panel. If the option is not selected, all objects are pasted into the active layer, and the layers from the original file are not pasted in.

  8. Choose Edit > Paste to paste the content into the center of the Document window.

    Images

    The Paste Remembers Layers option causes the Sizes.ai layer to be pasted as a layer at the top of the Layers panel. Now you’ll move the newly pasted layer into the Phone Content layer.

  9. Drag the Sizes layer down on top of the Phone Content layer to move the content to the new layer. The pasted layer becomes a sublayer of the Phone Content layer.

    Images
  10. Drag the selected artwork on the artboard down into position.

    Images
  11. Choose Select > Deselect.

Applying appearance attributes to a layer

You can use the Layers panel to apply appearance attributes, such as styles, effects, and transparency to layers, groups, and objects. When an appearance attribute is applied to a layer, any object on that layer takes on that attribute. If an appearance attribute is applied only to a specific object on a layer, it affects only that object, not the entire layer. Next you’ll apply an effect to all of the artwork on one layer.

Image Note

To learn more about working with appearance attributes, see Lesson 13.

Image Note

Clicking the target icon also selects the object(s) on the artboard. You could simply select the content on the artboard to apply an effect.

  1. Click the target icon (Images) to the right of the Navigation Copy layer in the target column.

    Images

    Clicking the target icon indicates that you want to apply an effect, style, or transparency change to that layer, sublayer, group, or object. In other words, the layer, sublayer, group, or object is targeted. The content is also selected in the Document window. When the target button appears as a double-ring icon (either Images or Images), the item is targeted; a single-ring icon indicates that the item is not targeted.

  2. To apply an effect, choose Effect > (Illustrator Effects) Stylize > Drop Shadow.

  3. In the Drop Shadow dialog box, select Preview and change the following options:

    • Mode: Multiply (default)

    • Opacity: 50%

    • X Offset: 0 px

    • Y Offset: 10 px

    • Blur: 3 px

    • Color: Selected

    Images
  4. Click OK.

    If you look in the Layers panel, the target icon (Images) for the Navigation Copy layer is now shaded, indicating that the layer has at least one appearance attribute (the drop shadow added) applied to it. All content on the layer has the drop shadow applied.

  5. Choose Select > Deselect.

Creating a clipping mask

The Layers panel lets you create clipping masks to control whether artwork on a layer (or in a group) is hidden or revealed. A clipping mask is an object or group of objects (with its shape) that masks artwork below it in the same layer or sublayer so that only artwork within the shape is visible. In Lesson 15, you’ll learn about creating clipping masks that are independent of the Layers panel. Now you’ll create a clipping mask from layer content.

  1. Click the disclosure triangle (Images) to the left of the Phone Body layer to show its contents, and click the disclosure triangle (Images) to the left of the Phone Content layer to hide its contents.

    The <Rectangle> object on the Phone Body layer will be used as the mask. In the Layers panel, a masking object must be above the objects it masks. In the case of a layer mask, the masking object must be the topmost object on a layer. You can create a clipping mask for an entire layer, a sublayer, or a group of objects. You want to mask all of the content in the Phone Content and Navigation layers, so the clipping object needs to be at the top of a single layer that contains the Phone Content and Navigation content.

  2. Click the lock icon (Images) to the left of the Navigation layer name in the Layers panel to unlock it.

  3. Click the Phone Content layer and Shift-click the Navigation layer name in the Layers panel. See the first part of the following figure.

  4. Choose Collect In New Layer from the Layers panel menu to create a new layer and put the Phone Content and Navigation layers in it as sublayers.

    Images

    You probably noticed these other options in the Layers panel menu: Merge Selected and Flatten Artwork. Merge Selected would have merged the content of the two layers into the top layer (Navigation). Flatten Artwork would have collected all of the artwork into a single layer that it chooses.

  5. Double-click the new layer name directly (I see “Layer 7”) and name it Phone. Press Return or Enter to accept the change.

  6. Drag the object named <Rectangle> from the Phone Body layer onto the new Phone layer to move it to that layer.

    Images

    This path will be used as the clipping mask for all of the content on the layer.

  7. Click the disclosure triangle (Images) to the left of the Phone layer to show the layer content.

    Image Tip

    To release the clipping mask, you can select the Phone layer again and click the Make/Release Clipping Mask button (Images).

  8. Select the Phone layer to highlight it in the Layers panel. Click the Make/Release Clipping Mask button (Images) at the bottom of the Layers panel.

    Images

    The name of the <Rectangle> content is underlined to indicate that it is the masking shape. On the artboard, the <Rectangle> content has hidden the parts of the phone content that extended outside of the shape.

    Images

    Image Note

    For a complete list of shortcuts that you can use with the Layers panel, see “Keyboard shortcuts” in Illustrator Help (Help > Illustrator Help).

    Now that the artwork is complete, you may want to combine all the layers into a single layer and then delete the empty layers. This is called flattening artwork. Delivering finished artwork in a single-layer file can prevent accidents, such as hiding layers or omitting parts of the artwork during printing. To flatten specific layers without deleting hidden layers, you can select the layers you want to flatten and then choose Merge Selected from the Layers panel menu (Images). In this case, make sure to select the layer with the mask (Phone) last, so the layer mask is intact.

  9. Choose File > Save and then choose File > Close.

Review questions

1. Name at least two benefits of using layers when creating artwork.

2. Describe how to reorder layers in a file.

3. What is the purpose of changing the color for a layer?

4. What happens if you paste a layered file into another file? Why is the Paste Remembers Layers option useful?

5. How do you create a layer clipping mask?

Review answers

1. The benefits of using layers when creating artwork include organizing content, selecting content more easily, protecting artwork that you don’t want to change, hiding artwork that you aren’t working with so that it’s not distracting, controlling what prints, and applying effects to all of the content on a layer.

2. You reorder layers by selecting a layer name in the Layers panel and dragging the layer to its new location. The order of layers in the Layers panel controls the document’s layer order—topmost in the panel is frontmost in the artwork.

3. The color for a layer controls how selected anchor points and direction lines are displayed on a layer and helps you identify which layer an object resides on in your document.

4. The paste commands paste layered files or objects copied from different layers into the active layer by default. The Paste Remembers Layers option keeps the original layers intact when the objects are pasted.

5. Create a clipping mask on a layer by selecting the layer and clicking the Make/Release Clipping Mask button (Images) in the Layers panel. The topmost object in the layer becomes the clipping mask.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset