Scissor

Layers, groups and masks

The Layers panel is the map of a document: every layer, group and object in one list, stacked in the order they sit on the page. Use it to show and hide, lock, rename, reorder and select, and to see at a glance which layer any object lives on.

Shortcuts below are written in their macOS form. On Windows and Linux, read ⌘ as Ctrl, ⌥ as Alt and ⇧ as Shift.

The Layers panel

Open it from Window › Layers (F7). The list holds your layers at the top level, with the contents of each layer nested beneath it: groups, paths, type, images and pixel layers, drawn as a tree you can open and close. A container (a layer or a group) carries a small triangle at the left of its row; click it to fold the container away or open it up. Deep documents stay readable because you can collapse the parts you are not working on.

Two buttons sit at the foot of the panel. Create New Layer adds an empty layer just above the one that is currently active and makes the new one active. Delete Selection removes whatever is selected; a document always keeps at least one layer, so the last remaining layer cannot be deleted this way. To rename any layer, group or object, double-click its name in the list, type, and press Enter. Naming the parts of a busy document is the quickest way to keep it navigable.

What each row shows

Reading a row left to right:

PartWhat it does
EyeShows or hides that layer, group or object. A row with the eye off is not drawn and not printed or exported.
LockLocks or unlocks the row. A locked object cannot be selected or edited on the canvas.
Colour chipOn layer rows only: the layer's colour label, used to tint that layer's selection marks and highlights.
TriangleOn containers only: opens or closes the layer or group to reveal what is inside.
Kind iconMarks groups and clip groups (a clip group is drawn with a dashed outline).
NameThe name, or a placeholder in angle brackets such as <Path> or <Group> when a thing is unnamed. Double-click to rename.
Selection squareAt the right edge: a small square in the layer's colour that appears on any row holding part of the current selection.

Layers and groups

Layers are the top-level bins of a document. They exist to keep unrelated parts of the artwork apart: a background on one layer, the main drawing on another, labels on a third. Because a layer sits at the root of the tree, hiding, locking or reordering it moves everything it holds in one step.

A group is a smaller container that lives inside a layer (or inside another group) and travels with the artwork. Grouping is how you tie the parts of one thing together, the pieces of a logo or an icon, so they move, scale and stack as a unit. Groups open and close in the panel with their own triangle, exactly as layers do.

Layers and groups behave alike in one important way: each can be shown or hidden, locked or unlocked, and each can carry its own opacity and blend mode that apply to everything inside it. The difference is one of role. Layers organise the whole document; groups bind individual objects.

Grouping and ungrouping

Select two or more objects and choose Object › Group (⌘G) to collect them into a group. Object › Ungroup (⇧⌘G) takes the objects of a selected group back out again. Groups can be nested, so a group of groups is fine; each ⇧⌘G peels off one level. Reach for a group whenever you find yourself selecting the same handful of objects over and over.

Stacking order: front and back

Objects are drawn back to front, so an object nearer the front covers the ones behind it where they overlap. The panel shows this order directly: the topmost row is the frontmost object, and the bottom row is the one furthest back. Reordering an object changes what covers what.

Move a selection through the stack with Object › Arrange:

