Issues on publishing nukeNodes

Hi all,
We’ve been testing out nuke workflows recently and have noticed some odd behavior upon trying to publish the product type nukeNodes.

I created a very simple graph of just 4 nodes: Read, Constant, Merge and a render node. I am trying to export the first 3 using nukeNodes:

When I run the publisher to publish nukeNodes and the workfile, it succeeds, but the connections in my graph break. In this case, the connection between the Read and the Merge disappeared after publish:

This behavior is unfortunately quite inconsistent. It seems like if I reopen the workfile then I often don’t get the same bug again. Also, if I only publish the nukeNodes and not the workfile then it also seems to usually work without breaking the connections.

Any ideas about what might be going wrong here?

1 Like

Thanks, I was able reproduce it.

And, I think I’ve found the issue.

look at my screenshot above, I’m selecting all of the nodes.
but, when I clear my selection, it works.

Also, if I’m only selecting the merge node, it works.


I’m not sure yet, where the issue is coming from. I didn’t dig deeper.
But, it could be related to some logic that works with selected nodes or restoring connections.

Sorry about the long delay on this, and thatnks for your reply, Mustafa. It does seem that there’s something funky about the selection behavior that causes the graph to rewire during publish.

Is this something that we should create an issue for in ayon-nuke? I assume it could be fixed by adding a step to deselect all nodes at the start of publishing, but it might be worth a deeper look to understand the problem better.

I’d say if this something you can fix, then a PR is more than welcomed.
Also, feel free to create an issue on nuke addon.

Was able to reproduce.

This should fix it: Avoid output node creation affecting anything based on user's active selection by BigRoy · Pull Request #214 · ynput/ayon-nuke · GitHub

Thanks, everyone! @BigRoy we’ll test this at our next update, I expect it will fix it as you said :slightly_smiling_face:

Should be released in 0.4.1

1 Like