def zbw_mmChangeConnectObj(base, attr, obj, *args):
#get that from the text field
newObj = cmds.textFieldGrp("zbw_mmChangeObjTFBG", q=True, tx=True)
#create connection to obj in new attr
cmds.connectAttr((newObj+".message"), attr, f=True)
#delete this window, delete mmRCListLayout and call the list again
cmds.deleteUI('zbw_mmChangeObjUI', window=True)
cmds.windowPref('zbw_mmChangeObjUI', remove=True)
cmds.deleteUI("mmRCListLayout")
zbw_mmListCurrentMessages("mmListMessages")
评论列表
文章目录