Attribute Encoder Rotation from Lua

BECOME PART OF THE COMMUNITY - Sign up here
  • Trying to write a plugin that can mimic rotating the attribute encoders.

    I already tried looking into the GraphicsRoot directory to see if I could find the functions that the UI is using, but I was unsuccessful.

    Anybody got ideas here? Alternatively, if there's a way to do it via OSC/MIDI that'll work for me too.

  • Unfortunately I also couldn't find a way.
    You could use Set attribute command with relative values (e.g. +1,-1),
    it works.
    But it's not the same as emulating the encoder rotation,
    since you need to know exactly what attribute you want to change.

    I am guessing it's possible to do it with the Mouse() function,

    if the encoder toolbar is visible.
    You can use GraphicsRoot to find the coordinates of the encoder,

    and use Mouse function to "press", "move" "release".

    I didn't try it yet.
    Let us know if it works for you.

  • Clintos
    Good news. I just made it work !
    I hope to finish the plugin in about a month.

    External Content www.facebook.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

  • Clintos
    Good news. I just made it work !
    I hope to finish the plugin in about a month.

    External Content www.facebook.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    I cant see the video! Can you show me?

  • 1) A little hack in MIDI Remotes to call a specific MACRO for a specific MIDI value.
    2) Call A Plugin that finds the encoder UI component
    3) The plugin uses the Touch() API function to simulate a 'press', 'move' 'release sequence.

  • Hey :)

    That is exactly the problem I am currently struggling with...
    Can you maybe share the code for that?

    Thank you

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!