Kontakt Scripting

CHANGE SKIN AND SHOW HIDE BUTTONS

Professional script to Change skin and show hide buttons. This script for peoples Interested in programming who want to benefit from it. Using it or modifying it as needed or create his own kontakt libraries to edit your music.
There is a complet model of this script in kontakt library with all resources and container and pictures and texts for download on the end of poste.


{********begin of script**********}
on init
          make_perfview
          set_ui_height_px(232)
     _set_skin_offset(0 * 300) 
          set_script_title("SKIN OFFSET")
   set_control_par($INST_ICON_ID,$CONTROL_PAR_HIDE,$HIDE_WHOLE_CONTROL)
          message("")

          declare ui_button $about
          set_control_par(get_ui_id($about),$CONTROL_PAR_HEIGHT,20)
    set_control_par(get_ui_id($about),$CONTROL_PAR_WIDTH,67)
    set_control_par(get_ui_id($about),$CONTROL_PAR_FONT_TYPE,16)
    set_control_par_str(get_ui_id($about),$CONTROL_PAR_TEXT,"   ABOUT")
    set_control_par_str(get_ui_id($about),$CONTROL_PAR_PICTURE,"pv_urban_button_onoff")
          move_control_px($about, 20, 180)
          hide_part($about,$HIDE_PART_NOTHING)

          declare ui_button $button1
          set_control_par(get_ui_id($button1),$CONTROL_PAR_HEIGHT,20)
    set_control_par(get_ui_id($button1),$CONTROL_PAR_WIDTH,67)
    set_control_par(get_ui_id($button1),$CONTROL_PAR_FONT_TYPE,16)
    set_control_par_str(get_ui_id($button1),$CONTROL_PAR_TEXT,"  PAGE 01")
    set_control_par_str(get_ui_id($button1),$CONTROL_PAR_PICTURE,"pv_urban_button_onoff")
          move_control_px($button1, 20, 40)
          hide_part($button1,$HIDE_WHOLE_CONTROL)

          declare ui_button $button2
          set_control_par(get_ui_id($button2),$CONTROL_PAR_HEIGHT,20)
    set_control_par(get_ui_id($button2),$CONTROL_PAR_WIDTH,67)
    set_control_par(get_ui_id($button2),$CONTROL_PAR_FONT_TYPE,16)
    set_control_par_str(get_ui_id($button2),$CONTROL_PAR_TEXT,"  PAGE 02")
    set_control_par_str(get_ui_id($button2),$CONTROL_PAR_PICTURE,"pv_urban_button_onoff")
          move_control_px($button2, 20, 70)
          hide_part($button2,$HIDE_WHOLE_CONTROL)

          declare ui_button $reset
          set_control_par(get_ui_id($reset),$CONTROL_PAR_HEIGHT,20)
    set_control_par(get_ui_id($reset),$CONTROL_PAR_WIDTH,67)
    set_control_par(get_ui_id($reset),$CONTROL_PAR_FONT_TYPE,16)
    set_control_par_str(get_ui_id($reset),$CONTROL_PAR_TEXT,"   RESET")
    set_control_par_str(get_ui_id($reset),$CONTROL_PAR_PICTURE,"pv_urban_button_onoff")
          move_control_px($reset, 20, 100)
          hide_part($reset,$HIDE_WHOLE_CONTROL)

end on
    on ui_control($about)
          note_off($ALL_EVENTS)

          $about:=1
          $button1:=0
          $button2:=0
          $reset:=0
          hide_part($about,$HIDE_PART_NOTHING)
    hide_part($button1,$HIDE_PART_NOTHING)
    hide_part($button2,$HIDE_PART_NOTHING)
    hide_part($reset,$HIDE_PART_NOTHING)
    _set_skin_offset(0 * 300)
    end on
    on ui_control($button1)
          note_off($ALL_EVENTS)

          $about:=0
          $button1:=1
          $button2:=0
          $reset:=0
          hide_part($about,$HIDE_PART_NOTHING)
    hide_part($button1,$HIDE_PART_NOTHING)
    hide_part($button2,$HIDE_PART_NOTHING)
    hide_part($reset,$HIDE_PART_NOTHING)
   _set_skin_offset(1 * 300)
    end on
    on ui_control($button2)
          note_off($ALL_EVENTS)

          $about:=0
          $button1:=0
          $button2:=1
          $reset:=0
          hide_part($about,$HIDE_PART_NOTHING)
    hide_part($button1,$HIDE_PART_NOTHING)
    hide_part($button2,$HIDE_PART_NOTHING)
    hide_part($reset,$HIDE_PART_NOTHING)
    _set_skin_offset(2 * 300)
    end on
    on ui_control($reset)
          note_off($ALL_EVENTS)

          $about:=0
          $button1:=0
          $button2:=0
          $reset:=1
          hide_part($about,$HIDE_PART_NOTHING)
    hide_part($button1,$HIDE_WHOLE_CONTROL)
    hide_part($button2,$HIDE_WHOLE_CONTROL)
    hide_part($reset,$HIDE_WHOLE_CONTROL)
    _set_skin_offset(0 * 300)
    end on

{********end of script**********}


This script is valid for all versions of kontakt just copy it in the slot text and add your wallpaper.
You can use this script alone or you can add it to another script.
This script edited and scripted by BOUZIANE MOHAMMED FAYCEL.




Download the library model here