-
-
Save zclongpop123/9d7abefd5c776044261ecd34d42fd4e2 to your computer and use it in GitHub Desktop.
Get Main Nuke window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PySide.QtCore import * | |
from PySide.QtGui import * | |
app = QApplication.instance() | |
def getMainWindow(): | |
for widget in app.topLevelWidgets(): | |
if widget.metaObject().className() == 'Foundry::UI::DockMainWindow': | |
return widget | |
qNuke =getMainWindow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment