def set_parent_object(tfbg, *args):
"""
gets selection and puts it in the given text field button grp
:param tfbg: the key for widget dict for the textFieldButtonGrp
:param args:
:return:
"""
ctrl = None
sel = cmds.ls(sl=True, type="transform", l=True)
if sel and (len(sel) == 1):
ctrl = sel[0]
if ctrl:
cmds.textFieldButtonGrp(widgets[tfbg], e=True, tx=ctrl)
评论列表
文章目录