What I wanted to do is, using Python, temporarily swap out the existing materials of selected objects, and after I'm done with these objects, reset their material setup back to their original state.
I already have some clue about how to do it using duplicated objects over a different scene with matching names. But I'm wondering if there is a simpler way to do this?
I'd need to store the entire material setup including what material was inside every material slot of the object. Thinking this way I actually have some more ideas now.
I can store the material names in each object's material slot in their original order, and when restoring, I can just loop over the names of materials stored for each objects if those material names will not change. Thanks for any answers, voted close.