zbw_softDeformer.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:zTools 作者: zethwillie 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号