ID 357332 - Rendering a script via terminal with stereo views and also using expressions containing 'channels()' (Python) or 'layers' (TCL) produces a Read error

Follow

Problem summary
Rendering a script via terminal with stereo views and also using expressions containing channels() (Python) or layers (TCL) produces a Read error similar to the following:

ERROR: Read1: path/to/nuke/script/TestFrame-R-101.exr: Read error: No such file or directory
Total render time: 0.00 seconds

The attached script has stereo views set up and uses the following expression on the Disable knob of one of the Grade nodes:

[string first "alpha" [layers [input this 0]]]>-1
When this expression is removed, the script renders as expected.

Customer reported version
nuke.11.1v3

Customer reported platform
suse

Steps to reproduce

1) Download and extract the attached .zip file, which contains an example .nk script and .exr files.

2) Run the following command in the terminal:

Nuke11.2 -x --safe /path/to/script/viewErrorSimplify.nk

3) Notice that you get an error similar to the following:

ERROR: Read1: path/to/nuke/script/TestFrame-R-101.exr: Read error: No such file or directory
Total render time: 0.00 seconds

Workaround
You can use a JoinViews node before the Write node to render this script correctly.

Reproduced by support
This bug has been reproduced in:
Nuke 11.2v1 - Windows 10 - macOS 10.13 (High Sierra) - Linux CentOS 6
Nuke 11.1v4 - Windows 10
Nuke 11.1v1 - Windows 10
Nuke 11.0v4 - 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.0v8 - Windows 10
Nuke 9.0v1 - Windows 10
Nuke 8.0v7 - Windows 10
Nuke 8.0v1 - Windows 10
Nuke 7.0v10 - Windows 10 - macOS 10.13 (High Sierra) - Linux CentOS 6

Earliest version tested
Nuke 7.0v10
- This issue appears to be in all versions of the product

Expected behaviour
The attached script should render via the terminal.

Actual behaviour
The render produces a Read error similar to the following:

ERROR: Read1: path/to/nuke/script/TestFrame-R-101.exr: Read error: No such file or directory
Total render time: 0.00 seconds


    We're sorry to hear that

    Please tell us why