Set up face tracking
setup_face_trackingLoads MediaPipe for face landmark tracking from a webcam, outputs a 468/478-point CHOP with 3D coordinates and confidence for data visualization.
Instructions
One-shot face-landmark tracking from a webcam: loads the MediaPipe ENGINE (install first with tdmcp install mediapipe-touchdesigner), starts the timeline, and builds an adapter Script CHOP that emits a 468-sample (or 478 with iris) face-landmark CHOP (tx/ty/tz/confidence, centred on nose tip). Feeds directly into bind_to_channel and create_data_visualization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tox_path | No | Path to the MediaPipe ENGINE .tox (MediaPipe.tox). Defaults to the package staged by `tdmcp install mediapipe-touchdesigner`, falling back to ~/tdmcp-packages. | |
| parent_path | No | COMP to load the engine into. | /project1 |
| num_landmarks | No | 468 = MediaPipe FaceMesh base; 478 adds iris landmarks (10 extra) when iris tracking is enabled in the engine. |