ID 597904 - CurveTool's resetROI knob cannot be executed via Python while the Properties panel is closed

Follow

Problem summary
CurveTool's resetROI knob cannot be executed via Python while the Properties panel is closed
 
Customer reported version
Nuke 14.1v5
 
Customer reported platform
Rocky 9
 
Steps to reproduce
 
1) Open Nuke.
 
2) Create a CurveTool node. The default ROI values should be 512, 389, 1536, 1167.
 
3) Close the Properties panel.
 
4) Execute the following code in the Script Editor:

nuke.selectedNode()["resetROI"].execute()
 
5) Reopen the Properties panel. Notice that the values haven't updated.
 
6) Run the code again:
nuke.selectedNode()["resetROI"].execute()
 
7) You should now see that the ROI values are 0, 0, 2048, 1556.
 
Expected behaviour
You should be able to execute the resetROI knob with or without the Properties panel open.
 
Actual behaviour
Running the execute() function on the resetROI knob doesn't work when the Properties panel isn't open.
 
Workaround
You could set the ROI values like this instead:
nuke.selectedNode()["ROI"].setValue([0, 0, nuke.thisNode().width(), nuke.thisNode().height()])
 
Reproduced by support
This bug has been reproduced in:
Nuke 16.0v1 - Windows 11 - macOS 12
Nuke 12.0v1 - Windows 11 - macOS 12
 
Earliest version tested
Nuke 12.0v1 
- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why