ID 386500 - Obtaining a Text Knob value with TCL returns nothing

Follow

Problem summary
When using TCL in Nuke, users have found that they get no results when checking the value of a Text knob.

From our investigation, it appears that TCL cannot find the value of the specific knob.
Setting up TCL to get a value from a TextInput knob works as expected.

Additionally, using Python instead works as expected.



Customer reported version
nuke.11.2v2

Customer reported platform
windows10

Steps to reproduce

1) Open Nuke

2) Copy/Paste the following code into your Node Graph:   ( This will create the Text node displayed above )
set cut_paste_input [stack 0]
version 11.3 v2
push $cut_paste_input
Text2 {
 font_size_toolbar 100
 font_width_toolbar 100
 font_height_toolbar 100
 message "TCL TextInput knob: \[value TextInputKnob]\nTCL Text knob: \[value TextKnob]\n\nPython TextInput knob: \[python \{nuke.thisNode().knob('TextInputKnob').value()\}]\nPython Text knob: \[python \{nuke.thisNode().knob('TextKnob').value()\}]"
 old_message {{84 67 76 32 84 101 120 116 73 110 112 117 116 32 107 110 111 98 58 32 84 101 120 116 73 110 112 117 116 32 75 110 111 98 32 118 97 108 117 101 10 84 67 76 32 84 101 120 116 32 107 110 111 98 58 32 10 10 80 121 116 104 111 110 32 84 101 120 116 73 110 112 117 116 32 107 110 111 98 58 32 84 101 120 116 73 110 112 117 116 32 75 110 111 98 32 118 97 108 117 101 10 80 121 116 104 111 110 32 84 101 120 116 32 107 110 111 98 58 32 84 101 120 116 32 75 110 111 98 32 118 97 108 117 101}
  }
 old_expression_markers {{20 39 56 55 81 100 120 134}
  }
 box {50 719.5 1898 1080.5}
 transforms {{0 2}
  }
 cursor_position 57
 global_font_scale 0.9
 center {960 540}
 cursor_initialised true
 initial_cursor_position {{50 1080.5}
  }
 group_animations {{0} imported: 0 selected: items: "root transform/"}
 animation_layers {{1 11 960 540 0 0 1 1 0 0 0 0}
  }
 name Text1
 selected true
 xpos 42
 ypos -120
 addUserKnob {20 User}
 addUserKnob {1 TextInputKnob l "" +STARTLINE}
 TextInputKnob "TextInput Knob value"
 addUserKnob {26 ""}
 addUserKnob {26 TextKnob l "" +STARTLINE T "Text Knob value"}
 addUserKnob {26 "" +STARTLINE}
 addUserKnob {32 tcl_button l "set TCL TextKnob" T "\[knob TCLValue \[value TextKnob] ; return]" +STARTLINE}
 addUserKnob {32 tcl_button1 l "set TCL TextInputKnob" -STARTLINE T "\[knob TCLValue \[value TextInputKnob] ; return]"}
 addUserKnob {1 TCLValue l "TCL Value:"}
}

3) Change the Text knob and TextInput knob values from within the User tab.

Result: The Text Knob will not display within the Viewer.

Expected behaviour
Get the value of the Text knob with TCL

Actual behaviour
No value is pulled for the TCL call

Workaround
Use Python within the TCL or use a TextInput knob instead.

Reproduced by support

This bug has been reproduced in:
Nuke11.3v1- Windows 7 - Mac10.13 - CentOS7
Nuke11.2v1 - Windows 7
Nuke11.1v1 - Windows 7
Nuke11.0v1 - Windows 7
Nuke10.5v1 - Windows 7
Nuke10.0v1 - Windows 7
Nuke9.0v1 - Windows 7
Nuke8.0v1 - Windows 7 - Mac10.13 - CentOS7

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

    We're sorry to hear that

    Please tell us why