Posts

Showing posts with the label eval dat

creating local variables, eval dat, store, fetch, examine

 To create a variable that exists at a level & for it's children, we use a text DAT. Inside the DAT, type: me.parent().setVar('variablename', 34) now when you right click the text DAT and select run-script, it creates a little table that contains the variable + value to access this, eg in the radius of a circle, type: me.var('variablename') the circle's radius parameter will now be 34. This variable can be accessed by any nested children by typing the me.var('variablename') code If you make a variable inside one of the children (lets say it's a Base), the parent will NOT be able to access it. If you want a variable to have a changing value, eg. driven by a slider or LFO, you need to use an evaluate dat and a table. Go into the base that contains your variables. inbetween the table & null, add your evaluate dat & connect a blank table as the 2nd input. Give the blank table the correct dimensions & then make sure to recreate the "n...

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...