Repository navigation
Timeline: trim all selected layers together - #950
Merged
Merged
Conversation
Dragging the in or out edge of a selected layer's bar now trims every selected layer by the same delta from its own in/out point, as in After Effects. layer.timing gains relative inDelta/outDelta params (seconds, frame-snapped), clamped to the comp start/end and to one frame of layer; the drag stays one undo step via the merge key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Themolx
marked this pull request as ready for review
October 12, 2026 06:27
Member
|
Merged. Thank you for the contribution, @Themolx! If you haven't already, come join us on Discord: https://discord.gg/artcraft. It's the best place to discuss what you're working on next and to coordinate with other contributors. |
This was referenced Oct 12, 2026
Merged
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.
Fixes #965.
What
In the Timeline, dragging the in- or out-point edge of a layer bar while several layers are selected now trims all selected layers by the same amount, each from its own in/out point (After Effects behaviour). Before this change, only the dragged layer was trimmed. Moving a bar already acted on the whole selection.
How
layer.timinggains relativeinDelta/outDeltaparams (seconds, snapped to frames), applied per layer:panels/timeline.rs) sendsinDelta/outDeltafor the selection (or for just the dragged layer if it isn't selected). It keeps the existingmergekey, so a whole drag is one undo step.docs/agents.mdanddocs/architecture.md.Manual testing
I'm a long-time After Effects power user, and this now matches how AE behaves. I tested it by hand in the desktop app: with several layers selected, dragging the in or out edge of one of them trims all selected layers together, each from its own edge.
Environment
Developed and tested on macOS 13.7.8 (Ventura), Apple M1 (arm64), Rust 1.97.1 (Homebrew).
Tests
relative_trim_moves_every_selected_layer_by_the_same_delta: two layers with different in/out points trim by the same delta; a merged drag is one undo step and undoes as one; clamping at the comp start/end and at one frame of layer; no jump for a point outside the comp.cargo fmt, clippy (-D warnings),xtask layersandxtask assetspass.cargo test --workspace --release --no-fail-faston my Mac: the only failures are environment-only and unrelated to this change:gen_golden,sim_golden,particle_golden);crates/export,crates/media);crates/text);image_sequences_roundtrip(a shared build-dir race with other local worktrees).xtask wasmcan't run locally because there is no wasm32 target in Homebrew Rust. Other tests that failed in the parallel run pass in isolation.🤖 Generated with Claude Code