Rokoko / rokoko-studio-live-blender

Rokoko Studio Live plugin for Blender
GNU Lesser General Public License v3.0
326 stars 38 forks source link

Unable to retarget animation with custom bone entry #98

Open flopityflips opened 1 year ago

flopityflips commented 1 year ago

When I build a bone list of my two armatures, the source armature lacks its full bone list. So, I attempt to use the "Add Custom Entry" button. When I press retarget animation with the custom bone entry, I am given this error:

Python: Traceback (most recent call last): File "C:\Users\amand\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\rokoko-studio-live-blender-1-4-0\operators\retargeting.py", line 128, in execute custom_schemes_manager.save_retargeting_to_list() File "C:\Users\amand\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\rokoko-studio-live-blender-1-4-0\core\custom_schemes_manager.py", line 26, in save_retargeting_to_list bone_name_target_detected, bone_name_key_detected = retargeting_dict[bone_item.bone_name_source] KeyError: 'Hip'

location: :-1

Edit: I should note I have attempted this on Blender 3.3, 3.2, and 3.01 and have gotten the same result each time.

ReynaK27 commented 1 year ago

I have same issue as well. Bumping this!

NicolasNgu commented 1 year ago

I got the same issue here, been stuck on this for a while now

gabrielmontagne commented 1 year ago

The commit list shows that the Rokoko crew last worked on the retargeting code in 2021. That area is very abandoned (they spend an inordinate amount of time on that login "feature"). It might be that this is as good as it will get.

I had the same problem. That whole system of "smart guessing" is very clunky, in my opinion.

I commented out the attempt to save the scheme. I got some more problems, but at least it sidestepped this one.

Find the file "retargeting.py" in the "operators" folder of the addon files. Comment out (add a # at the beginning of) the line, as below. Restart Blender, and try again.

--- a/operators/retargeting.py
+++ b/operators/retargeting.py
@@ -125,7 +125,7 @@ class RetargetAnimation(bpy.types.Operator):
             return {'CANCELLED'}

         # Save the bone list if the user changed anything
-        custom_schemes_manager.save_retargeting_to_list()
+        # custom_schemes_manager.save_retargeting_to_list()

         # Prepare armatures
         utils.set_active(armature_target)