State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:365642|
Problem summary:
The active view becomes dismissed when a Progress bar is enabled while multiple active views are called.
This issue does not occur on Linux CentOS 7 in any version of NukeStudio/Hiero.
Customer reported version
NukeStudio/Hiero 11.2v3
Customer reported platform
Windows
Steps to reproduce
1) In Nuke Studio, open the Script Editor.
2) Place and run the following code:
from PySide2 import QtWidgets from hiero.core import events from hiero.ui import activeView from foundry.ui import ProgressTask class SomeAction(QtWidgets.QAction): def __init__(self): QtWidgets.QAction.__init__(self, "SomeAction", None) self.triggered.connect(self.load) events.registerInterest("kShowContextMenu/kTimeline", self.eventHandler) def load(self): view = activeView() print "first activeView", view progress = ProgressTask("loading shots....") progress.setProgress(0) view = activeView() print "second activeView", view def eventHandler(self, event): event.menu.addAction(self) action = SomeAction() 3) Import a clip and place it on the timeline to create a sequence.
4) Right-click the clip, and select SomeAction from the bottom of the context menu.
5) Observe a Progress pop-up menu and view the Script Editor for text output.
Workaround
Using additional python script for QtCore fixes the issue:
Include this line in the header: from Pyside 2 import QtCore
Place the following on line 17, in lieu of progress.setProgress(0):
QtCore.QTimer.singleShot(5, lambda:progress.setProgress(0))
Run the command again and repeat step 4 above.
Reproduced by Support in:
Nuke Studio/Hiero 11.2v3 - Windows 10, macOS 10.13 High Sierra
Nuke Studio/Hiero 11.2v1 - Windows 10
Nuke Studio/Hiero 11.1v6 - Windows 10
Nuke Studio/Hiero 11.1v1 - Windows 10
Nuke Studio/Hiero 11.0v4 - Windows 10
Nuke Studio/Hiero 11.0v1 - Windows 10, macOS 10.13 High Sierra
Unable to reproduce bug in:
Nuke Studio/Hiero 10.5v7 - Windows 10, macOS 10.13 High Sierra, CentOS 7
Earliest version tested:
Nuke Studio/Hiero 10.5v7 - This feature did not exist before this version
Expected behavior:
The script should display lines for both views when triggered.
Actual behavior:
Only one active view was present when triggering the script.
We're sorry to hear that
Please tell us why