State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:147368|
Problem summary
nuke.sample() starts returning 0.0 when it samples expression linked values
Customer reported version
n/a
Customer reported platform
Steps to reproduce
1) In Nuke, load the attached script.
2) Run the following script:
input_node = nuke.toNode('Roto2')
print input_node.sample('rgba.alpha', 1245, 600, 1.0, 1.0, 81)
3) Run the next snippet and observe the output:
print input_node.sample('rgba.alpha', 1245, 600, 1.0, 1.0, 82)
Expected behavior
The result should show 1.0.
Actual behavior
The result becomes 0.0 when running the snippet a second time.
Workaround
Clearing the cache allows the value to show 1.0 again when ran subsequent times. Using nukescripts.cache_clear()between the instances updates as expected.
Reproduced by Support in
Nuke 12.2v1 - Windows 10
Nuke 12.0v1 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.0v1 - Windows 10
Nuke 9.0v1 - Windows 10
Nuke 8.0v1 - Windows 10
Unable to reproduce bug in:
Nuke 8.0v1 - Windows 10
Earliest version tested
Nuke 8.0v1 - Always existed.
We're sorry to hear that
Please tell us why