Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bomberstudios/5254963 to your computer and use it in GitHub Desktop.
Save bomberstudios/5254963 to your computer and use it in GitHub Desktop.
// 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