Nov 12 2014

Sort DAT tutorial.

The Sort DAT. TouchDesigner 088. 2014.
The Sort DAT allows you to re-arrange rows and columns in tables based on specific criteria.

1
00:00:00,533 –> 00:00:03,467
Let’s examine the sort DAT.

2
00:00:03,467 –> 00:00:09,633
The sort DAT will sort incoming
table DAT entries by row or by
column.

3
00:00:09,633 –> 00:00:17,633
Remember, we can click the
“edit” button in the table DAT
parameters to launch our default
text editor.

4
00:00:17,633 –> 00:00:21,967
We wire our table DAT to a sort
DAT.

5
00:00:21,967 –> 00:00:26,300
In the sort DAT, we must choose
use a sort method.

6
00:00:26,300 –> 00:00:35,567
Here we will sort our rows, and
we specify a column index of
0 because we only have one
column.

7
00:00:35,567 –> 00:00:37,400

8
00:00:37,400 –> 00:00:41,867
We choose to order our incoming
data alphabetically.

9
00:00:41,867 –> 00:00:45,067

10
00:00:45,067 –> 00:00:49,967
Let’s look at some more
complicated sorting methods.

11
00:00:49,967 –> 00:00:55,833
Here we sort our rows, but we
change our column index to 1.

12
00:00:55,833 –> 00:01:06,667
Since our columns are indexed on
a base 0 numbering system, we
are now sorting the numerical
entries in the second column.

13
00:01:06,667 –> 00:01:15,267
The sorted values now step
numerically- 8, 9, 20, 22 and
77.

14
00:01:15,267 –> 00:01:20,100
Now we sort column index 2,
which is our third column.

15
00:01:20,100 –> 00:01:21,400

16
00:01:21,400 –> 00:01:28,500
Our row entries now step 3, 6,
6, 8 and 66.

17
00:01:28,500 –> 00:01:29,700

18
00:01:29,700 –> 00:01:35,500
In this example we will sort our
incoming table DAT entries by
column.

19
00:01:35,500 –> 00:01:36,500

20
00:01:36,500 –> 00:01:41,700
We turn on the “preserve first”
option in the parameters panel.

21
00:01:41,700 –> 00:01:51,100
This allows our first column, in
this case our row identification
entries, to retain their
original order.

22
00:01:51,100 –> 00:01:52,600

23
00:01:52,600 –> 00:02:02,033
If we specify a row index of 0,
we will sort our columns based
on the values in the first row.

24
00:02:02,033 –> 00:02:12,500
The columns that begin with the
values 22, 3, and 7, are now
re-ordered into 3, 7, 22.

25
00:02:12,500 –> 00:02:14,967

26
00:02:14,967 –> 00:02:19,533
Let’s change to specify row
index 1.

27
00:02:19,533 –> 00:02:24,733
Now we re-sort our columns based
on the entries in the second
row.

28
00:02:24,733 –> 00:02:26,300

29
00:02:26,300 –> 00:02:31,500
The sort DAT is a simple but
very effective way to
restructure table data.

30
00:02:31,500 –> 00:02:33,500

Posted In
Tagged