Saving an abstraction dynamically.

Apr 29, 2012 at 5:24pm

Saving an abstraction dynamically.

Hi,

Could someone tell me the best way to dynamically save an abstraction?

I’m using an abstraction which is to be modified dynamically via the main patch and I need the abstraction to save upon each change.

Can this be done with [thispatcher], java, js, etc.?

Thanks.

: )

#63294
Apr 29, 2012 at 5:50pm

you could use preferences files in txt format, whose names are bound to an argument to the abstraction.

the [text] object works very well for reading some data from a textfile on loadbang.

in case you also want to use diffetne objects in your abstraction, you could use scripting to delete,
create, and connect different objects, but if you exaggerate that, creating the abstraction will be
too much work and making and calling that an abstraction will become pointless.

-110

#228314
Apr 29, 2012 at 6:06pm

Thanks for the quick reply.

I actually found another way of doing this! Sorry!

It turns out that I don’t need an abstraction at all!

Cheers : )

#228315
Apr 30, 2012 at 9:10pm

Would you care to share your solution so that the next person trying to do something similar is not left hanging after finding this thread with no end?

#228316
May 1, 2012 at 11:04am

Yep, no problem. You see, I was trying to build a [route] object which could have its number of arguments (and thus, inlets and outlets) changed dynamically. I assumed that the best way to do this was to use [bpatcher], and update it (save it) each time I changed the route object. I found a much easier way around this though:

I simply did the work in the main patcher.

I created each route object via scripting/[thispatcher]/etc. and used [prepend/append/uzi] to add the number of arguments dynamically.

I deleted each expired route object once a new one had been made.

I then used the sendbox feature to move the route object to wherever I desired on my patch.

Finally, I connected all of the objects dynamically.

I’m not sure if this will be helpful to anyway, but it can’t do any harm.

If you need any more information please post!

: )

#228317
May 1, 2012 at 11:57am

Interesting. I’ve never played with modifying patchers dynamically although I’m going to have to learn how to do that if we decide to commercialize a max tool that we have

#228318

You must be logged in to reply to this topic.