Hi Georg,
it looks like the return type of instance.generate() has changed with Glyphs 4.
The Return type used to be bool/list, but is None within Glyphs 4.
Try this code:
from GlyphsApp import Glyphs, INSTANCETYPEVARIABLE, OTF, TTF, Message
font_obj = Glyphs.font
for instance in font_obj.instances:
print("instance: ", instance.fullName)
if not instance.active:
continue
if instance.type == INSTANCETYPEVARIABLE:
continue
export_path = "/Users/ollimeier/Downloads"
exportResult = instance.generate(OTF, export_path, autoHint=False, removeOverlap=True, useSubroutines=False)
print("exportResult: ", exportResult)
That’s why some of my scripts fail within Glyphs 4.