Create media bin
create_media_binScans a folder on the TouchDesigner machine and creates a bin of video clips with crossfade switching, index navigation, and next/prev controls for clip-based VJing.
Instructions
Point at a folder on the TouchDesigner machine and build a clip BIN inside a new bin COMP: it scans the folder (filtered to the given extensions, capped at max_clips), creates one Movie File In TOP per file, feeds them through a Switch TOP, and ends on a Null TOP. Exposes Index (current clip), Next / Prev (pulse, wrapping), and Crossfade (seconds) controls — switching clips crossfades by ramping the Switch's fractional index (0s = hard cut). The folder is read inside TD (not the MCP server). If the folder is empty or missing you get an empty, pointable bin instead of an error. Use create_video_player for a hand-listed playlist; use create_media_bin to ingest a whole folder for clip-based VJing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the bin COMP. | media_bin |
| folder | Yes | Folder on the TD machine to scan for clips/stills. | |
| crossfade | No | Crossfade seconds when switching clips (0 = hard cut). | |
| max_clips | No | Cap how many files become Movie File In TOPs. | |
| extensions | No | File extensions to include (lower-case, no dot). | |
| resolution | No | Output resolution [w,h]. | |
| parent_path | No | Where to build it. | /project1 |