mgear.rigbits.cycleTweaks module
Cycle Tweaks module
This module content the tools and procedures to rig tweaks with a benigne cycle
- mgear.rigbits.cycleTweaks.cycleTweak(name, edgePair, mirrorAxis, baseMesh, rotMesh, transMesh, setupParent, ctlParent, jntOrg=None, grp=None, iconType='square', size=0.025, color=13, ro=pymel.core.datatypes.Vector)
The command to create a cycle tweak.
A cycle tweak is a tweak that cycles to the parent position but doesn’t create a cycle of dependency. This type of tweaks are very useful to create facial tweakers.
- Parameters:
name (string) – Name for the cycle tweak
edgePair (list) – List of edge pair to attach the cycle tweak
mirrorAxis (bool) – If true, will mirror the x axis behaviour.
baseMesh (Mesh) – The base mesh for the cycle tweak.
rotMesh (Mesh) – The mesh that will support the rotation transformations for the cycle tweak
transMesh (Mesh) – The mesh that will support the translation and scale transformations for the cycle tweak
setupParent (dagNode) – The parent for the setup objects
ctlParent (dagNode) – The parent for the control objects
jntOrg (None or dagNode, optional) – The parent for the joints
grp (None or set, optional) – The set to add the controls
iconType (str, optional) – The controls shape
size (float, optional) – The control size
color (int, optional) – The control color
ro (TYPE, optional) – The control shape rotation offset
- Returns:
the tweak control and the list of related joints.
- Return type:
multi
- mgear.rigbits.cycleTweaks.initCycleTweakBase(outMesh, baseMesh, rotMesh, transMesh, staticJnt=None)
Initialice the cycle tweak setup structure
- Parameters:
outMesh (Mesh) – The output mesh after the tweak deformation
baseMesh (Mesh) – The base mesh for the cycle tweak.
rotMesh (Mesh) – The mesh that will support the rotation transformations for the cycle tweak
transMesh (Mesh) – The mesh that will support the translation and scale transformations for the cycle tweak
staticJnt (None or joint, optional) – The static joint for the static vertex.
- mgear.rigbits.cycleTweaks.inverseTranslateParent(obj)
Invert the parent transformation
- Parameters:
obj (dagNode) – The source dagNode to inver parent transformation.