I was wondering what the right syntax might be for non-size-1 attributes in 
python, the signature seems to suggest that tuples might be valid and it does 
not error but can’t seem to find the attributes being added when checking 
inside Nuke.

I’m trying to replicate the following in python:

const char* value[2] = {"left”, "right"};
OpenImageIO::TypeDesc multiViewAttr(OpenImageIO::TypeDesc::STRING, 2);
outSpec.attribute("multiView”, multiViewAttr, values);

I have tried the following without any luck:

outSpec.attribute(“multiView”, oiio.TypeDesc.TypeString, (“left”, “right”))

What is the right way of setting this?

I’m using an ancient version of the python bindings (v1.5-ish), happy to ask 
our IT dept to update it if that will make things any better.
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to