i want to store object data like what modifiers the object currently has so that i can change the objects data at a later point to what it was before.
i can already do what i want but the way i do it is probably not the best what im currently doing is im making a copy of the selected object im giving it a index and a pointer variable so that i can loop trough all the object in the blend file and get the object that i want, i only really want the objects data like ob.data and ob.modifiers.
so what i want is a way to store arrays that contain the types of data that i mentioned above in blender that don’t get lost when i close blender and that i can access by object.variable_that_i_want[index or key].
I needed to store an python list with colours in the objects and this was my implementation.
in case it would be useful to anyone. This information is stored with the objects in the blender file, so it is persistent.