# Path: mayaLib/rigLib/utils/deform.py
# def blendShapeDeformer(base, blendshapeList, nodeName, defaultValue=[1, ], frontOfChain=False):
# def wrapDeformer(wrappedObjs, wrapperObj):
# def deltaMushDeformer(geo, smoothingIterations=10, smoothingStep=0.5):
# def shrinkWrapDeformer(wrappedObj, wrapperObj):
# def cMuscleSystemDeformer(obj, relativeSticky=True):
# def cMuscleConnectMuscle(muscleMainObj, muscleObjList):
# def softModDeformer(vertex):
# def meshCollision(deformer, deformed):


import os
import pymel.core as pm
from mayaLib.rigLib.utils import deform
__author__ = 'Lorenzo Argentieri'





class MuscleConnect():
    def __init__(self, mainSkinGeo, muscleGeo, muscleList=pm.ls('*_MUS'), rigModelGrp=None):
        if mainSkinGeo and muscleGeo:
            self.mainSkinGeo = pm.ls(mainSkinGeo)[0]
            self.mainMuscleGeo = pm.ls(muscleGeo)[0]
        else:
            print('No valid Geo!')

        # apply Muscle Deformer

# Path: mayaLib/rigLib/utils/deform.py
# def blendShapeDeformer(base, blendshapeList, nodeName, defaultValue=[1, ], frontOfChain=False):
# def wrapDeformer(wrappedObjs, wrapperObj):
# def deltaMushDeformer(geo, smoothingIterations=10, smoothingStep=0.5):
# def shrinkWrapDeformer(wrappedObj, wrapperObj):
# def cMuscleSystemDeformer(obj, relativeSticky=True):
# def cMuscleConnectMuscle(muscleMainObj, muscleObjList):
# def softModDeformer(vertex):
# def meshCollision(deformer, deformed):


# Path: mayaLib/rigLib/utils/muscle.py
import os
import pymel.core as pm
from mayaLib.rigLib.utils import deform

__author__ = 'Lorenzo Argentieri'





class MuscleConnect():
    def __init__(self, mainSkinGeo, muscleGeo, muscleList=pm.ls('*_MUS'), rigModelGrp=None):
        if mainSkinGeo and muscleGeo:
            self.mainSkinGeo = pm.ls(mainSkinGeo)[0]
            self.mainMuscleGeo = pm.ls(muscleGeo)[0]
        else:
            print('No valid Geo!')

        # apply Muscle Deformer

        self.cMuscleDeformer = deform.cMuscleSystemDeformer(self.mainMuscleGeo)