Doesn't one ship with vray?
--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Szabolcs,
Thanks for the pointers. I was thinking I would go for Deke’s advice and attempt building OpenEXR 2.1.0 and give “exrmultipart” a try to get a proper, working solution to merge slices on both Windows and Linux (since I only have a quick fix in effect at the moment). Any particular reason why you didn’t go for that?
Did you end up using the older Open EXR version / Python bindings or did you end up somehow successfully being able to utilize OpenEXR 2.0 via Python bindings?
So, what I need to do is merge multiple V-Ray-rendered EXR slices on the commandline (and preferably via Python), and I need to do it on both Linux and Windows, to later be read into Nuke 8.
I found a quick fix to this; a pre-compiled binary for Windows of OpenImageIO, and so I’m using its python bindings. I read each EXR into ImageBuf(), added them together and saved out a new EXR. This works fine for now. Quick psuedo-like code of what I’m doing at the moment in case that helps anyone else trying to do the same thing:
import OpenImageIO as oiio
from OpenImageIO import ImageInput, ImageOutput
from OpenImageIO import ImageBuf, ImageSpec, ImageBufAlgo
folder = '/some/folder'
merged_buf = ImageBuf()
buffers = []
for filename in os.listdir( folder ):
filepath = os.path.join(folder, filename)
buffers.append( ImageBuf( filepath ) )
for i in range(0, len(buffers)):
if i == 0:
ImageBufAlgo.add( merged_buf, buffers[i], buffers[i+1])
if (i > 1) and (i <= len(buffers) ):
ImageBufAlgo.add( merged_buf, merged_buf, buffers[i])
merged_buf.write( os.path.join(folder, 'merged.exr') )
Regards,
Fredrik
--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+unsubscribe@googlegroups.com.