Exemple #1
0
 def __init__(self, name=None, force=False):
     if name and cmds.uiTemplate(name, exists=True):
         if force:
             cmds.deleteUI(name, uiTemplate=True)
         else:
             self._name = name
             return
     args = [name] if name else []
     self._name = cmds.uiTemplate(*args)
 def __init__(self, name=None, force=False):
     if name and cmds.uiTemplate(name, exists=True):
         if force:
             cmds.deleteUI(name, uiTemplate=True)
         else:
             self._name = name
             return
     args = [name] if name else []
     self._name = cmds.uiTemplate(*args)
Exemple #3
0
 def exists(name):
     return cmds.uiTemplate(name, exists=True)
 def exists(name):
     return cmds.uiTemplate(name, exists=True)
Exemple #5
0
def uiTemplate(name=None, force=False, exists=None):
    if exists:
        return cmds.uiTemplate(name, exists)
    else:
        return _uitypes.UITemplate(name=name, force=force)
Exemple #6
0
def uiTemplate(name=None, force=False, exists=None):
    import uitypes
    if exists:
        return cmds.uiTemplate(name, exists=1)
    else:
        return uitypes.UITemplate(name=name, force=force)