A CLI-Tool for launching TouchDesigner projects.
Project description
A commandline utility that allows management of TouchDesigner from UV.
Windows Only. (PR welcome)
Install
use uv add git+https://github.com/PlusPlusOneGmbH/MonkeyBrain or uv add monkeybrain to add to project.
https://docs.derivative.ca/Palette:tdPyEnvManager
Should use "2025.32260" or later for optimal experience!
Commands
It searches the best installed TouchDesigner version and allows for the following commands. To run the project use
uv run mb edit to launch TouchDesigner
uv run mb designer to launch TouchDesigner and set NODE_ENV to production
uv run mb player to launch TouchPlayer and set NODE_ENV to production
To set up a correct pyproject.toml use uv run mb init.files. It will search for the latest installed TD version if not already specified, as for the first .TOE file it finds and add the specified values to the pyproject.toml.
If the defined version does support it, it will also add the correct settings for the EnvHelper to autoload the correct environment. So convinient!
To setup a good vscode settings, run uv run mb init.code which will create links to all important libs defined in the env-settings. and set the defaultInterpreter.
Both functions are combined in uv run mb init
[tool.monkeybrain]
touchdesigner-version = "2025.32260"
projectfile = "Example.toe"
enforce-version = "strict"
[tool.touchdesigner.TDPyEnvManagerContext]
mode = "Python vEnv"
envName = ".venv"
installPath = "."
extraPaths = [ "src", "${UV_PROJECT_ENVIRONMENT}/Lib/site-packages", ".venv/Lib/site-packages"]
PyProject.toml
The touchlauncher package will use the pyproject.toml file to determin the correct TouchDesigner-Installation and path.
[tool.touchdesigner]
touchdesigner-version = "2025.32260"
# Define the projectfile. Should sit in the root-dir of the project.
projectfile = "Project.toe"
# Defines the behaviour how the TD-Install should be searched for
enforce-version="closest-build"
# Options: ( for example we use the following: Set Version: 2300.12000. Available Version [2025.1000, 2023.2000, 2023.4000]
# strict : looks for the exact version set in the .touchdesigner-version file.
# closest-build : looks for the closes build to the set version while ignoring other versions. - Example: Will pick 2023.2000
# latest-build : looks for the latest build in the same version. - Example: Will pick 2023.4000
# latest-version : simply takes the latest available installed version. Def not suggestes! - Example: Will pick 2025.1000
ENV-Variables
.env files will be mounted before TouchDesigner starts.
You can supply additional search paths by setting TD_INSTALLSEARCHPATH as a ; delimited string.
( i.E. TD_INSTALLSEARCHPATH = "D:/TouchDesigner; E:/TouchDsigner")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monkeybrain-0.3.3.tar.gz.
File metadata
- Download URL: monkeybrain-0.3.3.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0823264e7cdc1251b57e55fdba806a099cce0cf5ec09dd0a6a7b9c6cc7d67829
|
|
| MD5 |
6c04ffbc76e80bf7d0d80fa8cdfe1229
|
|
| BLAKE2b-256 |
d8aad01214466d4719e0f559a258b6a61511ee98c211293d21cd43238e9f0964
|
File details
Details for the file monkeybrain-0.3.3-py3-none-any.whl.
File metadata
- Download URL: monkeybrain-0.3.3-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13edadc18ea1a37ba75a5ec6f535d3f72ff00793ff3877a979ce8a8036ca2731
|
|
| MD5 |
ae9d81d3d303d0ffbff96fd38c45e2d3
|
|
| BLAKE2b-256 |
1466b4296a3de0ecfad7235bd460dd40b29bc662761f31fce90774d40fb87067
|