For me scripting is the most powerful thing in Kontakt. With the script the possible is endless. When somebody mention about script in Kontakt people start thinking it's crazy and they don't really want to mass around with it. But the downside is that they miss a lot of fun parts. You don't really have to be a programmer to do the script in Kontakt. You just have to know which command is doing what then you are good to go. Because since native instrument already done the scripting for the whole program including the presets and library all you have to do is that find out what you need for your instrument then go into Kontakt presets or library's directory find the bit you want then edit it and modify it then incorporate with your instrument and job done. Don't forget that Steve Job never invented iPhone he just known how to put a part together similarly you don't have to be a programmer to do scripting you just have to know what you want and how to put them together. So, here is some of the basic command that you can use:
make_perfview
makes the current tab visible
set_ui_height_px(<height>)
set the height of your ui in pixels
set_script_title(<text>)
sets the name of your tab
set_control_par_str(<ui-ID>,<control-parameter>,<value>
use this command in combination with the variables below to set the background
$INST_WALLPAPER_ID
The (fixed) ID of the instrument wallpaper
$CONTROL_PAR_PICTURE
sets the picture name
get_ui_id(<varibale>)
retrieve the numeric id of the specific ui element
on ui_control(<variable>)
UI callback, executed whenever the user changes the respective UI element
declare ui_switch $<variable-name>
creates an ui switch (button)
declare ui_label $<variable-name> (<width>,<height>)
creates an ui label, used for an adjustable background graphic
move_control(<variable>,<x-position>,<y-position>)
positions an element in the grid use it to move the babel to top left corner (0,0)
move_control_px(<variable>,<x-position>,<y-position>
to position with the exact pixels
Here, the ui stand for the user interface. In figure 1 shown that using the move_control command you can place or position you element (such as button or knob etc) and following with the number e.g: (1,4) so the 1 is the horizontal position and 4 is the vertical position. With all these basic command you can do so many thing in script editor. Also don't forget to check the KSP script manual in Kontakt you will find lots of scripting information.
No comments:
Post a Comment