Access font info: instances

how can one pythonwise access the values for the instances? according to the documentation one should be able to deal with these fellers:

active
name
weight
width
weightValue
widthValue
isItalic
isBold
linkStyle
customParameters

I tried:

for instance in instances:
....print instance

and:

print GSInstance

But wether I add a .weight or . active to either versions, it doesn’t work.

I want to check in a script if the instance is active for export. thanks in advance

You did not specify of which font you want the instances. So, assuming “thisFont” is a GSFont object:

for instance in thisFont.instances:
print instance.isItalic

yesss. stupid me, I assumed Glyphs knows what font I am talking about :smiley:

with the addition of: thisFont = Glyphs.font it works. thanks so much!