What happened to all the attributes?

When I was scripting I would often do a dir() to find all the possible “attributes” (not sure if this is the right term) but it seems recently they’re not showing up anymore.

If I did dir(Font.selectedLayers) I’d get a big list of possible attributes that I can use for scripting that weren’t listed in the API such as “setRightMetricsKey_” now the list is very short and doesn’t list what’s useful?

Font.selectedLayers is an array of layers. What you need is dir(Font.selectedLayers[0])

Still same result:

print dir(Glyphs.font.selectedLayers[0])

A long result

print dir(Glyphs.font.selectedLayers[0])

Thanks for the example. I fixed it.