ID 601223 - Nodes are evaluated outside of the Group and become expression linked when using Group.run(nuke.toNode('name')) in the Node Graph.

Follow

Problem summary
Nodes are evaluated and become expression linked when using .run(nuke.toNode('name')) in the Node Graph.
 
Customer reported version
Nuke 16.0v2
 
Customer reported platform
Rocky 8
 
Steps to reproduce
1) Launch Nuke and add a Group node in the Node Graph.
2) Add a NoOp node and name it NoOpTest.
3) Open the Script Editor and run the following code snippet, observing results and the Node Graph:

n = nuke.toNode("Group1")def print_node():    print(repr(nuke.toNode("NoOpTest")))n.run(print_node)
 

 
Expected behavior
Nodes should return None and not become expression linked if it's not within the Group node.
 
Actual behavior
The NoOpTest node is evaluated outside of the Group and becomes expression linked.
 
Workaround
Using nuke.allNodes() returns only nodes within the Group and does not expression link.
 
Reproduced by Support in:
Nuke 16.0v3 - Windows 11, Rocky 9
Nuke 14.0v1 - Windows 11, Rocky 9
 
 
Earliest version tested
Nuke 14.0v1 - This issue appears to be in all tested versions of the product

    We're sorry to hear that

    Please tell us why