0

In the image editor of a rendered scene, I can see all Z values for each X AND Y pixel position in the image when I right click and select every pixel.

How do I export all pixels X,Y,Z values to a csv or some kind of text?

To have every pixel(x,z) listed with its z value

1017, 447, 10.107 (image example) ................. ................ ...............

enter image description here

  • 1
    An image is a fancy container for an array of pixels, so you just need to load a module that can read image formats. You can also do it in Blender. This might help https://blender.stackexchange.com/questions/2170/how-to-access-render-result-pixels-from-python-script/82836 – Gorgious Feb 18 '21 at 11:51
  • Ups sorry, I didn't see you were looking to get the X Y Z values. I don't know how to access that information, but it might be contained somewhere in the image object since you can access it easily there – Gorgious Feb 18 '21 at 11:56
  • 1
    @Gorgious the Z value is just the depth output from a Z-pass, so you could render that and use any color channel you wanted. – Nathan Feb 18 '21 at 14:47

0 Answers0