Set up face tracking
setup_face_trackingSets up real-time face-landmark tracking from a webcam: loads MediaPipe, starts timeline, and creates an adapter CHOP outputting 468/478 landmarks (tx/ty/tz/confidence) for visualization and binding.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "setup_face_tracking"
}
}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. |