premium article

Last modifiedby & filed under KSP Scripting (NI Kontakt) - Tutorials, KSP: Custom Scripts & Functions (Plugins).

Actually currently there’s no way to use or monitor any mouse events in Kontakt 5. We can only simulate a mouse release event with workarounds. In this article we will introduce 3 different methods.

  1. watchdog timer

  2. counter

  3. callback id [recommended]

LIVE DEMO to THE CALLBACK_ID VARIANT  premium

  • Callback ID – Working Demo as nki
  • Open Resource Container: Buttons, Knobs, Wallpapers
  • the script as txt & ksp file
DOWNLOAD


License:

MIT International License.
https://blog.yummybeats.com/license-text-mit/
You may use this script, modify it, build upon it, as you like (also commercially), as long as you keep all credits within the code visible to others. You may put them into an extra open script tab or inside an about section of your instrument. If you would like to remove the credits or publish them somewhere else, please contact us

YOU MAY NOT commercialize, share, distribute, whatsoever the included image files and other media (© 2020 all rights reserved).

 

Requirements:

 no requirements, the script works without sublime 3 compiling


Watchdog Timer

explained in detail in the watchdog timer tutorial

The watchdog timer method is outdated compared to the other methods here, although it still got some minor advantages.
However the watchdog timer tutorial is written very detailed associated with building a whole UI which you can also use to implement these newer approaches here.

premium content

How useful was this article?

something you didn't like? Please tell us before you rate!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

NOTE: highly negative votes may be removed without any reasonable given feedback!

Tell us how we can improve this post?

3 Responses to “Kontakt Scripting (KSP) :: CUSTOM SCRIPTS :: on mouse release event – 3 different methods”

  1. AMas

    Fantastic article, learning a lot. However I’m still struggling to apply the counter and callback ID methods to the full GUI you created for the watchdog example. It would be great if you could provide those versions, even just for one label.

    • YummyBeats

      Thx! I have added a live example to the callback ID variant, based on the Watchdog UI.
      Please note there are many ways implementing the callback ID. I did it without the function now. Because of the global scope of some vars it didn't work that smooth.
      Maybe if I got more time I will come up with another approach. But I hope you get the idea with the already example.

Leave a Reply

use <pre> </pre> to wrap code blocks

use <code> </code> to wrap small code snippets

use basic html to style your comment

Your email address will not be published. Required fields are marked *