Each part is the whole picture placed so that the part fills its panel: fit: "none" (the picture at its own pixels), a scale and a centre. Nothing is cropped; whatever lies outside the panel falls off the frame or under the clip on the track above.
When to use
- One frame must show two or more parts at once, each in its own panel: a facecam and the game, two speakers, a reaction and the clip.
- The parts come from one picture (a stream with a facecam in a corner) or from several.
Prerequisites
- The cuttingfloor MCP server is connected.
- A timeline at the target size (W × H) with a video track per panel.
- Each part's box in source pixels (bx, by, bw, bh: left, top, width, height): read from a full-size
render.frames {media_id, size: "full"}, or from media.analyze faces or track boxes (fractions: multiply by the source width and height).
Steps
- The assistant should choose each panel's box in the frame (X, Y, PW, PH). A facecam across the top of a 1080×1920 frame keeps its own shape: PW = 1080 and PH = 1080 × bh ÷ bw; the next panel takes the rest of the height.
- The assistant should work out each part's scale and centre. With the source picture Ws × Hs pixels: s = the larger of PW ÷ bw and PH ÷ bh (the part covers its panel), x = (X + PW/2 + s × (Ws/2 − bx − bw/2)) ÷ W and y = (Y + PH/2 + s × (Hs/2 − by − bh/2)) ÷ H. Example: a 222×124 facecam at (12, 346) in an 854×480 stream, across the top of 1080×1920: s = 4.865, PH = 603, x = 1.869, y = −0.269.
- The assistant should add the clip once per panel at the same frames (
clip.add {at_frame, source}; av: "video" for all but the one whose sound is kept), each on its own video track, and place each with clip.set_transform {fit: "none", scale: s, x, y}, all in one edit.batch. - The assistant should order the tracks so that what spills out of a panel is hidden: a part whose picture spills into a neighbouring panel goes on a lower track than that neighbour's clip, whose picture must cover the spill.
- The assistant should read each clip's
placements in the result: source must be the part's box and visible its panel, give or take a pixel. Then it looks at a frame or two with render.frames and moves a panel's edge a few source pixels where a border, glow or overlay of the other part shows.
Decision table
| Situation | Do |
|---|
| The part's shape differs from its panel's | Scale by the larger ratio (step 2) and centre it; the panel shows the middle of the part |
| A part scaled up more than about 3 times | It will look soft; tell the user, or give that panel less of the frame |
| The game or main shot needs to follow the action | Pan it within its panel with x keyframes (pan-and-scan), the facecam fixed |
| Spill that no clip above covers | Change the track order, or give the panel above a larger picture (scale) so it covers the spill |
Required behavior
- Each panel filled, with no bars and no slice of another panel showing.
- Check
placements and one frame before exporting.