How to detect an outside open corner

Does this help?

from GlyphsApp import GSPathPen
layer = Font.selectedLayers[0]
pen = GSPathPen.alloc().init()
layer.drawInPen_(pen)
print pen.layer().paths

If your example, you passed the class of the pen as an argument. You would need to instantiate it, first. But the Base objects should not be used. You need to pick a subclass that actually implements something.

1 Like