Welcome to %s forums

BrainModular Users Forum

Login Register

Script variables and the preset manager

I need help on a Patch
Post Reply
bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 08 Mar 2007, 09:51

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.
Bjørn S

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 08 Mar 2007, 16:59

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.

Vincent

Unread post by Vincent » 08 Mar 2007, 23:17

Oh, thanks for the question and the answer, guys! ;)

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 09 Mar 2007, 08:50

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.
Bjørn S

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 09 Mar 2007, 09:17

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?

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 09 Mar 2007, 11:47

"Nightmare" is a better word, yes. Or "hell", maybe?

And you're very right in that it's not a priority!
Bjørn S

Post Reply

Who is online

Users browsing this forum: No registered users and 124 guests