• home
  • forum
  • my
  • kt
  • download
  • Actions in Photoshop

    Author: 2007-12-03 08:50:26 From:

    For this example, we will create an action that mirrors the active layer across both the vertical and horizontal axes (on a separate layer to ensure that the original layer remains unaltered) and then centers the results on the canvas. This can be useful for creating symmetrical shapes, repeating patterns, and refrigerator art ;-). To demonstrate what the action will do, see the figure below.

    1. First, we'll need an image to practice on: to use while we record and test our action. Create your own pattern.

    Mirror Sample

    2. Assuming the Actions palette is already visible, create a new set ( Create new set ). Name the set "Mirror Corners". Add a new action to the set (Create new action ). Name the action "Mirror Corners (v1.0)", and assign a Function Key and Button Mode color if you like. Finally, begin recording by pressing the Record button ( Begin recording ).

    3. Because we are going to duplicate the current layer (to preserve the user's original work), we will hide the layer so that it does not obstruct the view of the final results. Click the Visibility icon ( Layer visibility ) associate with the current layer. Notice that a command called "Hide current layer" has been added to the action.

    4. Next, duplicate the current layer by pressing Ctrl+J (Layer > New > Layer via Copy). Turn on the new, duplicated layer by clicking on its Visibility icon. Both commands should appear in the action.

    Action Step 1

    5. In this step we will use the Edit > Transform command to flip a horizontal duplicate of our current layer.

    Note: Holding down the Alt key while choosing Edit > Transform performs a transform on a duplicate of the original selection. Using this technique allows you to get two steps for the price of one!

    Press Ctrl+Alt+T. In the Options palette, set the Reference Point location to the right side ( Reference point location ); then right-click in the document window and choose Flip Horizontal from the context menu. Press Enter to accept the transformation.

    Transform

    6. Merge the two halves / layers together by pressing Ctrl+E (Layer > Merge Down).

    7. Now let's flip the current layer vertically - similar to what we did in step 5. Press Ctrl+Alt+T. In the Options palette, set the Reference Point location to the bottom ( Reference point location ); then right-click in the document window and choose Flip Vertical. Press Enter to accept the transformation.

    8. Again, merge the two halves together by pressing Ctrl+E.

    9. To center the pattern we'll use the Layer > Align Linked To Selection commands.

    Note: Unfortunately, you cannot use the Alignment buttons in the Options palette because their functions will not get recorded.

    Select the entire canvas by pressing Ctrl+A (Select > All). From the menus, choose Layer > Align To Selection > Vertical Centers followed by Layer > Align To Selection > Horizontal Centers. Drop the selection by pressing Ctrl+D (Select > Deselect).

    10. Finally, stop recording by pressing the Stop button ( Stop playing/recording ). As a final touch, let's add a Stop message to let other users know what this action does. Choose Insert Stop from the Actions palette menu ( Palette Menu). Enter a brief description about what the action does and then check the Continue button.

    Because we want the message to be displayed at the beginning of the action, drag the newly added Stop command above the "Hide current layer" command (in the Actions palette) - so that it appears as first step in the action.

    Note: If you want the message to be present in the action, but not displayed each time the action is played, simply uncheck the Include checkbox ( Toggle item on/off ) for the Stop.

    Action Step 2

    Now try your new action on different patterns and canvas sizes to make sure it works properly. Once you are happy with the action, save it using the Save Actions command in the Actions palette menu.

    Tips for Editing Actions

    Here are a few tips that will make it easier to edit your actions:
    • To begin playback from a specific step of an action, simply choose the desired step and press the Play button at the bottom of the Actions palette.
    • Drag and drop steps to reorder them. This also works for actions and sets.
    • Alt-drag a step to duplicate it. This also works for actions and sets.
    • Double-click an action step to rerecord its associated values. Alternatively, you may choose Record Again from the Actions palette menu.
    • Ctrl-click the button to play only the selected step. This is useful for debugging an action.
    • Select non-contiguous action steps using the Shift key. Use the Ctrl key to range select contiguous action steps. You may then delete, duplicate or even play the selected steps! However, this only works within the current action.
    • Alt-click the Delete button (on the Actions palette) to delete the selected item without confirmation. This is equivalent to dragging the desired item onto the Delete button.
    • Even though operations performed in the Actions palette may not be undone using the Edit > Undo command or the History, you can undo / redo the last operation (and only the last operation) by pressing Ctrl+Z.
    • Hold both the Ctrl and Alt keys when choosing Save Actions (from the Actions palette menu) to save all actions as a text file. This is very useful for reviewing or printing the contents of an action: however, the text file cannot be reloaded into Photoshop.
    • Alt-click on an action (not a step) triangle ( triangle ) to expand / collapse all steps within the action.
    • Alt-click on a set triangle ( triangle ) to expand / collapse all steps within the set.
    • To include a path within an action, first create the path (before recording the action); then, begin recording, activate/select the path select and choose Insert Path from the Actions palette menu.

      Note: Set your ruler units to percentage before using the Insert Path command to ensure that the path is scaled and positioned relative to the canvas size. Otherwise, the path may appear too large, or completely outside the canvas boundaries.
       
    • Create a snapshot (via the New Snapshot button in the History palette) before running an action. That way, if you do not like the results, you can revert the image to its original state without having to undo every step performed by the action.

      Note: ImageReady treats actions as single steps in its History palette so you can undo actions in one step.

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      Abstracts (88)
      Effects (498)
      Animation (220)
      Photo Effects (823)
      Automation (20)
      Photo Retouch (316)
      Basics (411)
      Photography (302)
      Brushes (49)
      Scripting (5)
      Buttons (187)
      Text Effects (731)
      Color (77)
      Textures and Patterns (172)
      Digital Art (147)
      Web Graphics (692)
      Drawing (735)
      Web Layouts (175)

    New

    Hot