Sub topic 5
Editing an Action: Toggles, Modal Controls and Re-recording
This chapter assumes you can record a basic action and play it from the Actions panel. You should also know how sets, actions and steps nest in that panel. Editing is where an action stops being a fragile recording and becomes a dependable tool. Most recorded actions need some adjustment, because the first take rarely matches how you want it to behave on other images.
What you can change without re-recording
Every step in an action is a stored command with its settings. Photoshop lets you change how each step plays back in four ways:
- Turn a step or a whole action off, so it is skipped.
- Make a step pause for input by turning on a modal control.
- Change a step's settings by double-clicking it.
- Move, duplicate or delete steps.
Changing these options is much faster than recording again. It is also safer, because you keep the steps you already trust.
Toggles: choosing which steps run
The leftmost column of the Actions panel holds the item toggle, a checkmark beside each step. A checked step plays. An unchecked step is skipped. Clicking the checkmark beside an action toggles every step inside it. Clicking the checkmark beside a set does the same for the whole set.
A step that is only partly enabled shows a red checkmark on its parent. A red check on an action means some of its steps are skipped.
Toggles are useful for three jobs:
- Testing. Switch off the final Save or Close step while you check the result on one image.
- Variants. Keep an optional step, such as a sharpening pass, in the action. Turn it on or off for each job.
- Debugging. Switch off steps one at a time to find the one that fails.
Unchecked steps are saved with the action. If you share the action set, the person who loads it gets the same toggle state, so check it before you export.
Modal controls: pausing for input
The second column holds the modal control, shown as a small dialog icon. A modal control makes a step stop and open its dialog during playback. You adjust the settings, click OK, and the action continues with the values you chose. The settings you recorded appear as the defaults.
This is the right tool when one value must change for each image. Examples are a Gaussian Blur radius, a Hue/Saturation shift or a Canvas Size amount.
Some limits apply:
- A modal control appears only for steps that have a dialog. Steps such as Select All or Flatten Image have none, so the column is blank for them.
- A blank modal column does not mean a step is broken. It means the step has nothing to ask.
- Clicking the modal icon beside an action or set turns on every modal control inside it. The icon is red if only some are on.
- Cancelling a dialog during playback stops the whole action.
The Batch command treats these pauses in a specific way, covered in the batch chapters. For now, remember that every modal control is a place where an unattended run will wait for a person.
Changing a step's settings
You can change recorded values without re-recording. Double-click the step in the Actions panel. Photoshop opens the command's dialog with the stored values. Change them and click OK. The step now holds the new values.
Be aware of the following:
- The change affects that step only. Later steps do not adapt.
- For steps that depend on the document, such as a Crop with fixed pixel coordinates, the new value may still fail on images of other sizes. The chapter on portable actions covers this.
- Double-clicking the action name does not replay it. It opens the Action Options, where you can rename it, assign a function key and change its color.
Re-recording, inserting and rearranging
Sometimes a step must be replaced rather than adjusted. You have several ways to do that.
Record Again
Choose Record Again from the Actions panel menu while a single step is selected. Photoshop opens the command's dialog, and the new settings replace the old ones. Selecting an action and choosing Record Again steps through every command in turn, with each dialog open. You confirm or change each one. This is a good way to refresh an action for a new file type while keeping its structure.
Recording more steps into an existing action
To add steps, select the step after which the new work should appear, then click Begin Recording, the red circle at the bottom of the panel. Do the new commands, then click Stop. New steps are inserted below the selected step. If you select the action's name instead, new steps are appended to the end.
Watch where your selection is before you press Record. Selecting the wrong step is the most common cause of steps landing in the wrong place.
Moving, duplicating and deleting
- Drag a step up or down to reorder it. You can also drag it into another action.
- Hold Alt (Windows) or Option (Mac) while dragging to copy it.
- Select a step and press the Delete button, or drag it to the trash icon, to remove it. Photoshop asks for confirmation unless you hold Alt or Option.
- Choose Duplicate from the panel menu to copy a selected step or action.
Order matters. A Flatten Image step placed before an adjustment-layer step changes what the later step can do. After you reorder, play the action on a copy of a test image.
Edge cases and common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Action pauses on every image in a batch | A modal control is still on | Clear the modal column for that step |
| A step is silently missing from the result | Its item toggle is unchecked | Check the toggle |
| New steps appear at the wrong position | The wrong step was selected when recording began | Drag the steps into place, or delete and record again |
| Record Again changes a different step than expected | More than one step was selected | Select only the target step |
| A step has no modal icon | The command has no dialog | Use Insert Stop, or change the step's value directly |
| The action works on your image but not on others | The step stores absolute values | See the chapter on portable actions |
Two further points are easy to miss. First, Photoshop saves changes to the action panel only when you save the set or exit cleanly. If Photoshop crashes, unsaved edits can be lost, so save the set to a file after meaningful edits. Second, some steps record only a menu choice and not your settings, so Record Again will not show anything useful for them. Delete such a step and record it fresh.
A worked example
Suppose you recorded an action named "Web Sharpen" with these steps: Convert to sRGB, Image Size to 1600 pixels wide, Unsharp Mask, Save for Web. You want to test it, vary the sharpening, and skip the save.
- Uncheck the toggle on the Save for Web step. Your test now leaves the file unsaved.
- Click the modal column beside Unsharp Mask. The dialog icon appears.
- Play the action on a test image. When the Unsharp Mask dialog opens, try an amount of 60 percent, then 90 percent, and compare.
- Pick the better value. Turn off the modal control, then double-click the Unsharp Mask step and enter that value so it becomes the fixed default.
- Re-check the Save for Web toggle.
- Save the set from the Actions panel menu with Save Actions.
You used toggles to protect your files, a modal control to experiment, a double-click edit to fix the value, and a save to protect the work.
Exercise
You turned on the modal control for a Gaussian Blur step so you could try different radii. Later you run the action through Batch on 200 files and it stops on the first image. What went wrong, and what two ways can you fix it?
Show answer
The modal control is still on, so the step opens its dialog and waits for a person. Fix it by clicking the modal icon beside the step to turn it off, after double-clicking the step first to set the radius you want. Another fix is to leave the control on and watch the run, but that defeats unattended processing.
Exercise
You select the name of an action and click Begin Recording, then apply a Levels adjustment. Where does the new step appear, and how would you place it after the second step instead?
Show answer
It is appended to the end of the action. To place it after the second step, stop recording, then select the second step and record again. You can also drag the new step into position.