Scripts are a more advanced form of actions, as they are created with programming languages. They allow Adobe Photoshop to perform very complex tasks. Can you use scripts to load multiple files into a stack? In this video, Richard Harrington walks through using scripts to load multiple files into a stack in Adobe Photoshop.
- Sometimes you're going to want to put multiple images into one Photoshop file. I'll give you two examples here in just a moment. This can be for creative reasons or technical reasons. Fortunately, this is very easy to do with a script. Rather than having to open up each file and drag the layers over one at a time you can really speed things up. I'll choose File Scripts Load Files into Stack. You can choose to add all the open files or browse and navigate.
Let's go here. And I'll select a stack of images. Here's a series of raw files. And I'll click OK. Now, you could choose to align the images if you're concerned that they were shot hand held and shifted a little bit but, I'm going to note, but I know I was on a tripod so that's not needed. When I click OK it's going to analyze those and load them into one file.
Now in this case, I had depth of field that was really deep and it was difficult to keep both objects in focus. So, instead of trying to get one shot, I just took a series of shots and what you'll notice here is that different parts are in focus. Now in this case, one of those image is bad. You see that it caused something to shift. So you always want to be careful here. Let's just throw that one away. But, looking at the others I see that different parts of the object are in focus.
The mouse is in focus, the headphones are in focus, now the middle is. With the layers selected, I could take advantage of a cool option here. So, we can use the Edit command here and choose to automatically blend these layers using the stack images method and when I click OK it's going to find the in focus parts of each photo and mix them together. Now you see what it did and it's really quite cool.
It kept the in focus parts of this part of the photo, then blended to the next, and then brought the last bit in. And so now, we have depth of field that was impossible to capture in camera given as close as we were to the subjects I couldn't keep both parts of the photo in focus. This is tremendously useful when shooting things like flowers up close where you don't want the background to get blurry as well. Well, this can also be used for creative purposes. File Scripts Load Files into Stack In this case, lets browse and I'll go to the next folder up.
Three dot seven. And I'm going to choose Combine. Let's select these here and click OK. And I'm not going to align these or make a smart object I'll just load them together. Here I have a series of long exposures taken out a window from a moving car. And I'm going to combine these together so we've got different objects. Now if I select a tool like the Marquee tool, I can use the shortcut of Shift + or Shift - and start to blend those layers together creating a really fun composite image mixing all these different pieces together.
Now you can use blending modes and other things for all sorts of fun options but what happened here is the ability to just load these into one document and then experiment. There's lots of reasons to load things together. Maybe it's artistic elements that you want to composite, or perhaps it's other techniques that you want to use. But the ability to choose File- Scripts makes this very simple to put several files into one.
- Saving images in different file formats
- Creating actions
- Recording actions
- Batch processing
- Creating droplets
- Working with variables
- Scripting in Photoshop