Project panel: Replace with Precomposition (used N times)

Right-clicking a footage item or solid in the Project panel offers
"Replace with Precomposition (used N times)": the item goes into a new
composition of its size, pixel aspect and frame rate, in the same folder, and
every layer in every composition that used it switches to that composition,
keeping timing, transforms, effects and masks. One undo step. Agents run it as
`file.replaceWithPrecomp`.

The Project panel's details header also shows how often the selected item is
used ("Name ▾, used 3 times"); the ▾ lists and opens the comps that use it.
`Project::item_users` and the `project.usedIn` query back both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Themolx
2026-10-12 15:14:43 +02:00
co-authored by Claude Opus 5.5
parent 9efe75330c
commit fcf56415dc
10 changed files with 282 additions and 3 deletions
+7
View File
@@ -98,6 +98,13 @@ vectors, positions and IDs are never the picture. EXtractoR reads every other la
- **File ▸ Replace Footage ▸ File…** (Ctrl+H) points the item at another file. Pick a numbered
file to replace it with that file's whole sequence (`file.replaceFootage {"path": …,
"sequence": false}` for one frame).
- **Replace with Precomposition (used N times)**, right-clicking a footage item or solid in the
Project panel, puts the item in a new composition of its size,
pixel aspect and frame rate, in the same folder, and switches every layer in every composition
that used the item to that composition. Layers keep their timing, transforms, effects and
masks, and the item stays in the project. The composition lasts as long as the footage, or as
the longest layer that showed a still or solid. One undo step (`file.replaceWithPrecomp
{"item"?}`).
- **File ▸ Reload Footage** (Ctrl+Alt+L) reads the files again. A sequence picks up frames
added to its folder (a render still in progress) and keeps its interpretation.