Problem summary
Running width() and height() on a any node when it is disabled, and has no active nodes above it in the stream, will always return 640x480, regardless of what the root format is set to.
Customer reported version
nuke.11.2v3
Customer reported platform
centos7
Steps to reproduce
1) Open Nuke.
2) Create any node in the Node Graph but do not attach it to anything.
3) With the node selected, run the following code in the script editor (Click on one of the content menus > Windows > New Script Editor):
print nuke.selectedNode().width()print nuke.selectedNode().height()
This will now return the root format.
4) If you now disable your node (select it and press d on the keyboard) and run the code again, it will now return 640x480.
Reproduced by support
This bug has been reproduced in:
Nuke 12.0v3 - Windows 10 - Linux CentOS 7 - macOS 10.14 (Mojave)
Nuke 11.3v1 - Windows 10
Nuke 11.2v1 - Windows 10
Nuke 11.1v6 - Windows 10
Nuke 11.1v5 - Windows 10
Nuke 11.1v4 - Windows 10
Nuke 11.1v3 - Windows 10
Nuke 11.1v2 - Windows 10 - Linux CentOS 7 - macOS 10.14 (Mojave) - Regression
Unable to reproduce bug in:
Nuke 11.1v1 - Windows 10 - Linux CentOS 7 - macOS 10.14 (Mojave)
Earliest version tested
Nuke 11.1v1 - This issue no longer appears in this version and has regressed
Expected behavior
Running width() and height() on any Viewer or disabled node,that has no active nodes above it in the stream, should return the root format.
Actual behavior
Running width() and height() on a any node when it is disabled, and has no active nodes above it in the stream, will always return 640x480, regardless of what the root format is set to. This also occurs with the Viewer node.