Don't work on latest Kontakt

Reylon
Reylon Member Posts: 23 Member

Hi,

I had an old code which changed the label picture when the slider is moving.

However this used to work on the older versions of kontakt but NOT in the latest kontakt version.

on init
  make_perfview
  set_ui_height_px(130)
  declare ui_label $label(3, 1)

  declare ui_slider $Cutoff(0, 6)
  set_text($label,"World")

set_control_par_str(get_ui_id($label), $CONTROL_PAR_PICTURE, "Delay")
 set_control_par(get_ui_id($label), $CONTROL_PAR_PICTURE_STATE, $Cutoff)
end on

on ui_control ($Cutoff)
set_control_par_str(get_ui_id($label), $CONTROL_PAR_PICTURE, "Delay")
 set_control_par(get_ui_id($label), $CONTROL_PAR_PICTURE_STATE, $Cutoff)
end on

If anyone knows whats going on please let me know.

Comments

  • EvilDragon
    EvilDragon Moderator Posts: 1,022 mod

    I wouldn't advise doing picture changes on a potentially fast callback like that of ui_slider. Changing picture state should be fine though.

Back To Top