State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:153419|
Problem summary
nuke.clone() crashes Nuke when run in terminal mode.
Customer reported version
Nuke 12.2v2
Customer reported platform
Linux
Steps to reproduce
1) Open Nuke in terminal mode, by using the -t flag in terminal/Command Prompt.
2) Run the following line of code to create a Grade node:
g = nuke.nodes.Grade()
3) Then clone the Grade node by executing the following code:
nuke.clone(g) Nuke should then crash.
NOTE: Running the same code in Nuke's Script Editor (in an interactive session) works as expected.
Expected behaviour
nuke.clone() crashes Nuke when run in terminal mode.
Actual behaviour
nuke.clone() should clone the specified node, and should not result in a crash.
Workaround
It appears that the nuke.cloneSelected() function does not cause a crash. The following is an example of how you can use this function instead of nuke.clone():
g = nuke.nodes.Grade()nuke.toNode(g.name())["selected"].setValue(True)nuke.cloneSelected()
Reproduced by support
This bug has been reproduced in:
Nuke 13.0v2 - Windows 10 - macOS 10.13 (High Sierra) - Linux CentOS 7
Nuke 8.0v1 - Windows 10 - macOS 10.13 (High Sierra)
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