There are two extra node with corner in one layer, I want to copy all the shapes/paths and its corners to another layer, but can’t copy its corners to another layer through script. Only copied the shapes.
I founder the function copy does not work for extra nodes’ corners.
Do you have any solution.
Thanks a lot.
import copy
layer = Glyphs.font.glyphs['uni4E08'].layers[0]
shape = []
for s in layer.shapes:
shape.append(s.copy())
print(shape)
Glyphs.font.glyphs['uni4E07'].layers[0].shapes.extend(shape)
I found if copy different layer’s hint(corners) together to one glyph’s layer, some corner will locate in wrong position.
Such as belowing example script, after excuting to copy all shapes and hints(corners) together to ‘layer’, the layer4’s corner will locate in wrong position, it will stick to the layer5’s corner.
Do you have any suggestion?
Thanks.