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

Script to modify the blending mode of all layer groups in a file

New Here ,
Apr 17, 2024 Apr 17, 2024

Copy link to clipboard

Copied

Greetings,

 

Can anyone help me with a Photoshop script that sets the blending mode of each and every layer group in a file to Pass Through?

(I have some PSD files exported from another application and for some reason the groups are all set to Normal blending mode. As a result, the artwork doesn't look right. I need to change them all to Pass Through.)

 

Thank you!

TOPICS
Actions and scripting

Views

217

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

People's Champ , Apr 17, 2024 Apr 17, 2024
change_mode(activeDocument.layerSets);
alert("Done");

function change_mode(sets)
    {
    try {
        for (var i = 0; i < sets.length; i++) 
            {
            sets[i].blendMode = BlendMode.PASSTHROUGH;
            change_mode(sets[i].layerSets); 
            }
        }
    catch (e) { alert(e.line+ "\n\n" +e);  }
    }

Votes

Translate

Translate
Adobe
People's Champ ,
Apr 17, 2024 Apr 17, 2024

Copy link to clipboard

Copied

change_mode(activeDocument.layerSets);
alert("Done");

function change_mode(sets)
    {
    try {
        for (var i = 0; i < sets.length; i++) 
            {
            sets[i].blendMode = BlendMode.PASSTHROUGH;
            change_mode(sets[i].layerSets); 
            }
        }
    catch (e) { alert(e.line+ "\n\n" +e);  }
    }

Votes

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 ,
Apr 17, 2024 Apr 17, 2024

Copy link to clipboard

Copied

LATEST

Thank you!

Votes

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 ,
Apr 17, 2024 Apr 17, 2024

Copy link to clipboard

Copied

Hello this is Mr.Brian Nicholas Buono and I'm hearing impaired as profoundly deaf myself anyway, I would like to talk with you all about many things we can open to discuss over about this as my please and thank you likewise!

Votes

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