Skip to main content
Krisonrik
Participating Frequently
November 2, 2015
Question

Toggle multiple effect visibilty

  • November 2, 2015
  • 2 replies
  • 497 views


Ok, I think the more I dig the more questions I have regarding the whole action manager system. If anyone has a very good entry level tutorial with good explanations of how action manager works would be great. But I'm just going to shamelessly ask how do I create a script that toggles multiple selected layers' effects visibilities on and off. I got help with creating array for selected layers earlier but copy pasting what I get from ScriptingListenerJS is not doing the work to all the layers in the array. I also need to figure out how can I check whether current selected layers has effect visibilities turn off or not. This is some rabbit hole and I hate Adobe more and more for this. It's simply lunacy! Any help is appreciated! Btw, I have check the ps-scripts, but I guess the page is so old, stuff got deleted and only left an hollow husk.

This topic has been closed for replies.

2 replies

Chuck Uebele
Community Expert
Community Expert
November 2, 2015

I'm not sure it's going to be possible to do all the layers at the same time, but I could be wrong.

Krisonrik
KrisonrikAuthor
Participating Frequently
November 2, 2015

Doesn't matter, I loop through the layers and doing them one by one is fine. I just need to know how to check effect visibility status in order to complete toggle functionality.

DBarranca
Legend
November 2, 2015

Hi Richard,

the original ps-scripts is offline, the only thing we're left is the archive.org snapshot: http://web.archive.org/web/20150315052523/http://ps-scripts.com/bb/index.php‌ (part of the history is here: In memory of Mike Hale and PS-Scripts.com | Photoshop, etc.)

What are the layer's effects that you're interested in toggling?

Davide

Chuck Uebele
Community Expert
Community Expert
November 2, 2015

Are you trying to change all the selected layers' layer effects to the same off or on? What is happening when you tried? Did you loop through the layers to change the visibility, or just did you just try to do them all at once? Did you use a catch/try so that layers that don't have layer effects won't mess up the script?

As far as the site ps-scripts.com. Michael Hale, who owned the site, passed away, so it was shut down and deleted before anyone could take it over.

Krisonrik
KrisonrikAuthor
Participating Frequently
November 2, 2015

I was able to get everything to turn on or off run through the array that contains all the layers selected. I'm just trying to toggle them on or off all at once. I'm currently stuck on the part where I need to check the effect visibility status. If I can get that value, then I can figure out the rest.