ID 553813 - The trackItem.setSource() function does not update the image in the Viewer

Follow

Problem summary
The trackItem.setSource() function does not update the image in the Viewer.
 
Customer reported version
Hiero 14.0v4
 
Customer reported platform
CentOS 7
 
Steps to reproduce
 
1) Open Nuke Studio/Hiero.
 
2) Import a clip (File > Import File(s)...) and drop it on to the timeline.
 
3) Import another clip. Do not drop it on to the timeline.
 
4) Execute the following code in the Script Editor:

track_item = hiero.ui.activeSequence().videoTracks()[0].items()[0] # the shot on the timelineclip = hiero.core.projects()[0].clips()[1] # the 2nd clip in the bintrack_item.setSource(clip)
 
Expected behaviour
The code should update both the shot on the timeline, and the image in the Viewer.
 
Actual behaviour
The code updates the shot on the timeline, but the image in the Viewer is not updated.
 
Workaround
Running clip.refresh() should force the image in the Viewer to refresh/update. For example:
track_item = hiero.ui.activeSequence().videoTracks()[0].items()[0] # the shot on the timelineclip = hiero.core.projects()[0].clips()[1] # the 2nd clip in the bintrack_item.setSource(clip)clip.refresh()
 
Reproduced by support
This bug has been reproduced in:
Nuke Studio 14.0v5 - Windows 10
Nuke Studio 10.0v1 - Windows 10
 
Earliest version tested
Nuke Studio 10.0v1
- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why