Instructions and project files for Interactive Media Development with Python & TouchDesigner tutorial at PyCon Canada 2015
##Goals The goal of this tutorial is to quickly use TouchDesigner and Python to:
- Get sensor inputs and create control values and triggers
- Use the sensor triggers to scrape data from Twitter using Python Requests library
- Analyze the incoming tweets to create a map of most used words in tweets relating to PyCon Canada 2015
- Visualize the word cloud
- Use sensor control values to manipulate the word cloud in real-time
##Pre-requisite steps
- Download 64-bit Windows Python 3.x (3.5 will be used in this tutorial)
- Run
pip install requests requests-oauthlib
in an elevated command prompt (make sure your PATH is calling Python 3 pip!) - Download and install TouchDesigner
- In TouchDesigner, in the menu bar, go to Edit -> Preferences.
- In the General settings, set the Python 64-bit Module Path to your site-packages folder. With Python 3.5, the default is
C:/Program Files/Python 3.5/Lib/site-packages
- Go to Twitter's Developer page and register an application
- Generate a set of OAuth credentials for yourself
##Attribution & Useful Tools
- Kennith Reitz's Python Requests library
- Curious Concept JSON Formatter & Validator
- Derivative TouchDesigner
- Twitter API Console
##Notes
- To receivce sensor data on-site in real-time, bring a CAT5 cable to connect to our local switch. You will receive multicast OSC messages at 239.255.0.2 on port 10000.