#770: Proportional Scrubbing of Timeline values (Ctrl+Alt / Cmd+Opt)

Problem: After Effects 26.2 spreads a Ctrl+Alt (Cmd+Opt) hot-text scrub
over the selected layers by selection order (first unchanged, last the
whole change, the ones between even shares). Our multi-layer scrub
(#491) always moved every selected layer by the same change.

Fix: prop.set takes `proportional` (with `selected` + `offset`); each
participating layer, the scrubbed one included, gets index/(n-1) of the
change in selection order, in one undo step; the first layer is left
alone (no key added). The Timeline value editor sends it while Ctrl+Alt
(Cmd+Opt) is held; that chord no longer fine-scrubs or unlinks Scale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-10-11 12:39:06 +02:00
co-authored by Claude Opus 5.5
parent 9a7d3e7699
commit ea0414e280
7 changed files with 166 additions and 16 deletions
+8 -1
View File
@@ -121,7 +121,7 @@ pub fn hot_number_at(
let mult = ui.input(|i| {
if i.modifiers.shift {
10.0
} else if i.modifiers.command {
} else if i.modifiers.command && !proportional_scrub(i.modifiers) {
0.1
} else {
1.0
@@ -138,6 +138,13 @@ pub fn hot_number_at(
(rect, out, resp.drag_stopped())
}
/// Ctrl+Alt (Cmd+Opt on macOS) held while scrubbing hot text: After Effects' Proportional
/// Scrubbing, which spreads the change over the selected layers by selection order. Ctrl alone
/// still scrubs finely and Shift by tens.
pub fn proportional_scrub(m: egui::Modifiers) -> bool {
m.command && m.alt
}
/// [`hot_number_at`] for a whole number (an angle's revolutions): a drag steps it once every
/// `1 / speed` pixels however slowly the pointer moves (the fractions add up between frames),
/// and a typed value is truncated. Returns (rect, Some(new value) when changed, drag finished).