Link Palette & Reporter

The reporter I am writing should respond to the Layer Palette.
And maybe also to a custom Palette. How do I do that?

Is there a documentation or reporter/ plugins which work that way?

I do not understand what you mean. Should it draw something in the palette?

No, the Reporter should draw according to selections in Palette.
I want to look at several filled glyphs at once and toggle layers on/off.

the GSLayer has a property visible().
so you could do something like this:

for layer in activeLayer.parent.layers:
    if layer.visible():
        print layer
1 Like

Is there a way to set a layer’s visibility? layer.visible() appears to be read-only. I would love to make a script that can toggle the visibility of all master layers.

As the .visible() is not in the python wrapper, you need to use the default pyObjC setter.

layer.setVisible_(True)