I know basically after "render" we may save "Render Result" image or change slot of render, but I hope to use render.opengl() to generate current scene thumbnail with exported json files (kind of shape key preset, or bone pose preset system) without overwrite current "Render image".
bpy aleady offer way to save render.opengl() image to the user defined path, but after all it still generate and overwrite the "Render image" too.
So when I export preset.json, with my script, generated "thumbnail" render.opengl image (it generate tiny viewport render with my setting) It auto overwrite current "Render Result" without intention.
What I hope to do is, use "render.opengl()" then generate image to the defined path as thumbnail, without overwrite current "Render Result" . Is there good way to achive it with bpy?
(eg generate as different image name from "Render Result" and remove it, after save json)
(this question related with Render and save " view port render image (openGL)" with python directly?)
bpy.context.scene.render.filepath
to change the output file path. I imagine it's the same with OpenGL, but I haven't tried it, so this is just a comment. $\endgroup$