Python speech recognition & OSC control system

Some of our most popular programs are now available over on the website: https://www.programmingforpeople.com/shop In this episode we are exploring the wonderful world of speech. Using a python program to sit behind a OSC control system built in another environment (you can using anything for this – we use touch designer) we explore how to […]

TouchDesigner Tutorial : Embedding External Python libraries inside of TOE file

Hey all – taking a stab at something new here – video tutorials on TouchDesigner. I’m starting off with a pretty unusual but not too complicated scenario where we take a python library found on github, that’s not included with touch and embed / transfer it over to DAT’s in the actual file. The upside […]

Drawing in Python – Noah Norman

Additional Files – https://github.com/ancillarymagnet/axidrawings This workshop will focus on the basics of using TouchDesigner’s Script SOP to create geometry programmatically, beginning simply with the creation of points and lines, building out some useful and reusable abstractions, and eventually creating interesting structures and patterns, all with an eye to creating vector artwork for printing on pen […]

Touchdesigner – Manual Twitter scraper!

Some of our most popular programs are now available over on the website: https://www.programmingforpeople.com/shop Here is a good one! Using the python oAuth2 module to poll twitter for search data and start parsing the response into something meaningful. Based on some work that drove an interactive twitter wall at a networking event – watching for […]

Touchdesigner – Setting up external python modules

Some of our most popular programs are now available over on the website: https://www.programmingforpeople.com/shop This is something that bugged me for a while when I started out in TD. How do you actually access external modules? Well here is your answer with example! We download, setup and install the speech_recognition module onto a mirror copy […]

Python in TouchDesigner | Intro To Functions | TouchDesigner

Core Concepts Functions as a concept Anatomy of a function Writing functions Calling functions Returning values Passing arguments

Python in TouchDesigner | Data Structures – Dictionaries Part 2 | TouchDesigner

Core Concepts Dictionaries – a structure and a concept A practical look at dictionaries in TouchDesigner Nested data structures – dictionaries in dictionaries Using Dictionaries as a preset structure Using Python to set parameters Using Python variables in scripts to generalize our code

Python in TouchDesigner | Logic – Part 2 | TouchDesigner

Core Concepts Simple Logic constructs in Python and in TouchDesigner Scripting Logic and references Comparing values The Channel Class —– 25:23 Robert caught a small error on my part here. Line 25 should read: elif my_val1 ‘less than’ my_val3: (youtube won’t let me use actual brackets in a description) Thanks for the quick eyes Robert!

Python in TouchDesigner | Logic – Part 1 | TouchDesigner

Core Concepts Simple Logic constructs in Python and in TouchDesigner If, And, Or Greater than, Less than, Equal to, Not Equal to if, else, elif

Python in TouchDesigner | Data Structures – Lists – Part 2 | TouchDesigner

Core Concepts Lists – a structure and a concept Why Lists matter in TouchDesigner The Channel Class – seeing CHOPs as lists The Point Class – thinking of geometry as lists The COMP Class and .findChildren() – pulling apart returned lists More about how to read the TouchDesigner wiki

Python in TouchDesigner | Data Structures – Lists – Part 1 | TouchDesigner

Core Concepts Lists – a structure and a concept Creating lists – syntax and structure Retrieving items from a list – Syntax Adding items to a list .append() and .extend() Lists of Lists

Python in TouchDesigner | Data Strucutres – Dictionaries Part 1 | TouchDesigner

Core Concepts Dictionaries – a structure and a concept Looking at Dictionaries and Lists side by side What are key value pairs Retrieving values from dictionaries Retrieving .keys() and .values() Adding items to dictionaries Nested data structures A better text formatting approach with .format() (a big thank you to Willy Nolan for setting me on […]

Python in TouchDesigner | References | TouchDesigner

Core Concepts Python expressions as references Syntax Accessing CHOPs Accessing DATs How to read the python help on the Derivative Wiki

Python in TouchDesigner | Printing | TouchDesigner

Core Concepts Using the text port Running scripts print() strings, integers, floats, and booleans printing and joining simple substitution in strings

THP 494 & 598 | Python Dictionaries | TouchDesigner

Core Concepts Python Dictionaries Dictionary structure Building Dictionaries For Loops and Dictionary Making Storage Putting Dictionaries into storage

THP 494 & 598 | Python Lists | TouchDesigner

Core Concepts Python Lists List structure Building Lists For Loops and list Making Storage Putting Lists into storage

Open a file chooser using Python

This video will show you how to use the ui.chooseFile method to open a file chooser dialog and load the result into a DAT

04_Referencing DATs in TouchDesigner 088 Part2

Using Row and Column names instead of numbers, and grabbing text from DATs

03_Referencing DATs in TouchDesigner 088_Part1

Using simple Python expression to target a cel in a DAT in TouchDesigner 088

02_TouchDesigner 088 Parameter Referencing in Python

A quick look at how to send the values of one parameter field to another using Python In case the video quality is not good enough, here is the syntax for parameter referencing op(‘opname’).par.parameterName

01_TouchDesigner088 Channel Referencing in Python

A quick look at how to pull data from a channel using a Python expression in TouchDesigner In case you can’t read the text, the syntax is as follows op(‘opname’)[channelnumber] or op(‘opname’)(‘channelname’)