ID 519425 - BlinkScript which compares a bool to a number fails in a soft effect on timeline, but not in the Node Graph

Follow

Problem summary
BlinkScript which compares a bool to a number fails in a soft effect on timeline, but not in the Node Graph
 
Customer reported version
hiero.13.2v1
 
Customer reported platform
n_a_linux
 
Steps to reproduce
 
1) Open Nuke Studio

2) Import any footage and add it to a sequence

3) Select the clip on the timeline>Right click>Soft Effects>BlinkScript
 
4) In the BlinkScript properties, past the following code and Recompile:
 

kernel TestKernel : ImageComputationKernel<ePixelWise> {   Image<eRead, eAccessPoint, eEdgeClamped> src;   Image<eWrite> dst; // the output image   param:     bool invert;   void process() {     if (invert == 0 ) { // Change 0 to false to work in Hiero       dst() = float4(1.0f, 1.0f, 1.0f, 1.0f);     } else {       dst() = float4(0.0f, 1.0f, 0.0f, 0.0f);     }   } };
 
It will render black, and toggling the invert knob in the Kernel Parameters does nothing.
 
5) Select the BlinkScript Soft Effect and copy it
 
6) Switch to the Node Graph, and paste the BlinkScript node
 
7) Give the BlinkScript node an input, like a CheckerBoard node and view the BlinkScript node. It will render white and change to green if you toggle the invert knob in the Kernel Parameters.
 
Expected behaviour
For the BlinkScript to render correctly on the timeline, like it does in the Node Graph
 
Actual behaviour
It renders black and gives no warning
 
Workaround
Change the BlinkScript if statement from:
 if (invert == 0 ) {
to:
 if (invert == false ) {
 
Reproduced by support
This bug has been reproduced in:
Nuke Studio 13.2v4 - Windows 10, CentOS 7.5, macOS 12.5
Nuke Studio 10.0v1 - Windows 10, CentOS 7.5
 
Earliest version tested
Nuke Studio 10.0v1 - BlinkScript soft effects weren't available in earlier versions
 

    We're sorry to hear that

    Please tell us why