expose node in SpaceNodeEditorPath
If we have a tree that has the same node more then once (A and B are the same):
Then depending on which one we enter, we get different results when inspecting with a Viewer Node. Which of course is correct goes different data goes threw the node.
E.g. when I enter the first Two_Times node (A) you can see two boxes with the Viewer Node:
And when I enter the 2nd Two_Times node (B) you can see 3 boxes with the Viewer Node:
So context is very important here.
According to the documentation of SpaceNodeEditorPath:
docs.blender.org/api/current/bpy.types.SpaceNodeEditorPath.html
append(node_tree, *, node=None)
Append a node group tree to the path
Parameters:
node_tree (NodeTree) – Node Tree, Node tree to append to the node editor path
node (Node, (optional)) – Node, Group node linking to this node tree
We can see a optional node can be added for what node linked to the current source tree. But it seems that there is no way in the blender API to retrieve if this optional node was used.
It would be great if we could access this.
0 Comments