How to Open a maxpat in a new window?

Jul 30, 2011 at 8:26am

How to Open a maxpat in a new window?

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,
Peace

#58262
Jul 30, 2011 at 8:33am

Take a look at [pcontrol]

#209325
Aug 11, 2011 at 12:02pm

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”

#209326
Aug 11, 2011 at 12:32pm

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. –
#209327
Aug 11, 2011 at 12:49pm

Yes, this workaround works thank you!

#209328
Aug 11, 2011 at 6:44pm

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

#209329

You must be logged in to reply to this topic.