Cheers Abigail, that works fine. I surprised myself, I was a lot
closer than I thought! :)
Steve
Abigail Brady wrote:
getData returns an opaque pointer that you can then fetch to
getPropertyDouble. Try something along the lines of
MetaData::Bundle::PropertyPtr property = _bundle.getData("exr/blah");
double values[16];
for (int i = 0; i < 16; i++) {
values[i] = MetaData::getPropertyDouble(property, i);
}
On Wed, 2011-06-08 at 14:32 +0100, Stephen Newbold wrote:
Hi,
I'm able to return a value from an EXR's metadata using getDouble() but
I'm struggling to understand the syntax to return an array of numbers.
I want to extract the camera matrix as an array of 16 doubles and I
presume getData() is the way to go but I'm not having much luck as I'm
not quite sure what this returns.
My alternative method is to return the matrix as a comma-delimited
std:string of values but I get the impression that this is just created
from an original array? Seems the long way around.
Cheers,
Steve
--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com
|
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev