def zbw_mmDeleteLast(*args):
"""
deletes the last pair of attr, obj text fields in the UI
"""
children = cmds.rowColumnLayout("mmRCLayout" , q=True, ca=True)
if children:
numChildren = len(children)
lastTFG = "attr" + str(numChildren/2)
lastTFBG = "obj" + str(numChildren/2)
cmds.deleteUI(lastTFG)
cmds.deleteUI(lastTFBG)
else:
pass
评论列表
文章目录