My add-on creates a shader node tree and encloses it in node group.
I want to have some side panel tools to add some tweaks, rearrange links, etc.
For this to work I need to make
Panel.poll operator to check if the active nodetree has been created by the add-on.
Using names doesn’t seem right, because user can naturally rename the node group.
Analysing tree structure to search for particular nodes is very heavy operation for
poll, which is called on every click.
Is there any other way?
Also, cannot find a way to determine an ‘active_nodetree’, when a node group is opened.
active_node doesn’t seem to have any references to nodetree it belongs.