Example 2Here we assume that there is another DAT (text1) that we want to populate with a path to a file – we further want to limit the kind of file that we’re selecting to an image file, and we want to give the explorer window the title “Select an Image.”

Using the Interface

Display the Normals on a SOP

CHOPs

The Math CHOP

In the Math CHOP the From Range is based on the incoming values, and the To Range is the outgoing values. This is a scaling operation. If we were going to write this as a sentence we might think of it by saying “I would like numbers From0 to 1, To be scaled to numbers between 20 and 40. In the picture below we can see values From 0 – 1, now scaled To 0 – 100.

System Variables

Display Console Window at Touch Start Up

Create a new Windows Environment Variable and use the following settings:

Variable Name: TOUCH_TEXT_CONSOLE
Variable Value: 1

Conceptual Frames

Ins and Outs

Encapsulating a process in TouchDesigner is a wonderful way to make re-usable custom components. When we make something modular, however, we often need a way to pass information into or out of our module. How can we do that? TOPs,CHOPs, SOPs, and DATs all have In and Out operators for just this purpose. An In TOPCHOP/SOP/DAT creates an inlet on a container or base, and an Out TOPCHOP/SOP/DAT creates an outlet. In the image below we can see a split network view where we’re looking at a base from the outside (left), and at the inside of the base (right). We can see that there are inlets that correspond to our Ins that are located on the left side of the base.

In this second image we can see a split network view where we’re looking at a base from the outside (left), and at the inside of the base (right). We can see that there are outlets that correspond to our Outs that are located on the right side of the base. In this example we can see errors in our network because Out Operators expect to have a source connected to them.

In this third image we can see a split network view where we’re looking at a base from the outside (left), and at the inside of the base (right). We can see that there are inlets and outlets that correspond to our Ins and Outs that are located on the left and right side of the base.