What is the Glyphs' equivalent of RF CurrentGlyph?

In a script I want to get glyph that is currently being edited. How can I do that, please?

just found a whacky hacky way of getting the text in current tab, then somehow find the glyph using cursorIndex in the text that is made of characters and slash representations for non unicode glyphs

The current layer is Layer and you can get the glyph of a layer using the parent property:

currentGlyph = Layer.parent
1 Like

For context: Layer stands for Font.selectedLayers[0].