← ClaudeAtlas

blender-motion-capturelisted

Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.
trku052-png/social-media-youtube-skills · ★ 1 · AI & Automation · score 68
Install: claude install-skill trku052-png/social-media-youtube-skills
# Blender Motion Capture ## Overview Import, process, and retarget motion capture data in Blender using Python. Work with BVH/FBX mocap files, track camera and object motion from video footage, solve 3D camera paths, and clean up animation data. Checked against the Blender 5.2 Python API reference. Blender 5.0 changed how animation data is stored: an Action now has layers, strips and slots, and F-Curves live in a channelbag (`action.layers[0].strips[0].channelbag(slot).fcurves`), not in `action.fcurves`. Code written for 4.x that touches `action.fcurves` fails on 5.x. ## Instructions ### 1. Import BVH motion capture files ```python import bpy bpy.ops.import_anim.bvh( filepath="/srv/mocap/walk_cycle.bvh", target='ARMATURE', global_scale=0.01, # BVH files are usually in centimeters frame_start=1, use_fps_scale=False, update_scene_fps=True, # match the scene fps to the file update_scene_duration=True, # extend the scene frame range to the clip rotate_mode='QUATERNION', # NATIVE keeps the file's Euler order, which breaks quaternion copies axis_forward='-Z', axis_up='Y' ) armature = bpy.context.active_object action = armature.animation_data.action print(f"Imported: {armature.name}, Bones: {len(armature.data.bones)}, Frames: {tuple(action.frame_range)}") ``` ### 2. Import FBX with animation ```python bpy.ops.import_scene.fbx( filepath="/srv/mocap/capture_take01.fbx", use_anim=True, ignore_leaf_bones=T