I'm using this answer to generate images from view port

but is there a way to directly externally store/generate this image?
and by that I mean NOT having to manually save them through Image Editor

I'm using this answer to generate images from view port

but is there a way to directly externally store/generate this image?
and by that I mean NOT having to manually save them through Image Editor

bpy.ops.render.opengl()? – Martynas Žiemys Sep 15 '22 at 14:49bpy.ops.render.opengl()works, but I think it's quite reasonable to expect it to be well optimised since everybody wants faster rendering. If it was possible to easily render stuff to files faster, everybody would probably be doing that already. – Martynas Žiemys Sep 16 '22 at 13:21import gpu? because this answer does exactly what I need but instead of generating the image every time some change occurs I need it to generate only when the function is invoked – cak3_lover Sep 17 '22 at 06:58