def setVisibilityOnAllWindows(cls, vis ): windows = pm.lsUI(typ='window') for win in windows: try: pm.window( win, edit=True, visible=vis ) except: print( traceback.format_exc() )
def setVisibilityOnAllWindows(cls, vis): windows = pm.lsUI(typ='window') for win in windows: try: pm.window(win, edit=True, visible=vis) except: print(traceback.format_exc())
def deleteAllWindows(cls): windows = pm.lsUI(typ='window') for win in windows: try: print( win ) if win != 'MayaWindow': pm.deleteUI( win ) x=0 except: print( traceback.format_exc() )
def deleteAllWindows(cls): windows = pm.lsUI(typ='window') for win in windows: try: print(win) if win != 'MayaWindow': pm.deleteUI(win) x = 0 except: print(traceback.format_exc())