Forums > MaxMSP

Hide on Lock patch cords in Max 5?

May 26, 2008 | 10:40 pm

Hi, in Max4 I could right click on a patch cord and would get an option to Hide on Lock. How can I hide patch cords upon locking in Max5?


May 26, 2008 | 10:47 pm

Select via clicking or alt/option-dragging and then hit control/command-K to hide, control/command-L to unhide.


May 26, 2008 | 11:41 pm

thx :-)


May 27, 2008 | 3:31 am

if you want to add hide-on-lock (or other useful things like presentation mode) into the contextual menu and feel like tinkering, do a search in your Max5 folder for maxinterface.json and take a gander at your options aplenty…



jbm
May 27, 2008 | 4:47 am

Whoa, holy crap is that ever cool!! Talk about a sweet shortcut to customizing the way things work… And a shortcut to completely banjax your system! ;-)

Could be fun to dig around with some interface customization. (Actually, I just added "Encapsulate" to my patcher contextual menu, which is something I’ve often wanted!) I guess this must be one of the reasons they went with juce. Very nice!

Thanks for the tip.

J.


May 27, 2008 | 5:34 am

> I guess this must be one of the reasons they went with juce.

Actually our menu customization stuff has almost nothing to do with JUCE. When we started on it, JUCE didn’t even have native menu bar support on the Mac. But the primary reason we did it was to support translation of the interface into other languages.

David Z.



o s
May 27, 2008 | 9:44 am

Quote: jake rodriguez wrote on Tue, 27 May 2008 05:31
—————————————————-
> if you want to add hide-on-lock (or other useful things like presentation mode) into the contextual menu and feel like tinkering, do a search in your Max5 folder for maxinterface.json and take a gander at your options aplenty…
—————————————————-

when I try to add a shortcut, the next time I open max the whole menu is vanished…Is there a Documentation about the syntax somewhere?
Also, how can I add a command to the contextual-menu (syntax)?

thanks for help

ole


May 27, 2008 | 10:41 am

hmmm – I found maxinterface.json but when I try to open it (either double clicking in finder or opening from File/Open… I get an error message in the Max window:
patcher file maxinterface.json missing patcher!

same for maxclues.json and queryinterface.json which are in teh same folder; the other patchers in teh same folder open fine.

Max 5.0.2 Powerbook G4 1.5, OS X 10.4.11


May 27, 2008 | 12:54 pm

You have to open and edit it with TextPad.



o s
May 27, 2008 | 1:02 pm

can someone please tell the correct syntax for adding a shortcut and for adding the command to the contextual-menu?

thank in advance,

ole



jbm
May 27, 2008 | 1:46 pm

You just add the name of the menu item, in quotes, to the list. Make sure the whole entry is formatted properly, as a comma-separated list. I’d imagine that’s what’s wrong in your case.
To find the menu item you want, look through the "menus" section of the file (comes before the contextual menus) – that will ensure that you’re using a name Max actually understands.

J.


May 27, 2008 | 5:46 pm

On May 27, 2008, at 2:44 AM, Ole Schmidt wrote:
> when I try to add a shortcut, the next time I open max the whole
> menu is vanished…Is there a Documentation about the syntax
> somewhere?
> Also, how can I add a command to the contextual-menu (syntax)?

If you’re on a Mac, you can see where Max had problems reading your
edited maxinterface.json by looking at the error messages in the
Console application in your Utilities folder.

It’s probably a missing or misplaced comma in your maxinterface.json
file.

There are a few flavors of contextual menu, depending on what you’re
clicking on. (e.g. boxcontextmenu, multiboxcontextmenu,
patchercontextmenu)

Here’s my boxcontextmenu, which adds three items for the background
layer:
{
"id" : "boxcontextmenu",
"label" : "Box",
"commands" : ["help", "-",
"cut
","copy","contextualpaste","clr","-","pastereplace","dialog","bfront",
"back
","addtopresentation
","removefrompresentation","includebg","excludebg","lockbg",
"colorpopup","-","saveprototype","prototype","clientcontext"]
},

-C

Chris Muir
cbm@well.com

http://www.xfade.com



o s
May 27, 2008 | 7:10 pm

thanks for the verbosity- now I see how it works

ole


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