Forums > MaxMSP

How to Open a maxpat in a new window?

Jul 30 2011 | 8:26 am

How might one open a separate maxpat in a new window rather than as part of the current running app?

Within the main app, I would like to click on a message button and have a another window open. Currently the separate functionality is in a .maxpat but could easily be put in another container if easier.

Thank you for guidance,

Jul 30 2011 | 8:33 am

Take a look at [pcontrol]

Aug 11 2011 | 12:02 pm

Thank you for your reply.

How does [pcontrol] reference the specific [file].maxpat?

Ie, there’s no file name listed anywhere in the example or inspector attributes.

is an object that begins with pcontrol_ automatically a pcontrol object for some ??? unknown patch?

Tried adding the ‘load’ message followed by the name of the patch, but get "load: no such object"

Aug 11 2011 | 12:32 pm

You need to encapsulate the patch you want to open, connect it to a pcontrol object and send pcontrol an "open message. Like this:

-- Pasted Max Patch, click to expand. --

Aug 11 2011 | 12:49 pm

Yes, this workaround works thank you!

Aug 11 2011 | 6:44 pm

also look at the openfile/closefile messages to max in the documentation… it can be a little more dynamic.

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP