You can look at my script here where I mapped a rotary encoder to Jog Left/Right.
You would have to tweak it to suit your needs but perhaps it can serve as a starting point.
You can look at my script here where I mapped a rotary encoder to Jog Left/Right.
You would have to tweak it to suit your needs but perhaps it can serve as a starting point.