Show addon tab panel in just the Compositor, not in Shader Editor How can I only place the panel in the compositor NOT the shader editor as doing bl_space_type = 'NODE_EDITOR' doesn't specify a specific node editor and places it in both?
Relevant code portion:
class ExamplePanel(bpy.types.Panel):
    &quot;&quot;&quot;Creates a Panel in the Node Compositing window&quot;&quot;&quot;
    bl_label = &quot;MyTab&quot;
    bl_idname = &quot;OBJECT_PT_my_tab_pnl&quot;
    bl_space_type = 'NODE_EDITOR'
    bl_region_type = 'UI'
    bl_context = &quot;View&quot;
    bl_category = &quot;My Panel&quot;
You can add a poll function:
@classmethod
def poll(cls, context):
    snode = context.space_data
    return snode.tree_type == 'CompositorNodeTree'