# Path: dpAutoRigSystem/Modules/Library/dpControls.py
# class ControlClass(object):
#     def __init__(self, dpUIinst, presetDic, presetName, moduleGrp=None, *args):
#     def colorShape(self, objList, color, rgb=False, *args):
#     def renameShape(self, transformList, *args):
#     def directConnect(self, fromObj, toObj, attrList=['tx', 'ty', 'tz', 'rx', 'ry', 'rz', 'sx', 'sy', 'sz'], f=True, *args):
#     def setLockHide(self, objList, attrList, l=True, k=False, *args):
#     def setNonKeyable(self, objList, attrList, *args):
#     def setNotRenderable(self, objList, *args):
#     def distanceBet(self, a, b, name="temp_DistBet", keep=False, *args):
#     def middlePoint(self, a, b, createLocator=False, *args):
#     def createSimpleRibbon(self, name='ribbon', totalJoints=6, jointLabelNumber=0, jointLabelName="SimpleRibbon", *args):
#     def getControlNodeById(self, ctrlType, *args):
#     def getControlModuleById(self, ctrlType, *args):
#     def getControlDegreeById(self, ctrlType, *args):
#     def getControlInstance(self, instanceName, *args):
#     def cvControl(self, ctrlType, ctrlName, r=1, d=1, dir='+Y', rot=(0, 0, 0), *args):
#     def cvLocator(self, ctrlName, r=1, d=1, guide=False, *args):
#     def cvJointLoc(self, ctrlName, r=0.3, d=1, rot=(0, 0, 0), guide=True, *args):
#     def cvCharacter(self, ctrlType, ctrlName, r=1, d=1, dir="+Y", rot=(0, 0, 0), *args):
#     def findHistory(self, objList, historyName, *args):
#     def cvBaseGuide(self, ctrlName, r=1, *args):
#     def setAndFreeze(nodeName="", tx=None, ty=None, tz=None, rx=None, ry=None, rz=None, sx=None, sy=None, sz=None, freeze=True):
#     def copyAttr(self, sourceItem=False, attrList=False, verbose=False, *args):
#     def pasteAttr(self, destinationList=False, verbose=False, *args):
#     def copyAndPasteAttr(self, verbose=False, *args):
#     def transferAttr(self, sourceItem, destinationList, attrList, *args):
#     def transferShape(self, deleteSource=False, clearDestinationShapes=True, sourceItem=None, destinationList=None, applyColor=True, *args):
#     def setSourceColorOverride(self, sourceItem, destinationList, *args):
#     def resetCurve(self, changeDegree=False, transformList=False, *args):
#     def dpCreatePreset(self, *args):
#     def dpCheckLinearUnit(self, origRadius, defaultUnit="centimeter", *args):
#     def shapeSizeSetup(self, transformNode, *args):
#     def connectShapeSize(self, clusterHandle, *args):
#     def addGuideAttrs(self, ctrlName, *args):
#     def createPinGuide(self, ctrlName, *args):
#     def setPinnedGuideColor(self, ctrlName, status, color, *args):
#     def jobPinGuide(self, ctrlName, *args):
#     def startPinGuide(self, guideBase, *args):
#     def unPinGuide(self, guideBase, *args):
#     def importCalibration(self, *args):
#     def mirrorCalibration(self, nodeName=False, fromPrefix=False, toPrefix=False, *args):
#     def transferCalibration(self, sourceItem=False, destinationList=False, attrList=False, verbose=True, *args):
#     def setCalibrationAttr(self, nodeName, attrList, *args):
#     def getCalibrationAttr(self, nodeName, *args):


from maya import cmds
from functools import partial
from ..Modules.Library import dpControls
from maya import cmds
# importing libraries:

# global variables to this module:    
CLASS_NAME = "CopyPasteAttr"
TITLE = "m135_copyPasteAttr"
DESCRIPTION = "m136_copyPasteAttrDesc"
ICON = "/Icons/dp_copyPasteAttr.png"

DPCP_VERSION = "2.1"


# import libraries


class CopyPasteAttr(object):
    def __init__(self, dpUIinst, langDic, langName, presetDic, presetName, *args, **kwargs):
        # defining variables
        self.dpUIinst = dpUIinst
        self.langDic = langDic
        self.langName = langName
        self.presetDic = presetDic
        self.presetName = presetName
        self.ctrls = dpControls.ControlClass(self.dpUIinst, self.presetDic, self.presetName)
        # call main function

# Path: dpAutoRigSystem/Modules/Library/dpControls.py
# class ControlClass(object):
#     def __init__(self, dpUIinst, presetDic, presetName, moduleGrp=None, *args):
#     def colorShape(self, objList, color, rgb=False, *args):
#     def renameShape(self, transformList, *args):
#     def directConnect(self, fromObj, toObj, attrList=['tx', 'ty', 'tz', 'rx', 'ry', 'rz', 'sx', 'sy', 'sz'], f=True, *args):
#     def setLockHide(self, objList, attrList, l=True, k=False, *args):
#     def setNonKeyable(self, objList, attrList, *args):
#     def setNotRenderable(self, objList, *args):
#     def distanceBet(self, a, b, name="temp_DistBet", keep=False, *args):
#     def middlePoint(self, a, b, createLocator=False, *args):
#     def createSimpleRibbon(self, name='ribbon', totalJoints=6, jointLabelNumber=0, jointLabelName="SimpleRibbon", *args):
#     def getControlNodeById(self, ctrlType, *args):
#     def getControlModuleById(self, ctrlType, *args):
#     def getControlDegreeById(self, ctrlType, *args):
#     def getControlInstance(self, instanceName, *args):
#     def cvControl(self, ctrlType, ctrlName, r=1, d=1, dir='+Y', rot=(0, 0, 0), *args):
#     def cvLocator(self, ctrlName, r=1, d=1, guide=False, *args):
#     def cvJointLoc(self, ctrlName, r=0.3, d=1, rot=(0, 0, 0), guide=True, *args):
#     def cvCharacter(self, ctrlType, ctrlName, r=1, d=1, dir="+Y", rot=(0, 0, 0), *args):
#     def findHistory(self, objList, historyName, *args):
#     def cvBaseGuide(self, ctrlName, r=1, *args):
#     def setAndFreeze(nodeName="", tx=None, ty=None, tz=None, rx=None, ry=None, rz=None, sx=None, sy=None, sz=None, freeze=True):
#     def copyAttr(self, sourceItem=False, attrList=False, verbose=False, *args):
#     def pasteAttr(self, destinationList=False, verbose=False, *args):
#     def copyAndPasteAttr(self, verbose=False, *args):
#     def transferAttr(self, sourceItem, destinationList, attrList, *args):
#     def transferShape(self, deleteSource=False, clearDestinationShapes=True, sourceItem=None, destinationList=None, applyColor=True, *args):
#     def setSourceColorOverride(self, sourceItem, destinationList, *args):
#     def resetCurve(self, changeDegree=False, transformList=False, *args):
#     def dpCreatePreset(self, *args):
#     def dpCheckLinearUnit(self, origRadius, defaultUnit="centimeter", *args):
#     def shapeSizeSetup(self, transformNode, *args):
#     def connectShapeSize(self, clusterHandle, *args):
#     def addGuideAttrs(self, ctrlName, *args):
#     def createPinGuide(self, ctrlName, *args):
#     def setPinnedGuideColor(self, ctrlName, status, color, *args):
#     def jobPinGuide(self, ctrlName, *args):
#     def startPinGuide(self, guideBase, *args):
#     def unPinGuide(self, guideBase, *args):
#     def importCalibration(self, *args):
#     def mirrorCalibration(self, nodeName=False, fromPrefix=False, toPrefix=False, *args):
#     def transferCalibration(self, sourceItem=False, destinationList=False, attrList=False, verbose=True, *args):
#     def setCalibrationAttr(self, nodeName, attrList, *args):
#     def getCalibrationAttr(self, nodeName, *args):


# Path: dpAutoRigSystem/Extras/dpCopyPasteAttr.py
from maya import cmds
from functools import partial
from ..Modules.Library import dpControls
from maya import cmds

# importing libraries:

# global variables to this module:    
CLASS_NAME = "CopyPasteAttr"
TITLE = "m135_copyPasteAttr"
DESCRIPTION = "m136_copyPasteAttrDesc"
ICON = "/Icons/dp_copyPasteAttr.png"

DPCP_VERSION = "2.1"


# import libraries


class CopyPasteAttr(object):
    def __init__(self, dpUIinst, langDic, langName, presetDic, presetName, *args, **kwargs):
        # defining variables
        self.dpUIinst = dpUIinst
        self.langDic = langDic
        self.langName = langName
        self.presetDic = presetDic
        self.presetName = presetName
        self.ctrls = dpControls.ControlClass(self.dpUIinst, self.presetDic, self.presetName)
        # call main function

        self.copyPasteAttrUI()