Change instance family name in script

Hi! In order to export trial charsets for two families in one project, I need to change family name in script. I haven’t found a solution as this code throws an exception:

Glyphs.font.instances[0].familyName = “TEST”

gives me:
Traceback (most recent call last):
File “”, line 1
File “GlyphsApp/GlyphsApp/init.py”, line 4763, in
TypeError: Need 3 arguments, got 2

What is the correct way?
Thx. Jan

There was a problem with the wrapper.

You can try the unwrapped version:

value = "Test"
Glyphs.font.instances[0].setProperty_value_languageTag_("familyNames", value, None)
1 Like

Thanks Georg, I’ll try it.

I fixed the python API and added a bunch of missing properties.

2 Likes