It seems that in 3.2, layer.applyTransform() is broken.
Layer.applyTransform([
0.5, # x scale factor
0.0, # x skew factor
0.0, # y skew factor
0.5, # y scale factor
0.0, # x position
0.0 # y position
])
Traceback (most recent call last):
File "<macro panel>", line 1
File "GlyphsApp/GlyphsApp/__init__.py", line 8800, in __GSLayer_applyTransform__
NameError: name 'NSAffineTransformStruct' is not defined
Traceback (most recent call last):
File "<macro panel>", line 1
File "GlyphsApp/GlyphsApp/__init__.py", line 8800, in __GSLayer_applyTransform__
NameError: name 'NSAffineTransformStruct' is not defined
can confirm, this happened to me too, current glyphs version 3.2 build 3179
Traceback (most recent call last):
File "GlyphsApp/GlyphsApp/plugins.py", line 622, in process_
File "plugin.py", line 123, in filter
self.transform_straight_segment(angle, layer, path, index)
File "plugin.py", line 217, in transform_straight_segment
self.rotate_node(layer, rotation_angle, self.return_node_for_index(path.nodes, index))
File "plugin.py", line 196, in rotate_node
layer.applyTransform(shift_matrix)
File "GlyphsApp/GlyphsApp/__init__.py", line 8800, in __GSLayer_applyTransform__
NameError: name 'NSAffineTransformStruct' is not defined