Create Python DAT
create_python_scriptCreate a DAT node preloaded with Python code for text, execution hooks, or script automation in TouchDesigner.
Instructions
Create a DAT (text/execute/script) preloaded with Python code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | Yes | Parent COMP to create the DAT inside. | |
| name | No | ||
| code | Yes | Python source to place in the DAT. | |
| dat_type | No | Kind of DAT: 'text' (plain), 'execute' (event hooks), or 'script' (table builder). | text |