本文整理汇总了Python中pymel.internal.pmcmds.deleteUI函数的典型用法代码示例。如果您正苦于以下问题:Python deleteUI函数的具体用法?Python deleteUI怎么用?Python deleteUI使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了deleteUI函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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)
示例2: reload
def reload(cls):
"Reload the template. Beware, this reloads the module in which the template exists!"
nodeType = cls.nodeType()
form = "AttrEd" + nodeType + "FormLayout"
exists = cmds.control(form, exists=1) and cmds.formLayout(form, q=1, ca=1)
if exists:
sel = cmds.ls(sl=1)
cmds.select(cl=True)
cmds.deleteUI(form)
if sel:
cmds.select(sel)
reload(sys.modules[cls.__module__])
示例3: reload
def reload(cls):
nodeType = cls.nodeType()
form = "AttrEd" + nodeType + "FormLayout"
exists = cmds.control(form, exists=1) and cmds.formLayout(form, q=1, ca=1)
if exists:
sel = cmds.ls(sl=1)
cmds.select(cl=True)
cmds.deleteUI(form)
aeScript = "AE" + nodeType + "Template.mel"
_mm.eval('source "' + aeScript + '"')
if exists:
cmds.select(sel)
reload(sys.modules[cls.__module__])
示例4: clear
def clear(self):
""" Clear all menu items from this OptionMenu """
for t in self.getItemListLong() or []:
cmds.deleteUI(t)
示例5: delete
def delete(self):
cmds.deleteUI(self, window=True)