Generate instances

Hi everyone,

is there a method to generate the Glyphs app instances from a file with two or more masters? I can generate them from File → Generate Instances, but I’d like to do it with a script. Thank you in advance.

This snippet should get you started:

instance = Glyphs.font.instances[1]
newFont = instance.interpolatedFont
Glyphs.fonts.append(newFont)

Thank you Rainer, this is very useful!

1 Like