Posts

Showing posts with the label column

what is the eval DAT?

 The Eval DAT creates a table that adheres to some rules that you give it. The first input is typically a "dumb" table that has no expressions, it might just be a row of table labels like "position, x y z". The second input is a table with expressions. These are evaluated along the columns. You can enter information into each table using a text editor. The columns are separated by TABS. eg you would type: index TAB x TAB y TAB z to create 4 columns To make the eval dat use data from the dumb table you would type "me.inputCell" into the appropriate "cells" of the 2nd input table. You will most likely use expressions like (me.inputRow)/op('noise1').width op('noise1').sample(x=me.inputRow,y=0)[0] to create data. The first is taking the row number of the table and dividing it by the width parameter of an external noise node to get a fraction. The second is setting the cell value by sampling the rgb value of "noise1" at x,y a...

selecting a row from a table, using op...

 use case - you have a table in form of the FOLDER DAT, you want to pick from the rows of the table. Lets say they're a list of images. First, lets get rid of the first column, which just lists the filenames. We need the second column that displays a full path. Use a DAT Select node for this. Choose select Rows by Index, set appropriate last number & Columns also by Index (start and end will both be 1). In the MOVIEFILEIN node, you could type - op('NAME')[0,0] to access the image in the first row. However if you want to do something a bit clever and use a CHOP named "INDEX", for example as the number to select the row, you can't just type - op('NAME')[op('INDEX')[0],0]   <THIS WON'T WORK. And Touch Designer won't say why... op('NAME')[int(op('INDEX')[0]),0]  <You have to change the data type to an int!  so, by casting to an INT, the op('....') blabla works.