Sub topic 2
Tour of the Layers panel
This chapter assumes you can open a document, find panels through the Window menu, and use the Move and selection tools. It also assumes you know the difference between pixels and vector shapes at a general level. The previous chapter explained how a stack of layers composites from bottom to top. Here you learn the panel that shows and controls that stack.
Opening the panel and reading its layout
Choose Window > Layers, or press F7, to show the panel. If you cannot find it, check that it has not been collapsed into an icon strip or closed. The panel has four regions.
- The top bar holds the filter controls, the blend mode menu, the Opacity field, and the Fill field.
- Beside those fields, the lock icons protect parts of the selected layer.
- The middle is the layer list. The topmost row is the front of the stack, and the Background layer, if there is one, sits at the bottom.
- The bottom bar holds buttons for common actions: link, layer styles, mask, new fill or adjustment layer, new group, new layer, and delete.
The panel is a view of the stack, not the stack itself. Every row you see maps to one item in the document, so rearranging rows rearranges the image.
Anatomy of a layer row
Each row in the list shows several pieces of information at once.
- Eye icon. Toggles visibility. A hidden layer stays in the file but is skipped when the image composites.
- Thumbnail. A small preview of the layer's content. Its look tells you the layer type, as the next chapter describes.
- Name. The label you can edit. Double-click it to rename.
- Mask thumbnail. If the layer has a mask, a second thumbnail appears to the right of the first. The link icon between them shows whether the layer and mask move together.
- Lock icons. A small padlock at the right edge shows that some protection is on.
- Effects list. Layer styles appear as indented rows under the layer. Each has its own eye icon.
- Color label. If you assigned one, the whole row, or the eye column, is tinted.
Groups look different. A group row has a folder icon and a small arrow. Click the arrow to expand or collapse the contents. Collapsing groups is the fastest way to make a long panel readable.
The controls at the top
Blend mode, Opacity, and Fill
The blend mode menu decides how the selected layer combines with what lies beneath it. Normal simply covers the layers below. Other modes, such as Multiply, mix the colors mathematically. Opacity and Fill both control transparency, on a scale of 0 to 100 percent.
The difference matters when a layer has effects. Opacity fades everything on the layer, including layer styles such as a drop shadow. Fill fades only the layer's own pixels and leaves the styles at full strength. Setting Fill to 0 on a text layer with a stroke, for example, leaves only the stroke visible.
You can also type digits while a layer is selected and a non-brush tool, such as Move, is active. Pressing 5 sets Opacity to 50 percent. This shortcut changes how the layer composites, so check the value if a layer suddenly looks faded.
Lock icons
The lock row offers five protections. Click an icon to turn it on for the selected layer. Click it again to turn it off.
| Lock | What it prevents |
|---|---|
| Lock transparent pixels | Painting on transparent areas. You can edit only pixels that already exist. |
| Lock image pixels | Any painting or pixel edit. You can still move the layer. |
| Lock position | Moving the layer. You can still paint on it. |
| Prevent auto-nesting into and out of artboards | Dragging the layer into or out of an artboard by accident. |
| Lock all | Painting, moving, and deleting. A solid padlock appears on the row. |
A partial lock shows a hollow padlock. A full lock shows a solid one. The Background layer shows a solid padlock by default, which is why you cannot move it until you convert it. The Background layer is covered in a later chapter.
The filter bar
At the top of the panel, a filter menu limits which rows you see. You can filter by kind (pixel, adjustment, type, shape, smart object), by name, by effect, by blend mode, by attribute, or by color label. Switch the filter on with the toggle at the far right of the bar.
Filtering only changes what the panel displays. It does not change the stack or the image. Layers hidden by the filter still composite, so do not assume a layer is gone because it vanished from the list. Turn the filter off if the panel looks emptier than you expect.
The bottom bar
Each button at the bottom of the panel is a shortcut to an operation that later chapters cover in detail.
| Button | Action |
|---|---|
| Link | Links the selected layers so they move together |
| fx | Opens the layer style menu |
| Add layer mask | Adds a mask to the selected layer |
| New fill or adjustment layer | Opens a menu of non-destructive corrections |
| Create a new group | Makes an empty group, or wraps selected layers if you hold a modifier |
| Create a new layer | Adds an empty pixel layer above the selected one |
| Delete layer | Removes the selected layers |
New layers appear directly above the currently selected layer. Hold Alt (Windows) or Option (Mac) while clicking the New Layer button to open a dialog where you can name the layer first. Hold Ctrl (Windows) or Command (Mac) while clicking to add the new layer below the selected one.
The panel menu and display options
The menu in the top-right corner of the panel (four horizontal lines) holds actions that are not on the bottom bar, such as Duplicate Layer, Merge Layers, and Panel Options. Panel Options controls thumbnail size and whether thumbnails show the whole document or only the layer's content. Smaller thumbnails fit more rows on screen. Larger ones make similar layers easier to tell apart.
You can also right-click a row for a context menu. Right-clicking the thumbnail and the name can give different menus, so right-click the name for layer-level actions.
Common errors
- Painting on the wrong layer. The highlighted row is the active layer. Check it before you paint, since the canvas does not tell you.
- A tool that appears to do nothing. The cause is often a lock, a hidden layer, or a layer at 0 percent Opacity or Fill.
- A missing layer. Check the filter bar and collapsed groups before assuming it was deleted.
- Clicking the thumbnail instead of the name. Clicking a mask thumbnail targets the mask, so painting then edits the mask and not the layer pixels.
Reading the panel with a script
The panel's contents are also available through the document object. This script lists each top-level layer, from the top of the panel down, with its visibility and opacity. It runs in Photoshop as a .jsx file.
// ExtendScript (.jsx): print the top-level layers in Layers panel order
var doc = app.activeDocument;
var lines = [];
for (var i = 0; i < doc.layers.length; i++) {
var l = doc.layers[i];
lines.push(i + ": " + l.name + " | visible=" + l.visible + " | opacity=" + Math.round(l.opacity));
}
alert(lines.join("\n"));Index 0 is the top row of the panel, which matches the stacking order you read on screen.
Exercise
A text layer has a drop shadow. You set its Fill to 0 percent, and the text disappears but the shadow stays. Then you set Opacity to 0 percent. What happens, and why?
Show answer
At Fill 0 only the layer's own pixels are faded, so the shadow style still shows. Opacity fades the whole layer including its styles, so at Opacity 0 both the text and the shadow disappear.
Exercise
You select a layer and try to paint on it, but nothing happens. The layer is visible, and Opacity and Fill are both 100 percent. Name two places in the panel to check next.
Show answer
Check the lock row for Lock image pixels or Lock all, and check whether the mask thumbnail is the active target or whether the layer is hidden by a selection or a group lock. Another valid answer is checking that the active row is the layer you meant to select.