Ejemplo 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
Ejemplo 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
Ejemplo 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)
Ejemplo 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)
Ejemplo 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