How can i get animation by HTML node or Mesh? #5877
Unanswered
Fi1osof
asked this question in
General Questions & Discussion
Replies: 1 comment
-
UPD: this happens if all cats in one Group. But if move each cat into separated Groups, Animations plays with correct coordinates (i think this because plays with [0.0.0] coords in parent, where cats with [0,0,0] coords too). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Spoke exports all animations as one list in animation-mixer component. For example:
I get 4 models on scene each one have 2 animations in glb model (CatIdle and CatCollected). Each on have one loop-animation clip (CatIdle).
On collision i need set and play 'CatCollected' animation. But i can not get all animations for model. All i can, just get animation by name from all list.
But in this case i just get first animation for any node, and only one animation plays with correct coordinates (first model in video). Others play with coordinates [0,0,0]
Kazam_screencast_00129.mp4
Expected behavior
Have method like
$("#environment-scene > [gltf-model-plus][animation-mixer]").components['animation-mixer'].getAllAnimationsByNode(htmlNode)
or
htmlNode.getAllAnimations()
Beta Was this translation helpful? Give feedback.
All reactions