Forums > Max For Live

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

December 2, 2013 | 8:41 am

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!


December 2, 2013 | 10:01 am

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

December 2, 2013 | 10:28 am

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.


December 2, 2013 | 12:06 pm

What about:

open
[pcontrol]
[p your_patch]


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