Possible to have a M4L Device open into a new window?

Dec 2, 2013 at 8:41am

Possible to have a M4L Device open into a new window?

I have a device i would like to create that has way too much going on to sit in the Live plug-in frame at the bottom. Is is possible to have the device open up a new window like a VST? If so, how would I do this?

Thanks!

#274389
Dec 2, 2013 at 10:01am

Get windowdragger (which I have attached) and place it within your project folder. It is a small js file which creates a draggable background for your popup window/device. Then, copy the following code to your clipboard. Then, in Max, click File|Paste from Clipboard. Then look at the inspector for the jsui object and edit the filepath to your windowdragger.js file. Finally, save the patch as an abstraction file, which you can include in a parent patch which will trigger it to open or close.

This approach allows you to think of the patch you are writing as a popup window object.

There are also other approaches.

Hope this helps,
miguel3d

Here’s the code:

<code>

– Pasted Max Patch, click to expand. –

</code>

Attachments:
  1. windowdragger.zip
#274418
Dec 2, 2013 at 10:28am

I did not think it would be this complicated, but after a little tweaking, i got it to work. Thanks so much, now i’m on to making some external synth editors.

#274424
Dec 2, 2013 at 12:06pm

What about:

open
[pcontrol]
[p your_patch]

#274443

You must be logged in to reply to this topic.