diff options
Diffstat (limited to 'mocap/retarget.py')
-rw-r--r-- | mocap/retarget.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mocap/retarget.py b/mocap/retarget.py index 66c62280..d0b203cd 100644 --- a/mocap/retarget.py +++ b/mocap/retarget.py @@ -521,7 +521,15 @@ def totalRetarget(performer_obj, enduser_obj, scene, s_frame, e_frame): else: prepareForBake(enduser_obj) print("Retargeting pose (Advanced Retarget)") - bake_action(s_frame, e_frame, action=enduser_obj.animation_data.action, only_selected=True, do_pose=True, do_object=False, frame_step=step) + bake_action( + bpy.context.object, + s_frame, e_frame, + action=enduser_obj.animation_data.action, + only_selected=True, + do_pose=True, + do_object=False, + frame_step=step, + ) name = performer_obj.animation_data.action.name[:10] #We trim the name down to 10 chars because of Action Name length maximum enduser_obj.animation_data.action.name = "Base " + name |