Is it possible somehow to still access the master layers, when adding a certain Filter Plugin as a CP on an Export-Instance?
My filter plugin can do that when run in the UI, it does some path operations using the drawings of 2 masters. However when it’s run as a CP, I only have access to the one default layer “Regular” of each glyph. At least per default. Is there a way to inject the desired master layers somehow beforehad, so that the filter can work with those?
Thank you, I’ll experiment with that.
Should I also remove that callback at some point? The Filter Plugin doesn’t have some sort of dealloc method, or?
Filters are only instantiated once and are not released until the app is closed. Some with “glyphsPluging”. All the other plugins are instantiated and deallocated a lot.