 |
|
Step 1 - Create a new image |
Make sure the History and the Materials palettes are displayed. Create a new image by choosing File > New, or by clicking the New Image button on the Standard toolbar, or by clicking the script for this step. Use these settings: a) set Width and Height to 300 pixels; b) choose the Raster background option; c) set the background color to white; d) and click OK. |
Perform this step for me. |
 |
Step 2 - Choose the PaintBrush tool |
From the Tools toolbar, choose the PaintBrush tool. |
Select this tool for me. |
 |
Step 3 - Set Color and Tool Options |
In the Materials palette, set the Foreground/Stroke property to any dark, solid color. And in the Tool Options palette, set Shape to round, Size to 12, and use the tool's defaults for the remaining settings. |
 |
Step 4 - Place five strokes on the canvas |
From the upper left corner to the lower right, use the PaintBrush to paint the numbers 1 through 5 in the image. Ideally, use a continuous stroke when painting each number; this will place five "Paint Brush" actions in the image's History palette. The first number you paint will be listed toward the bottom of the History palette, and the last (most recent) number will be at the top. |
 |
Step 5 - Undo the most recent action canvas |
In the History palette, undo the stroke used to create "5" by clicking the eye icon of the top-most "Paint Brush" action. When undone, the eye icon will have a yellow X over it. Since "5" was the most-recent action, clicking the Undo button in the Standard toolbar, or pressing Ctrl+Z, or choosing Edit > Undo would have performed the same function as clicking the action's eye icon in the History palette. Now click the action's eye icon again to redo the "5" paint stroke. |
 |
Step 6 - Selectively undo the third paint stroke |
Hold down Ctrl and then click the eye icon for the middle "Paint Brush" action (used to create "3"). You could also selectively undo the "3" by clicking the action (not its eye icon) and then clicking the Undo Selected button in the History palette's toolbar. Selectively undone actions will have a red X over the eye icon. Before doing the next step, hold down Ctrl and click the red X eye icon to redo the "3" paint stroke. |
 |
Step 7 - Perform an Undo to Here |
With all five numbers shown, click (do not hold down Ctrl this time) the eye icon for the middle "Paint Brush" action (used to create "3"). This performs an Undo to Here, undoing the stroke for "3" as well as all actions that came after it, meaning the strokes for "4" and "5". Remember: the strokes for "4" and "5" came after "3", but in the History palette their actions are listed above the action for "3". |
 |
Notes and Tips: |
 |
This Quick Guide shows the versatility and power of the History palette compared to the standard methods of undoing and redoing actions. |
 |
Be aware that selectively undoing actions may not always yield the intended results due to dependencies among certain actions. |
 |
Refer to the Help system or the User Guide for more information on the History palette, including the ability to drag-and-drop actions from one image onto another, as well as the ability to save and apply a Quickscript to all open images. |
|
|
Learn More: |
Basic scripting |
Create a custom toolbar |
Run a script on multiple files |
 |