State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:15.1v3|BugID:567990|
Problem summaryhiero.ui.activeView() returns None when the Viewer is in fullscreen.
Customer reported version
Hiero 14.1v4
Customer reported platform
Rocky 9
Steps to reproduce
1) Open Hiero
2) Execute the following code in the Script Editor:
from PySide2 import QtWidgets, QtCore def function(): print(hiero.ui.activeView()) hotkey = '/' action = QtWidgets.QAction(None) action.triggered.connect(function) hiero.ui.registerAction(action) action.setShortcut(hotkey) action.setShortcutContext(QtCore.Qt.ApplicationShortcut) hiero.ui.mainWindow().addAction(action) <ui.Viewer(0x26365c4c6b0) at 0x000002636986B7C0> hiero.ui.activeView() should return the Viewer object, even in fullscreen mode.hiero.ui.activeView() returns None when the Viewer is in fullscreen.We're sorry to hear that
Please tell us why