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
>
--
Abigail Brady, Senior Architect
The Foundry, 6th Floor, 48 Leicester Square, London. WC2H 7LT
Tel: +44 20 7968 6828 * Fax: +44 20 7930 8906
Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev