Title Animation

Discussion in 'KONTAKT: Sampling, Programming & Scripting' started by paoling, Jun 9, 2011.

  1. paoling

    paoling Developer

    1,098
    1,008
    Jan 22, 2005
    Here a very little and nice thing that I want to show you:

    http://www.box.net/shared/m9smuf45pb

    (just for contributing a little in this forum :)

    Since, if I don't get wrong there aren't "on controller release" triggers, and neither On Mouse Up triggers I used a little trick for this kind of fading animation, using PGS, while and wait functions, and font types. Don't know if there's a smarter way.

    This is a nice way to allow text labels on a very graphical UI that doesn't like Kontakt's fonts. (You can achieve a better effect with a custom slider for numerical values, but this is tricky since you can't use text in this way (if not melded in the background).

    Paolo
     
    KrisY likes this.
  2. KrisY

    KrisY Noob in frenzy loop

    80
    5
    Mar 28, 2018
    Denmark
    Interesting thing, using while and wait. I made a similar thing for fade-up or in of send signals. But did you manage to use TCM for avoiding conflicts in wait commands? I do not know how that works, but if you have a good grasp on it, would love to know. The docs are above my grade. :/

    Cool fading effect!
     
  3. EvilDragon

    EvilDragon KSP Wizard

    5,787
    3,634
    May 25, 2010
    Croatia
    XY pads have that.

    It's relatively simple. Write your function as a taskfunc, use tcm.wait() instead of wait() and for all variables you expect would be re-entered (i.e., variables you want to preserve for each concurrent function call), you need to declare them within the function body WITHOUT "local" keyword.
     
    KrisY likes this.
  4. OP
    OP
    paoling

    paoling Developer

    1,098
    1,008
    Jan 22, 2005
    Well it was 8 years ago, so something new to KSP and Nils Editor has been added in the meantime :D
     
  5. P.N.

    P.N. Active Member

    444
    159
    Aug 14, 2015
    With K6... paoling made that post when Kontakt 0.2 was still in beta or something.
    dont' correct me on this one, please :)
     
    KrisY likes this.
  6. EvilDragon

    EvilDragon KSP Wizard

    5,787
    3,634
    May 25, 2010
    Croatia
    Man, I never check the thread creation date! What a necro. :)
     
    paoling likes this.
  7. KrisY

    KrisY Noob in frenzy loop

    80
    5
    Mar 28, 2018
    Denmark
    Thanks, looking into taskfunctions now.
     

Share This Page