• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Applying adjustment layer to multiple layers

New Here ,
Mar 12, 2019 Mar 12, 2019

Copy link to clipboard

Copied

Hi there,

I've read many posts with this same question and earlier in the year I found the perfect solution in a script. I have since updated Photoshop and the script disappeared. Now I can't find it again. What I need to do is apply the adjustment layer to all the layers in the group. I need to do this to every mouth layer of every character I have going into Character animator. There are several of these so the manual way of applying the adjustment is very tedious. Especially as Photoshop names the merged layer according the top layer so I have to go through and rename everything on top of all the manual layer merging management. The script was very neat, you would put the adjustment layer or layers inside a group with all the layers in need of adjusting then run the script and it would adjust all layers in the group. Massive time saver. Has anyone out there come across this script???? I love script writers, you are my heroes.

Screen Shot 2019-03-12 at 7.50.19 pm.png

TOPICS
Actions and scripting

Views

9.8K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Mar 14, 2019 Mar 14, 2019

Try it. One of the adjustment layers located above the group should be active.

app.activeDocument.suspendHistory("Script", "f()");

function f()
	{
	var doc = activeDocument;

	var adj_layer = doc.activeLayer;
	var parent = adj_layer.parent;
	for (var n = 0; n < parent.layers.length; n++)
		{
		if (parent.layers[n] == adj_layer)
			{
			for (++n; n < parent.layers.length; n++)
				{
				if (parent.layers[n].typename == "LayerSet")
					{
					var set = parent.layers[n];
					for (var i = set.art
...

Likes

Translate

Translate
New Here ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

LATEST

I signed up just to thank you r-bin! What a hero - thank you

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2021 Jul 17, 2021

Copy link to clipboard

Copied

Here's a workaround without scripts. Depending on the project, it might not suit everyone's needs, but it helped me when scripting went awry.

Make a frame animation using the Timeline Panel. Each frame should include the adjustment layer and one of the layers you want treated. Export as a video (File > Export > Render as video...). Then import the video (File > Import > Video Frames to Layers...). Each frame becomes a new layer with the adjustment applied.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines