# Path: mayaLib/rigLib/utils/common.py
# def centerPivot(obj, targetPivot=None):
# def freezeTranform(obj):
# def deleteHistory(obj):
# def deleteNonDeformerHistory(obj):
# def deleteConnection(objAttrList):
# def setDrivenKey(driver, driverValueList, driven, drivenValueList, cvType='linear'):
# 
# Path: mayaLib/rigLib/utils/name.py
# def removeSuffix(name):
# def getSide(name):
# def getAlpha(i):


import pymel.core as pm
from mayaLib.rigLib.utils import common
from mayaLib.rigLib.utils import name
        if doSmartFootRoll:
            frontRollLoc = self.prefixJnt2 + '_frontRoll_LOC'
            backRollLoc = self.prefixJnt2 + '_backRoll_LOC'
            innerRollLoc = self.prefixJnt2 + '_innerRoll_LOC'
            outerRollLoc = self.prefixJnt2 + '_outerRoll_LOC'
            self.frontRollGrp, self.backRollGrp, self.innerRollGrp, self.outerRollGrp = self.rollGroups(frontRollLoc,
                                                                                                        backRollLoc,
                                                                                                        innerRollLoc,
                                                                                                        outerRollLoc)
        else:
            self.frontRollGrp, self.backRollGrp, self.innerRollGrp, self.outerRollGrp = [None, None, None, None]

        self.moveGrp()

        # set OFF Sticky
        self.setSticky(0)

    def setSticky(self, val=0):
        self.ankleIkHandle.stickiness.set(val)
        for ballIkHandle in self.ballIkHandleList:
            ballIkHandle.stickiness.set(val)
        for toeIkHandle in self.toeIkHandleList:
            toeIkHandle.stickiness.set(val)

    def peelHeel(self):
        self.peelHeelGrp = pm.group(self.ankleIkHandle, n=self.prefixJnt2 + 'PeelHeel_GRP')

        # move Peel Heel Group Pivot to Middle Ball
        index = int(round(len(self.ballIkHandleList) / 2.0)) - 1
        midBallJnt = self.ballIkHandleList[index]

# Path: mayaLib/rigLib/utils/common.py
# def centerPivot(obj, targetPivot=None):
# def freezeTranform(obj):
# def deleteHistory(obj):
# def deleteNonDeformerHistory(obj):
# def deleteConnection(objAttrList):
# def setDrivenKey(driver, driverValueList, driven, drivenValueList, cvType='linear'):
# 
# Path: mayaLib/rigLib/utils/name.py
# def removeSuffix(name):
# def getSide(name):
# def getAlpha(i):


# Path: mayaLib/rigLib/utils/footRoll.py
import pymel.core as pm
from mayaLib.rigLib.utils import common
from mayaLib.rigLib.utils import name

        if doSmartFootRoll:
            frontRollLoc = self.prefixJnt2 + '_frontRoll_LOC'
            backRollLoc = self.prefixJnt2 + '_backRoll_LOC'
            innerRollLoc = self.prefixJnt2 + '_innerRoll_LOC'
            outerRollLoc = self.prefixJnt2 + '_outerRoll_LOC'
            self.frontRollGrp, self.backRollGrp, self.innerRollGrp, self.outerRollGrp = self.rollGroups(frontRollLoc,
                                                                                                        backRollLoc,
                                                                                                        innerRollLoc,
                                                                                                        outerRollLoc)
        else:
            self.frontRollGrp, self.backRollGrp, self.innerRollGrp, self.outerRollGrp = [None, None, None, None]

        self.moveGrp()

        # set OFF Sticky
        self.setSticky(0)

    def setSticky(self, val=0):
        self.ankleIkHandle.stickiness.set(val)
        for ballIkHandle in self.ballIkHandleList:
            ballIkHandle.stickiness.set(val)
        for toeIkHandle in self.toeIkHandleList:
            toeIkHandle.stickiness.set(val)

    def peelHeel(self):
        self.peelHeelGrp = pm.group(self.ankleIkHandle, n=self.prefixJnt2 + 'PeelHeel_GRP')

        # move Peel Heel Group Pivot to Middle Ball
        index = int(round(len(self.ballIkHandleList) / 2.0)) - 1
        midBallJnt = self.ballIkHandleList[index]

        common.centerPivot(self.peelHeelGrp, midBallJnt)