@staticmethod
    def addAttr(object_, attributes):

        #attributes = [{'attrName':'elbowTwist','type':'double','min':'','max':'','default':''},{'attrName':'ikBlend','type':'double','min':'0','max':'1','default':'0'}]
        # adds attributes to control
        for attribute in attributes:
            object_.addAttr(attribute['attrName'], at=attribute['type'], k=1)

            # sets min if applicable
            if attribute['min']:
                addAttr((object_, attribute['attrName']) % '%s.%s', e=1, minValue=float(attribute['min']))

            # sets max if applicable
            if attribute['max']:
                addAttr('%s.%s' % (object_, attribute['attrName']), e=1, maxValue=float(attribute['max']))

            # sets default if applicable
            if attribute['default']:
                object_.attr(attribute['attrName']).set(float(attribute['default']))
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaMiscCore.addAttr/swapped operands of `%`