Skip to content

Instantly share code, notes, and snippets.

@ryanbugden
Created August 6, 2020 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanbugden/701584823569e5be184478a10c39fb22 to your computer and use it in GitHub Desktop.
Save ryanbugden/701584823569e5be184478a10c39fb22 to your computer and use it in GitHub Desktop.
# menuTitle : Generate Instances from Designspaces
from ufoProcessor import build
from mojo.UI import GetFile
paths = GetFile(
message='Select all designspaces, the instances of which you want to generate.',
title='Generate Instances',
allowsMultipleSelection=True
)
for path in paths:
build(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment