I need to create a convex hull over my objects, render an image and then delete that hull again. My idea was to store the object, the object data or the mesh itself then create the hull and render the image and then just replace the object/data/mesh with the stored data.
For example first i´d do
self.backup[obj.name] = obj.data
and then after full & rendering i´d like to do something like
orig_data= self.backup[obj.name]
obj.data = orig_data
obj.data.update()
But this is not restoring the previous data, the hull remains. I´m guessing right now I just store links instead of real data but I don´t know how to fix this because I don´t really know much about different blender data types etc.
After trying to replace the objects mesh, data and the object itself and none of it worked I sort of ran out of ideas. I´d be glad about any input =)
PS: I´m using 2.8. in case that makes any difference.