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

Basic UsdSkel doesn't animate in usdview-23.08 #2621

Closed
mati-nvidia opened this issue Aug 24, 2023 · 5 comments
Closed

Basic UsdSkel doesn't animate in usdview-23.08 #2621

mati-nvidia opened this issue Aug 24, 2023 · 5 comments

Comments

@mati-nvidia
Copy link
Contributor

Description of Issue

usdview-23.08 viewport does not show the animation from this basic UsdSkel example: https://openusd.org/release/api/_usd_skel__schema_overview.html

Steps to Reproduce

  1. Save the USDA from Skinning an Arm example: https://openusd.org/release/api/_usd_skel__schema_overview.html
  2. Open the USDA file with usdview (23.08)
  3. Press play or scrub through the timeline
  4. RESULT: The interpolated values for /Model/Skel/Anim.rotations are displayed in the Properties window, but it does not animate in the viewport.

System Information (OS, Hardware)

Windows 10

Package Versions

USD-23.08, Python 3.10

Build Flags

Default

@mati-nvidia mati-nvidia changed the title Basic UsdSkel doesn't animation in usdview-23.08 Basic UsdSkel doesn't animate in usdview-23.08 Aug 24, 2023
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8624

@spiffmon
Copy link
Member

Oh Shazam, @mati-nvidia - good find, and reinforcement that we need to find time to turn all of our doc examples into unit tests. It looks like when we made the changes to "strictify" the application of SkelBindingAPI, the bindings discovery process lost the ability to find animation bindings inside/under Skeleton prims. If I simply move the skel:animation binding up onto </Model> then all works as expected. We'll get this fixed for 23.11... give a shout if this is a pattern that's being used commonly - looks like we do not use it anywhere except in this example!

@mati-nvidia
Copy link
Contributor Author

I checked around and, for example, currently our Blender exporter sets the skel:animationSource on the Skeleton prim, but also correctly applies the SkelBindingAPI on the Skeleton prim so it plays fine in usdview.

@spiffmon is there some code change you were planning on making for this issue? If it's just a matter of fixing the example by moving skel:animationSource to the SkelRoot, I can include that in some other doc improvements I'm working on.

@spiffmon
Copy link
Member

spiffmon commented Aug 31, 2023 via email

@tallytalwar
Copy link
Contributor

usdfixbrokenpixarschemas should also fix the application of UsdSkelBindingAPI: https://github.com/PixarAnimationStudios/OpenUSD/blob/release/pxr/usd/bin/usdfixbrokenpixarschemas/usdfixbrokenpixarschemas.py#L51

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

4 participants