Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
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