Created
September 12, 2019 18:41
-
-
Save mekkablue/fdd807ef8417307f2df580349d63cf1c to your computer and use it in GitHub Desktop.
Glyphs: merge paths from other master layers into current master (for selected glyphs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m = Font.selectedFontMaster | |
for sl in Font.selectedLayers: | |
g = sl.parent | |
print "Processing %s:" % g.name, | |
targetLayer = g.layers[m.id] | |
pathcount = 0 | |
for l in g.layers: | |
if l.isMasterLayer and l != targetLayer: | |
for p in l.paths: | |
targetLayer.paths.append(p.copy()) | |
pathcount += 1 | |
print " merged %i paths." % pathcount |
Author
mekkablue
commented
Sep 12, 2019
- Paste this in Macro Window
- Select target master (Cmd-1, 2, 3...)
- Select any number of glyphs
- Run Script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment