Problem summaryThe behaviour of the sendToViewer() function has changed in Hiero 12.
When changing track visibility via Python, the Viewer remains black until the track is manually disabled and re-enabled.
Customer reported version Hiero 12
Customer reported platformCentOS 7
Steps to reproduce1) Open Hiero
2) Import some clips and add them to separate tracks on the Timeline
3) Run the following code in the Script Editor
seq = hiero.ui.activeSequence()
te = hiero.ui.getTimelineEditor(seq)
view = hiero.ui.activeView()
viewer = hiero.ui.currentViewer()
player = viewer.player()
bi = seq.binItem()
vts = seq.videoTracks()
for vt in vts:
name = vt.name()
if name == "Video 1":
vt.setEnabled(1)
else:
vt.setEnabled(0)
hiero.ui.sendToViewerA(bi)
player.centerImage()
Expected behaviourThe enabled track should appear in the Viewer.
Actual behaviourThe Viewer remains black until the track is manually disabled and re-enabled.
Reproduced by supportThis bug has been reproduced in:
Hiero 12.0v3 - Windows 10 - macOS 10.14 (Mojave) - CentOS 7
Hiero 12.0v1 - Windows 10 - macOS 10.14 (Mojave) - CentOS 7 -
RegressionUnable to reproduce bug in:
Hiero 11.3v6 - Windows 10 - macOS 10.14 (Mojave) - CentOS 7
Earliest version testedHiero 11.3v6
- This issue doesn't appear in this version and has regressed