Skip to content

Instantly share code, notes, and snippets.

@ancillarymagnet
Last active November 25, 2025 21:29
Show Gist options
  • Select an option

  • Save ancillarymagnet/563eed6db9b4ee5e61787a2ca832d4e9 to your computer and use it in GitHub Desktop.

Select an option

Save ancillarymagnet/563eed6db9b4ee5e61787a2ca832d4e9 to your computer and use it in GitHub Desktop.
Prerequisites for the Drawing in TD Python for Plotters Like Axidraw workshop at TouchDesigner Summit 2018

INSTALL PYTHON (needed for pip)
https://www.python.org/downloads/release/python-363/
STANDARD LOCATION, ADD PYTHON TO PATH

MAKE A VENV and PUT YOUR DEPENDENCIES IN THERE
cmd: 'c:\path\to\python\python' -m venv '\path\to\my\drawing\venv'
cmd: \path\to\venv\Scripts\activate
Download - http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy -- you want the version that matches your version of python
cmd: (in venv) pip install 'path\to\numpy\wheel\you\just\downloaded'
cmd: (in venv) pip install svgwrite

SOP TO SVG
Download (or clone) SOP to SVG and put it somewhere you can find it in a sec -
https://github.com/raganmd/touchdesigner-sop-to-svg
alt - from Guillame Onfroy https://gitlab.com/aaaaahaaaaa/TouchDesigner

IF YOU WANT TO PLOT - INSTALL INKSCAPE
https://inkscape.org/en/

IF YOU WANT TO PLOT - INSTALL AXIDRAW PACKAGE
http://wiki.evilmadscientist.com/Axidraw_Software_Installation

IF YOU WANT TO BE COOL - INSTALL SUBLIME 3
https://www.sublimetext.com/3

IF YOU LIKE TO TAKE RISKS - DOWNLOAD AXISCALER
https://github.com/ancillarymagnet/touchTools/blob/master/axiscaler/axiscaler.tox

ADD YOUR VENV to THE TD PYTHON PATH
in TD - add an Execute DAT, enable Start par, add to onStart():

import os
import sys
default = 'C:/Program Files/Derivative/TouchDesigner099/bin/lib/site-packages'
default_norm = os.path.normpath(default)
if default_norm in sys.path:
    sys.path.remove(default_norm)
mypath = 'path/to/your/venv/'
mypath_norm = os.path.normpath(mypath)
if mypath_norm not in sys.path:
    sys.path.append(mypath_norm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment