Access uppercase glyphs

Newbie scripter here… if I run

print( Glyphs.font.glyphs["A"].name )
print( Glyphs.font.glyphs["A"].case )

Macro window returns me this:


that means .case =1, correct?

So, why this doesn’t work?

UC = [g for g in Glyphs.font.glyphs
	if == "1"
	and g.export

print (UC)

[ ]

And, why Uppercase is not a subCategory by default? — if I manually set this at Glyph Info, I can use the g.subCategory == Uppercase is an int, not a string and you can use some predefined constants: Python Scripting API Documentation — Python Scripting API 3.0 documentation

if == GSUppercase:
    #do something.
1 Like