tpRigToolkit.libs.controlrig.dccs.maya.controlutils module¶
Module that contains utility functions related with tpRigToolkit.tools.controlrig for Maya
-
tpRigToolkit.libs.controlrig.dccs.maya.controlutils.
getpos
(node, x=False, v=True)¶ Get the absolute object’s position, shorter than typing the whole xform :param node: object we want to get the position :param x: force xform :param v: force boundingBox :return: object position
-
tpRigToolkit.libs.controlrig.dccs.maya.controlutils.
shape_to_transform
(shapes=None, transforms=None)¶ Parent n shapes directly to n transforms :param shapes: list of shape’s transforms :param transforms: list of transforms
-
tpRigToolkit.libs.controlrig.dccs.maya.controlutils.
snap
(master, slave, pos=True, rot=True, t=True, r=True, clear=True, c=True)¶ Snaps an object to another :param master: reference object :param slave: object which will be aligned :param pos: bool, align position :param rot: bool, align rotations :param t: :param r: :param clear: if you want to keep the constraints after evaluation, set to False :param c: :return: