def poll(cls, ntree): b = False if ntree.bl_idname == 'ShaderNodeTree': b = True return b # Derived from the Node base type.