Sub topic 10
Reordering, toggling, editing, and removing smart filters
This chapter assumes you can already apply a smart filter to a smart object layer, as covered in the earlier chapters on creating smart objects and applying smart filters. You should also be comfortable with the Layers panel and with layer masks. Here you will learn to manage the filters once they are stacked on a layer: change their order, turn them on and off, re-edit their settings, and remove them.
Where smart filters live
When you apply a filter to a smart object, Photoshop adds an entry under the layer in the Layers panel. The entry has this structure:
- A Smart Filters row. It holds the smart filter mask (a white thumbnail by default) and an eye icon.
- One row for each applied filter, listed by name, each with its own eye icon.
The layer is the smart object. The filters are not baked into its pixels. Photoshop stores each filter's settings and re-runs the stack on the original contents whenever it needs to draw the layer. All the management tasks below work because of this.
Stack order matters
Smart filters run from the bottom of the list to the top. The filter nearest the layer runs first, and each filter above it processes the result of the one below. Because most filters change pixel values in ways that depend on their input, a different order often gives a different image.
For example, take a photo with two filters:
- Gaussian Blur, radius 6 px.
- Add Noise, amount 8%.
If Add Noise runs first, the blur then smooths the noise away. If Gaussian Blur runs first, the noise is added on top of the smooth image and stays crisp. The same two filters give two different looks.
Reordering filters
To change the order, drag a filter's name up or down within the Smart Filters list in the Layers panel. A line shows where it will land. Release the mouse button and Photoshop redraws the layer at once.
You cannot drag a filter out of the list onto another layer to move it. To apply the same filters to another smart object, hold Alt (Windows) or Option (Mac) and drag the filter name or the Smart Filters row onto the target layer. This copies the filters. Dragging the Smart Filters row copies all of them, including their masks.
Some filters behave differently in the middle of a stack. Camera Raw Filter, for instance, is often best placed first or last so that its tonal adjustments are not distorted by other filters.
Toggling visibility
Each filter row, and the Smart Filters row, has an eye icon. These work at two levels.
| Control | Effect | Typical use |
|---|---|---|
| Eye on a single filter | Hides that filter only. Settings are kept. | Compare the image with and without one effect. |
| Eye on the Smart Filters row | Hides all filters on the layer at once. | Check the unfiltered original. |
| Layer > Smart Filters > Disable Smart Filters | Turns off all filters on the layer. | Same as the row eye icon, from the menu. |
| Layer > Smart Filters > Disable Filter Mask | Ignores the filter mask, so filters apply to the whole layer. | Check what the mask is hiding. |
Hiding a filter is fully reversible. Photoshop keeps its settings and the layer's original data. Hiding filters also speeds up editing, because Photoshop does not need to calculate them while they are off. This helps on large files with slow filters such as Lens Blur.
You can also use the layer's own eye icon, but that hides the whole layer, not just the filters.
Editing filter settings
Double-click a filter's name in the Layers panel. The filter's dialog or Filter Gallery opens with the values you last used. Change them and click OK. Photoshop then re-runs that filter and every filter above it in the stack.
Things to watch for:
- Do not double-click the small icon to the right of a filter name. That opens the Blending Options dialog (covered in the previous chapter), not the filter itself.
- Filters applied together through the Filter Gallery appear as one entry named Filter Gallery. Double-clicking it reopens the gallery with all its effect layers intact.
- Some filters have no dialog, such as Find Edges. Double-clicking them does nothing useful, because there are no settings to change. To adjust such a filter, use its blending options or the filter mask.
- If you edit a filter low in a long stack, every filter above it is recalculated. On large documents this can take noticeable time.
Editing a filter after changing the contents
Because filters are stored as settings, they follow the smart object. If you open the contents with Layer > Smart Objects > Edit Contents, change them, and save, the filters are re-run on the new contents when you return to the parent document. You do not need to reapply them.
Removing smart filters
There are three levels of removal.
- Delete one filter. Drag its name to the Delete icon at the bottom of the Layers panel, or right-click it and choose Delete Smart Filter. The other filters stay and the stack recalculates.
- Delete all filters on a layer. Choose Layer > Smart Filters > Clear Smart Filters, or drag the Smart Filters row to the Delete icon. This removes every filter and the filter mask.
- Delete the layer. This also removes its filters.
Deleting a filter cannot be undone after you close the document, and Undo history is limited in length. If you only want to see the image without a filter, hide it and delete it later.
Managing filters with a script
Using the Action Manager you can run the same menu commands from a script. This example turns the active layer into a smart object, then opens its contents, and uses the two commands from this tutorial's script examples.
// Photoshop ExtendScript
// 1. Convert the active layer(s) to a smart object
executeAction(stringIDToTypeID("newPlacedLayer"), undefined, DialogModes.NO);
// 2. Open the smart object's contents for editing
// (saving that document updates the parent document)
executeAction(stringIDToTypeID("placedLayerEditContents"), undefined, DialogModes.NO);After you save and close the contents document, the smart filters on the parent layer re-run automatically.
A worked pass through the workflow
Suppose you have a smart object photo with Gaussian Blur and Add Noise, and you want a softer, less grainy result.
- Click the eye on Add Noise to hide it. Check whether the image looks cleaner.
- Show it again. Drag Add Noise below Gaussian Blur so the noise is applied first and then softened.
- Double-click Add Noise and lower the amount from 8% to 4%.
- Alt-drag (Option-drag on Mac) the Smart Filters row onto a second smart object to give it the same treatment.
- Delete Gaussian Blur if you decide you do not want it.
Common errors
- The filter row is missing. The layer is not a smart object, so the filter was applied destructively. Undo, convert the layer, and apply it again.
- Reordering seems to do nothing. Filters that barely depend on their input, such as a small sharpen after a color adjustment, can look the same in either order. Zoom to 100% before judging.
- A filter is greyed out in the Filter menu. Some filters need a particular color mode, such as 8 bits per channel or RGB, or do not work as smart filters. The limits chapter covers these.
- You lose the mask. Clear Smart Filters removes it. Use Disable Smart Filters instead.
Exercise
A smart object layer has three filters. From bottom to top they are Unsharp Mask, Gaussian Blur, and Add Noise. You want the blur to soften the sharpening but leave the noise crisp. Which filter order do you need, and how do you check the current result without deleting anything?
Show answer
The order must be Unsharp Mask first, then Gaussian Blur, then Add Noise on top, which is what the stack already has, because the bottom filter runs first. If the noise were below the blur it would be softened, so you would drag Add Noise to the top. To check the result without deleting anything, click the eye icon beside a single filter, or the eye on the Smart Filters row to hide all of them. The settings are kept, so you can show them again.
Exercise
You double-click a filter's name and it opens correctly, but a colleague double-clicks the small icon next to the same filter name and sees a dialog with Mode and Opacity. What did they open, and how do they get to the filter's own settings?
Show answer
They opened the Blending Options dialog for that filter, which controls blend mode and opacity. To get to the filter's settings they should double-click the filter's name instead.