Created
August 6, 2020 17:15
-
-
Save connordavenport/9b2752194872c8b6a6636f01ac31e3e0 to your computer and use it in GitHub Desktop.
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
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