ID 328102 - Write node: 'check file matches input' option keeps resetting itself after the script has been saved and closed

Follow

Problem summary
On the Write node, the 'check file matches input' option keeps resetting itself after the script has been saved and closed, with the option unchecked. It will be checked again when the script is reopened.
This seems to only happen when there is a ScanlineRender node downstream, and the stream is being viewed from the ScanlineRender node (or further down).

This bug may also be related to the following:
TP 163382 - Write node: 'check file matches input' option keeps resetting itself
TP 148634 - Write: checkHashOnRead is often wrongly being re-enabled

Customer reported version
nuke.10.5v7

Customer reported platform
windows10

Steps to reproduce
1) Open Nuke

2) Add a CheckerBoard node (Right click on the node graph > Image > CheckerBoard)

3) Add a Write node (Right click on the node graph > Image > Write)

4) Write out an exr image sequence (only a small number of frames is required just to test). More information on how to do this can be found here:
http://help.thefoundry.co.uk/nuke/11.1v1/?_ga=2.184826345.1739983547.1515408391-142210730.1512576389#comp_environment/rendering/output_write_nodes.html?Highlight=write

5) Now connect a Project3D node (Right click on the node graph > 3D > Shader > Project 3D)

6) Then connect a Card node (Right click on the node graph > 3D > Geometry > Card)

7) Then connect a ScanlineRender node (Right click on the node graph > 3D > ScanlineRender)

8) Now connect a camera to the cam inputs on the Project3D and ScanlineRender, and view the script (press the 1 key with the ScanlineRender node selected).
The script should now look like the following:



9) Double click the the Write node to open its properties window, and ensure that the 'check file matches input' option is unchecked (the 'read file' option will need to be checked first).

10) Save the script (File > Save Comp)

11) Close the comp (File > Close Comp)

12) Reopen the script (File > Open comp)

13) Double click the the Write node to open its properties window again, and notice that the 'check file matches input' option is now checked.

14) If the ScanlineRender node is disconnected, or the script is being viewed from any node above the ScanlineRender, the checkbox works as intended.

Workaround
Use another Read node to read the results of the Write node back into your script

Reproduced by support
This bug has been reproduced in:
Nuke 11.1v1 - Windows 10 - Linux CentOS 7 - OSX El Capitan
Nuke 11.0v3 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.5v7 - Windows 10
Nuke 10.5v1 - Windows 10
Nuke 10.0v6 - Windows 10
Nuke 10.0v1 - Windows 10
Nuke 9.0v9 - Windows 10
Nuke 9.0v9 - Windows 10
Nuke 8.0v7 - Windows 10
Nuke 8.0v1 - Windows 10
Nuke 7.0v10 - Windows 10 - Linux CentOS 7 - OSX El Capitan

Earliest version tested
Nuke 7.0v10 - Windows 10 - Linux CentOS 7 - OSX El Capitan
- This issue appears to be in all versions of the product

Expected behaviour
After the script has been saved and closed, with the option unchecked, it should remain unchecked when the script is opened again.

Actual behaviour
After the script has been saved and closed, with the option unchecked, it will be checked again when the script is reopened.

    We're sorry to hear that

    Please tell us why