[hack] Shortcuts for properties in properties panel

Another hack I share with the Dorico community.
I’ve just discovered that it is possible to use shortcuts to control properties in the properties panel.

I’ve set a the shortcuts Alt-L and Ctrl-Alt-L to add/remove laisser-vibrer slur.
It can be done by adding the following code in the %appdata%\Steinberg\Dorico 2\keycommands_XX.json file, in the shortcuts section :

{
		"UI.InvokePropertyChangeValue?Type=kNoteEndHasLVTie&Value=true" : [ "Alt+L" ]
},
{
		"UI.InvokePropertyEnableSwitch?Type=kNoteEndHasLVTie&Value=false" : [ "Ctrl+Alt+L" ]
}

This potentially gives a lot of possibilities to create shortcuts to improve productivity. It seems this can be done for all property in the panel.
To get the syntax, just use the macro editor and view the %appdata%\Steinberg\Dorico 2\script plug-ins\usermacro.lua file.

I hope we can soon have a full UI editor to assign shorcuts for properties. Dorico seems to have been design for it

Thanks Florent. This is potentially extremely useful.

Daniel has written on the forum that new shortcuts to acces the properties panel were going to be available in future versions…

@FlorentG

To get the syntax, just use the macro editor and view the %appdata%\Steinberg\Dorico 2\script plug-ins\usermacro.lua file.

There is no ‘usermacro.lua’ file on my Mac - I never dealt with Lua. Any hint as to where/what/how to get such file? Or to find the syntax for particular action in Properties panel?

TIA,
Igor Borodin

It is created when you record a Macro. Script > Start Recording Macro

Thank you Craig F (and of course FlorentG)!

Some of the scripts that I tried do work - e.g. opening Ornaments panel.
Yet, others don’t - e.g. with the panel opened, I can’t make a selection from the panel.
Here is the script:

"UI.InvokePaletteButton?PaletteIndicatorID=kOrnamentsArpeggioUp&PaletteSectionID=kOrnamentsArpeggiationPanel&PropertyButton=false&SetOldValue=false&Set=true&UseLocalOverride=0" : [ "Meta+Ctrl+Alt+A" ]

Any suggestions?

TIA,
Igor Borodin

I tried with playing technics too. I confirm it does not work for most of the features inthe right panel.