Hi everyone,
I'm sure it's just a syntax problem, but I'm unable to do the following:

I have an {R,G,B} EXR and a {mattes.matte01, mattes.matte02} EXR.

I want to create an EXR with 2 subimages. The RGB comp as img 0, the mattes
as (sub) img 1.

I have my comp_buf and my mattes_buf and trying something like:

out_filepath = '/tmp/exr.rexr'
out = ImageOutput.create (out_filepath)
out.open(out_filepath, (comp_buf.spec(), matte_buf.spec()))

comp.write(out)
out.open(out_filepath, comp_buf.spec())
out.open(out_filepath, matte_buf.spec(), "AppendSubimage"))
matte_buf.write(out)

out.close()

Weirdly, supports("appendsubimage") returns false on the EXR. Am I not
declaring something properly?

Best,
Jerome
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to