Chapter 6
IN THIS CHAPTER
Understanding why and how to use layers
Working from a template layer
Defining layer properties
Organizing layers
Styling with layers
Expediting export with layers
Layers help organize large projects in Illustrator. In this chapter, I explain how to add layers, organize objects with layers, and take advantage of other unique features available in layers.
Before you starting generating additional layers in a document, a caveat: You might not need layers to organize your project. Chapter 5 demonstrates how grouping can organize many projects, how you can select cohorts of similar objects, and how to move objects in front of and behind each other. All that without layers.
If you’re coming to Illustrator from a Photoshop background, welcome! Note that many of the techniques I just listed, such as making selections and moving objects in front of and behind each other, require layers when working in Photoshop. But accomplishing those tasks is more easily accessible in Illustrator without layers.
Why start with a caveat that notes when you don't necessarily need layers? Organizing objects in layers adds a layer (sorry) of complexity to a project that you might not need. And ruling out when you don’t need layers helps zero in on when and why you do need to organize objects into layers.
So, when do you need layers? You should organize your Illustrator document into layers when you
One of the most widely used and easiest-to-access features of Illustrator layers is the capability to create a template layer. You might start an illustration project with a sketch or photo, and then use Illustrator tools to draw on top of that original artwork. After the project is finalized, the template layer will not be printed or included in screen output.
The following steps create a template layer:
If the Layers panel is not displayed, choose Window ⇒ Layers to display it and examine the options for the template layer.
The template layer name is displayed in italics to indicate that it's a template. Template layers do not print. The icon in the first column in the Layers panel, shown in Figure 6-2, toggles between displaying and hiding the layer.
The icon in the second column toggles between locking and unlocking the template layer. Normally, you want the template layer locked so you don’t have to worry about corrupting the size and location while you work in other layers. But if you need to resize or move a placed file within a layer, you can temporarily unlock the layer.
To rename the layer, or to change the percentage of dimming, double-click the template layer icon to open the Layer options dialog, change the settings, and click OK.
Toggle the template display to hidden to see your project as it emerges.
If your document is destined for print output, you don’t need to hide the template layer before printing because it's hidden by default. If your document is being handed off for screen design, you need to hide the display of the template layer before exporting to PNG format.
See Chapter 2 for advice on printing in Illustrator. See Chapter 17 for advice on exporting raster artwork for screens, or Chapter 18 for saving artwork as web-friendly vector images.
There’s no need to teach you how to create an initial layer. When you create a document in Illustrator, an initial layer is generated automatically. But if you're going to organize and arrange objects in layers (plural), you will need to create additional layers.
You can create that set of additional layers before you start creating an illustration. Or you can add layers at any stage of the process.
An effective way to understand how to use layers to organize and arrange objects is to dive in and experiment. Try that, along with me, in the following steps:
Create a new document in Illustrator, using any preset.
To keep things simple, hide the artboard if it's visible (choose View ⇒ Hide Artboards).
If you want to keep this file handy for future reference, save the file. For help creating a document and saving it, see Chapter 2.
Using the techniques in Step 3, add two squares in the Squares layer, and two triangles in the Triangles layer.
Your document and Layers panel should look something like the one in Figure 6-8.
There’s a lot more to layers. But the quick set of steps you just worked through demonstrate the most essential features of layers. Following is a summary of the essential things you need to know about layers:
You can move content from one layer to another. This feature can be useful when you want to regroup content in layers so you can more effectively reorder the layers, or if you want to apply styling to a layer and include an object in that layer.
In complex designs with many objects, it’s difficult to determine on which layer an object is located.
To locate an object in the Layers panel, click the object on the Illustrator canvas, and then choose Locate Object on the Layers panel menu. The layer on which the object is located and the object itself are selected in the Layers panel, as indicated by a little red box next to the object in the panel.
In Figure 6-10, I’m locating the purple square in the Layers panel, so I can easily move it within the layer or into another layer.
To move objects within a layer (and, in the process, change their stacking order), click and drag the object icon in the Layers panel.
Similarly, to move an object from one layer to another, drag it from the initial layer to the target layer. In Figure 6-11, I’m dragging the purple square from the Squares layer to the Triangles layer, and placing it on top of the existing objects in the Triangles layer.
You can make wholesale changes to the appearance of all objects in a layer. Among those changes, you can
The first step in changing the appearance of all objects in a layer is to make the layer active by clicking its target icon, a little circle in the Layers panel. When you do, little boxes filled with the color associated with the layer appear next to objects in the Layers panel, as shown in Figure 6-12.
Note that you can not only target an entire layer but also target objects within layers, using the target icons associated with those objects. All the changes you can make to the appearance of all objects in an entire layer can be made also to selected objects within a layer.
To target more than one layer, or to target multiple objects within a layer, hold down the Shift key as you click the target icons associated with those layers or objects.
With a layer targeted, you can apply styling, such as effects or transparency, to all the objects in the targeted layer. In Figure 6-13, I applied Pucker & Bloat and transparency to all the objects in the top (Triangles) layer in the document.
See Chapter 14 to learn to define and apply effects, and Chapter 12 for a step-by-step guide to applying transparency.
To help get your head around how layers are used to organize projects, let me share a couple real-life examples.
In Figure 6-14, the poster has four layers, one for the borders, one for the type (targeted in the figure), one for the string (decorative) elements, and one for the dark background. Any combination of these layers can be hidden, or locked so the designer can focus on type, decoration, borders, or background.
In Figure 6-15, only one of the five layers (the rug) is unlocked, so it can be edited without fear of distorting objects on other layers.
Those two examples demonstrate common ways that layers are used. But different illustrators have come up with all kinds of ways to use layers.
Some veteran designers eschew using artboards to combine similar graphics in a single file and use layers instead. Layers are sometimes part of the workflow in preparing documents for commercial printing. In Chapter 2, I share advice from a printing expert on how to create separate layers for distinct spot colors in CMYK and Pantone print projects. I sometimes bring illustrations with multiple layers into Photoshop, where I convert those layers into animated GIFs — a low-fi, lean technique for creating animated objects for web and social media ads.
In short, layers are a tool that can be applied to solve all kinds of workflow and design challenges.
3.144.28.50