Forums > MaxMSP

dynamically changing coll data in txt file???

June 15, 2010 | 11:38 am

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.


June 15, 2010 | 12:26 pm

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


June 15, 2010 | 12:32 pm

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:

– Pasted Max Patch, click to expand. –

Brendan


Viewing 3 posts - 1 through 3 (of 3 total)