# How to Export Matching Plate and Mask Videos With VacePrep Lite

Prepare a Nuke shot for Wan2.1 VACE, map held frames back to the source timeline and check RGB and mask exports before generation.

By Paras Madan | 2026-11-24


If a video edit is supposed to replace a label, a mask that's one frame late can leave a strip of the old label visible every time the camera moves. Before trying another prompt, make sure the exported picture and mask actually line up.

[VacePrep Lite 1.0.0](https://github.com/RainesTsui/VACEPrep/commit/2f47f3ea44754b1103a346f8fc96ce74536d4f5c) was released November 23. It's a Nuke node that prepares matched RGB and mask videos for a Wan2.1 VACE workflow. It sets up the Writes in Nuke; you review and render them yourself. A short masked shot is enough to spot most handoff mistakes before they cost a generation.

## Start with one moving prop

Use an owned or synthetic 81-frame plate of a plain box on a desk. The camera moves past it, and you want to replace the blue label on the front with a white one. Draw a Roto mask with alpha over the blue label and make two edited stills: one for source frame 41 and one for the last frame, 81.

In an installation with the VacePrep node available, connect the plate, ordered stills and alpha mask. If the stills are separate Read nodes, the [VacePrep workflow guide](https://github.com/RainesTsui/VACEPrep/blob/main/Lite%20Version/Workflow.md) shows how to combine them as one ordered input. Verify the order against your keyframe numbers. Swapping the stills can look like a tracking issue even when the mask is correct.

## Track the real frames and the padded frames

Set the source range to `1-81`, keyframes to `41,81`, and the head and tail holds to two frames each. That gives you 85 frames, which fits the Wan `4n+1` length pattern. The extra frames are setup material. Keep a note of the original 81-frame range so you know what to trim after generation.

The [VacePrep design notes](https://github.com/RainesTsui/VACEPrep/blob/main/Lite%20Version/DesignNotes.md) explain two changes that affect frame numbers. The end keyframe moves to the outer tail hold, and the default head offset moves the exported range forward. In this example, source frame 41 should land on exported frame 43, while the final still should land on exported frame 85. The original shot content sits at exported frames 3 through 83. Verify those positions in your Writes rather than guessing from the file names.

## Check RGB and alpha separately

Review the RGB clip and the mask in the Nuke viewer. Where the old label needs to be hidden, the cover in the RGB should follow the mask as drawn. The generation mask can be slightly bigger, giving the replacement a margin to meet the surrounding box. At the two frames carrying edited stills, expect the mask to go black so the anchor stays intact.

Check a moving frame between the anchors too. Look for a mask that slides off the label, covers part of the desk or has the wrong polarity. If the RGB and mask use different crops or frame counts, fix that before changing the mask softness or trying another model.

## Render one matched version

Press **Build Outputs** and inspect the generated RGB and mask Writes. Render them with the same version, then open both movies and confirm their frame counts match. If you change settings, rebuild the Writes before rerendering. The node offers a new version when files already exist, which makes it easier to keep a revised RGB clip from being paired with an old mask.

Use that pair in your [Wan2.1 VACE workflow](https://github.com/Comfy-Org/docs/blob/main/tutorials/video/wan/vace.mdx). Once you have a result, trim away the holds and check the label while the camera is moving. If the white label leaks onto the desk for a few frames, go back to the matched RGB and mask first. They're quicker to fix than a clip you generated from the wrong inputs.

I'm Paras. I work at the intersection of AI, engineering and distribution.

I help AI teams explain technical products through clear documentation, practical guides and developer-focused content.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
