How to retrieve animated meshes from AnimationClip

Greetings Folks!

I’m loading gltf models exported from Blender which contain animations, before even running the animations, I would like to parse each clip and determine which meshes will be affected by that clip (either moved or rotated).

I was looking at the data contained in the AnimationClip, all I see there is the name of the tracks that matches name of the mesh (eg. “arm_4.quaternion”).

Is this the only way I can map a track to which mesh it will affect inside my scene? Or is there a better/faster way to find out?

Thanks for any insight.

I guess this the only way, you can alternatively store the “animation to object3d” relation (write custom code) and use or export as wanted.