ID 389647 - Expression linking knobs via TCL can cause rounding errors with knob values higher than 1000000

Follow

Problem summary
Expression linking knobs via TCL can cause rounding errors with knob values higher than 1000000.


Customer reported version
Nuke 11.3v2


Customer reported platform
Windows 7


Steps to reproduce

1) Open the attached script.
- Inside the Group node is a FrameRange node (sourceRange) which is expression linked to the FrameRange outside of the Group.

- The knobs on 'sourceRange' are linked to FrameRange1 with the following expressions:

[value input.first_frame]

[value input.last_frame]

2) Adjust the values on FrameRange1 and notice that the knob values on sourceRange are being rounded to the nearest 10.


Expected behaviour
The expression should give you the exact same value as the original knob.


Actual behaviour
The value appears to get rounded to the nearest 10.


Workaround
Using expressions, rather than TCL, will return the correct value. For example: input.first_frame


Reproduced by support

This bug has been reproduced in:
Nuke 11.3v3 - Windows 10 - Linux CentOS 6 - macOS 10.13 (High Sierra)

Nuke 11.2v5 - Windows 10

Nuke 11.1v6 - Windows 10

Nuke 11.0v4 - Windows 10

Nuke 10.5v8 - Windows 10

Nuke 10.0v6 - Windows 10

Nuke 9.0v9 - WIndows 10

Nuke 8.0v7 - Windows 10 - Linux CentOS 6 - macOS 10.13 (High Sierra)


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


    We're sorry to hear that

    Please tell us why