🤖AI-generated documentation☐ curatedAI Generated
About content generation types
(e.g., docs generated from codebase analysis)
(e.g., livestream → blog post, meeting notes → docs)
(e.g., hand-written tutorial)
Blender Export
FreeMoCap can export processed mocap data directly to Blender, creating a complete 3D scene with skeleton mesh, camera frustums, and lighting.
Blender export currently works with MediaPipe mocap output only — RTMPose 3D data does not yet have a working Blender export. See the Post-Hoc Motion Capture guide.
Prerequisites
- Blender installed on your system (detected automatically or specified manually)
- A processed recording with mocap data (all required
.npyfiles present in the recording's output data directory) - The
freemocap_blender_addon(installed automatically by the backend)
Export Flow
- Process mocap data — Run the mocap pipeline on a recording to generate
.npyfiles - Detect Blender — The backend auto-detects installed Blender via
GET /freemocap/blender/detect - Export — Click "Export to Blender" or call
POST /freemocap/blender/export - Open — Optionally auto-open the
.blendfile in Blender's GUI
What Gets Exported
The Blender addon reads the .npy output files and builds a complete 3D scene:
| Element | Source Data |
|---|---|
| Skeleton mesh | mediapipe_body_3d_xyz.npy — body keypoints connected as a skeleton |
| Hand meshes | mediapipe_right_hand_3d_xyz.npy, mediapipe_left_hand_3d_xyz.npy |
| Face mesh | mediapipe_face_3d_xyz.npy |
| Center of mass | mediapipe_body_total_body_center_of_mass.npy — whole-body COM trajectory |
| Camera frustums | Calibration data — shows where each camera was in 3D space |
| Ground plane | Calibration groundplane alignment — Z=0 reference plane |
| Lighting | Default three-point lighting setup |
Technical Details
The export process runs Blender in --background mode:
- Backend resolves the
.blendoutput path from the recording folder - Injects
freemocap_blender_addoninto Blender'ssys.path(no manual addon installation needed) - Runs
run_blender_export.pyvia--python - The addon reads
.npyfiles, builds the scene, and saves the.blend - Backend verifies the
.blendfile was created
API Endpoints
| Endpoint | Purpose |
|---|---|
GET /freemocap/blender/detect | Find installed Blender |
POST /freemocap/blender/addon/install | Install addon into Blender |
POST /freemocap/blender/export | Export recording to .blend |
POST /freemocap/blender/open | Open .blend in Blender GUI |
Troubleshooting
"Blender not detected" → Install Blender from blender.org, or specify the path manually in the UI settings.
"Export fails — missing .npy files" → Run the mocap processing pipeline first. The export readiness check verifies all required files exist.
"Addon failed to load"
→ The addon is injected at export time, not installed into Blender's user preferences. Ensure the freemocap_blender_addon package is available in the Python environment.