When creating a conditional action you will need to think about the objective and then design the logic that you would like to create. For example, this exercise will test an image to see if it’s Square, Portrait or Landscape and place text on the image, the text could be any that you desire from (Watermarks, to logo’s etc). One idea is that you could use this for your work that you send out to clients.
Open Photoshop CS6 for Creative Cloud (and make sure that the update as of December 2012 has been applied), open the actions palette and choose New Set, and create a new set to hold these actions. Once the Set has been created, created a New Action.
I am going to use the “Blog Post Actions” set to store all of these logic components.
Click record to start the recording (used to just to create the action). At this point for this example, you want to stop the recording and open or create a landscape file (we will be automating the action so it is not required to include the file open) .
Then restart the recording, and capture the text layer.
Now the record is turned on, add some text to the landscape layer.
Turn off the recording. If you need other items adding to the action then you will need to add them in this recording process.
The first of three logic components has been created. To create the component for processing a square, re-select the “Blog Post Actions” element (in this example), and select New Action from the fly out menu.
You should end up with something like the above, comprising of 3 logic components with a make text layer for each (your processing you may have more or less logic components and more or less functions within each).
We can now create the conditional logic blocks which will tie everything together. Re-selected the “Blog Post Actions” element and create a new Action called “Run Me”, then stop the recording, and create another Action called “Test for Square” and stop the recording once again.
Select the “Run Me” element and click on the fly out menu and choose “Insert Conditional”.
You can see in the first combo box of the conditional action configuration there are many tests that you can make. One thing to notice is that there isn’t a negative test, i.e. There is a “Document is Landscape”, but not “Document is not Landscape” because the ELSE on the conditional action will take care of this, also, there isn’t a “Document is Portrait”, but there is a test for Squareness.
The logic that we need to create based on the selections that we have is this. If the document is Landscape then process for landscape, other test to see if it’s a square. If it’s a square then process the square, otherwise process for a portrait.
Set the “If Current” to “Document is Landscape”, then set “Then Play Action” to “Landscape” which was created earlier. Set “Then Else Play” to “Test for Square”, the logic is now set up for the first stage.
For the second stage, select “Test for Square” and set “If Current” to ”Document is Square” and then set “Then Play Action” to “Square”, set ”Else Play Action” to ”Portrait” .
To test the action you will need to create a series of test canvases, in this example i created empty ones for each format and press play on the “Run Me” action. Look at the output on the screen to make sure that the behaviour is meets the intended results.
You may need to debug the action. I have added one for you to download on my Creative Cloud account (you many need to replace the text on each action though. To do this, just click on each text layer, remove and re-create it with your own text (don’t forget to turn on record for each new action)).
Once the Action has been created we can create an automated processes. There are two options in Photoshop, Batch, which will run over images in a folder. Or Droplets, a droplet will exist as an icon and will allow the user to drop any image(s) onto it for batch processing.
1. Batch - This option will run the action over a batch of photographs. Modify the “Set” combo box to be the “Blog Post Action” set that was created. And in the Action combo box select the “Run Me” action. The Batch automation will read the contents of the source folder and output them to the defined output folder. To configure the batch processing up use the the menu option, select – File / Automate / Batch.
2. Droplets. Photoshop droplets extendeds the Batch processing and enables photoshop to be run from an icon that will reside on the computer. You will then be able to drag and drop files to it, and Photoshop will start to process them one by one. The rest of the procedure is the same os the Batch processing about (Action to run, start folder and end folder). To set the batch processing up use the the menu option, select – File / Automate / Create Droplet.
You can see in this dialog, that the input folder is described by the save droplet. The play defines the action and set combination to play. Then the destination is defined in this case to output to a folder.
The droplet looks like this
There are many different options and configurations for conditional actions, and wish you luck experimenting with your own.
Share on Facebook