NameError: name 'GSControlLayer' is not defined

Trying to get line break layer GSControlLayer(10) from a palette plugin, but it gives the error:
NameError: name ‘GSControlLayer’ is not defined

Works fine from the macro panel. Is that a bug?

You need to import it:

from GlyphsApp import GSControlLayer
1 Like