dynamically changing coll data in txt file???

amjcrawford's icon

hi,

i have a midi controller patch that uses the coll object & a txt file to read the x/y axis coordinates of video squares across a videoplane (like this: http://bit.ly/cqexQi)

the text file looks like this more or less:

36, -1.35 0.8;
37, -1.35 0.48;
38, -1.35 0.16;
39, -1.35 -0.16;
40, -1.35 -0.48;
41, -1.35 -0.8;

& so on..

is there a way to set variables instead of hard-coding the x/y positions so that i can dynamically change the positions of the different videos (with sliders or something i imagine)??

any insight would be much appreciated.

Tim Lloyd's icon

Have a look at the coll help patch. The sub or nsub messages will do what you need.

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this isn't a direct solution, but here is a patch I use to dynamically update and populate a [coll] with user variables; hope it's some use to you:

Brendan