project settings.png

Screenshot 2025-01-04 at 6.22.17 PM.png

Photos from Windows setup

F0F124D2-47C9-458D-B040-8946A113BE3B.heic

CE0F02EE-65F6-4B33-BA19-4288DD08C062.heic

modules on Windows OS

modules on Windows OS

modules on MacOS

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."