zbw_attributes.py 文件源码

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

项目:zTools 作者: zethwillie 项目源码 文件源码
def connect_param(src, tgt, attrType, prm, force=False, *args):
    """
    connects the indiv chnls based on the checkbox sorting in connect_attrs
    args:
        src (string): source object
        tgt (string): target object
        attrType (string): attr short name (t, r, s)
        prm (string): specific channel name (x, y, z)
        force (bool): value for force flag. Defaults to False
    return:
        None
    """
    try:
        cmds.connectAttr("{0}.{1}{2}".format(src, attrType, prm), "{0}.{1}{2}".format(tgt, attrType, prm), force=force)
    except:
        cmds.warning(
            "there was an issue connecting to {0}{1} of {2}. Make sure the channels are free!".format(attrType, prm,
                                                                                                      tgt))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号