Repository navigation
Timeline, keyframes, Graph Editor, Puppet and pick whip fixes from #284 - #381
Merged
Merged
Conversation
The ruler moved the current-time indicator only once the pointer had dragged past egui's drag threshold, or on release for a click. As in After Effects, the time now jumps to the pointer as soon as the button goes down in the ruler, then follows the drag. Test: a_press_in_the_ruler_moves_the_current_time (ui_timeline_zoom). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scrubbing asks for the viewer frame under the pointer at every step. Each newer request only demoted the earlier ones to prefetch, so every frame the pointer passed was still rendered, oldest first, holding the frame threads the frame under the pointer needed. A newer viewer frame of a comp now drops that comp's viewer frames that haven't started (and releases them, so they can be asked for again). Frames already rendering finish into the cache (rendering can't be interrupted mid-frame), and the viewer keeps its last frame until the new one is in. Prefetch frames and other comps' viewer frames stay queued. Test: a_newer_viewer_frame_drops_the_ones_still_waiting (frames). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shift-clicking a layer's name selected the layers from the last one clicked to it, but Shift-clicking a layer bar in the time graph only added that layer. Bars now select the same range (shared with the name column: `shift_range`), and a click on a bar becomes where the next range starts, as a click on a name does. Test: timeline_shift_click_on_layer_bars_selects_the_range (ui_workflow_selection). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#284 reported no cache indication in the Timeline. Main has one: a green line under the work area bar for the frames cached at the viewer's resolution, view and options (blue for disk-cached frames). This test pins it down: once the viewer's frame has rendered, the Timeline paints the green line from the start of the work area. Test: the_timeline_shows_the_cached_frames_in_green (ui_ram_preview). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As in After Effects, pressing a property's stopwatch toggles it, and dragging on over the stopwatches above or below gives every property the pointer passes the state the first one got (animated or not), whatever its own, in one undo step. Alt+click still adds an expression. The gesture is the layer switches' press-and-drag from #238, moved into `switch_gesture` and shared by both. `prop.toggleAnimation` takes `merge` so the drag folds into one undo step. Tests: dragging_over_stopwatches_sets_them_all (ui_timeline_switches), stopwatch_toggles_with_a_merge_key_are_one_undo_step (engine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each half of a keyframe glyph had a 1 px near-black border, so keys that overlap read as a tangle of borders. Keys are now flat, as in After Effects: each half is filled and edged in the key's own colour (the hairline closes the seam between the halves), so overlapping keys read as one shape. The Light theme's keyframe grey is darker so unselected keys still stand out on its light time graph without the border. Test: keyframes_are_drawn_without_a_dark_outline (icons). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…284) Dragging a Bezier handle in the Graph Editor changed only that key's ease. As in After Effects, the same side's handles of every selected key now move with it, by as much as the pointer moved (time and value or speed alike), in one undo step. Each handle keeps its offset from where the drag began, so a handle stopped at a limit (100 % influence) doesn't drag the others on. Test: a_graph_handle_drag_moves_the_handles_of_every_selected_key (ui_keyframes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est (#284) Effect eyedroppers (other than keyers', which pick from the effect's input) sample the composite the viewer shows; a test covers that on main. But they, and the Info panel, read the shown frame as if it covered the whole comp. With a Region of Interest, or the Extended Viewer of a 3D view, the frame covers only that area, so they read a pixel somewhere else. They now map the point through the area the frame covers (`shown_region`, `frame_pixel`). Tests: the_eyedropper_samples_under_the_pointer_in_a_region_of_interest (ui_effect_controls), eyedropper_samples_straight_colour (fx_widgets). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d mesh (#284) With a Puppet tool, a click off the pins picked the topmost layer under the pointer by its own bounds, and selected it. So a click where the deformation had stretched the mesh past the layer's bounds went to the layer behind (selecting it and giving it a Puppet effect), and any click on another layer switched to it. While selected layers have a Puppet effect, a click (or a press that might start a pin marquee) now works only on them, as in After Effects: on the layer whose mesh, as deformed now, is under the pointer (the pin lands on the deformed shape), else the one whose own art is (a new mesh); elsewhere nothing happens and the selection stays. Without a rigged layer selected, the tools pick and rig the layer under the pointer as before. `puppet::contains` tests a point against a deformed mesh; `puppet.addPin` uses it too (its own test only held for one triangle winding). Test: puppet_pins_go_on_the_deformed_mesh_and_the_tool_stays_on_the_rigged_layer (ui_viewer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dragging an expression's pick whip always replaced the whole expression, also while it was being edited (and the editor then wrote its old text back over the reference). As in After Effects, a pick whip pressed while the expression is being edited now puts the reference at the cursor, replacing the selected text, and the editing goes on with the cursor after the reference. Without an edit in progress it replaces the expression as before. `prop.pickWhip` takes the text being edited (`expression`) and the selection in it (`range`, in characters) to insert there. Tests: the_expression_pick_whip_inserts_at_the_cursor_while_editing (ui_inline_edit), pick_whip_inserts_into_the_expression_being_edited (engine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bflatastic
force-pushed
the
fix/284-timeline-keys-tools
branch
from
October 9, 2026 10:11
5d568b2 to
bf09a4f
Compare
This was referenced Oct 9, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This covers the Timeline / Playback, Properties / Keyframes, Graph Editor, Tools and Expressions items of #284 (Windows 11). The UI / General items are handled separately. Each item was checked against current
main, not the reporter's build. There is one commit per item, and each fix has a test that fails without it.shift_range. A click on a bar also sets where the next range starts.layer.sequence). A drag that staggers keyframes in selection order comes from scripts (stagger/offset tools), not from AE itself.switch_gesture, shared with the layer switches.prop.toggleAnimationtakesmerge. Alt+click still adds an expression.crosshair_and_eyedropper_pick_from_the_viewercovers this. Keyers deliberately sample their input, so a screen that's already keyed out can still be picked. The bug: the eyedropper and the Info panel read the shown frame as if it covered the whole comp. With a Region of Interest, or the Extended Viewer in a 3D view, the frame covers only that area, so they sampled the wrong place, often the layer. They now map the point through the area the frame actually covers.puppet::containsdoes this test.puppet.addPinnow uses it too; its own inside test only worked for one triangle winding.prop.pickWhiptakesexpressionandrange(in characters).Tests
ui_timeline_zoom::a_press_in_the_ruler_moves_the_current_time(1)frames::tests::a_newer_viewer_frame_drops_the_ones_still_waiting(2)ui_workflow_selection::timeline_shift_click_on_layer_bars_selects_the_range(3)ui_ram_preview::the_timeline_shows_the_cached_frames_in_green(5, a regression guard; main already passes it)ui_timeline_switches::dragging_over_stopwatches_sets_them_all, enginestopwatch_toggles_with_a_merge_key_are_one_undo_step(6)icons::tests::keyframes_are_drawn_without_a_dark_outline(7)ui_keyframes::a_graph_handle_drag_moves_the_handles_of_every_selected_key(8)ui_effect_controls::the_eyedropper_samples_under_the_pointer_in_a_region_of_interest, plus the updatedfx_widgetseyedropper_samples_straight_colour(9)ui_viewer::puppet_pins_go_on_the_deformed_mesh_and_the_tool_stays_on_the_rigged_layer(10, 11)ui_inline_edit::the_expression_pick_whip_inserts_at_the_cursor_while_editing, enginepick_whip_inserts_into_the_expression_being_edited(12)I reverted each fix commit on its own, with its test kept, and confirmed the UI or frames test fails: items 1, 2, 3, 6, 8, 9, 10/11 and 12. Item 7's unit test checks the painted shapes, and the old glyphs had a black stroke. The engine tests fail by construction, because before this PR the
mergeandexpression/rangeparameters were ignored.Not checked:
Gate:
cargo fmt --all --check,cargo clippy -j 4 -p effectcraft-effects -p effectcraft-engine -p effectcraft-ui-egui --all-targets -- -D warnings. Tests passed: the ui-egui lib (106),ui_timeline_zoom,ui_timeline_switches,ui_workflow_selection,ui_inline_edit,ui_keyframes,ui_effect_controls,ui_viewer,ui_ram_preview, and the enginetests_timeline, puppet, pick-whip and effects puppet tests. I did not run the fullcargo xtask ci(layers/assets/wasm) on this machine.🤖 Generated with Claude Code