I would like to generate the preview of a list of materials. I could create a sphere and apply the material, render and save it in a loop, but what I would like is to use the internal functionality of template preview.
My idea is to get the image object of the template preview, and then save it as any image.
I have seen something about using a custom render, but I don't know where find more information.
I will appreciate any idea.