Welcome to the new and improved Native Instruments online community. Join our active forum of 40,000+ members for discussions and much more.

Unable to move or add pictures to UI slider

jspro Member Posts: 5 Sine
edited May 2022 in Scripting Workshop

Hello all,

Please can you help with a KSP issue I am having. I have declared a ui_slider and I am unable to move it or add a photo to it on the script. No errors are coming up on the KSP Script when applying in Kontakt.

declare ui_slider $Rate_knob (0,100)

{ set_text ($Rate_knob,"Rate")}

make_persistent ($Rate_knob)

declare $Rate_knobID 

$Rate_knobID := get_ui_id($Rate_knob)

%arpeggiator_control_IDs[$k] := $Rate_knobID

inc ($k)




{ set_control_par_str(get_ui_id($Rate_knobID),$CONTROL_PAR_TEXT,"rate")}



  • corbo-billy
    corbo-billy Member Posts: 50 Tri
    edited May 2022

    A small error for the image code, it should :




    And it all depends on what you want to do but for a slider, it is recommended:

    declare ui_slider $Rate_knob (0,1000000)

  • jspro
    jspro Member Posts: 5 Sine

    Thanks so much!

  • corbo-billy
    corbo-billy Member Posts: 50 Tri

    Is it working fine ?

  • jspro
    jspro Member Posts: 5 Sine

    Im now able to add graphics to the Rate_knob - however still unable to move it. KSP is saying there is an error if I use:


    So I've entered


  • corbo-billy
    corbo-billy Member Posts: 50 Tri

    Yes, your second solution should work better .

  • EvilDragon
    EvilDragon Moderator Posts: 852 mod

    You can only use literal UI widget names with move_control_px, not UI IDs. For UI IDs you need to use set_control_par().

  • jspro
    jspro Member Posts: 5 Sine

    Okay cool, that makes sense. I'm still unable to move the slider though- there is no error in the script. Could something else be stopping it? Im having this problem elsewhere too within the instrument

Back To Top