Repository navigation
Replace selected layer sources with geometry and Audio preservation - #1980
Open
yuraizmailov wants to merge 2 commits into
Open
yuraizmailov wants to merge 2 commits into
yuraizmailov wants to merge 2 commits into
Conversation
ki2pixel
referenced
this pull request
Oct 27, 2026
) Alt/Option-drag a Project item onto a Timeline layer, or press Ctrl+Alt+/ (Cmd+Opt+/) with layers and an item selected, to swap the layer's source. The layer keeps its name, timing, transforms, keyframes, expressions, effects, masks, switches, parenting and track matte; a source with audio adds Audio properties when missing. Precompositions can't be nested inside themselves. AVLayer.replaceSource now runs the same engine command and closes the replaceSource part of #813.
Member
|
Hi @yuraizmailov, thanks for this PR! Most of the conflict comes from the shared module layout (#2491), which moved or split files this PR touches:
When you rebase, please also make sure it fits the other recent changes:
CI ( |
This branch has not been deployed
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.
Add layer.replaceSource, the default Command/Ctrl+Alt+/ shortcut, selected-layer Option-drop and
AVLayer.replaceSource(newSource, false). Remap source-relative mask/Anchor Point values, keys and
tangents to the new pixel dimensions. Keep Position, Scale, other properties and key times.
Use the standard source-capability rule and Audio builder to add missing controls while preserving
existing IDs, keys, expressions and mute through silent replacements. Validate all targets and
composition cycles before an atomic edit. Option-drop recipients are selected unlocked AV layers,
regardless of the hovered row; empty selection does nothing. fixExpressions=true is explicitly
unsupported.
Selectively adapts ki2pixel's #1929 at 8d887fd: scripting adapter,
named-item resolution and portions of eligibility/whole-layer drop feedback. Geometry remapping,
Audio preservation, checked ID allocation and selection-only batch semantics are retained here.
This overlaps the open #1929; the implementations should be reconciled during review.
Dependency: includes the small system-font coverage prerequisite (#1973) so the full
local UI suite passes with the Simplified Chinese catalog. It does not include the other feature PRs.
Validation:
CARGO_PROFILE_RELEASE_LTO=off cargo xtask ci(format, release Clippy with warnings denied, complete releaseworkspace tests, dependency/layer/asset checks and WASM compilation). Native interaction validation
was performed on macOS; Windows/Linux native interaction has not been checked locally.
No dependency or project schema changes. No third-party media assets are added.
LTO is disabled only for this local validation run to reduce test-executable link time.
No tests or gate phases are excluded, and repository release settings are unchanged.
Local gate result: 3,683 passed, zero failed, 31 ignored across 199 test suites; all gate phases completed.
Summary by CodeRabbit
New Features
AVLayer.replaceSource.Documentation
Improvements