ID 520064 - Changing Text2 font_size using Python doesn't apply to new messages correctly

Follow

Problem summary
Changing Text2 font_size using Python doesn't apply to new messages correctly
 
This can happen if the node isn't viewed on creation, or when trying to change the font_size
 
Customer reported version
nuke.13.2v4
 
Customer reported platform
n_a_linux
 
Steps to reproduce
 
1) Open Nuke

2) Run the following code in the Script Editor:
 

t = nuke.createNode("Text2")t["font_size"].setValue(50)t["message"].setValue("hello")
 
3) View the Text node, it says it  size 50 text, but it's actually size 100:

 
4)With the Text node selected, run the Python code again, the new node will have the correct size font:
 

 
5) Run the following code in the Script Editor
t["font_size"].setValue(120) t["message"].setValue("world")
Again the font_size doesn't get applied correctly, and this time the font is size 50, instead of 120
 

 
Expected behaviour
The text should be the size that is defined in the font_size before setting the message value
 
Actual behaviour
It seems to use the previous value, rather than the one currently set in the font_size knob
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Nuke 13.2v4 - Windows 10, CentOS 7
Nuke 9.0v1 - Windows 10, CentOS 7
 
Earliest version tested
Nuke 9.0v1 - This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why