Skip to content

Instantly share code, notes, and snippets.

@Arahnoid
Forked from Lokno/toggleHueSatLayers.js
Last active April 21, 2019 23:00
Show Gist options
  • Save Arahnoid/5239c7bcc2dcbb553516 to your computer and use it in GitHub Desktop.
Save Arahnoid/5239c7bcc2dcbb553516 to your computer and use it in GitHub Desktop.
[Totle hue/saturation] Toggle the hue and saturation adjustment layers in photoshop #Photoshop
#target photoshop
var currentDoc = app.activeDocument;
for ( var i = 0; i < currentDoc.layers.length; i++ ) {
var layer = currentDoc.layers[i];
if( layer.kind === LayerKind.HUESATURATION )
{
layer.visible = layer.visible ? false : true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment