skinning.utils.skin module¶
-
skinning.utils.skin.
get_cluster
(node)¶ Loop over an objects history and return the skin cluster node that is part of the history. The geometry provided will be extended to its shapes.
Parameters: node (str) – Returns: Skin cluster Return type: str
-
skinning.utils.skin.
get_cluster_fn
(node)¶ Loop over an objects history and return the skin cluster api node that is part dependency graph. The geometry provided will be extended to its shapes.
Parameters: node (str) – Returns: Skin cluster Return type: OpenMayaAnim.MFnSkinCluster Raises: RuntimeError – When no skin cluster can be found.
-
skinning.utils.skin.
set_weights
(skin_cluster, dag, components, influences, weights_new, weights_old=None)¶ Set the skin weights via the API but add them to the undo queue using the apiundo module. If weights old are not provided they are retrieved from the skin cluster first.
Parameters: - skin_cluster (OpenMayaAnim.MFnSkinCluster) –
- dag (OpenMaya.MDagPath) –
- components (OpenMaya.MObject) –
- influences (OpenMaya.MIntArray) –
- weights_new (OpenMaya.MDoubleArray) –
- weights_old (OpenMaya.MDoubleArray) –