Advertisement
mekkablue

Glyphs.app: Output composites per selected glyph

Sep 4th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #MenuTitle: Outpout Components
  2. # -*- coding: utf-8 -*-
  3. """Outputs components for each selected glyph."""
  4.  
  5. import GlyphsApp
  6.  
  7. Doc  = Glyphs.currentDocument
  8. selectedLayers = Doc.selectedLayers()
  9.  
  10. for thisLayer in selectedLayers:
  11.     listOfComponents = [ c.componentName for c in thisLayer.components ]
  12.     print "%s = %s" % ( thisLayer.parent.name, " + ".join( listOfComponents ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement