def showDialog(): app = QApplication.instance() if app is None: app = QApplication(['houdini']) dialog = CheckoutShotDialog() dialog.show() pyqt_houdini.exec_(app, dialog)
def go(): app = QApplication.instance() if app is None: app = QApplication(['houdini']) dialog = NewTextureDialog() dialog.show() pyqt_houdini.exec_(app, dialog)
def show(): app = None if exUI.USE_PYQT_MODULE: import pyqt_thread_helper app = pyqt_thread_helper.getApplication() exUI.UIExists(main_win_name, AsBool=False) and exUI.deleteUI(main_win_name) anim_path = icon_path('waiting.gif') splash = exUI.mSplashScreen(anim_path, exUI.Qt.WindowStaysOnTopHint) splash.setParent(houdini_win) splash.show() ui = mainFunc() # type: exUI.QMainWindow # 设置名称 一定不可以在初始化的时候设置,否则会出问题 ui.setObjectName(main_win_name) ui.setWindowTitle('%s %s' % (main_win_name, scriptVersion)) ui.setWindowIcon(exUI.QIcon(icon_path('MCL.png'))) splash.showMessage('author : %s' % __author__, exUI.Qt.AlignLeft | exUI.Qt.AlignBottom, exUI.Qt.yellow) t = exUI.QElapsedTimer() t.start() while t.elapsed() < 600: exUI.QCoreApplication.processEvents() splash.finish(ui) if app: import pyqt_houdini pyqt_houdini.exec_(app, splash, ui)
def show(): import pyqt_houdini app = QtGui.QApplication.instance() if app is None: app = QtGui.QApplication(['houdini']) asset_pane = AssetPane() asset_pane.show() pyqt_houdini.exec_(app, asset_pane)
def go(): # Get all mantra nodes for export for node in hou.node("/out").children(): # Make sure this is a mantra node, and not something else #if node.type().name() == "ifd": #EDIT FOR TAIJITU, remove generic mantra reference and add reference to cameras digital asset - Trevor Barrus 10/11/16 if node.type().name() == "dusk_cameras": # Check each checkbox 1 for true (render) 0 for false (do not render) - Nick Evans 10/11/2016 ten_checkbox = node.parm('tenCheck').evalAsInt() jampa_checkbox = node.parm('jampaCheck').evalAsInt() background_checkbox = node.parm('backgroundCheck').evalAsInt() foreground_checkbox = node.parm('foregroundCheck').evalAsInt() entrance_checkbox = node.parm('entranceCheck').evalAsInt() props_checkbox = node.parm('propsCheck').evalAsInt() effects_checkbox = node.parm('effectsCheck').evalAsInt() #Check the checkboxes, if checked for render add to mantra_nodes - Nick Evans 10/11/16 if ten_checkbox > 0: mantra_nodes.append(node.node("dusk_ten")) if jampa_checkbox > 0: mantra_nodes.append(node.node("dusk_jampa")) if background_checkbox > 0: mantra_nodes.append(node.node("dusk_background")) if foreground_checkbox > 0: mantra_nodes.append(node.node("dusk_foreground")) if entrance_checkbox > 0: mantra_nodes.append(node.node("dusk_entrance")) if props_checkbox > 0: mantra_nodes.append(node.node("dusk_props")) if effects_checkbox > 0: mantra_nodes.append(node.node("dusk_effects")) print "Size of mantra_nodes: ", len(mantra_nodes) # No valid nodes, display error message if (len(mantra_nodes) == 0): hou.ui.displayMessage( ("Yo, there ain't nothin for me to render!\n\n" "Make sure you have selected the layers you would like to render." ), severity=hou.severityType.Warning) # Show confirmation dialog else: dialog = ExportDialog() dialog.show() pyqt_houdini.exec_(dialog) del mantra_nodes[:]
def go(): # Get all mantra nodes for export for node in hou.node("/out").children(): # Make sure this is a mantra node, and not something else #if node.type().name() == "ifd": #EDIT FOR TAIJITU, remove generic mantra reference and add reference to cameras digital asset - Trevor Barrus 10/11/16 if node.type().name() == "dusk_cameras": # Check each checkbox 1 for true (render) 0 for false (do not render) - Nick Evans 10/11/2016 ten_checkbox = node.parm('tenCheck').evalAsInt() jampa_checkbox = node.parm('jampaCheck').evalAsInt() background_checkbox = node.parm('backgroundCheck').evalAsInt() foreground_checkbox = node.parm('foregroundCheck').evalAsInt() entrance_checkbox = node.parm('entranceCheck').evalAsInt() props_checkbox = node.parm('propsCheck').evalAsInt() effects_checkbox = node.parm('effectsCheck').evalAsInt() #Check the checkboxes, if checked for render add to mantra_nodes - Nick Evans 10/11/16 if ten_checkbox > 0: mantra_nodes.append(node.node("dusk_ten")) if jampa_checkbox > 0: mantra_nodes.append(node.node("dusk_jampa")) if background_checkbox > 0: mantra_nodes.append(node.node("dusk_background")) if foreground_checkbox > 0: mantra_nodes.append(node.node("dusk_foreground")) if entrance_checkbox > 0: mantra_nodes.append(node.node("dusk_entrance")) if props_checkbox > 0: mantra_nodes.append(node.node("dusk_props")) if effects_checkbox > 0: mantra_nodes.append(node.node("dusk_effects")) print "Size of mantra_nodes: ", len(mantra_nodes) # No valid nodes, display error message if (len(mantra_nodes) == 0): hou.ui.displayMessage(("Yo, there ain't nothin for me to render!\n\n" "Make sure you have selected the layers you would like to render."), severity=hou.severityType.Warning) # Show confirmation dialog else: dialog = ExportDialog() dialog.show() pyqt_houdini.exec_(dialog) del mantra_nodes[:]