By Christian Scheuer @chrscheuer2020-07-31 15:54:55.397Z
Asked by Mike Caffrey on FB
- Christian Scheuer @chrscheuer2020-07-31 16:01:40.789Z
As a quick example, this script will simulate a scroll event on the "Input" knob in the first open EQ3 insert window:
var win = sf.ui.proTools.windows.whoseTitle.startsWith("Plug-in: EQ").first; if (!win.exists) throw 'Could not find window'; var winPos = win.position; var pos = { x: winPos.x + 110, y: winPos.y + 150 }; var oldPos = sf.mouse.setPosition({ position: pos, }).oldPosition; sf.mouse.scroll({ delta: 1, unit: 'Line', }); sf.mouse.setPosition({ position: oldPos });
You can assign a MIDI trigger directly to a script like this, or combine the script with MIDI filtering to be even more advanced.