Page 1 of 1

looking for a script to apply adjustment layers to multiple layers

Posted: Tue Sep 25, 2018 2:38 pm
by wgan
there might be multiple adjustment layers (curve, hue, etc), to reduce the complexity, assuming all those adjustment layers sitting on top of all the layers below and all the layers are of normal transparent mode (but might be of different transparency), I've looked up on many places, unfortunately yet to find one, I could have done this manually, but then there are cases which involve many many layers.

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Wed Sep 26, 2018 10:27 am
by Kukurykus
Please post 2 screenshots with examplary scenario to imagine better that you described. So I ask of tree of layer(Set)s image from before applying adjustement layers to, and then one from after applying them. That let to be sure how that should work, thx! Indicate also unseen details...

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Thu Sep 27, 2018 12:07 am
by wgan
Hi, please see the attachments, the adjustment layers I was talking about are color balance, layer in colour mode, vibrance and curve on top of the group, but group is not necessary here thus can be ungrouped, so ideally, all those 4 adjustment layers would be merged to each layer in the group, for example, all 4 adjustment layers would be merged to layer 2990, again, all 4 layers would be merged to 2989 and for the rest of the layers in the group.

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Sat Sep 29, 2018 12:06 am
by Kukurykus
If I understand you made smart object from 4 adjustement layers that got 'Layer 2990' name. Then you created another smart object from 4 layers that each has other transparency that for 'Layer 2989' name.

You can't make Smart Object from Adjustement layers as it is going to disable pernamently their effect. You may make a group from them though.

Regarding another 4 normal layers you can make either Smart Object or a Group from.

Only all that can be done manually can be rewrite to script, nothing that is not accesible.

Is that you want a script was doing?

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Sat Sep 29, 2018 3:26 am
by wgan
one attachment seems to be missing, here's the one elaborate what I want more clearly,
adjustment layer merge.PNG
adjustment layer merge.PNG (6.39 KiB) Viewed 13503 times
please ignore smart object in my previous post, all I want, as the screenshot shows above, is to merge 3 adjustment layers to each normal layer, so after this, there should be 4 normal layers with 3 adjustment layers applied to them individually.

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Sun Sep 30, 2018 12:44 am
by Kukurykus
Okey now I think I understand. It is possible to do. It's late here so probably I'll focus on it tomorrow if I have time. Just one last question. Do you want three adjustement layers where merged into one? And then duplicated as many times as many there are normal layers? So over each normal layer you'll have (merged into one) its own adjustement layer?

I read that again and I think you may want 3 adjustement layers were merged into one and then merged separately again with each normal layer?

I got it - if that has to work, all adjustement layers has to be duplicated, then originals merged to one normal layer, and so one with every next...

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Sun Sep 30, 2018 3:06 am
by coreyarte
Great Looking forward to this aswell. Appreciate your efforts man

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Sun Sep 30, 2018 5:28 am
by wgan
yes that's what I'd like to have, I appreciate your time and efforts, thank you!

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Tue Feb 12, 2019 6:02 am
by wgan
Hi I'm still in search of such a script, I would like some help

Re: looking for a script to apply adjustment layers to multiple layers

Posted: Thu Feb 28, 2019 7:52 am
by joonaspaakko
wgan wrote: ↑Tue Feb 12, 2019 6:02 am Hi I'm still in search of such a script, I would like some help

I didn't read the whole thread, but based on the first few posts, I believe this script does what you want:
https://gist.github.com/joonaspaakko/01 ... ba0fb9a2a0

Edit: I now realize there is not even a single mention of export. So maybe you just wanted to merge the adjustment layers without exporting, in which case this script would be less than ideal. I guess it would still work if you load the layers back in the stack with another script :)

This example image doesn't have any adjustments, but in the case of your screenshot setup, you'd group all the normal layers, select the group and run the script.
49152494-aef8af00-f31b-11e8-80ff-d774e3103eae.png
49152494-aef8af00-f31b-11e8-80ff-d774e3103eae.png (161.27 KiB) Viewed 10493 times