Get ufo color marks via code

Hi!
I have an ufo with colored glyphs in Robofont. If I try to get this values using glyph.color it returns None, so is this possible?

Best.

It might be in the layer. So try glyph.layers[0].color.

Nope, it doesn’t work and apparently the color is stored in the glyph not in the layer because I can manipulate it via the ui for the glyph.

I was confused by the api myself. The color property is only set when you set a default color in the UI. When loaded from an UFO, it sets a custom color that is accessible through the colorObject

Thanks a lot!