Skip to content

Instantly share code, notes, and snippets.

@jalbertbowden
Forked from Arahnoid/toggleHueSatLayers.js
Created February 17, 2019 05:03
Show Gist options
  • Save jalbertbowden/3d5feda9dc2f44dc529f4dcc1babe9a3 to your computer and use it in GitHub Desktop.
Save jalbertbowden/3d5feda9dc2f44dc529f4dcc1babe9a3 to your computer and use it in GitHub Desktop.
Toggle the hue and saturation adjustment layers in 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