FUSION · FULL ARTICLE
CopyMetadata
Copies Foreground metadata into the Background image, with explicit collision precedence, whole-table replacement and clearing.
Overview
The node has two image inputs. Background supplies the output image and Foreground supplies metadata. Swapping the wires changes both data precedence and the picture that passes through.
Both Merge modes combine differently named fields. When a name collides, Replace Duplicates takes the Foreground value and Preserve Duplicates keeps the Background value. Preserve does not create two entries with the same name.
Replace uses the entire Foreground table: Background-only fields disappear. Clear discards output-image metadata and does not need a donor for that operation.
Metadata consists of named values. Z, Vector, Normal and RGBA pixel channels do not become metadata through this connection. Use CopyAux when the task is to transfer auxiliary channels.
Clearing a Flow image does not clean the source file, the Media Pool or every field of a future export container. Saver and downstream tools may add their own fields; inspect the final file separately.
When to use it
- Restore selected source-plate metadata to a composite.
- Merge two tables with deliberate precedence for matching names.
- Test whole-table replacement or clearing on a separate output branch.
- Diagnose values with SetMetadata and the Metadata subview, without external footage.
Article screenshots
Inputs & outputs
CopyMetadata · image and data donor
The two image inputs have different roles: Background provides pixels and Foreground provides metadata.
Changes the metadata table while retaining Background RGB and Alpha. For matching names, Merge selects BG or FG by mode; Replace uses the entire FG table and Clear discards metadata.
Inputs
- Background
Output picture
Receives: A 2D image with RGB/Alpha and its own metadata.
Inside the node: Its pixels pass through; Operation changes the accompanying table.
Typical sources: MediaIn · Merge · SetMetadata
Swapping it with Foreground changes the output picture.
- Foreground
Metadata donor
Receives: A 2D image carrying the table to transfer.
Inside the node: Supplies values for Merge and Replace; donor RGB/Alpha are not composited.
Typical sources: MediaIn · Loader · SetMetadata
Clear does not need it. Preserve Duplicates keeps a colliding Background value.
Outputs and destination
Output
Background pixels accompanied by the resulting metadata table.
Next step: MediaOut.Input · Saver.Input · other image nodes
Metadata is separate from auxiliary channels; use CopyAux for those.
- Output
- Background pixels accompanied by the resulting metadata table; a normal image stream for downstream tools.
Processing order
- Connect the intended picture to Background.
- For Merge/Replace, connect a metadata donor to Foreground.
- Choose a matching-name or whole-table policy.
- Inspect the Metadata subview and pass the image onward.
Restore plate information
composite → Background; source plate → Foreground; CopyMetadata → MediaOut
The picture comes from the composite while Operation transfers the source plate table under the chosen policy.
Verify matching field names and values rather than looking for an RGB change.
Parameters
CopyMetadata · table rules
First assign the output picture to Background and the donor to Foreground. Then decide name precedence or the fate of the complete table; verify the result in the Metadata subview.
- Inputs
- Background supplies pixels; Foreground supplies metadata.
- Merge
- Choose the winner when names match.
- Replace / Clear
- Decide the fate of the whole table.
- Verify
- Compare named values and unchanged RGB/Alpha.
Controls / Operation · Choose an operation
One setting controls the table, not individual RGB channels.
- Operation
Controls / Operation > OperationSelects the rule used to process the two metadata tables. The menu contains two Merge modes, Replace and Clear. First decide which image must remain at the output and connect it to Background; then choose the data policy.
Check / distinguish: Open the Metadata subview for Background, Foreground and output at the same frame. RGB alone cannot distinguish these modes.
Controls / Operation · Merge · Collision precedence
Both Merge modes keep unique names; they differ in the source of a colliding value.
- Merge (Replace Duplicates)
Controls / Operation · Merge > Merge (Replace Duplicates)Combines fields; Foreground wins a matching-name collision. Unique names from both tables remain. If Background has ReviewShot=BG and Foreground has ReviewShot=FG, the output ReviewShot becomes FG. This changes one key value, not the image.
Check / distinguish: Before applying it, inspect one colliding field and one unique field from each source.
- Merge (Preserve Duplicates)
Controls / Operation · Merge > Merge (Preserve Duplicates)Combines fields; Background wins a matching-name collision. Preserve Duplicates means retaining the existing Background value. It is not an array of two values: Foreground adds missing names without overwriting an existing name.
Check / distinguish: For a ReviewShot=BG/FG pair, expect BG; a unique Foreground field should still be added.
Controls / Operation · Replace / Clear · Replace and clear
Decide which fields must disappear and which downstream consumer will read the result.
- Replace
Controls / Operation · Replace / Clear > ReplaceReplaces the complete Background table with the Foreground table. Background-only fields are removed even when their names do not collide. Supply a verified donor: Replace transfers its entire table, not just one selected field.
Check / distinguish: Add a test ReviewTargetOnly field to Background and confirm that Replace removes it.
- Clear
Controls / Operation · Replace / Clear > ClearDiscards metadata from the passing image. Clear does not cut Alpha or zero RGB. It operates on metadata in the current image stream; Viewer format information and source-file data are separate concerns.
Check / distinguish: Confirm that your Review… fields disappear, then compare RGB and Alpha before and after the node.
Before adjusting the node
- The intended picture is connected to orange Background.
- A donor is connected to Foreground when the operation uses its table.
- The intended BG or FG precedence is selected for a matching name.
- Unique fields are checked separately from collisions.
- The Metadata subview and downstream consumer are checked at the same frame.
Reference documentation
- Blackmagic Design · DaVinci Resolve 21 · Copy Metadata
Both inputs, Merge precedence, whole-table replacement, Clear and Metadata subview.
Examples
One name: BG or FG precedence
Test both Merge rules with one colliding key and two unique fields while retaining Background pixels.
Starting conditions
DaVinci Resolve 21 · CopyMetadata 21 · editorial reference 2026-10-19 · DaVinci Resolve 21, Fusion page, native CopyMetadata and SetMetadata. · Target OS is not fixed; native verification is pending.
320 × 180 · 24 fps · 24 frames · Synthetic Backgrounds; compare RGB and Alpha before/after with the same Viewer transform. Inspect metadata separately in the Metadata subview.
- Only native Background, SetMetadata, CopyMetadata and MediaOut; enter values manually.
Source material
- BG
Background with known RGB and two SetMetadata nodes.
Use the specified synthetic source for the exact check.
- FG
A differently colored Background with two metadata fields.
Substitute a production donor after verifying the logic.
Nodes and connections
BG— Main picture · BackgroundBGKEY— BG key · SetMetadataBGONLY— BG only · SetMetadataFG— Donor image · BackgroundFGKEY— FG key · SetMetadataFGONLY— FG only · SetMetadataFX— Merge metadata · CopyMetadataOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Main picture (BG)Output | BG key (BGKEY)Background | image |
BG key (BGKEY)Output | BG only (BGONLY)Background | image |
BG only (BGONLY)Output | Merge metadata (FX)Background | image |
Donor image (FG)Output | FG key (FGKEY)Background | image |
FG key (FGKEY)Output | FG only (FGONLY)Background | image |
FG only (FGONLY)Output | Merge metadata (FX)Foreground | image |
Merge metadata (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Main picture (BG) / Image / Width / Height
[320,180]Fixes dimensions; disable Use Frame Format Settings if the fields are unavailable.
- Main picture (BG) / Color / Type
"Solid Color"A known solid source separates pixel behavior from metadata.
- Main picture (BG) / Color / Red / Green / Blue / Alpha
[0.15,0.25,0.35,1]Explicit values allow input/output comparison.
- BG key (BGKEY) / Controls / Field Name
"ReviewShot"A distinct name without spaces is easy to locate in the Metadata subview.
- BG key (BGKEY) / Controls / Field Value
"BG"An explicit test value shows which source won.
- BG only (BGONLY) / Controls / Field Name
"ReviewBGOnly"A distinct name without spaces is easy to locate in the Metadata subview.
- BG only (BGONLY) / Controls / Field Value
"keep"An explicit test value shows which source won.
- Donor image (FG) / Image / Width / Height
[320,180]Fixes dimensions; disable Use Frame Format Settings if the fields are unavailable.
- Donor image (FG) / Color / Type
"Solid Color"A known solid source separates pixel behavior from metadata.
- Donor image (FG) / Color / Red / Green / Blue / Alpha
[0.8,0.2,0.1,1]Explicit values allow input/output comparison.
- FG key (FGKEY) / Controls / Field Name
"ReviewShot"A distinct name without spaces is easy to locate in the Metadata subview.
- FG key (FGKEY) / Controls / Field Value
"FG"An explicit test value shows which source won.
- FG only (FGONLY) / Controls / Field Name
"ReviewFGOnly"A distinct name without spaces is easy to locate in the Metadata subview.
- FG only (FGONLY) / Controls / Field Value
"add"An explicit test value shows which source won.
- Merge metadata (FX) / Controls / Operation
"Merge (Replace Duplicates)"The first test takes the matching-name value from Foreground.
Reproduce the example
- Create a 320×180 composition at 24 fps, frames 0–23. Build the blue BG → BGKEY → BGONLY branch and set ReviewShot=BG and ReviewBGOnly=keep.
This is the image that must pass through CopyMetadata; two fields distinguish a collision from a unique name.
Check: BGONLY Metadata subview contains both fields; the image Alpha is1.
- Build the orange FG → FGKEY → FGONLY branch. Set ReviewShot=FG and ReviewFGOnly=add, then inspect FGONLY in the Metadata subview.
ReviewShot has a matching name, while ReviewFGOnly is absent from Background.
Check: ReviewShot=FG and ReviewFGOnly=add; the donor picture is visibly different from BG.
- Connect BGONLY to Background, FGONLY to Foreground and FX to MediaOut. Choose Merge (Replace Duplicates) and inspect FX at frame 12.
The ports determine picture and donor; Operation decides the data collision.
Check: ReviewShot=FG, ReviewBGOnly=keep and ReviewFGOnly=add. RGB remains the blue BG image.
- At the same frame, temporarily choose Merge (Preserve Duplicates). Inspect the table, then restore Merge (Replace Duplicates).
Preserve changes the winner for a matching name; unique fields are still merged.
Check: With Preserve, ReviewShot=BG and both unique fields remain. After restoring the first mode, ReviewShot is FG again; RGB/Alpha are unchanged.
Expected result
- Output (OUT) · frame 12
After restoring Replace Duplicates, the table contains ReviewShot=FG, ReviewBGOnly=keep and ReviewFGOnly=add; RGB=(0.15,0.25,0.35).
Alpha: Alpha=1 throughout, matching BG.
When the result differs
- The output shows the orange donor image.
Cause: Background and Foreground are swapped.
Correction: Connect BGONLY to the orange Background FX socket and FGONLY to the green Foreground socket.
- Preserve shows only one ReviewShot.
Cause: This is the expected matching-name policy, not a missing second array value.
Correction: Verify the BG value and the presence of both unique fields.
References
- Blackmagic Design · DaVinci Resolve 21 · Copy Metadata
Chapter110 pp2621–2623: orange Background carries output pixels, green Foreground supplies metadata; Merge Replace Duplicates takes conflicting values from Foreground, Merge Preserve Duplicates from Background; Replace uses the entire Foreground table and Clear discards metadata. SetMetadata authors named values for the reproducible tests. Foreground is conditional on a copying operation and is unnecessary for Clear. Port IDs are semantic teaching addresses.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design · Resolve 21 · setmetadata
Printed / PDF pages 2622, 2623; current supplied Inspector PNG labels reviewed separately.
Replace: new data, same pixels
Demonstrate removal of a Background-only field under Replace while the semi-transparent Background remains unchanged.
Starting conditions
DaVinci Resolve 21 · CopyMetadata 21 · editorial reference 2026-10-19 · DaVinci Resolve 21, Fusion page, native CopyMetadata and SetMetadata. · Target OS is not fixed; native verification is pending.
320 × 180 · 24 fps · 24 frames · Synthetic Backgrounds; compare RGB and Alpha before/after with the same Viewer transform. Inspect metadata separately in the Metadata subview.
- Only native Background, SetMetadata, CopyMetadata and MediaOut; enter values manually.
Nodes and connections
BG— Half-alpha black · BackgroundBGKEY— Target field · SetMetadataFG— Red donor · BackgroundFGKEY— Donor field · SetMetadataFX— Replace table · CopyMetadataOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Half-alpha black (BG)Output | Target field (BGKEY)Background | image |
Target field (BGKEY)Output | Replace table (FX)Background | image |
Red donor (FG)Output | Donor field (FGKEY)Background | image |
Donor field (FGKEY)Output | Replace table (FX)Foreground | image |
Replace table (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Half-alpha black (BG) / Image / Width / Height
[320,180]Fixes dimensions; disable Use Frame Format Settings if the fields are unavailable.
- Half-alpha black (BG) / Color / Type
"Solid Color"A known solid source separates pixel behavior from metadata.
- Half-alpha black (BG) / Color / Red / Green / Blue / Alpha
[0,0,0,0.5]Explicit values allow input/output comparison.
- Target field (BGKEY) / Controls / Field Name
"ReviewTargetOnly"A distinct name without spaces is easy to locate in the Metadata subview.
- Target field (BGKEY) / Controls / Field Value
"old"An explicit test value shows which source won.
- Red donor (FG) / Image / Width / Height
[320,180]Fixes dimensions; disable Use Frame Format Settings if the fields are unavailable.
- Red donor (FG) / Color / Type
"Solid Color"A known solid source separates pixel behavior from metadata.
- Red donor (FG) / Color / Red / Green / Blue / Alpha
[1,0,0,1]Explicit values allow input/output comparison.
- Donor field (FGKEY) / Controls / Field Name
"ReviewDonorOnly"A distinct name without spaces is easy to locate in the Metadata subview.
- Donor field (FGKEY) / Controls / Field Value
"new"An explicit test value shows which source won.
- Replace table (FX) / Controls / Operation
"Replace"The complete donor table replaces the target table.
Reproduce the example
- Create 320×180 at 24 fps, frames 0–23. Set BG RGB=0/0/0 and Alpha=0.5, then add ReviewTargetOnly=old through BGKEY.
Black RGB avoids straight/premultiplied color ambiguity; Alpha makes accidental picture replacement apparent.
Check: BGKEY has RGB=0 and Alpha=0.5; the test field is present.
- Create opaque red FG and add only ReviewDonorOnly=new through FGKEY. Confirm that the donor has no ReviewTargetOnly field.
Different names demonstrate that Replace removes more than colliding fields.
Check: The donor table contains ReviewDonorOnly=new and its Alpha is1.
- Connect BGKEY to Background and FGKEY to Foreground, then choose Replace. View FX at frame 12 in RGB, Alpha and the Metadata subview.
The complete metadata table comes from Foreground, but the output picture remains Background.
Check: ReviewTargetOnly is absent and ReviewDonorOnly=new. The frame is black with Alpha=0.5, not red with Alpha=1.
- Temporarily choose either Merge mode: both unique fields should remain. Restore Replace and confirm that ReviewTargetOnly is removed again.
This comparison separates whole-table replacement from matching-name precedence.
Check: All modes retain RGB=0 and Alpha=0.5; only the table changes.
Expected result
- Output (OUT) · frame 12
ReviewDonorOnly=new is present and ReviewTargetOnly is absent. RGB remains(0,0,0).
Alpha: Alpha remains0.5 across the frame.
When the result differs
- ReviewTargetOnly remains.
Cause: Merge is selected or the Viewer is showing BGKEY instead of FX.
Correction: Choose Replace and ensure the Viewer shows FX at the same frame.
- A downstream-required field disappeared.
Cause: Replace removed all Background-only fields.
Correction: If unique fields must survive, deliberately choose a Merge mode.
References
- Blackmagic Design · DaVinci Resolve 21 · Copy Metadata
Chapter110 pp2621–2623: orange Background carries output pixels, green Foreground supplies metadata; Merge Replace Duplicates takes conflicting values from Foreground, Merge Preserve Duplicates from Background; Replace uses the entire Foreground table and Clear discards metadata. SetMetadata authors named values for the reproducible tests. Foreground is conditional on a copying operation and is unnecessary for Clear. Port IDs are semantic teaching addresses.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design · Resolve 21 · setmetadata
Printed / PDF pages 2622, 2623; current supplied Inspector PNG labels reviewed separately.
Clear without a donor
Clear authored test fields on one branch and distinguish metadata from RGB, Alpha and the source file.
Starting conditions
DaVinci Resolve 21 · CopyMetadata 21 · editorial reference 2026-10-19 · DaVinci Resolve 21, Fusion page, native CopyMetadata and SetMetadata. · Target OS is not fixed; native verification is pending.
320 × 180 · 24 fps · 24 frames · Synthetic Backgrounds; compare RGB and Alpha before/after with the same Viewer transform. Inspect metadata separately in the Metadata subview.
- Only native Background, SetMetadata, CopyMetadata and MediaOut; enter values manually.
Nodes and connections
BG— Main picture · BackgroundTAG1— Shot field · SetMetadataTAG2— Owner field · SetMetadataFX— Clear metadata · CopyMetadataOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Main picture (BG)Output | Shot field (TAG1)Background | image |
Shot field (TAG1)Output | Owner field (TAG2)Background | image |
Owner field (TAG2)Output | Clear metadata (FX)Background | image |
Clear metadata (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Main picture (BG) / Image / Width / Height
[320,180]Fixes dimensions; disable Use Frame Format Settings if the fields are unavailable.
- Main picture (BG) / Color / Type
"Solid Color"A known solid source separates pixel behavior from metadata.
- Main picture (BG) / Color / Red / Green / Blue / Alpha
[0.1,0.2,0.3,1]Explicit values allow input/output comparison.
- Shot field (TAG1) / Controls / Field Name
"ReviewShot"A distinct name without spaces is easy to locate in the Metadata subview.
- Shot field (TAG1) / Controls / Field Value
"TEST"An explicit test value shows which source won.
- Owner field (TAG2) / Controls / Field Name
"ReviewOwner"A distinct name without spaces is easy to locate in the Metadata subview.
- Owner field (TAG2) / Controls / Field Value
"COURSE"An explicit test value shows which source won.
- Clear metadata (FX) / Controls / Operation
"Clear"Discards the current image metadata table without requiring a donor.
Reproduce the example
- Create 320×180 at 24 fps, frames 0–23. Build Background and two SetMetadata nodes with ReviewShot=TEST and ReviewOwner=COURSE.
Authored names make the clearing check unambiguous.
Check: Both fields are present on TAG2 at frame 12.
- Connect TAG2 to FX Background and leave Foreground disconnected. Choose Clear and connect FX to MediaOut.
Clear removes passing-image data rather than copying a donor table.
Check: FX outputs an image; the disconnected Foreground is not an error for this operation.
- At frame 12, compare TAG2 and FX in the Metadata subview, RGB and Alpha. Refresh the Viewer if it shows a cached result.
Viewer format and dimensions are separate from authored metadata name/value pairs.
Check: ReviewShot and ReviewOwner disappear after FX; RGB=(0.1,0.2,0.3) and Alpha=1 remain.
- For a later file output, inspect the file separately: a downstream tool may add its own metadata. This exercise checks the stream before and after FX.
Clear does not edit the Media Pool or rewrite source files on disk.
Check: Do not generalize clearing one image branch to all project or container metadata.
Expected result
- Output (OUT) · frame 12
Authored ReviewShot and ReviewOwner are absent after Clear; source RGB=(0.1,0.2,0.3) remains.
Alpha: Alpha=1, as before Clear.
When the result differs
- The Viewer still shows width/height.
Cause: Image format information does not prove that the authored metadata table survived.
Correction: Look for the specific ReviewShot and ReviewOwner names in the selected FX Metadata subview.
- The image disappeared.
Cause: Background is disconnected or another node is being viewed; Clear itself does not erase pixels.
Correction: Check TAG2.Output → FX.Background and FX.Output → OUT.Input.
References
- Blackmagic Design · DaVinci Resolve 21 · Copy Metadata
Chapter110 pp2621–2623: orange Background carries output pixels, green Foreground supplies metadata; Merge Replace Duplicates takes conflicting values from Foreground, Merge Preserve Duplicates from Background; Replace uses the entire Foreground table and Clear discards metadata. SetMetadata authors named values for the reproducible tests. Foreground is conditional on a copying operation and is unnecessary for Clear. Port IDs are semantic teaching addresses.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Printed pp. 9–12, 145–150; PDF pp. 29–32, 165–170 (zero-based).
- Blackmagic Design · Resolve 21 · setmetadata
Printed / PDF pages 2622, 2623; current supplied Inspector PNG labels reviewed separately.
Other outlines from the article
Two Merge precedence rules
Test keys separate matching-name collisions from unique fields.
- Background
- SetMetadata
- CopyMetadata
- MediaOut
Replace the complete table
The donor transfers metadata while the picture remains Background.
- Background + metadata donor
- CopyMetadata Replace
- MediaOut
Clear one branch
Clear removes test fields without changing RGB or Alpha.
- Background
- SetMetadata
- CopyMetadata Clear
- MediaOut
Mistakes
- Treating Preserve Duplicates as storing two values for one key: it keeps the Background value.
- Treating Foreground as a Merge layer and expecting its pixels to be composited.
- Choosing Replace and losing Background-only fields.
- Checking metadata only by looking at the picture, or treating Clear as a Media Pool cleanup.
Tips
- Use distinctive test names without spaces: ReviewShot, ReviewBGOnly and ReviewFGOnly.
- Verify the mode with synthetic SetMetadata fields before connecting a production donor.
- Use CopyAux for auxiliary channels and SetMetadata to author an individual named value.
Workflow order
- Feed the intended output picture into Background and view it.
- For Merge or Replace, connect the donor image to Foreground and inspect its metadata.
- Choose Operation according to collision precedence and whether unique fields must survive.
- At the same frame, compare the two input tables and output table in the Metadata subview.
- Check RGB and Alpha, then the node or file that consumes the fields.
