Skip to main content
Participant
June 10, 2020
Question

Automating Photoshop question (and maybe After Effects)....

  • June 10, 2020
  • 3 replies
  • 568 views

Hello, and thanks in advance if you can help me - learning on the job which is never wise. I need to script the following

1. Select a pair of images from a folder - each are numbered e.g1234.jpg 1234h.jpg, load into stack and auto align

2. Transform the top layer removing colours via color select

3. Save as 1234PH.png

Repeat for remaining images in the folder (a few thousand pairs of images)

 

4. Create an animation between the original 1234.jpg and this 1234PH.png i.e. animating on the transformed top layer. I want a specific semi-randomised animation that I think can be scripted in AE. Save this animation as a 1234.GF

 

Again repeat for all images in the folder.

 

I know there are elements that can be automated but I'm struggling with steps including automatic selection of paired images.

Any resources or help would be much appreciated.

 

Thanks

 

 

 

3 replies

Participant
August 8, 2025

Good morning 

Inspiring
August 8, 2025

Hello

c.pfaffenbichler
Community Expert
Community Expert
August 8, 2025

If you have a question concerning the subject of this thread please elaborate. 

Mylenium
Legend
June 12, 2020

Getting the images paired in AE would be a non-issue, assuming the naming conventions are indeed identical. A simple import as sequence, possibly with "Force alphabetical order" enabled will do then. All that would then be required would be to set the frame duration sufficiently long to get soemthing to work with. On the other hand I'm pretty sure there also are enough scripts on AEScripts.com that can create comps from footage source based on all sorts of criteria. Likewise, there would be equal numbers of gigazillions of scripts that can either create animation directly based on parameters or apply animation presets en mass, with randomization if needed. Just do a little bit of searching on the site and pick the one that would work best for you. On a sidenote you may want to employ better procedures to extract the hotspots in the thermal imagery. In Photoshop calculating a mask from the red and green channels using Image --> calculations would give much cleaner results and the equivalent effects in AE would be Shift Channels and Channel Combiner.

 

Mylenium

c.pfaffenbichler
Community Expert
Community Expert
June 10, 2020

»Hello, and thanks in advance if you can help me - learning on the job which is never wise.«

Well, learning is not a bad thing in principle, where and when one does it often depends on circumstances … 

 

Steps 2 and 4 are unclear to me, please elaborate and post some sample images (both the source-images and the intended results). 

Ad for step 1: Is the Folder fixed or do you want to have a Folder-selection dialog or …? 

 

 

sellsyAuthor
Participant
June 12, 2020

Thanks very much for your response. I appreciate it.

 

Hopefully this will clarify

 

1. The image pairs are in different folders but can be in the same folder.  They have the same number (e.g. 1234.jpg but the smaller blue image has an h suffix (e.g. 1234h.jpg)

 

2. They both need to be loaded into a stack and auto aligned.

3. I want to extract the red and yellow tones and overlay them on to the original image. Like this.

I do this by color selecting the reds & yellows, then using gradient fill and outer glow in layer style.

Finally - and I think this is an AE question I'd like this new layer to animate on,,,

 

I'm looking to automate this process across a folder of images.

Thanks again for your time...

 

 

c.pfaffenbichler
Community Expert
Community Expert
June 13, 2020

I cannot even Auto-align those two Layers successfully.