"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?

#60589
Dec 9, 2011 at 9:59pm

Maybe using the inspector of the standalone object??

[attachment=178929,3059]

Attachments:
  1. Standaloneobject.jpg
#218047
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.

#218048
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.

#218049
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 :)

#218050
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.

#218051
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. –
#218052
Dec 10, 2011 at 12:04am

never mind…got it :)

#218053
Dec 10, 2011 at 12:36am

Of course! Thanks for the alternate solution Ben!

#218054
Dec 10, 2011 at 12:47am

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

#218055
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.

-Ben

#218056
Dec 10, 2011 at 12:53am

Thankss Ben!

#218057
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 :)

#218058
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 :)

+1

#218059

You must be logged in to reply to this topic.