Center Glyphs.py not working

Hi there, Center Glyphs.py is not working for a certain project file, but it still works in other projects. Getting the following error:


⚠️ 'Center Glyphs' Script Error:

Traceback (most recent call last):
  File "Center Glyphs.py", line 37
    thisLayer.applyTransform(shift)
  File "GlyphsApp/GlyphsApp/__init__.py", line 8800, in __GSLayer_applyTransform__
NameError: name 'NSAffineTransformStruct' is not defined


Traceback (most recent call last):
  File "Center Glyphs.py", line 45
    raise e
  File "Center Glyphs.py", line 37
    thisLayer.applyTransform(shift)
  File "GlyphsApp/GlyphsApp/__init__.py", line 8800, in __GSLayer_applyTransform__
NameError: name 'NSAffineTransformStruct' is not defined

Pretty much clueless where the problems lies.
Appreciate help.
Thanks. Yang.

That is a problem with the python wrapper in the latest version. I’ll update a fixed version, soon.

Thanks Georg.