Adding instances/masters view api

Hey,

Maybe this exists but I didn’t come across any methods in the docs. Is is possible to create instances or masters via the Python api?

I have a yaml file full of interpolation values I’d like to turn into instances.

Cheers,
Marc

This works as with any other object in the font.

instance = GSInstance()
instance.name = "Light"
Font.instances.append(instance)

All the available properties are in docu.glyphsapp.com.

Masters work the same.

1 Like

Thank you sir