Page 1 of 1

Posted: 08 Mar 2007, 09:51
by bsork
Hi Olivier,

I can't just figure out what is happening to variables in a script when storing and recalling a patch using the preset manager. I've been trying to loop through the presets to put the values from a single array module into arrays within a script as a sort of update procedure.

Posted: 08 Mar 2007, 16:59
by senso
sorry,
internal script data's aren't stored in the preset manager.
Only inlet, outlet values.

use an external Array module to store data's.

Posted: 08 Mar 2007, 23:17
by Vincent
Oh, thanks for the question and the answer, guys! ;)

Posted: 09 Mar 2007, 08:50
by bsork
I thought that that would be the case. I guess it wouldn't make much sense trying to store them like the other data, especially since the scripts are being compiled whenever they're loaded. Doable I suppose, but probably a mess to program...

Well, it was just an idea for an improved XY-morph patch. I have other ideas though.

Posted: 09 Mar 2007, 09:17
by senso
Doable I suppose, but probably a mess to program...
a nightmare do you mean?

But I can add some 'file' functions in the script to store your data's your self in a separate file:
like

openfile('data.dat');
writeInfile(data1)
...
closefile;

but later, it's not a priority?

Posted: 09 Mar 2007, 11:47
by bsork
"Nightmare" is a better word, yes. Or "hell", maybe?

And you're very right in that it's not a priority!