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))
评论列表
文章目录