rsjaffe / MIDI2LR

An application and plugin to remotely control Lightroom with a MIDI controller
http://rsjaffe.github.io/MIDI2LR/
GNU General Public License v3.0
686 stars 83 forks source link

Map CC to rating #451

Closed rossburton closed 5 years ago

rossburton commented 5 years ago

Would it be possible to map a CC command to the rating, so by turning a dial I can move from 0 stars to 5 stars? My intention is to stop using six buttons for the star rating. I can see explicit 0-5 stars, and increase/decrease, but no 'map this dial'.

rsjaffe commented 5 years ago

Yes, I can add that pretty easily to the next release. In the meantime, you can do something similar by using the Key 32 – Key 31 command (Turning knob clockwise sends Key32 signals to Lightroom, counterclockwise Key31. Not suitable for controls with hard stops like faders. ).

Place ] in Key 32 for increase rating and [ in Key 31 for decrease rating.

It's not quite the same as what I can do in the next release, as there's a direct API for increasing and decreasing rating, but it should work similarly. One problem with using keystrokes is that Lightroom uses [ and ] for other purposes as well, so depending upon what editing mode is active, it may not affect the rating.

rossburton commented 5 years ago

Confirmed that the key 32-31 trick works, but looking forward to a proper fix. Thanks!