Copy link to clipboard
Copied
Right now I'm using Actions. One action hides the layer by name. The other shows it. It is almost perfect, the only problem is that it uses 2 different keys, which is a bit confusing and wastes the few keys that are available.
Thank you for reading. I hope someone helps me with this, I use this all the time.
Change the name of "theLayer" to your adjustment layer name (layer name should be unique not multiples of the same name). This is only for top-level/root layers, not layers nested inside groups.
Based on a script from @Chuck Uebele
#target photoshop
var toggleLayer = activeDocument.layers.getByName("theLayer");
toggleLayer.visible = toggleLayer.visible === false;
or
#target photoshop
var toggleLayer = activeDocument.layers.getByName("theLayer");
toggleLayer.visible = !toggleLayer.visibl
...
Copy link to clipboard
Copied
Change the name of "theLayer" to your adjustment layer name (layer name should be unique not multiples of the same name). This is only for top-level/root layers, not layers nested inside groups.
Based on a script from @Chuck Uebele
#target photoshop
var toggleLayer = activeDocument.layers.getByName("theLayer");
toggleLayer.visible = toggleLayer.visible === false;
or
#target photoshop
var toggleLayer = activeDocument.layers.getByName("theLayer");
toggleLayer.visible = !toggleLayer.visible;
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html#Photoshop