Sublime Forum

KSP Scripting shorthand

#1

Hi. I’m new to Sublime Text and I’m using the NI KSP addon.

I’ve seen some people using shorthand(?) in ST and then compiling it to Kontakt script. Is there any documentation on this?

I want to add a slew of knob control calls and doing them one at a time is painstaking.

Here’s what I want to do:

  declare ui_slider $variable_name(0,1000000)
make_persistent($variable_name)
set_control_par_str(get_ui_id($variable_name),$CONTROL_PAR_PICTURE,"knob1")
set_control_par(get_ui_id($variable_name),$CONTROL_PAR_MOUSE_BEHAVIOUR,$knob_mouse_behaviour)
set_control_par(get_ui_id($variable_name),$CONTROL_PAR_DEFAULT_VALUE,500000)

Then add a list of variable names to fill in each entry.

Any help would be greatly appreciated :slight_smile:

0 Likes