Automation quark not saving values from a Slider2D

Hi there,

I’m currently developing a little tool that will let me record a movement made in a GUI object (Qt, cocoa, …) over a certain amount of time. I encountered this quark, which adresses my case perfectly, Automation (GitHub - neeels/Automation: Record and playback live GUI activity in supercollider audio synth.). I want to record a movement in a Slider2D but when docking this object to the automation space, it gets added as a ‘nil’.

So when adding a normal slider

(

var win, button, slider, control;

win = GUI.window.new("Automation Transport Interface", Rect(40, 400, 450, 150));

slider = GUI.slider.new(win, Rect(25, 45, 25, 90));
slider.action = {|val| ("My own slider action says:" + val).postln };
win.front;


// Place the control GUI in above window, and set the control's length
// to 30 seconds (that's simply and only for the time slider).
control = Automation(30).front(win, Rect(0, 0, 450, 25));

// Upon reaching the end of the time slider, I'd like to stop and
// rewind the control. Default is to add 20% to the time slider's max.
control.onEnd = {
    control.stop;
    "control is stopped".postln;
    control.seek;
};

control.dock(slider, "theSlider");

win.onClose = {
    // When the window was closed, stop control, but do not update the
    // (closed) GUI to avoid an error:
    control.quit;
    "control is stopped".postln;
};

)

the console outputs

Automation: Added client `theSlider’ as AutomationKindFloat

When adding a slider2D:

slider = GUI.slider2D.new(win, Rect(25, 45, 25, 90));
slider.action = {|val| ("My own slider action says:" + val).postln };

the console outputs

Automation: Added client `theSlider’ as Nil

So the window gets created but when moving the slider the ‘O’ button for record, won’t turn red (which means it’s storing values in the time frame). Any ideas on how to resolve this?