Skip to content

Instantly share code, notes, and snippets.

@connordavenport
Created August 6, 2020 17:15
Show Gist options
  • Save connordavenport/9b2752194872c8b6a6636f01ac31e3e0 to your computer and use it in GitHub Desktop.
Save connordavenport/9b2752194872c8b6a6636f01ac31e3e0 to your computer and use it in GitHub Desktop.
from ufoProcessor import DesignSpaceProcessor
from mojo.UI import GetFile
# change this to True if you want to
# use VarLib instead of MutatorMath ↓
D = DesignSpaceProcessor(ufoVersion=3, useVarlib=False)
designspacePaths = GetFile("select a designspace file:", allowsMultipleSelection=True, fileTypes=['designspace'])
if designspacePaths:
for designspacePath in designspacePaths:
D.read(designspacePath)
D.generateUFO()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment