ID 443791 - Declone breaks/adds connections when used on multiple clones in a script

Follow

Problem summary
Declone breaks/adds connections when used on multiple clones in a script.


Customer reported version
nuke.11.2v4


Customer reported platform
windows7


Steps to reproduce

1) In Nuke, create a few nodes of any type. (e.g Grade, Colorcorrect)

2) Select the nodes and clone them (Alt+K).

3) Select the clones in the Node Graph.

4) Open the Script Editor and run the following code:

for n in nuke.selectedNodes():

nukescripts.declone(n)

5) Observe the connections of the previously cloned nodes.


Expected behavior
Only the cloned nodes should be disconnected from it's clone.


Actual behavior
The cloned nodes lose their clone connection as expected, but also get connected to other nodes incorrectly.


Workaround
Decloning a single node at a time seems to correct the behavior.


Reproduced by Support in:
Nuke 12.2v1 - Windows 10

Nuke 12.1v1 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.0v1 - Windows 10

Nuke 9.0v1 - Windows 10

Nuke 8.0v1 - Windows 10


Earliest version tested
Nuke 8.0v1 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why