Create & Load dynamically .maxpat into bpatcher inside a subpatch …

Dec 28, 2011 at 6:56pm

Create & Load dynamically .maxpat into bpatcher inside a subpatch …

Hi there,
JS works very fine to create/remove bpatchers and load dynamically some .maxpat into them.

I just met a strange problem: the same code & maxpat loaded from a script into a subpatcher, (the bpatcher is created into that subpatcher) doesn’t work.

Doesn’t work mean:
- it correctly creates the bpatcher, size it, place it etc)
- the bpatcher is empty

@name is used as usual in my parent patcher but in the subpatcher, it seems there is a path problem (no complaints in the max window, btw)

any clues?

#60892
Dec 28, 2011 at 7:20pm

making a replace with the ABSOLUTE path after the newdefault works.
I forgot to say: I’m designing a max for live device so I need make collectives & to load dynamically .maxpat from inside collective

any clue to avoid to use ABSOLUTE path inside JS?
I can deploy hard stuff in my patch to find the path but it wouldn’t be nothing more than a workaround :-/

#219240
Oct 12, 2012 at 3:09pm

Hi Julien how is your project going.

This has just struck me as a way of dynamically creating live objects.

#219241
Oct 12, 2012 at 3:21pm

Create object dynamically is more expensive than loading all at the same time and using a powerful routing system in order to use only those you need at a particular moment.
Almost all my architecture patches work like that now.

#219242
Oct 12, 2012 at 7:37pm

I did the same thing today, call bpatcher since my main patch, a suggestion :
in the patch used as bpatch, create your presentation mode interface with the parameters you wish to use by placing them in the top left patch …. Back to your main patch, load the bpatch and maybe the magic will effect ….

#219243

You must be logged in to reply to this topic.