Last active
May 24, 2018 02:29
-
-
Save bomberstudios/9d820e8752cd69b028f0 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
// Disable all Blurs in document | |
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] | |
if(current_layer.style != undefined){ | |
current_layer.style().blur().setIsEnabled(false) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment