Integration API
The Daydream TouchDesigner plugin exposes a Python API for scripting, automation, and building custom interfaces.Accessing the Extension
Public Contract
The extension exposesPUBLIC_CONTRACT with introspectable metadata:
GetCapabilities
Query runtime capabilities for the current model:State Properties
Read the current state:Lifecycle Methods
Control the component programmatically:Event Listeners
Register a callback to receive lifecycle events without polling:Event Reference
| Event | Payload | Description |
|---|---|---|
initialized | logged_in | Extension ready |
login_started | auth_port | Auth flow began |
login_success | — | Successfully logged in |
login_failed | error | Login error |
stream_create_started | model | Creating stream |
stream_created | whip_url, model_id | Stream ready |
stream_create_failed | error | Creation error |
streaming_started | whip_url, whep_url, model_id | Streaming active |
streaming_stopped | prev_stream_id | Streaming ended |
params_update_sent | changed, params | Parameters sent |
params_update_result | success, error | Update response |
state_changed | from, to, reason, error | State transition |
error | error, context, will_retry | Error occurred |
Example: State Machine Monitor
Example: Dynamic Parameter Control
Control parameters from CHOPs for audio-reactive visuals:Example: Custom Control Panel
Build a custom UI that shows only relevant controls:Next Steps
- Features - ControlNets, IP Adapter, prompt scheduling
- Installation - Setup guide
- GitHub Repository - Source code and issues