Chances are good the problem is on my end. If I can narrow it down to something that's not me I'll report back.
Thanks for the great library! On Sat, Mar 30, 2019 at 10:54 AM Larry Gritz <[email protected]> wrote: > That's pretty old. I'm not even sure I have the ability to easily build > 1.5 any longer (it lack patches from later releases that are probably > needed to make it work with whatever set of libraries and compilers we have > now). > > I think you're doing the right thing. Do you have the ability to try your > test with 2.0 or master (or even 1.8)? This feels like something long since > fixed, but if it's still broken, I'd sure like to fix it right away. > > -- lg > > > On Mar 29, 2019, at 7:02 PM, Alex Suter <[email protected]> wrote: > > Hi, > > Apologies for the beginner questions. Also, for various reasons, I'm using > OIIO 1.5.14 which might be the actual problem. > > I've got a multipart exr image, and I'm trying to get all of the channel > names from the many subimages in python, and the data from a particular > channel in C++. > > import OpenImageIO as oiio > buf = oiio.ImageBuf(filepath) > print buf.spec().channelnames # prints channel names from the first > subimage > print buf.nsubimages # prints 1 > > I expected nsubimages to report 11, in my example. The sub images are > definitely in the file. Do you know what I'm doing wrong? > > Similarly on the C++ side I have something like: > > int sub = 0; > OIIO::ImageInput* imgInput = ... > while (imgInput->seek_subimage(sub, miplevel, spec)) > { > std::cout << spec.nchannels << "\n"; > ++sub; > } > > It only reports on a single subimage. > > Thanks for any tips. I appreciate it. > > -- Alex > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > > > -- > Larry Gritz > [email protected] > > > > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > -- |o| Alex Suter |o| R&D SF |o| x62368 |o|
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
