Disable Shift-Click Knob Text Box
-
@ILIAM That's telling you that the parameter you're passing to a function on line 17 and 18 is undefined - in this case
modsmodsis an array, you need to get the individual mod object from the array for each knob. -
@d-healey So Loop doesn't works?
-
@ILIAM Yes, but you'll need to modify it to access the mods. Probably a for loop rather than for in.
-
@ILIAM
@d-healey is talking about something like this:const var knobs = [Content.getComponent("Knob1"), Content.getComponent("Knob2"), Content.getComponent("Knob3"), Content.getComponent("Knob4"), Content.getComponent("Knob5"), Content.getComponent("Knob6")]; const mods = []; for (x in knobs) mods.push(x.createModifiers()); for(i = 0; i < knobs.length; i++) { knobs[i].setModifiers(mods[i].TextInput, [mods[i].disabled, mods[i].disabled]); // No text input knobs[i].setModifiers(mods[i].ResetToDefault, [ mods[i].disabled, mods[i].disabled ]); // No Double click to Default }; -
