def OpenKrakenEditor_Execute(): # Deffered importing: We can only import the kraken modules after the # plugin has loaded, as it configures the python import paths on load. import kraken.ui.kraken_window reload(kraken.ui.kraken_window) from kraken.ui.kraken_window import KrakenWindow from kraken.ui.kraken_splash import KrakenSplash sianchor = Application.getQtSoftimageAnchor() sianchor = Qt.wrapinstance(long(sianchor), QWidget) app = QtGui.QApplication.instance() if not app: app = QtGui.QApplication([]) for widget in app.topLevelWidgets(): if widget.objectName() == 'KrakenMainWindow': widget.showNormal() return splash = KrakenSplash(app) splash.show() window = KrakenWindow(parent=sianchor) window.show() splash.finish(window) return True
def OpenKrakenEditor_Execute(): # Deffered importing: We can only import the kraken modules after the # plugin has loaded, as it configures the python import paths on load. import kraken.ui.kraken_window reload(kraken.ui.kraken_window) from kraken.ui.kraken_window import KrakenWindow from kraken.ui.kraken_window import createSplash sianchor = Application.getQtSoftimageAnchor() sianchor = Qt.wrapinstance(long(sianchor), QWidget) app = QtGui.QApplication.instance() if not app: app = QtGui.QApplication([]) for widget in app.topLevelWidgets(): if widget.objectName() == 'KrakenMainWindow': widget.showNormal() return splash = createSplash(app) splash.show() window = KrakenWindow(parent=sianchor) window.show() splash.finish(window) return True
def doIt(self, argList): app = QtGui.QApplication.instance() if not app: app = QtGui.QApplication([]) for widget in app.topLevelWidgets(): if widget.objectName() == 'KrakenMainWindow': widget.showNormal() return splash = createSplash(app) window = KrakenWindow(parent=getMayaWindow()) window.show() splash.finish(window)
def doIt(self,argList): app = QtGui.QApplication.instance() if not app: app = QtGui.QApplication([]) for widget in app.topLevelWidgets(): if widget.objectName() == 'KrakenMainWindow': widget.showNormal() return splash = createSplash(app) window = KrakenWindow(parent=getMayaWindow()) window.show() splash.finish(window)
def OpenKrakenEditor_Execute(): sianchor = Application.getQtSoftimageAnchor() sianchor = Qt.wrapinstance(long(sianchor), QWidget) app = QtGui.QApplication.instance() if not app: app = QtGui.QApplication([]) for widget in app.topLevelWidgets(): if widget.objectName() == 'KrakenMainWindow': widget.showNormal() return splash = createSplash(app) splash.show() window = KrakenWindow(parent=sianchor) window.show() splash.finish(window) return True
def openKrakenEditor(): print 'Releasing the Kraken!' splash = KrakenSplash(app) splash.show() try: MaxPlus.CUI.DisableAccelerators() window = KrakenWindow(parent=MaxPlus.GetQMaxWindow()) window.addFocusInCallback(maxFocusInCallback) window.addFocusOutCallback(maxFocusOutCallback) _GCProtector.widgets.append(window) window.show() except Exception, e: print e