Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getValue() for floatarray type inputs #291

Closed
sosoyan opened this issue Sep 4, 2019 · 2 comments
Closed

getValue() for floatarray type inputs #291

sosoyan opened this issue Sep 4, 2019 · 2 comments

Comments

@sosoyan
Copy link

sosoyan commented Sep 4, 2019

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
Copy link
Member

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
Copy link
Member

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

lvxejay pushed a commit to ForgeXYZ/MaterialX that referenced this issue Jul 9, 2020
…adsk_contrib/prblib_names

Updates to PBR library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants