In the current beta (1086), I am getting the following Python error:
print layer.copyDecomposedLayer().background
File "GlyphsApp/__init__.py", line 4865, in Layer__repr__
File "GlyphsApp/__init__.py", line 4865, in Layer__repr__
[lots more of these]
File "GlyphsApp/__init__.py", line 4865, in Layer__repr__
RuntimeError: maximum recursion depth exceeded
It even breaks the undo so I am losing part of my work.
As far as I remember, I used the method to get a deep copy of the layer because otherwise, if I delete the background path, the foreground will be deleted, too. Similarly, using layer.paths.append( GSPath( path ) ) further below does not wirk. Seems like all the copy constructiors are somewhat broken?
It is part of my Mask to Master macro:
Using the copy constructor, i.e. iterating over GSLayer( layer ).background.paths should be the official solution but it does not work. Similarly, using layer.paths.append( GSPath( path ) ) further below does not work. Seems like all the copy constructors are somewhat broken?
Any suggestions how to get it to work in the latest Glyphs version?