Feature request: DOCUMENTCHANGE const

for Glyphs.callBack it would be helpful to have a DOCUMENTCHANGE or similar const. I can’t check for Glyphs.currentDocument on UPDATEINTERFACE because it requires user to actually interact with the edit view, when a layer could already be selected in that other document, and there are values in the UI that I would want to update when the document changes

maybe there is a workaround using an objc method or something?

ah, I found DOCUMENTACTIVATED - perhaps all the callback keys could be added here, where there is an incomplete list : Glyphs.app Python Scripting API Documentation — Glyphs.app Python Scripting API 3.2 documentation

Good that you found it already. You can also have a look at this sample plugin with window, that shows how to implement it

1 Like

I updated the docu.

1 Like