Annoyingly TD doesn't play the audio from a movie file by default! What you must create is an AUDIO MOVIE CHOP. Drag the MOVIE FILE IN node onto this & connect and Audio Device Out & you'll get the movie audio!
Here's a list of useful stuff to type into parameters, for quick animation/values absolute time absTime.seconds absTime.frame local time me.time.seconds me.time.frame many more HERE
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...
Will make other posts as I learn how to use the other bits! use case - say you have a Count CHOP and wish to execute a set of instructions everytime the value changes, the CHOP Execute DAT node is what you want! Eg, take values from a NOISE and apply them to a TRANSFORM, everytime the Count changes value. This is a bit like sample/hold of random values. Create the CHOP EXECUTE DAT. Next type in the name of your Count node in the CHOPs box The part we're interested in is this segment of code- def onValueChange(channel, sampleIndex, val, prev): return We can delete everything above that! Also make sure on the Chop Execute, that "Value Change" is set to ON. so after the colon, we can make some variables (this is for clarity, not necessary) def onValueChange(channel, sampleIndex, val, prev): source=op('NOISE') target=op('TRANSFORM') target.par.tx=sourc...
Comments
Post a Comment