AcademySoftwareFoundation / MaterialX

MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.
http://www.materialx.org/
Apache License 2.0
1.88k stars 357 forks source link

getValue() for floatarray type inputs #291

Closed sosoyan closed 5 years ago

sosoyan commented 5 years ago

I'm having an error when calling input object's getValue() method, if the type is floatarray. Can't see anything about this type in the class index docs either?

AttributeError: 'MaterialX.PyMaterialXCore.Value' object has no attribute 'getData'

jstone-lucasfilm commented 5 years ago

Good catch, and it looks like we still need to add Python bindings for the array type value accessors. This should be a straightforward extension of existing logic, though we’ll need special handling for Python lists and tuples of values.

jstone-lucasfilm commented 5 years ago

Thanks for posting this issue, and it should now be fixed in master (#292).