State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:591264|
Problem summary:
Calling node.dependent() can return inconsistent results if the TCL expression "[dependencies this]" is used in a Text node
This does not seem to affect node.dependencies()
Customer reported version:
Nuke 14.1v5
Customer reported platform:
Rocky9
Steps to reproduce:
1) Launch Nuke and create a Text node in the Node Graph.
2) In the Text node's Properties, enter [dependencies this] into the message field.
3) Create a Grade node that is connected to the Text node.
4) Open the Script Editor window and execute the following code, observing the output:
n = nuke.nodes.NoOp() nn = nuke.nodes.NoOp() nn.setInput(0, n) print(f"Attempt 1 - {n.name()}'s dependent nodes are: {n.dependent()}") print(f"Attempt 2 - {n.name()}'s dependent nodes are: {n.dependent()}")
# OutputAttempt 1 - NoOp1's dependent nodes are: [<Grade1 at 0x00000227EA4348A0>] Attempt 2 - NoOp1's dependent nodes are: [<NoOp2 at 0x00000227EA435DA0>] [dependencies this] inside a Text node should not influence the node.dependent() Python function's results.[dependencies this] as a TCL expression, the node.dependent() method can produce incorrect/inconsistent results. forceEvaluate=True to the node.dependent() calls.We're sorry to hear that
Please tell us why