Skip to main content
Participant
June 3, 2023
Question

Photoshop script

  • June 3, 2023
  • 1 reply
  • 332 views

Hello, I have specific scripting task and would like to know if there is a possibility to acquire it in photoshop.

I have multiple opened documents (photos). All documents consists only with background layer (same name on all documents). All the documents have their names, for example xxx.cr3, xxy.cr3 and so on. There is dublicate documents also with one layer (with same name "background") and names for example xxx-2, xxy-2.cr3 and so on. I need to take xxx-2 document background layer and copy it to xxx.cr3 document (from duplicate to original). Is there are a way to automate it? Try to solve it with chatgpt but can't get further than make a background layer copy on duplicate document. 

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
June 3, 2023

Do all the documents need to be open?

 

Much better to have them in two separate folders and script opening and combining matching pairs.

Participant
June 3, 2023

Maybe it's possible to separate them in different folders. Maybe you have some script advices for such path? 

Stephen Marsh
Community Expert
Community Expert
June 6, 2023

@Gintare30246751hurr wrote:

Maybe it's possible to separate them in different folders. 


 

Yes, I have posted many scripts in the past for this task on the forum, stacking 2, 3 or more file "sets" together.

 

Render your raw files to one folder as say TIF, or PSD etc.

 

Save your other files to layer over the top in another folder.

 

The script will prompt you to select folder 1, folder 2 and an output/save folder.

 

Once stacked, before saving the combined file – do you wish to automate further, such as opacity, blend mode or do something else?

 

Do you want to save layered PSD files, or flattened JPEG files etc?

 

It helps if you can provide sample screenshots of the images in each folder for verification of file names.


Depending on the filenames, it could also be possible to have all input files in a single folder, but I would need examples of multiple filename sets to test.