Created
January 15, 2019 03:55
-
-
Save AlexeyNik/e61eaee0bac09c0e48dd35326f48165d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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