Skip to content

Instantly share code, notes, and snippets.

@AlexeyNik
Created January 15, 2019 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeyNik/e61eaee0bac09c0e48dd35326f48165d to your computer and use it in GitHub Desktop.
Save AlexeyNik/e61eaee0bac09c0e48dd35326f48165d to your computer and use it in GitHub Desktop.
var aDoc = app.activeDocument;
var showLayers = function ( layers )
{
var i = layers.length, layer;
while ( i-- )
{
layer = layers[i];
layer.visible = true;
layer.layers.length && showLayers ( layer.layers );
}
}
showLayers ( aDoc.layers );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment