Skip to content

Instantly share code, notes, and snippets.

@bomberstudios
Last active May 24, 2018 02:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bomberstudios/9d820e8752cd69b028f0 to your computer and use it in GitHub Desktop.
Save bomberstudios/9d820e8752cd69b028f0 to your computer and use it in GitHub Desktop.
// 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