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

There is no 'add_animation' function in AnimationPlayer any all #589

Closed
SmallKi opened this issue Dec 14, 2023 · 1 comment · Fixed by #627
Closed

There is no 'add_animation' function in AnimationPlayer any all #589

SmallKi opened this issue Dec 14, 2023 · 1 comment · Fixed by #627

Comments

@SmallKi
Copy link

SmallKi commented Dec 14, 2023

In res://addons/godot-xr-tools/hands/hand.gd.
image

Here try to add animation to AnimationPlayer, but this func is deprecated in 4.2.
Instead, you have to get animation library first and then add animation to the library.
The same to add "close pose" after this.

@Malcolmnixon
Copy link
Collaborator

In reviewing the code it may be beneficial for the hands to:

  1. Build a "dynamic" AnimationLibrary at runtime
  2. Add the "dynamic" AnimationLibrary to the AnimationTree
  3. Modify the "dynamic" AnimationLibrary when switching pose animations

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

Successfully merging a pull request may close this issue.

2 participants