Esempio n. 1
0
def show_window(standalone=True):
    if not standalone:
        from studio_usd_pipe.core import smaya
        reload(smaya)
        from studio_usd_pipe.api import studioMaya
        studio_maya = studioMaya.Maya()
        cfile, ctype = studio_maya.get_current_file()
        if not cfile:
            message = 'Empty scene\nOpen the maya scene and try!...'
            QtWidgets.QMessageBox.critical(None, 'warning', message,
                                           QtWidgets.QMessageBox.Ok)
            return
        main_window = smaya.get_qwidget()
        smaya.remove_exists_window('widget_shot_push')
        window = shot_push.Window(parent=main_window,
                                  standalone=False,
                                  application='maya')
        window.show()
    if standalone:
        app = QtWidgets.QApplication(sys.argv)
        window = shot_push.Window(parent=None,
                                  standalone=True,
                                  application='maya')
        window.show()
        sys.exit(app.exec_())
Esempio n. 2
0
def show_window(standalone=True):    
    if not standalone:        
        from studio_usd_pipe.core import smaya
        main_window = smaya.get_qwidget()
        smaya.remove_exists_window('mainwindow_castingsheet')        
        window = castingsheet.Window(parent=main_window, standalone=False)
        window.show()
    if standalone:
        app = QtWidgets.QApplication(sys.argv)
        window = castingsheet.Window(parent=None, standalone=True)
        window.show()
        sys.exit(app.exec_())   
def show_window(standalone=False):    
    if not standalone:        
        from studio_usd_pipe.core import smaya
        main_window = smaya.get_qwidget()
        smaya.remove_exists_window('mainwindow_asset_composition')        
        window = asset_composition.Window(parent=main_window, standalone=False, application='pixar')
        window.show()
    if standalone:
        app = QtWidgets.QApplication(sys.argv)
        window = asset_composition.Window(parent=None, standalone=True, application='pixar')
        window.show()
        sys.exit(app.exec_())   
Esempio n. 4
0
def show_window(standalone=True):    
    if not standalone:        
        from studio_usd_pipe.core import smaya
        reload(smaya)
        main_window = smaya.get_qwidget()
        smaya.remove_exists_window('widget_shot_pull')  
        window = shot_pull.Window(parent=main_window, standalone=False, application='maya')
        window.show()
    if standalone:
        app = QtWidgets.QApplication(sys.argv)
        window = shot_pull.Window(parent=None, standalone=True, application='maya')
        window.show()
        sys.exit(app.exec_())