Skip to content

Timeline: a selected key selects its property and layer (#252) - #255

Merged
bflatastic merged 1 commit into
mainfrom
fix/252-key-selection-props
Oct 8, 2026
Merged

bflatastic merged 1 commit into
mainfrom
fix/252-key-selection-props

Conversation

@bflatastic

Copy link
Copy Markdown
Member

Part of #252: "When highlighting keyframes their parent property isn't selected on the layer… nothing shows in the graph editor until you select the property separately."

Cause: the Timeline's key click and marquee called keys.select with the keys only. The Graph Editor shows the selected properties (Show Selected Properties) or else the animated properties of the selected layers. With neither selected, it showed nothing.

Fix: keys.select takes selectProperties. The selected keys' properties and layers are then selected too: they replace the current selection, or with Shift (add/toggle) are added to it. The Timeline's click, Shift-click and marquee pass it, as After Effects highlights a clicked key's property and layer. The Graph Editor's own key clicks don't, so selecting keys there doesn't narrow what it shows. Delete, Copy and the other key commands still act on the keys first.

Test: ui_keyframes a_key_clicked_in_the_timeline_shows_in_the_graph_editor. With nothing selected, it clicks a key in the Timeline, checks that its property and layer are selected, opens the Graph Editor and finds the key there. It fails on main: left: ([], []).

Not checked: not compared against a running After Effects.

Gate: cargo fmt --check; cargo clippy -D warnings for effectcraft-engine and effectcraft-ui-egui (all targets). Tests: engine lib (413), ui_keyframes (7), ui_viewer (35), ui_timeline_shapes, ui_workflow_selection, ui_timeline_zoom and ui_timeline_switches.

🤖 Generated with Claude Code

Clicking (or marquee-selecting) keyframes in the Timeline selected only
the keys. Their property and layer stayed unselected, so the Graph
Editor, which shows the selected properties or else the animated
properties of the selected layers, came up empty until the property
was selected separately. As in After Effects, the Timeline's key
selection now selects the keys' properties and layers too (Shift adds
to them). keys.select takes this as `selectProperties`; the Graph
Editor's own key clicks leave what it shows alone.

Test: a_key_clicked_in_the_timeline_shows_in_the_graph_editor
(ui_keyframes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant