Advertisement
mekkablue

Glyphs.app sample script: Output composites

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