nkeeline / Keemap-Blender-Rig-ReTargeting-Addon

Blender Rig Retargeting Addon allows mapping motions of one rig to another. Works with ANY rig and allows user to map bones from one rig to another and save mapping files out to hard drive.
GNU General Public License v3.0
128 stars 21 forks source link

Position isn't translated correctly from source to target when the armature rotations don't match #8

Closed geneishouko closed 2 years ago

geneishouko commented 2 years ago

I have a need to retarget animations where the source and target armatures local spaces don't face the same direction. The target armature is rotated 90 degrees in the X axis to take into account the import tool of a certain game. The resulting animation for the target armature has the movement in the Y axis being applied to the Z axis and viceversa. To remedy this I applied a bone constraint on the Armature to copy the position of the source root bone after applying the entire retargeted animation. Is it possible for this addon to take into account Armature rotation? ksnip_20220225-154401 ksnip_20220225-154427

nkeeline commented 2 years ago

Not sure I completely understand what you said, but the script takes the global rotation of the source bone, then rotates the target bone to the same rotation with a correction rotation in global space. This correction is calculated for you with the calc button when both rigs are in the 'same' position. Armature Rotation is NEVER USED since all bone rotations are copied in WORLD SPACE.

nkeeline commented 2 years ago

I believe this is resolved with v0.0.5