def METHOD_NAME(self, result):
    if len(result) == 2:
        itemData = ObjectBase(name=result[0], model=result[1], actor=False)
    elif len(result) == 3:
        itemData = ObjectBase(name=result[0], model=result[1], anims=[result[2]], actor=True)
    else:
        return
    self.palette.add(itemData)
    newItem = self.tree.AppendItem(self.tree.root, itemData.name)
    self.tree.SetItemPyData(newItem, itemData)
    self.tree.ScrollTo(newItem)