State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:443019|
Problem summary
Creating nodes via Python triggers onUserCreate callbacks. The documentation states that they should only be executed whenever a node is created by the user using the NUKE graphical user interface (GUI):
https://learn.foundry.com/nuke/developers/latest/pythondevguide/callbacks.html#onusercreate
Customer reported version
n/a
Customer reported platform
n/a
Steps to reproduce
1) Launch Nuke in terminal mode, with the -t flag.
2) Run the following Python code:
def foo(): print "foo"nuke.addOnUserCreate(foo)nuke.createNode('Grade')
Result: "foo" is printed, even though the node has not been created by the user using the Nuke GUI.
Expected behaviour
As the onUserCreate callback is triggered, the documentation should be updated to reflect this.
Actual behaviour
The onUserCreate callback is triggered when creating nodes via Python but the documentation states that they should only be executed whenever a node is created by the user using the NUKE graphical user interface (GUI).
Workaround
Unknown.
Reproduced by support
This bug has been reproduced in:
Nuke 12.2v2 - Windows 10 - macOS 10.13 (High Sierra) - Linux CentOS 7
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 - 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