def loadBlenderProperties(self, object): Object.loadBlenderProperties(self, object) try: self.size = object.getProperty('size').getData() except AttributeError: # use the default size self.set_size() self.name = object.getName()
def loadBlenderProperties(self, object): Object.loadBlenderProperties(self, object) try: self.drive_through = object.getProperty('driveThrough').getData() except AttributeError: # No property, set default self.drive_through = 0 try: self.shoot_through = object.getProperty('shootThrough').getData() except AttributeError: # No property, set default self.shoot_through = 0