Scroll to Scrub

@rebind / scroll-to-scrubv0.1.1Public

Hold a mouse button and scroll to step the DaVinci Resolve timeline frame by frame.

Files

Older release. Installs get 0.1.1.

main.luau673 B

-- Scroll to Scrub: while the hold button is down, each wheel notch steps the
-- DaVinci Resolve playhead one frame. Letting go plays from there.

local cfg = UI.Schema({
  hold = UI.Keybind("Mouse5", { label = "Hold to scrub" }),
})

local scrubbing, scrubbed = false, false

-- the button itself never reaches Resolve
Bind(cfg.hold, {
  action = function()
    scrubbing, scrubbed = true, false
  end,
  release = function()
    scrubbing = false
    if scrubbed then
      HID.Combo("Space")
    end
  end,
})

function OnScroll(delta)
  if not scrubbing then
    return true
  end
  scrubbed = true
  HID.Combo(if delta > 0 then "Right" else "Left")
  return false
end

3 files, 2.1 KB.