Kontakt SCRIPTING

KONTAKT SCRIPTING SHOW HIDE ELEMENTS

This is the script of korg solo for peoples Interested in programming who want to benefit from it. Using it or modifying it As needed Or ctreat his own library.

Begin of the script

on init
make_perfview
set_ui_height_px(100)

declare ui_switch $tab1
$tab1 := 1
declare ui_switch $tab2
declare ui_switch $tab3

declare ui_switch $tab1_parameter
move_control($tab1_parameter,1,2)
hide_part($tab1_parameter,$HIDE_PART_NOTHING)

declare ui_menu $tab2_parameter
move_control($tab2_parameter,2,2)
hide_part($tab2_parameter,$HIDE_WHOLE_CONTROL)

declare ui_knob $tab3_parameter(0, 1000000, 1)
move_control($tab3_parameter,3,2)
hide_part($tab3_parameter,$HIDE_WHOLE_CONTROL)
end on

(You can add new Elements as needed in the same format just change the name after the dollar symbol Or change their location through the dimensions in    move_control_px ) don’t past to the script


on ui_control($tab1)
$tab2 := 0
$tab3 := 0
hide_part($tab1_parameter,$HIDE_PART_NOTHING)
hide_part($tab2_parameter,$HIDE_WHOLE_CONTROL)
hide_part($tab3_parameter,$HIDE_WHOLE_CONTROL)
end on

on ui_control($tab2)
$tab1 := 0
$tab3 := 0
hide_part($tab1_parameter,$HIDE_WHOLE_CONTROL)
hide_part($tab2_parameter,$HIDE_PART_NOTHING)
hide_part($tab3_parameter,$HIDE_WHOLE_CONTROL)
end on

on ui_control($tab3)
$tab1 := 0
$tab2 := 0
hide_part($tab1_parameter,$HIDE_WHOLE_CONTROL)
hide_part($tab2_parameter,$HIDE_WHOLE_CONTROL)
hide_part($tab3_parameter,$HIDE_PART_NOTHING)
end on 

End of script



 (If you add new Elements don't forget to add their work in control like oldest) don’t past to the script
Just past all the script into kontakt and enjoy

This script is valid for all versions of kontact.
This script created by BOUZIANE MOHAMMED FAYCEL