Hi
I want to save rendered image with different render setting from the scene settings
and i don’t want to change scene settings because scene render settings is set for mp4 output and i just want to save a jpg snapshot of viewport rendered with opengl.
i’ve written a script that creates a temp scene and set jpg render settings for that and tries to save the render result image with that settings but fails with an error code…
below is the script and the error code.
Hi
I’ve tested this method, the problem is if i change format then return to that, some other parameters will change to default value. for example if the container paramter for FFmpeg is set to MP4 and i change format to JPEG then return to FFmpeg the container will change to default value which is MKV, so does the other parameters like codec, quality, … and i have to keep track of that parameters and sub-parameters…
I was looking for a simpler method to put some temp override settings for saving a quick snapshot…
i tried to keep a copy of render settings with sth like:
old_settings = scene.render.image_settings.copy()
but there is no copy method for that.
maybe a recursive iteration of getting and setting of all the non read-only parameters is the only solution…