State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:613137|
Problem summary
Node.dependencies() returns an empty list on its first call in some scripts in Terminal mode.
The issue does not occur in the Script Editor and has been reproduced in a simple script containing a Remove node, TimeOffset node, and a Crop node with expressions.
Customer reported version
Nuke 16.0v5
Customer reported platform
Rocky 9
Steps to reproduce
1) Open Nuke.
2) Paste the following script into the Node Graph, and save the script:
Remove { } TimeOffset { time_offset -50 time "" } Crop { box {{input.bbox.x} {input.bbox.y} {input.bbox.r} {input.bbox.t}} reformat true crop false } nuke -ti script.nk node = nuke.toNode("Crop1")print(f"{node.dependencies()=}")
RESULT: An empty list is printed.print(f"{node.dependencies()=}")
RESULT: The upstream node (TimeOffset1) is printed in a list. node.dependencies() should print the upstream node in a list, in this case TimeOffset1, the first time it is run.node.dependencies() prints an empty list when it is first run, but returns the correct node on the 2nd attempt.We're sorry to hear that
Please tell us why