CommandShortcutEffect
Bring to Front⇧⌘]All the way to the front of its layer.
Bring Forward⌘]One step towards the front.
Send Backward⌘[One step towards the back.
Send to Back⇧⌘[All the way to the back of its layer.

Use these when a shape you need is hidden behind another, or when a background has ended up on top of the drawing. To work through objects that sit one on top of another, Select › Next Object Above (⌥⌘]) and Next Object Below (⌥⌘[) step the selection up and down the stack, which is handy for reaching something buried under other artwork.

Showing and hiding

Click the eye on any row to hide that layer, group or object; click again to bring it back. A hidden row takes no part in drawing, printing or export, so hiding is the safe way to get something out of the way without deleting it. Use it to compare two versions of a detail, or to clear a crowded canvas down to the part you are working on.

The menu offers the same for the current selection: Object › Hide › Selection (⌘3) hides what is selected, and Object › Show All (⌥⌘3) reveals everything that was hidden.

Locking

Click the lock on a row to lock it. A locked object stays visible but cannot be selected or changed on the canvas, so it is out of harm's way while you work around it. Locking a layer protects everything on it at once. Lock the background while you draw over it, or lock a finished element so a stray drag cannot move it.

From the menu, Object › Lock › Selection (⌘2) locks what is selected, and Object › Unlock All (⌥⌘2) frees everything again. Locking a selected object also drops it from the selection, since a locked thing is no longer something you can act on.

Selecting and the active layer

Click an object's row in the panel to select that object on the canvas. Hold ⇧, ⌘ or Ctrl while you click to add another object to the selection, so you can build up a selection from the list without hunting for small shapes on the page.

Clicking a layer row does something different: it makes that layer the active layer, marked with a coloured bar down its left edge. New artwork you draw, place or paste is added to the active layer, so clicking a layer before you begin decides where that work lands. Creating a new layer makes it active straight away.

The selection square at the right of each row ties the panel to the canvas. It appears, in the layer's colour, on every row that holds part of the current selection, and it is filled on the exact objects that are selected. Because the mark travels up the tree, a glance down the list shows both what is selected and which layers and groups those objects sit in.

Colour labels

Every layer is given a colour from a fixed sequence (light blue, red, green, blue, yellow and so on, twelve in all, cycling as you add more layers). That colour is the layer's label. It shows as the chip beside the layer's name, and it tints the selection marks in the panel along with the selection highlights and bounding box drawn on the canvas for objects on that layer. The point is quick identification: when you select something and its box comes up green, you know at once it belongs to the green layer. Spreading a document across a few well-named, differently coloured layers makes it far easier to keep track of where everything is.

Clipping and opacity masks

A layer or a group can carry its own opacity and blend mode, both set in the Transparency panel (Window › Transparency, ⇧⌘F10). The same panel holds Isolate Blending, which keeps a group's blend modes mixing only with each other rather than with what lies below, and Knockout Group, where each object in the group hides the ones behind it instead of showing through them. Masks go a step further and let one object control where, or how strongly, other artwork shows.

Clipping masks

A clipping mask crops artwork to a shape. Select two or more objects and choose Object › Clipping Mask › Make (⌘7). The topmost selected object becomes the clipping path, and everything below it is shown only inside that shape; the rest is clipped away. The result is a clip group, drawn in the panel with a dashed icon. Release (⌥⌘7) undoes it and gives the objects back. Reach for this to crop a photograph or a busy pattern to a circle, a letter, or any outline you draw over the top.

Opacity masks

An opacity mask fades artwork according to the lightness of another object. Select two or more objects and choose Object › Clipping Mask › Make Opacity Mask, or use Make Mask in the Transparency panel. The topmost object becomes the mask: where it is light the artwork below shows in full, where it is dark the artwork fades to nothing, with the greys in between giving partial transparency. Release Opacity Mask takes it apart again. Use a white-to-black gradient as the mask to fade a picture out to one edge, or to build the soft vignettes and blends that a single flat opacity value cannot give.

Organising a document

A little structure early saves a lot of hunting later. A few habits that pay off:

One layer per concern
Keep the background, the main artwork and the type on separate, named layers. You can then hide, lock or reorder a whole part of the drawing in a single click.
Lock what you are not touching
Lock the layers around the one you are working on so a stray click or drag cannot disturb them, and unlock them again with ⌥⌘2 when you need to.
Group the things that move together
Bind the parts of a single element into a group so it behaves as one object, and reserve layers for the larger divisions of the document.
Set the active layer before you draw
Click the layer you want to add to first, so new artwork lands in the right place rather than on top of whatever was there.
Let the colours guide you
Lean on the layer colours: when a selection's highlight matches a layer's chip, you know exactly where that object lives without opening a thing.