mgear.rigbits.blendShapes module

Rigbits blendshapes utilities and tools

mgear.rigbits.blendShapes.blendshape_foc(deformed_obj)

Move existing blendshape node to the front of chain

Parameters:deformed_obj (PyNode) – object with deformation history including a blendshape node
mgear.rigbits.blendShapes.connectWithBlendshape(mesh, bst, wgt=1.0, ffoc=False)

Connect 2 geometries using blendshape node

Parameters:
  • mesh (PyNode) – The Object to apply the blendshape target
  • bst (PyNode) – The Blendshape target
  • wgt (float, optional) – Description
  • ffoc (bool, optional) – Force Front of Chain. will move the blendshape node after creation
Returns:

The blenshape node

Return type:

PyNode

mgear.rigbits.blendShapes.connectWithMorph(mesh, bst, wgt=1.0, ffoc=True)

Connect 2 geometries using morph node

Parameters:
  • mesh (PyNode) – The Object to apply the blendshape target
  • bst (PyNode) – The Blendshape target
  • wgt (float, optional) – envelope weight
  • ffoc (bool, optional) – Force Front of Chain. will move the morph node after creation
Returns:

The blenshape node

Return type:

PyNode

mgear.rigbits.blendShapes.getBlendShape(obj, lv=2)

Get the blendshape node of an object.

Parameters:
  • obj (PyNode) – The object with the blendshape node
  • lv (int, optional) – Levels deep to traverse
Returns:

The blendshape node

Return type:

PyNode

mgear.rigbits.blendShapes.getDeformerNode(obj, lv=2, dtype='blendShape')

Get the blendshape node of an object.

Parameters:obj – The object with the blendshape node
Returns:The blendshape node
Return type:PyNode
mgear.rigbits.blendShapes.getMorph(obj, lv=2)

Get the morph node of an object.

Parameters:
  • obj (PyNode) – The object with the blendshape node
  • lv (int, optional) – Levels deep to traverse
Returns:

The blendshape node

Return type:

PyNode

mgear.rigbits.blendShapes.morph_foc(deformed_obj, morph_deformer)

Move existing morph node to the front of chain

Parameters:deformed_obj (PyNode) – object with deformation history including a morph node