Copy and paste adjustment layers

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Antero_26
Posts: 1
Joined: Sun Mar 05, 2023 4:05 pm

Copy and paste adjustment layers

Post by Antero_26 »

Hello.
Please tell me how you can implement such an idea:
I select a layer with the mouse - the first script is launched that copies all the adjustment layers belonging to the selected layer (or just copying all the adjustment layers that are above the selected layer).
Then, after selecting another layer, a second script will be run that inserts the previously copied corrective layers and applies them to the selected layer
If it is difficult to implement, then at least tell me in which direction to move -at least you can show small examples
User avatar
Stephen_A_Marsh
Posts: 29
Joined: Sun Aug 04, 2019 12:37 pm

Re: Copy and paste adjustment layers

Post by Stephen_A_Marsh »

Please post a cropped screenshot of your layers panel before the first script is run, and a separate cropped screenshot after the second script is run, clearly identifying what should take place. A sample layered PSD file would also be helpful.

How do the adjustment layers "belong" to a particular layer? Are they clipped? Are they all contained in a layer group? Do they have a colour label applied? Do they share the same prefix in their name?

Will all layers be visible?

Are layers part of a group, nested group or artboard?