Dynamic objects?

horizens's icon

Hi, I'm delving into learning max/msp with the desire to build a patch with the ability to dynamically add subpatches. This should be possible with MAX, correct? Something like the attached mock I made.

Any tips on how to achieve this? Thanks!

modules.gif
gif
Roman Thilenius's icon

1. create subpatches and load them into the [bpatcher] object.
2. create, delete, and connect the bpatchers using scripting (thispatcher.maxhelp)

horizens's icon

Perfect, thank you!

Nikolas K's icon

I would suggest using JavaScript for that. I find it easier, and less mess, to create delete and re-position bpatchers through JS.
You should need repositioning when deleting a bpatcher to, cover the gap.

You can check out the Max' s Javascript tutorials, I think the "JavaScript Tutorial 2: JavaScript Scripting" tutorial has most of what you would need.

Nick