Can I use Ruby to call the timeline from the SketchUp shadow setting function?

I do not know if this is possible.

If it is, then you will need to define a custom ShadowInfoObserver to react to the changes that the user makes as they move the slider.

But, … the change may not fire until the user stops dragging the slider. You’ll need to test.