Can I script a rotary knob to change plugin preset?

@rank13 : Great, thanks very much, I will dig into that the next days!
@MattJazz : can you share for which plugins you have successfully applied your approach?