Create media bin
create_media_binScans a folder on the TouchDesigner machine and builds a clip bin with crossfade controls for clip-based VJing. Handles missing folders gracefully by returning an empty bin.
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 |
| parent_path | No | Where to build it. | /project1 |
| folder | Yes | Folder on the TD machine to scan for clips/stills. | |
| extensions | No | File extensions to include (lower-case, no dot). | |
| max_clips | No | Cap how many files become Movie File In TOPs. | |
| crossfade | No | Crossfade seconds when switching clips (0 = hard cut). | |
| resolution | No | Output resolution [w,h]. |