Sub topic 6
Selecting one or many layers
This chapter assumes you can open a document, find the Layers panel, and use the Move tool. It covers how Photoshop decides which layer an action applies to, how to select several layers at once, and the errors that come from having the wrong layer active.
Active layer versus selected layers
Photoshop tracks two related things.
- The active layer is the single layer that edits such as painting, filters, and adjustments apply to. It is the layer shown highlighted in the Layers panel, and it is the one
doc.activeLayerreturns in a script. - The selected layers are the set of highlighted layers. Commands such as Move, Align, Group, Link, and Merge act on the whole set.
With one layer highlighted, the active layer and the selection are the same. With several highlighted, painting and filters still affect only one layer, while layer-level commands affect all of them. Many "I painted on the wrong layer" problems start here. Check the Layers panel before you paint.
Selecting layers in the Layers panel
Click a layer's name or thumbnail to select it. Do not click the eye icon, which only toggles visibility. Do not click the lock icon, which changes protection.
| Goal | Windows | macOS |
|---|---|---|
| Select one layer | Click | Click |
| Add a contiguous range | Click first layer, Shift+click last | Click first layer, Shift+click last |
| Add or remove a single layer | Ctrl+click | Cmd+click |
| Select all layers | Alt+Ctrl+A | Option+Cmd+A |
| Deselect all layers | Click empty panel space below the stack | Click empty panel space below the stack |
| Select next layer up or down | Alt+] or Alt+[ | Option+] or Option+[ |
Two details matter here.
- Shift+click selects every layer between the two clicks, including layers inside expanded groups. Collapse groups first if you want only the top-level layers in the range.
- Ctrl+click or Cmd+click on the layer name toggles that layer in the selection. On the thumbnail, the same shortcut loads the layer's pixels as a selection marquee. If a marching-ants outline appears when you meant to select a layer, you clicked the thumbnail.
Selecting a group's folder row selects the group as one item. Its contents are not individually selected, but any move or transform applies to everything inside.
Selecting from the canvas with the Move tool
You can also pick layers by clicking the image itself. The Move tool (V) has two ways of doing this, set by the Auto-Select checkbox in the options bar.
- With Auto-Select off, dragging on the canvas moves whatever is currently selected, wherever you click.
- With Auto-Select set to Layer, clicking a visible pixel selects the topmost layer that has a non-transparent pixel at that point.
- With Auto-Select set to Group, clicking selects the whole group that contains the pixel.
You can switch Auto-Select off temporarily. With any tool, hold Ctrl (Cmd on macOS) to get the Move tool with Auto-Select behavior inverted. This is useful when Auto-Select is off but you want to grab one layer from the canvas.
For overlapping content, right-click (or Ctrl+click on a Mac with a single-button mouse) with the Move tool active. Photoshop shows a list of all layers under the cursor, including those hidden behind others, and you choose from it.
Auto-Select has limits.
- It ignores hidden layers and fully transparent areas.
- A soft edge with low opacity can still count as a hit, so a faint shadow may "steal" your click.
- It does not pick up layers that are locked against moves in the same way as unlocked ones. Locked layers can be selected but not moved.
- Clicking a layer with a layer mask can select the mask rather than the pixels. Check which thumbnail has the highlight border.
Selecting by filter and by type
In a large file, scrolling to find layers is slow. The filter bar at the top of the Layers panel narrows the list by kind (pixel, adjustment, type, shape, smart object), name, effect, mode, attribute, or color label.
After filtering, Ctrl+A or Cmd+A inside the panel is not the shortcut for this. Use Select > All Layers (Alt+Ctrl+A or Option+Cmd+A) on the visible, filtered set. Then you can apply an action to everything that matches, such as every type layer. Turn the filter off with the toggle at the right of the filter bar when you finish. A forgotten filter makes layers look like they have disappeared.
Other useful commands in the Select menu:
- Select > Similar Layers adds layers of the same kind as the current selection.
- Select > Isolate Layers applies the filter bar to show only the selected layers.
- Select > Deselect Layers clears the selection without changing visibility.
What a multi-layer selection lets you do
A selection of two or more layers supports these actions.
- Move them together with the Move tool or the arrow keys.
- Transform them as a unit with Edit > Free Transform. All selected layers scale or rotate around one shared bounding box.
- Align or distribute them using the options bar when the Move tool is active. Distribute needs three or more layers.
- Group them with Ctrl+G or Cmd+G.
- Link, merge, or delete them.
- Change their opacity or blend mode in one step. Changes to the controls in the panel apply to each selected layer.
Some actions are not available for multiple layers. Painting, filters, and most adjustments need one active layer. If a filter is grayed out, you may have several layers selected or the active layer may be a type of layer that must be rasterized first.
Selection versus linking
Selecting several layers is temporary. When you click elsewhere, the set is gone. Linking (covered in a later chapter) stores a persistent relationship. For one-time moves, a multi-selection is enough. Link only when layers must always travel together.
A worked example
Suppose a poster has layers named Title, Subtitle, Date, and Photo. You want the three text layers centered on one axis.
- Click
Titlein the Layers panel. - Ctrl+click or Cmd+click
Subtitle, thenDate. Do not includePhoto. - Choose the Move tool and click Align horizontal centers in the options bar.
The three layers line up on a shared center. Because they were selected and not linked, Photo was unaffected, and clicking another layer releases the set.
Selecting layers with a script
In ExtendScript, a script works on the active layer. You choose it by assigning it, or by indexing into the collection of layers.
// ExtendScript (.jsx): make a named layer active, then fade it
var doc = app.activeDocument;
doc.activeLayer = doc.layers.getByName("Subtitle");
doc.activeLayer.opacity = 70;getByName throws an error if no layer has that name, and it searches only the top level of the stack, not layers inside groups. Names that repeat make scripts unreliable, which is one reason a naming convention helps.
Common errors
- Painting on the wrong layer. Check which row is highlighted before using a brush.
- Moving the wrong thing. With Auto-Select on, a click on a transparent-looking soft edge can grab a different layer. Turn it off for precision work.
- Loading a selection by accident. Ctrl+click or Cmd+click on a thumbnail makes a marquee. Press Ctrl+D or Cmd+D to remove it.
- Missing layers. A filter bar setting hides layers. Reset it before assuming a layer was deleted.
- Locked layers. You can select a locked layer, but the lock stops the edit. See the later chapter on locking.
Exercise
You have Logo, Tagline, and Background Texture selected, and you try to apply Gaussian Blur. The filter is unavailable. Why, and what do you do?
Show answer
A filter applies to the single active layer, and a multi-layer selection or a non-pixel layer (such as a type layer) blocks it. Click only the layer you want to blur, and rasterize it or convert it to a Smart Object first if it is a type or shape layer.
Exercise
You Ctrl+click (or Cmd+click) a layer in the panel and a marching-ants selection appears around its content, but you wanted to add the layer to your layer selection. What went wrong, and how do you undo it?
Show answer
You clicked the layer's thumbnail, which loads its pixels as a selection. Press Ctrl+D (Cmd+D) to deselect, then Ctrl+click or Cmd+click the layer's name instead.