Thanks so much for the review, @deadpin!
As a minor additional change before committing, I will replace the call .lookup_default()
with a call to .lookup()
in the conditional. This should…
BTW, this is the branch with the example code:
https://projects.blender.org/makowalski/blender/src/branch/displayColor_for_shapes_with_anim
The changes look good! Splitting out the shared attribute import functionality to usd_mesh_utils.cc
is welcome, because I believe the attribute conversion functions can also be used in the…
I've attached a shapes_with_colors.usda
file generated from Houdini containing various shape types with different colors that I'm using for testing. The colors come through as expected in…
@Sangl Are you able to provide this or a similar example USD that includes the skinned mesh? This would help us test potential fixes. Thank you.
As an update, the issue is due to the fact that the bone bind matrices have non-unit scales. (Interestingly, this is the first example of a USD skeleton I've encountered with such scales.) I…