#MenuTitle: Delete Global Guidelines
# -*- coding: utf-8 -*-
__doc__="""
Deletes all global guidelines in the current master.
"""



thisFont = Glyphs.font # frontmost font
thisFontMaster = thisFont.selectedFontMaster # active master
numberOfGuidelines = len( thisFontMaster.guideLines )
thisFontMaster.guideLines = []

print "Deleted %i global guidelines in Font %s, Master %s." % ( numberOfGuidelines, thisFont.familyName, thisFontMaster.name )
