"Invisible" Max Window menu item in standalone

Dec 9, 2011 at 8:48pm

"Invisible" Max Window menu item in standalone

I would like to allow end users of my standalone to display the Max Window, but *only* using Command-M (Mac) keystroke; I do not want there to be a visible menu item called Max Window. I’m adept at modifying my standalone’s maxinterface.json file, which, if this is even possible, I’m sure will require customization of.

Anyone try this before?

Dec 9, 2011 at 9:59pm

Maybe using the inspector of the standalone object??


  1. Standaloneobject.jpg
Dec 9, 2011 at 11:00pm

Thanks, but I’m very familiar with that setting. What I’m after has to do with the visibility (or rather, lack of visibility) of the menu item that allows one to show the Max Window.

Dec 9, 2011 at 11:10pm

Sorry i understand now your question. is not possible using the maxinterface.json file? A friend of mine show me an application that use this kind of standalone. But i think that they didnt want to share the code.

Can you share a example of json file that you have created to learn more about it?

thanksss. I’ll investigate about it and if i find something i’ll comunicate to you.

Dec 9, 2011 at 11:26pm

You should be able to do it I think, the standalone maxinterface.json file should look like a stripped-down version of the regular one. In the past I managed to add a few custom menu items to the standard file (Hide on Lock and Show on Lock in the right-click menu), it was fun to fiddle around. (Though an interface to customize the file would be really cool…no worries about mis-typing etc.)

So if that worked, there should be a way to take out whatever menu items you want…? will take a look at home :)

Dec 9, 2011 at 11:28pm

Well, the contents of the maxinterface.json file that are relevant follow here:

“message” : “maxwindow”,
“label” : “Max Window”,
“target” : “max”,
“shortcut” : “M”

So it’s easy to change the label to say something else, and that will work just fine. But I want to get rid of the “label” altogether, which so far does not seem to work. You cannot remove the label line completely, or make the label “” – the standalone (at least on a Mac) will still insert an entry in the menu (called “a command”) if you do.

Dec 9, 2011 at 11:45pm

Dan, I’d recommend just zapping the entry altogether and adding a custom key command with the key object, using the modifier output:

– Pasted Max Patch, click to expand. –
Dec 10, 2011 at 12:04am

never mind…got it :)

Dec 10, 2011 at 12:36am

Of course! Thanks for the alternate solution Ben!

Dec 10, 2011 at 12:47am

Ben if you want to close the max window with a message?

Dec 10, 2011 at 12:51am

@alersito, I don’t believe that is easily possible at the moment.

I feel like I worked something up like this in js at one point, I can rummage around and post back if I find it.


Dec 10, 2011 at 12:53am

Thankss Ben!

Dec 10, 2011 at 2:18am

Just out of curiosity, why might opening the Max window be available as a simple message, but closing it isn’t? Seems like the other windows (coll, text, pattrstorage, buffer) all have open and close (or “wclose”) commands built-in. Something different about the Max window?

…this also applies to clearing the Max window contents programmatically…would be nice maybe…if not possible, wondering why :)

Dec 10, 2011 at 4:18pm

“…this also applies to clearing the Max window contents programmatically…would be nice maybe…if not possible, wondering why :)



You must be logged in to reply to this topic.