Set up MediaPipe plugin (multi-modal)
setup_mediapipe_pluginLoads the torinmb MediaPipe engine once and enables combinations of face, hand, body, and segmentation pipelines in TouchDesigner. Prevents multiple competing instances from fighting for the webcam.
Instructions
Drop the torinmb mediapipe-touchdesigner ENGINE in one shot and enable any combination of face, hand, body, and segmentation pipelines. Use this instead of running setup_face_tracking + setup_hand_tracking + setup_body_tracking + setup_segmentation separately — those tools each re-load the engine, resulting in multiple competing MediaPipe COMPs fighting for the webcam. This tool loads the engine ONCE and toggles its Face/Hand/Body/Segmentation pars. IMPORTANT: there is NO stock TouchDesigner MediaPipe; all five mediapipe tools (this one + the four setup_*_tracking tools) rely on the free torinmb plugin — install it first with tdmcp install mediapipe-touchdesigner. Output paths for face/hand/body are DATs (JSON landmark streams from the plugin), not CHOPs — use a Script CHOP adapter to convert to numeric channels. The engine requires the TD timeline to be PLAYING (uses an embedded browser for webcam capture).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tox_path | No | Override path to the torinmb mediapipe-touchdesigner ENGINE .tox (MediaPipe.tox — the full tracker with webcam capture, NOT the bare pose_tracking.tox or hand_tracking.tox processors). Defaults to the package staged by `tdmcp install mediapipe-touchdesigner`. | |
| enable_body | No | Enable the Body/Pose tracking pipeline inside the engine. | |
| enable_face | No | Enable the Face detection pipeline inside the engine. | |
| enable_hand | No | Enable the Hand tracking pipeline inside the engine. | |
| parent_path | No | Existing COMP to load the engine into. | /project1 |
| container_name | No | Inner baseCOMP name. Matches the default used by setup_body_tracking / setup_hand_tracking so re-running is idempotent (the engine is reused, not duplicated). | MediaPipe |
| source_video_path | No | Optional path to a video file to use as input instead of the live webcam. The engine's Camera/Source/Videofile/File par is probed in that order and the first match is set. | |
| enable_segmentation | No | Enable the Segmentation pipeline (outputs a matte TOP; heavier GPU cost than the landmark pipelines). |