def run(): global lt try: lt.close() lt.deleteLater() except: pass lt = MainUI(public_ctrls.get_maya_win()) lt.show()
def create_new_project(self): global project_widget try: project_widget.close() project_widget.deleteLater() except: pass project_widget = ProjectWidget(public_ctrls.get_maya_win()) project_widget.show()
def run(): global rsw_widget try: rsw_widget.close() rsw_widget.deleteLater() except: pass rsw_widget = RenderSettingsWidget(public_ctrls.get_maya_win()) rsw_widget.show()
def run(): global mw try: mw.close() mw.deleteLater() except: pass mw = Cloth(public_ctrls.get_maya_win()) mw.show()
def run(): global ahs try: ahs.close() ahs.deleteLater() except: pass ahs = AssignHairShader(public_ctrls.get_maya_win()) ahs.show()
def main(cls): global cp try: cp.close() cp.deleteLater() except: pass cp = cls(public_ctrls.get_maya_win()) cp.show()
def run(): global tx_widget try: tx_widget.close() tx_widget.deleteLater() except: pass tx_widget = TxWidget(public_ctrls.get_maya_win()) tx_widget.show()
def show_ui(cls): if mc.window('mask', q=1, exists=1): mc.deleteUI('mask') nw = cls(public_ctrls.get_maya_win()) nw.show()
def show_ui(cls): if cmds.window('Split Screen', q=1, ex=1): cmds.deleteUI('Split Screen') ss = SplitScreen(get_maya_win()) ss.show()
def run(): if cmds.window(windowObject, q=True, exists=True): cmds.deleteUI(windowObject) sgc = ShaveGammaCorrection(public_ctrls.get_maya_win()) sgc.show()