def groupFreeze(obj="", suffix = "GRP", *arg):
"""
takes an object in worldspace and snaps a group to it, then parents obj to that group
i.e. zeros out the obj's translates and rotations
Args:
obj (string): the object to put under the group (to zero it's transforms)
Returns:
string: returns the new group
"""
grp = cmds.group(empty=True, name="{0}_{1}".format(obj, suffix))
snapTo(obj, grp)
cmds.parent(obj, grp)
return(grp)
评论列表
文章目录