Tagged: Kontakt, Kontakt scripting, script issue
- This topic has 7 replies, 3 voices, and was last updated 7 months, 2 weeks ago by
Liam MacLean.
-
AuthorPosts
-
7 November 2021 at 2:15 pm #4016
Liam MacLean
ParticipantHello!
I was wondering if anyone could help me fix a small issue. I have limited knowledge of Kontakt scripting, but the instrument has gone really well so far.
I have 5 knobs, all of them working vertically, however, my highpass knob is working horizontally. Does anyone know how I can tell Kontakt which direction to go so all knobs work the same?
I’m sure it’s a simple fix and I’m missing something obvious. I’m sure that is all self explanatory but here’s a screen capture anyway
Cheers!
7 November 2021 at 3:49 pm #4018Liam MacLean
ParticipantSorry didn’t realise that the link didn’t attach. Here is a screenshot of the script and the screen recording
https://drive.google.com/drive/folders/1aRyroBkpGjGrPvh6koZgo5dh2oOSUr8t?usp=sharing
8 November 2021 at 12:01 pm #4027Angus
ParticipantTry changing the number after PAR_MOUSE_BEHAVIOUR to 1000 instead of -1000. That should change the direction.
8 November 2021 at 7:37 pm #4037Liam MacLean
ParticipantThanks for replying! I tried that but it didn’t work. It’s the only thing I knew to try. I’ll try again tomorrow.
What’s really confusing me is that the $hpcutoff details were copied and pasted from $cutoff, but they’re responding differently.
9 November 2021 at 10:40 am #4038Angus
ParticipantAre you able to post the script segment here?
9 November 2021 at 10:57 am #4039Liam MacLean
Participanton init
make_perfview
set_ui_height_px(280)
set_ui_width_px(633)
message(“”)declare $count := 0
set_control_par_str($INST_ICON_ID,$CONTROL_PAR_PICTURE,”rsz_lm_logo”)
declare ui_slider $cutoff(500000, 1000000)
make_persistent($cutoff)
declare $cutoffId
$cutoffId := get_ui_id($cutoff)
set_control_par_str($cutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par($cutoffId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)declare ui_slider $hpcutoff(1, 500000)
make_persistent($hpcutoff)
declare $hpcutoffId
$cutoffId := get_ui_id($hpcutoff)
set_control_par_str($hpcutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par($hpcutoffId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-1000)declare ui_slider $Reverb(1,750000)
make_persistent($Reverb)
declare $ReverbId
$ReverbId := get_ui_id($Reverb)
set_control_par_str($ReverbId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par($ReverbId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)declare ui_slider $attack (50000, 1000000)
declare ui_slider $release (50000, 1000000)make_persistent($attack)
make_persistent($release)declare $attackId
declare $releaseId$attackId := get_ui_id($attack)
$releaseId := get_ui_id($release)set_control_par_str($attackId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par_str($releaseId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par_str($cutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)
set_control_par_str($hpcutoffId, $CONTROL_PAR_PICTURE, “LM_Knob2”)set_control_par($attackId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)
set_control_par($releaseId,$CONTROL_PAR_MOUSE_BEHAVIOUR,-500)move_control_px($Reverb,545,205)
move_control_px($attack,295,205)
move_control_px($release,425,205)
move_control_px($cutoff,545,115)
move_control_px($hpcutoff,425,115)end on
9 November 2021 at 2:20 pm #4040Liam MacLean
ParticipantFixed it.. How idea how. deleted the script for that knob and started from scratch
-
AuthorPosts
- You must be logged in to reply to this topic.