def AddProperty(self, name, _type, animatable=True, user=True):
        '''
        Add a property to this component
        @param name: the name of the property
        @param _type: the data type of the property:   
        '''
        
        if self.ListProperties(pattern=name):
            raise Exception("Can not add property '%s'. Already exists on object '%'" % (name, self))
        try:
            typeData = self.kPropertyTypes[_type]
        except __HOLE__:
            raise Exception("Invalid property type '%s'. Valid types are: '%s'" % (_type, ', '.join(self.kPropertyTypes.keys())))
        
        typeData.extend([animatable, user, None])
        
        self.component.PropertyCreate(name, *typeData)
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/site-packages/PyMoBu-0.2/pymobu/components/__init__.py/PMBComponent.AddProperty