Photos from Windows setup
modules on Windows OS
modules on MacOS
Configuration script - not tested
# Path to the TouchDesigner Python executable
$touchDesignerPythonPath = "C:\\Program Files\\Derivative\\TouchDesigner099\\bin\\python.exe"
# Install z3 using pip
& $touchDesignerPythonPath -m pip install z3-solver
# Add the installed site-packages directory to the TouchDesigner Python path
$sitePackagesPath = & $touchDesignerPythonPath -c "import site; print(site.getsitepackages()[0])"
# Get the current TouchDesigner preferences file path
$touchDesignerPrefsPath = [System.IO.Path]::Combine($env:APPDATA, "Derivative", "TouchDesigner099", "TouchDesigner.pref")
# Read the current preferences
$prefs = Get-Content $touchDesignerPrefsPath
# Check if the site-packages path is already included
if ($prefs -notmatch [regex]::Escape($sitePackagesPath)) {
# Add the site-packages path to the preferences
$prefs += "`nPYTHONPATH = $sitePackagesPath"
# Write the updated preferences back to the file
Set-Content $touchDesignerPrefsPath $prefs
Write-Output "Python path updated in TouchDesigner preferences."
} else {
Write-Output "Python path already included in TouchDesigner preferences."
}
Write-Output "Installation and configuration complete."