Skip to main content

Integration API

The Daydream TouchDesigner plugin exposes a Python API for scripting, automation, and building custom interfaces.

Accessing the Extension

Public Contract

The extension exposes PUBLIC_CONTRACT with introspectable metadata:

GetCapabilities

Query runtime capabilities for the current model:
Use this to build adaptive interfaces that show only available options.

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

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