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() )
Ejemplo n.º 2
0
 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() )
Ejemplo n.º 4
0
 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())