mgear.rigbits.ghost module
Rigbits Ghost module
Helper tools to create layered controls rigs
- mgear.rigbits.ghost.connect_matching_attrs(driver, driven, attr_list=['compRoot', 'uiHost_cnx'])
Connect matching attributes from driven to driver node if they exist and have inputs.
- Parameters:
driver (pm.PyNode) – The driver PyNode transform.
driven (pm.PyNode) – The driven PyNode transform.
attr_list (list) – List of attribute names to check and connect. Default is [“compRoot”, “uiHost_cnx”].
- Returns:
None
- mgear.rigbits.ghost.createDoritoGhostCtl(ctl, parent=None)
Create a duplicated Ghost control for doritos Create a duplicate of the dorito/tweak and rename the original with _ghost. Later connect the local transforms and the Channels. This is useful to connect local rig controls with the final rig control.
- Parameters:
ctl (dagNode) – Original Control to duplicate
parent (dagNode) – Parent for the new created control
- mgear.rigbits.ghost.createGhostCtl(ctl, parent=None, connect=True)
Create a duplicated Ghost control
Create a duplicate of the control and rename the original with _ghost. Later connect the local transforms and the Channels. This is useful to connect local rig controls with the final rig control.
- Parameters:
ctl (dagNode) – Original Control to duplicate
parent (dagNode) – Parent for the new created control
- Returns:
The new created control
- Return type:
pyNode
- mgear.rigbits.ghost.ghostSlider(ghostControls, surface, sliderParent)
Modify the ghost control behaviour to slide on top of a surface
- Parameters:
ghostControls (dagNode) – The ghost control
surface (Surface) – The NURBS surface
sliderParent (dagNode) – The parent for the slider.