1

Working on a script and I need a way to update the render result image to a modified render result image.

As far as I've seen, accessing pixels and other properties requires you to save out the render image on disk and reload it again, but I haven't found a way to modify the original render result or change it to another image altogether.

I've some addons that do that (AI render for example I think uses compositor), just wondering if there's a decent way to achieve this?

Any help is greatly appreciated! Thanks!!

Aras
  • 306
  • 2
  • 8
  • 1
    Hello ! This should help https://blender.stackexchange.com/a/252521/86891 and this https://blender.stackexchange.com/questions/214469/read-pixel-color-with-foreach-get-on-image-data – Gorgious Jan 10 '23 at 12:02
  • Sorry to be clear, the issue I'm having is permission related, not modifying pixel values. As far as I've tried, I couldn't find a way to write any info to render result image, can't set the image to anything else either. Basically I can create a new image with the changes I wanted, but the goal is to set it to render result for further processing either through compositor or etc. – Aras Jan 10 '23 at 12:14
  • @Gorgious, the bpy.data.images['Render Result'].pixels array has a length of zero once the render is complete. It's unclear how those links help when they rely on having data in the pixels array. Could you clarify? – SO_fix_the_vote_sorting_bug Jan 12 '24 at 07:54

0 Answers0