Skip to content

Instantly share code, notes, and snippets.

@marianomike
Created August 28, 2016 16:35
Show Gist options
  • Save marianomike/be4aaf38f72635c213deef6cd010a554 to your computer and use it in GitHub Desktop.
Save marianomike/be4aaf38f72635c213deef6cd010a554 to your computer and use it in GitHub Desktop.
var onRun = function(context) {
var doc = context.document;
var selection = context.selection;
if(selection.count() == 0){
doc.showMessage("Please select something.");
}else{
for(var i = 0; i < selection.count(); i++){
var layer = selection[i];
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment