Mekkablue Script "Set Label Colors" has errors

On opening this error occurs:

Traceback (most recent call last):
  File "Set Label Colors.py", line 209, in LoadPreferences
    self.w.popup_1.set( self.pref("popup_1") )
AttributeError: 'FloatingWindow' object has no attribute 'popup_1'

Entering a value shows this:

Traceback (most recent call last):
  File "Set Label Colors.py", line 195, in SavePreferences
    Glyphs.defaults[self.domain("popup_1")] = self.w.popup_1.get()
AttributeError: 'FloatingWindow' object has no attribute 'popup_1'

And setting or resetting :slight_smile:

Traceback (most recent call last):
  File "Set Label Colors.py", line 195, in SavePreferences
    Glyphs.defaults[self.domain("popup_1")] = self.w.popup_1.get()
AttributeError: 'FloatingWindow' object has no attribute 'popup_1'

Note: 'Set Label Colors' could not write preferences.

True, it is unfinished and undocumented. Do you need it?

Well. For me, it is very inconvenient to identify a selected glyph in the croud of colors. Especially after using “Show Glyph in Font View” command.

So, I thougt it could be a good idea to use lighter colors…

1 Like

You can try to run this in the Macro window:
Glyphs.defaults["GSFontViewDrawLabelColor"] = False

Ok. Good for selection. But not so good for color overview.

What do you think about this


:

Works now. The ALL buttons in the last row batch-set the last label value into all other lines.

1 Like

Hmm. I have restarted, but my custom lighter colors only appear in the context menu…

image

The alpha value of the colors is not really used. So you need to make them paler by the color values.

Must be an alpha somewhere, because the colors are not the same as in e.g. Textedit

image

Anyway. For me it works. Much better overview, now. Thanks!