VincentG
(VincentG)
December 12, 2015, 4:05pm
1
Hello,
I’m trying to get image size of multilayer exr files but it always returns 0.
for image in bpy.data.image["my_multilayer_exr"]:
print (image.size[:])
This is working on regular images files but not on multilayer exr file format or render. How can I do?
Secrop
(Secrop)
December 14, 2015, 3:24am
2
Sadly, the api is not working for Multi-layered images…
don’t even think this is easy to fix, since involve a bit changing of blender’s RNA
The only thing I can remember is to save each layer in seperated files.
(or using the pointer to the memory directly, thought I’d never tried it)
VincentG
(VincentG)
December 14, 2015, 6:04am
3
Ah that’s too bad!
Is it a way to get this and the pixel value by another python library maybe?
Secrop
(Secrop)
December 14, 2015, 9:03am
4
do not know
I tried unsuccessfully to compile pyilmbase and OpenEXR for python3.4 … but theoretically it can be done.
maybe making the request to the dev team… Didn’t check if it’s already in the ToDo list.
erdinc
(erdinc)
December 14, 2015, 4:53pm
5
@Secrop
If your os is windows you can find compiled versions in here
http://www.lfd.uci.edu/~gohlke/pythonlibs/
elif linux :
you can install them with your package manager and copy them from os’s python site packages folder to blender’s python site packages folder. (python versions should match)