I have had thoughts about animation mapping in blender importer.
Some time ago I added a mapping between object and action to BlenderKey, to properly link actions with skeletons.
Unfortunately Blender does not map this directly because you might attach one action to several skeletons.
These actions will move every bone they have included - recognized by name.
This mapping added to BlenderKey is pretty awful and I do not like it.
So I think I could do it automatically - just tell me what would you prefer.
Attach an action to every skeleton/object that has at least one name of the bone specified in its channels.
Attach only exact matches - when the amount of action channels is exactly equal to bones in the skeleton.
Attach the action to the skeleton that best maches the channel names.
It means, for example, if the importer finds a perfect match it will not attach the action to skeleton that has less bones with the name equal to the action’s channel name.
We could then get rid of the action mappings and replace it with a single enum that could allow us to choose one of the options mentioned above.
And one option would be selected by default. I would choose the first one if you ask me
The rest will depend on the artist. He or she can, for example, use different bone names to ensure the actions match.
Give me your opinion about the issue. And write your own ideas of how to match action to skeleton/object.
I am aware that this is the third time I change the approach to the subject. And I am sorry about it.