Sub topic 12
Grouping layers
Groups let you collect layers into one folder in the Layers panel. This chapter assumes you can open a document, find the Layers panel, select layers, and reorder them. It covers creating groups, moving layers in and out, how groups behave when you move or hide them, and the mistakes that cause trouble in larger files.
What a group is
A layer group is a container. It holds layers, and it can hold other groups. In the Layers panel it appears as a folder icon with a disclosure arrow. Click the arrow to expand or collapse it.
A group does three jobs:
- Organization. A collapsed group turns twenty layers into one row.
- Shared control. Visibility, opacity, blend mode, and a layer mask applied to the group affect everything inside it.
- Scope. A group limits where a blend mode or adjustment layer takes effect, as the Pass Through section below explains.
A group holds no pixels of its own. Deleting a group deletes its contents, and ungrouping releases the contents back into the stack.
Creating a group
There are several ways to make a group. They differ in whether the group starts empty or already holds layers.
| Goal | Action |
|---|---|
| Empty group | Click the folder icon at the bottom of the Layers panel. |
| Group the selected layers | Select the layers, then press Ctrl+G (Windows) or Cmd+G (macOS). |
| Empty group with options | Choose Layer > New > Group, or Alt-click (Option-click) the folder icon, to set a name, color, mode, and opacity first. |
| Group from the panel menu | Choose New Group from Layers from the Layers panel menu. |
| Remove a group, keep contents | Select the group and press Shift+Ctrl+G (Shift+Cmd+G), or choose Layer > Ungroup Layers. |
Menu names and shortcuts can differ slightly between Photoshop versions. If a shortcut does nothing, look under the Layer menu.
When you group selected layers, the new group takes the position of the topmost selected layer. The layers keep their relative order inside it.
Putting layers into a group
You can add layers to an existing group in two ways.
- Drag and drop. Drag a layer onto the group row. A highlighted outline around the folder means the layer will go inside. A thin line between rows means it will land beside the group instead.
- Drag into an expanded group. With the group expanded, drop the layer between two of its children.
To take a layer out, drag it above or below the group's row, or to a spot outside the group's indented area. Indentation in the panel shows membership. If a layer is not indented under a folder, it is not in that group.
A new layer created while a group or a layer inside it is selected lands inside that group. This is useful when you build inside one group. It surprises people who expected the layer at the top level.
Selecting and moving groups
Clicking a group row selects the group as a whole. With the Move tool, you can move all its contents at once. Two behaviors are worth knowing:
- Moving a group moves every layer inside it, including nested ones, by the same offset.
- If the Move tool's Auto-Select option is set to Layer, clicking the canvas picks a layer inside the group. If it is set to Group, clicking picks the whole group. Set it to match what you are doing, because the wrong setting is a common cause of moving a single layer by accident.
Visibility, locking, and opacity on a group
The eye icon on a group row hides or shows everything inside. The child layers keep their own eye settings. Hiding a group does not change them, so showing the group again restores the previous state.
Locks work in a similar way. Locking a group protects its contents from the lock types you choose. Opacity on a group scales the combined result of its children. A group at 50% shows the finished stack of its layers at half strength, which is not the same as setting each child to 50%. Where children overlap, a group at 50% looks more even.
Pass Through and group blend modes
A new group uses the blend mode Pass Through. Pass Through means the group does not isolate its contents. Blend modes and adjustment layers inside it still act on everything beneath the group, as if the layers were not grouped.
Any other blend mode, such as Normal or Multiply, makes Photoshop composite the group's contents together first. It then blends that result with the layers below as a single flattened item. Adjustment layers inside such a group affect only the layers in the group.
Use this on purpose. To limit a Curves adjustment to one set of layers without clipping it, put the adjustment inside a Normal-mode group with those layers. To let an effect reach the whole image, leave the group on Pass Through.
Groups and masks
You can add a layer mask to a group. The mask hides or reveals the combined result of the group, so one mask controls many layers. This works well for fading out a set of related elements. It fits better than painting the same mask on each layer.
A group can also be the base of a clipping mask in versions that support it. That is covered in the clipping chapter.
A working naming and grouping habit
Groups pay off only when they stay readable. A pattern that holds up in practice:
- Name every group by its purpose, such as "Lighting", "Text", or "Background elements", not "Group 1".
- Keep related layers together, then order groups the same way you think about the image, with top-level groups from foreground to background.
- Collapse groups you are not editing.
- Use color labels on group rows to mark types of content, such as red for work in progress.
Photoshop starts the name "Group 1", and the default name carries no meaning when you return to the file in a month.
Common errors
- Group effects disappear. The group is set to Normal instead of Pass Through, or the reverse. Check the blend mode.
- A layer will not move out of a group. The layer or the group may be locked. Check the lock icons.
- You moved one layer, not the whole group. The Move tool is in Layer mode. Select the group row, or switch Auto-Select to Group.
- A layer is hiding under a collapsed group. Expand the group and check the eye icons. A visible group can still contain hidden layers.
- Deleting a group lost work. Delete removes the contents. Use Ungroup if you want to keep the layers.
Doing it with a script
Photoshop's scripting interface treats a group as a LayerSet. This ExtendScript (.jsx) file creates a layer and a group, names both, and moves the layer inside.
// ExtendScript (.jsx): create a named layer and a group, then put the layer inside the group
var doc = app.activeDocument;
var layer = doc.artLayers.add();
layer.name = "Highlights";
var group = doc.layerSets.add();
group.name = "Lighting";
layer.move(group, ElementPlacement.INSIDE);ElementPlacement.INSIDE places the layer in the group. Use PLACEBEFORE or PLACEAFTER to place it relative to another layer.
Exercise
You have a Curves adjustment layer inside a group. At first it darkened every layer below the group. After you changed the group's blend mode to Normal, it affects only the layers inside the group. Why, and how do you get the old behavior back?
Show answer
Pass Through lets the adjustment layer act on everything beneath the group. Normal makes Photoshop composite the group's contents first, so the adjustment applies only within the group. Set the group's blend mode back to Pass Through.
Exercise
A group is set to 50% opacity and contains two overlapping layers, each at 100%. How does that look different from setting each layer to 50% with the group at 100%?
Show answer
At group 50%, Photoshop composites the two layers into one result and shows that result at half strength, so the overlap area looks the same strength as the rest. With each layer at 50%, the overlap shows through both layers and looks denser than the non-overlapping areas.