Be careful when setting profiles. For example, if you have a basic develop profile that includes a knob affecting one of the color mixer values, and you have a color mixer profile that assigns that knob to a different function, as you turn that knob, it first will be using the basic develop profile assignment but then will switch while you are turning it to the color mixer profile assignment. Profile changes caused by buttons shouldn't be a problem.
WARNING: The naming in the GUI, API and MIDI2LR is very inconsistent and confusing.
The adjustments (HSL,Color,B&W) panel is one of the most difficult and complex panels to be scripted using a plugin for several reasons:
- Within the adjustments panel there are "3 sub-panels": HSL / Color / B&W
- Within the HSL sub-panel there are 4 additional sub-sub-panels: Hue / Saturation / Luminance / All
and these sub-sub-panels can not be selected using the keyboard or from the API, it needs interaction with the mouse.....
But there is a work around:
- The adjustments panel can be opened by revealing the panel 1) using the mouse, or 2) using the API, or 3) changing a slider using the API
- The Hue / Saturation / Luminance sub-sub-panel can be opened by changing a slider using the API
What I do is to use a button in the "Develop" profile to change into one of three adjustments profiles "Hue", "Saturation", "Luminance".
Each of these three adjustments profiles assigns two buttons to go back to develop, the first being the same button that loaded the profile.
This is the develop layout for my X-Touch mini, the adjustment panel buttons are on the top row right hand side labelled: ASx:HSL_xxx and ASx:Develop
To be able to use these buttons a few setting have to be made in the options, first we need to identify (and create) the profiles:
It is important to
understand that the "Develop" entry in "Modules" and
"Loupe" entry in "Tools" are needed to avoid confusion,
also that
"Basic Adjustments" is the "Basic" panel in the GUI but
"PanelAdjust" in MIDI2LR because it is "adjustPanel" in the
API,
and the "Color
Adjustments" is the "Adjustments" panel in the GUI but
"PanelMixer" in MIDI2LR because it is "mixerPanel" in the
API.
As can be seen above there are four profiles in the "Profiles" section that will be used for handling HSL, the next part is what is needed to activate HSL:
Series of commands (ActionSeries) are used in the MIDI2LR
"Develop" profile to change to the "HSL" panel
(MixerPanel) and to load the corresponding HSL profile,
the first entry is used to return to the "Basic" panel. When using these options it is important to close your eyes for a moment when pressing the button ;-)
The reason is that the sub-sub-panel will only be selected (highlighted) after changing a slider.
The HSL_Hue, HSL_Lum, and HSL_Sat profiles are identical except for the button that loaded the profile:
Note: the drawings of the X-Touch Mini layout have been generated from the MIDI2LR profiles but some of the commands have been changed in the process to allow for a better presentation. AS=ActionSeries, R.=Reset, Key?=Key entry in options
I know, sub-sub-panel sounds stupid, but what would you use to identify the third level panel ?