Controlling Photoshop with MIDI controller
Posted: Tue Aug 16, 2016 9:14 am
Hi there,
My aim is to map one of the sliders on my MIDI controller, to one of the RGB colour sliders in Photoshop's colour picker. I imagine this is possible but I don't know... do you think it is possible?
I am very very new to scripting - I am at the stage of familiarising myself with the 'Intro to Scripting' and 'Scripting in Photoshop' documents which are available from Adobe. Using Bome's Midi Translator, I can select what kind of message my Midi controller's slider will send to Photoshop - keystrokes, mouse clicks, etc.
With my pre-rudimentary understanding of scripting, the only way I can envisage setting this up, is to divide the colour slider's 255 values in half, so that each of the 127 MIDI signals sent by my controller will correspond almost perfectly with a place along the colour slider's scale. Then I could create a script with 127 crazy keyboard shortcuts, and use Bome's Midi Translator to set my controller to send these keystrokes when I move the slider.
That solution seems pretty long-winded and clunky. I would hope for there to be a solution involving a created variable... X for example. I just have no idea whatsoever of how I could write a script to tie X to a bunch of data being sent by my controller. I imagine this would be simpler to write, and it would be more elegant - you could draw lines while moving the fader, for example, which would not be possible if the fader simply sent out a series of simulated keystrokes.
My aim is to map one of the sliders on my MIDI controller, to one of the RGB colour sliders in Photoshop's colour picker. I imagine this is possible but I don't know... do you think it is possible?
I am very very new to scripting - I am at the stage of familiarising myself with the 'Intro to Scripting' and 'Scripting in Photoshop' documents which are available from Adobe. Using Bome's Midi Translator, I can select what kind of message my Midi controller's slider will send to Photoshop - keystrokes, mouse clicks, etc.
With my pre-rudimentary understanding of scripting, the only way I can envisage setting this up, is to divide the colour slider's 255 values in half, so that each of the 127 MIDI signals sent by my controller will correspond almost perfectly with a place along the colour slider's scale. Then I could create a script with 127 crazy keyboard shortcuts, and use Bome's Midi Translator to set my controller to send these keystrokes when I move the slider.
That solution seems pretty long-winded and clunky. I would hope for there to be a solution involving a created variable... X for example. I just have no idea whatsoever of how I could write a script to tie X to a bunch of data being sent by my controller. I imagine this would be simpler to write, and it would be more elegant - you could draw lines while moving the fader, for example, which would not be possible if the fader simply sent out a series of simulated keystrokes.