Custom controls
-
@Morphoice Did you test my snippet?
-
@David-Healey at it. If this works in Cubase I'm gonna cry
-
@David-Healey Confirmed in your own snippet: if I write the automation by moving the knob from script (panel -> Knob1.setValue/changed) instead of dragging it, Cubase records the lane but won't read it back on playback until I reload the project.
-
@Morphoice Which OS? I'm going to try this
-
@David-Healey I'm on MAC
-
@Morphoice I'm not sure why, because I don't really know Cubase, but the panel is able to read/write automation in my test, even though I didn't set it as a plugin parameter in my snippet.

Edit: Aha, in the xml I see this
<Component type="ScriptPanel" id="Panel1" x="70" y="180" width="330" height="250" isPluginParameter="1" allowCallbacks="Clicks Only" max="10.0" -
@David-Healey I rewired a test slider in my plugin as a panel-as-parameter exactly like you did in your example, no change in Cubase. I'm attempting to patch HISE to have that handle click gated
-
@David-Healey I added a dragThumbOnly property to Scriptslider
if enabled:
- A left-click on the slider track no longer starts a drag or jumps the value.
HiSlider::mouseDown hit-tests the click against the drawn handle centre
and only forwards to Slider::mouseDown when the click lands on the
thumb (within dragThumbSize/2 + dragThumbPad). Right-clicks still pass
through for MIDI-learn / context menu. - Snap-to-mouse is disabled, so dragging the thumb is relative and the
value does not snap to the cursor on click.
if anyone is interested it's on my fork
https://github.com/morphoice/HISE/commit/7b206d1951558381a2a38b2691a504d7542eec56however the dimensions are currently hardcoded to my needs, so there will be further changes needed to make this a general feature. I therefor didn't make a PR
- A left-click on the slider track no longer starts a drag or jumps the value.