Thanks, Paul, Is this in OpenEXR version 1.7.0?
In openexr-1.6.1, I get: error: ISO C++ forbids declaration of ‘StringVectorAttribute’ with no type I'll try version 1.7.0 Thanks again, -Stewart ----- Original Message ----- From: "Paul Miller" <p...@fxtech.com> To: openexr-devel@nongnu.org Sent: Friday, February 3, 2012 1:21:50 PM Subject: Re: [Openexr-devel] Unpacking the multiView attribute? On 2/3/2012 1:12 PM, Stewart Dickson wrote: > Dumb question? > > When reading the MultiView/* image files in the OpenEXR Sample Images source: > http://download.savannah.nongnu.org/releases/openexr/openexr-images-1.7.0.tar.gz > openexr-images-1.7.0/MultiView/* > > One encounters the attribute of type StringVector, which I don't see hooks in > the > OpenEXR API to unpack. > > Can anyone explain how to do it? Here is how I do it: const StringVectorAttribute *multiView = file->header().findTypedAttribute<StringVectorAttribute>("multiView"); if (multiView) { const StringVector &value = multiView->value(); std::string def_view = defaultViewName(value); ... } _______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/openexr-devel _______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/openexr-devel