I’m working on a file and each master has a lot of shapes. On some masters I need to reverse the shape order. Is there a way I can quickly flip it? Can I access shape order with the macro panel?
1 Like
Here: it’s intended to work on just one selected glyph in the current master.
l0 = Glyphs.font.selectedLayers[0]
shapes = [s.copy() for s in l0.shapes]
shapes.reverse()
l0.shapes = []
l0.addShapes_(shapes)
3 Likes
l0 = Glyphs.font.selectedLayers[0]
shapes = list(l0.shapes)
shapes.reverse()
l0.shapes = shapes
Or, if you run it in the macro panel:
shapes = list(Layer.shapes)
shapes.reverse()
Layer.shapes = shapes
2 Likes
Thanks very much you two!