OpenEXR "parts" are not fully general implementations of multi-image files. The parts need some attributes to be the same for all parts, and I think displaywindow is one of them.
My procrastination paid off! There is no way I would have guessed that was your problem without the actual files you were using. -- lg > On Feb 21, 2022, at 1:34 PM, Jerome Raim <jerome.r...@gmail.com> wrote: > > Did some more troubleshooting. > out.open(out_filepath, (comp_buf.spec(), matte_buf.spec())) was returning > False. > > So I printed out.geterror() and oiio flagged a displayWindow mismatch. > > So I'm on the road to figuring this out... > > > On Mon, Feb 21, 2022 at 1:18 PM Jerome Raim <jerome.r...@gmail.com > <mailto:jerome.r...@gmail.com>> wrote: > 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 -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org