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

Actions on multiple layers

Community Beginner ,
Dec 16, 2021 Dec 16, 2021

Copy link to clipboard

Copied

Is it possible to run an action on multiple layers simultaneously?

TOPICS
Actions and scripting , macOS

Views

4.0K

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 2 Correct answers

Contributor , Dec 16, 2021 Dec 16, 2021

Not really.

You can select multiple layers and transform them in one go, but you cannot (for example) select multiple layers and run an action that would perform one blur and expect it to blur all selected layers.

 

You could achieve what you want by making a script in ExtendScript.

Votes

Translate

Translate
Adobe
Contributor ,
Dec 16, 2021 Dec 16, 2021

Copy link to clipboard

Copied

Not really.

You can select multiple layers and transform them in one go, but you cannot (for example) select multiple layers and run an action that would perform one blur and expect it to blur all selected layers.

 

You could achieve what you want by making a script in ExtendScript.

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
Community Beginner ,
Dec 16, 2021 Dec 16, 2021

Copy link to clipboard

Copied

Thanks for the reply, much appreciated. I can now stop searching for something that doesn't exist, and stop loading up on layer tools that don't resolve my issue. Surely a plug in with such capability (& monopoly) would go well in the market. Ok, off to learn about ExtendScript now 🙂

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
Contributor ,
Dec 16, 2021 Dec 16, 2021

Copy link to clipboard

Copied

You're welcome. 🙂

 

I remember my first script... I wish I had this information, so, let's get you started! 😄

The official documentation has gaps so not everything is documented. Sometimes you just wont find the answer there. When that happens, remember this forum, there's a bunch of great people here ready to help out.

 

To write an ExtendScript, Adobe recommends using VSCode + the ExtendScript Debugger Extension (made by Adobe).

The most important documents are here:

 

"app.activeDocument.activeLayer" gives you access to the currently selected layers. It returns something different depending on whether you have 0, 1 or more layers selected, so in your script you'll need to take that into account. You'll also need to think about how to handle adjustment layers vs artlayers vs shape layers.

 

Hope that helps you out, best of luck!

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
Community Beginner ,
Dec 16, 2021 Dec 16, 2021

Copy link to clipboard

Copied

Wow, cheers!

 

It makes the world of difference getting helpful direct information as oppossed to fumbling around with several dozen browser windows open & downloading anything slightly related to your query. Next time I'll start here haha. Thanks again Jef 🙏

 

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
Community Expert ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

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
LEGEND ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

Two of your links take to 'Apply Layer Mask to Numerous Layers (without grouping)'.

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
Community Expert ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

Didn't mean to double up, but it is easy to swap the code for applying a layer mask for an action.

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
LEGEND ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

I mean the other is the same but made in older times (before ecosystem).

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
Community Expert ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

The good thing is that the new link auto-resolves to the newer ecosystem link, so it was not broken (at the moment) as the Adobe server redirects it (unlike the older forum links which are all broken, be nice is they could be auto redirected too). I have updated the link and removed the dupe.

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
Community Beginner ,
Dec 19, 2021 Dec 19, 2021

Copy link to clipboard

Copied

Thanks Stephen, seriously - much appreciated,

 

I'm not sure why my many search attempts didn't land one of these links, a little confused about that. Regardless, thanks to your assistance I'm going to be saving huge chunks of time & effort. Such a pleasent surprise after being resigned to manually doing what these scripts will autoate for me. 

 

Best,

Damien.

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 ,
Dec 03, 2023 Dec 03, 2023

Copy link to clipboard

Copied

I want to remove the background on all layers with just one click

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
Community Expert ,
Dec 03, 2023 Dec 03, 2023

Copy link to clipboard

Copied

LATEST
quote

I want to remove the background on all layers with just one click


By @Remi24060989b4r3


So how are you successfully doing this manually (magic wand, select subject etc)? A script can perform the same steps, or run an action on each layer, but without knowing your steps or seeing a sample layered file it's hard to answer.

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