I’m trying to write a plugin to use with Glyphs3, but I’m having a problem with smartComponentValues.
for layer in Glyphs.font.selectedLayers:
for compo in layer.shapes:
if compo.name == "_part.test":
print(compo.component.smartComponentAxes)
print(compo.smartComponentValues)
print(list(compo.smartComponentValues))
When the smart component property value is set to the maximum value with the smart component setting (cmd+opt+i), the value is not output.
Currently, the value is output differently depending on how the property value of the smart component is specified. I hope all values will be printed even when it is the maximum value.
pieceValue = component.smartComponentValues[axis.id]
File "GlyphsApp/GlyphsApp/__init__.py", line 2390, in __getitem__
TypeError: 'GSNotifyingDictionary' object is not subscriptable