How to load an entire patch through a bang

Giulio Iacomino's icon

Hey guys I'm working on a unity/max msp project (the two environments communicate through OSC) and i would like to open a new preset maxpatch everytime i spawn an "object" in unity. i could use the "spawn" event to send any tipe of message (string, float int) to an already working max patch through udpreceive and more likely it'll be a simple bang. Is there an object that loads max/patches on bang? (it could also simply be an instantiation of a subpatch)

Many Thanks

Source Audio's icon

there are several ways to do so.
Using load message to pcontrol and pacher object,
using name message to bpatcher,
message :
;
max launchbrowser file ...
etc.
it is just a matter to make that bang recall that patch
or scroll through list of patches you want to load.