Hide on Lock patch cords in Max 5?

ComfortableInClouds's icon

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?

stringtapper's icon

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

ComfortableInClouds's icon
jake rodriguez's icon

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's icon

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.

David Zicarelli's icon

> 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's icon

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

alistair macdonald's icon

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

cebec's icon

You have to open and edit it with TextPad.

o s's icon

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's icon

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.

Chris Muir's icon

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's icon

thanks for the verbosity- now I see how it works

ole