Wow you guys are awesome! Thanks.
Just checking: this is with a clip selected?
Interesting. So, can you try the following?
- right click at current mouse location
- simulate keypress
M
- simulate keypress
U
- simulate keypress
Return
My thinking is that only the keypress that corresponds with an enabled contextual menu item will result in a menu selection. I wish I could test it!
Not a bad idea but … this type of menus responds only to arrows navigation and enter/return key. And the arrows get from one menu item to the next regardless of their enabled status.
So “mute” is reached by pressing the down arrow 4 times and unmute 5 times. Pressing Enter validates. Pressing enter on a disabled choice does nothing and keeps the menu open.
This is a surprisingly tricky one. I'm gonna tap out here I'm afraid, as I can't really test or investigate. Good luck!
This might be the first app I'm personally aware of where the context menu doesn't respond to typing. Are you sure typing one or more letters of a contextual menu item doesn't change the selection?
If it really doesn't, the only practical solution I can think of is to use found images.
For example:
Mute-Unmute Clip - Toggle.kmmacros (113 KB)
NB: Take new found image screenshots and replace them in the macro. Experiment with a pause after the right-click if necessary.
@noisneil:
Yes unfortunately menu Navigation is really limited to arrows and enter...
thanks for the macro...but found image comes with a whole lot of problems. Different settings of interface brightness/ different screen resolutions and so it's a last resort....
I still have to find the best way to use the context menus of media composer and If you're ok with this, I will like to continue this discussion later in another topic. I'm sure your experience with logic could be beneficial...
@rubefink
This version is better. It's doing the thing just the way we humans do it : a muted clip is greyed. So an analysis of the pixel under the cursor gives the current state.
edit : V2.1: variables are local.
toggle clip visibility.kmmacros (30 KB)
I like your thinking! This is much nicer if it works, as no menus need appear. Are clips always the same colour or can you colour them as you can in most editors?
Screen brightness won't make a difference, but resolution might. Do you use different monitors?
This works because even if You can color clips as you wish the muted clips are always the same grey.
In which case, that's a brilliant solution!
So this method has been successful for you? Looking forward to checking this out when I get back to work. I'm so new at KM but love the power behind this app. Man really appreciate the effort put into it by both of you.
Thanks for this macro. At first I couldn’t get it to work for unmuting but that’s because I edit with the frame displayed as a thumbnail so if you’re zoomed out too much it takes over the clip on the timeline and is always saturated even if muted. But as long as I know that it’s easy to adjust or just zoom in a bit. This is a really smart workaround thanks for the help.