Last active
November 11, 2015 11:17
-
-
Save bomberstudios/a43325131793f71a7b25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Show All Layers in All Pages | |
var doc = context.document, | |
pages = doc.pages() | |
for (var i = 0; i < [pages count]; i++) { | |
var currentPage = [pages objectAtIndex:i] | |
var all_layers = [currentPage children] | |
for (var j = 0; j < [all_layers count]; j++) { | |
var current_layer = [all_layers objectAtIndex:j] | |
[current_layer setIsVisible:true] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment