Created
March 27, 2013 15:11
-
-
Save bomberstudios/5254963 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
| // Clear All Guides in Current Artboard | |
| #import 'library/common.js' | |
| var current_artboard = [[doc currentPage] currentArtboard]; | |
| if (current_artboard != null) { | |
| var horizontal_guides = [current_artboard horizontalRulerData], | |
| vertical_guides = [current_artboard verticalRulerData]; | |
| // Remove horizontal guides | |
| [horizontal_guides numberOfGuides].times(function(){ | |
| [horizontal_guides removeGuideAtIndex:0]; | |
| }) | |
| // Remove vertical guides | |
| [vertical_guides numberOfGuides].times(function(){ | |
| [vertical_guides removeGuideAtIndex:0]; | |
| }) | |
| } else { | |
| com.bomberstudios.alert("You need to select at least one layer from an artboard"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment