FUSION · FULL ARTICLE
Switch
Switch routes one selected source to its output. Config defines choices and labels; Source selects a branch. Align dimensions, timing and data type in the branches themselves.
Overview
Switch has one output and a configurable number of inputs. Source selects the current branch as a whole. Two connected sources are neither added nor averaged; two solid Background nodes make this easy to observe.
The Inspector screenshots show Input0/Input1, Number of Inputs 2 and Name 0/Name 1. This interface uses zero-based numbering. The input-count slider reaches 9, while the manual permits larger numbers by typing them. The article diagram’s two inputs are an example configuration, not a node limit.
Names such as Original, Processed, Proxy or Final clarify the choice but do not replace checking the wires. After renaming an input, click its Source button and compare the output with that branch. Review existing keys and expressions before removing choices.
Animating Source times the change of variants. For an exact hard cut, inspect adjacent frames such as 47 and 48. Build a dissolve with Dissolve or a suitable mix: a single already-selected stream does not retain both branches for a later crossfade.
Switch does not align source dimensions, frame correspondence or color space. Proxy and final footage should represent the same moment on the same canvas before switching. Put shared processing after Switch when it should apply equally to every version.
The manual also describes Switch with Shapes and 3D. Preserve the appropriate data domain in those graphs: Shape needs sRender for rasterization and a 3D scene needs Renderer3D. The teaching ports and all three exercises here cover two image branches.
When to use it
- A/B comparison of prepared variants.
- A graphic change on an exact frame.
- Selection of aligned proxy/final sources.
- One shared processing chain after version selection.
Article screenshots
Inputs & outputs
Switch · inputs and output
Align the branches, label the choices, then select one Source. The output carries the selected stream’s content.
Switch is a routing node. Connect alternative branches, name them in Config and choose one in Controls. Hard switching can be timed to frames; displaying several layers together requires a separate composite.
Inputs
- Input0
First choice
Receives: The first image branch of the two-input example.
Inside the node: Passes through when Source selects Name 0.
Typical sources: Background · MediaIn · Resize · TextPlus
The selected state needs an available source. This is not a compositing Background port.
- Input1
Second choice
Receives: An alternative image branch in the same data domain.
Inside the node: Becomes the output branch when Name 1 is selected.
Typical sources: Background · MediaIn · Resize · TextPlus
Align dimensions, timing and color space. Add further choices in Config.
Outputs and destination
Output
The selected image branch in the illustrated configuration, without mixing alternatives.
Next step: MediaOut · Merge
Other supported node domains need an appropriate downstream chain; this diagram covers images.
- Output
- The selected image branch in the illustrated configuration, without mixing alternatives. Other supported node domains need an appropriate downstream chain; this diagram covers images.
Processing order
- Input0 / Input1 → Source selects one branch → Output.
- Config: count and names. Output does not normalize dimensions, timing or data type.
Select a branch without mixing
Background A / B → Switch → MediaOut
Align the branches, label the choices, then select one Source. The output carries the selected stream’s content.
Align the branches, label the choices, then select one Source. The output carries the selected stream’s content.
Parameters
Switch · controls
Align the branches, label the choices, then select one Source. The output carries the selected stream’s content.
- Routing
- One selected stream at the output.
- Config
- Choice count and labels.
- Timing
- The exact hard-switch frame.
- Format
- A common canvas, timing and data type.
Source · Branch selection
What passes through the output now.
- Source
Source > SourceSelects one source for the output. The buttons display names configured in Config. Input0 and Input1 in the Inspector example are two choices, not Background/Foreground blend inputs. Selection passes the current frame of one branch.
Check / distinguish: Compare two solid Background sources; the output should match the selected color exactly.
- Selected input must exist
Source → selected branchAn input is needed when Source selects it. A two-input illustration does not mean both wires are mandatory in every state.
Check / distinguish: Select each prepared choice and check frame availability.
Config · Input configuration
Count, names and choice configuration.
- Number of Inputs
Config > Number of InputsSets the number of exposed inputs. The illustrated configuration uses 2. The manual describes a slider through 9, with larger values entered manually. This counts choices rather than simultaneously visible layers.
Check / distinguish: Before reducing the input count, inspect connections and Source keys that use the choices being removed.
- Name 0 / Name 1
Config > Name 0 / Name 1Gives the choices meaningful labels. Name 0 labels the first Input0 choice; Name 1 labels Input1. Renaming changes the displayed choice; it does not by itself move wires or convert the branch data type.
Check / distinguish: After renaming, select each button and check it against the intended source in the Viewer.
- Config
Config > ConfigSeparates input configuration from current selection. Config holds Number of Inputs and Name fields. Controls holds Source. Finish structural changes before animating Source so timed choices refer to a clear set of branches.
Check / distinguish: For the first test, keep two named inputs, connect both, then configure switching.
Timing · Switching by frame
Source and adjacent cut frames.
- Adjacent-frame cut
Source keys → frames 47 / 48Frames immediately before and after switching reveal an off-by-one error.
Check / distinguish: Verify A at 47 and B at 48, without a mixed intermediate image.
Branch format · Branch alignment
Dimensions, timing and downstream domain.
- No automatic normalization
Upstream Resize / source timingSwitch passes the selected branch; align a proxy to the intended canvas and timing beforehand.
Check / distinguish: Compare dimensions and a feature position for each choice.
- Shapes and 3D remain typed
Switch → sRender / Renderer3DShape and 3D require the corresponding downstream renderer. This article’s image practices do not model conversion of those domains.
Check / distinguish: Trace the data domain from both branches to the final image.
Before adjusting the node
- Each Source label has been checked against its wire.
- The input count matches the actual choices.
- The selected input is connected and has the required frame.
- An animated cut has been checked on two adjacent frames.
- Dimensions, color space and data type are aligned before output.
Reference documentation
- Blackmagic Design · Resolve 21 · Switch
Source and Config: dynamic input count, choice labels, slider through 9 and manual higher counts; Shape/3D support. The article diagram shows a two-input image configuration.
Examples
Two colors and input names
Verify Source, Input0/Input1 numbering and the absence of blending.
Starting conditions
DaVinci Resolve 21 · Switch 21 · editorial reference 2026-10-18 · DaVinci Resolve 21 with Switch available. · Target OS is not fixed; native verification is pending.
1920 × 1080 · 24 fps · 120 frames · Lesson values use 0–1 in a known input space with a fixed Viewer transform. Source dimensions, start frame and alpha are defined in the exercise assets.
- Create the sources or prepare the described files; no prebuilt .comp/.setting files or media are included.
Source material
- A
Two Background nodes created inside a 1920×1080 composition with the listed opaque colors.
Use other clearly different colors, keeping alpha at 1 for both.
Nodes and connections
A— Warm · BackgroundB— Cool · BackgroundFX— Color choice · SwitchOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Warm (A)Output | Color choice (FX)Input0 | image |
Cool (B)Output | Color choice (FX)Input1 | image |
Color choice (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Warm (A) / Controls / Color
[0.8,0.15,0.05,1]A clearly identifiable first color.
- Cool (B) / Controls / Color
[0.05,0.2,0.8,1]A clearly identifiable second color.
- Color choice (FX) / Config / Number of Inputs
2Two prepared choices.
- Color choice (FX) / Config / Name 0
"Warm"The first input label.
- Color choice (FX) / Config / Name 1
"Cool"The second input label.
- Color choice (FX) / Controls / Source
"Cool"The final selection is the second input.
Reproduce the example
- Create two Background nodes with the listed colors.
A simple source makes selection visible without analyzing an effect.
Check: Both sources are 1920×1080 with alpha 1.
- In Config set 2 inputs, Name 0=Warm and Name 1=Cool. Connect A to Input0 and B to Input1.
Associate displayed labels with actual wires.
Check: Controls displays both new labels.
- Select Warm and Cool in turn, then leave Cool selected.
Source selects one entire branch.
Check: Neither state produces an averaged third color.
- Connect MediaOut and compare its RGB/alpha with B at frame 48.
Check the selected stream rather than only the highlighted button.
Check: The final color and alpha match B.
Expected result
- Output (OUT) · frame 48
The whole output matches Cool; Warm remains a connected alternative.
Alpha: Verify alpha=1 on the opaque result.
When the result differs
- Warm displays the cool color.
Cause: The label and wire do not match.
Correction: Check Input0/Input1 against Name 0/Name 1.
References
- 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 · Switch
Printed pp.2655–2656: dynamic input count, Source, input names, slider through nine with manual entry above nine, and support for Shapes/3D. Two supplied Inspector PNGs confirm Input0/Input1 and Config fields. The semantic registry intentionally describes only the illustrated two-image configuration; neither input is universally required independently of Source. Supplied article socket colors are retained; native Flow colors and serialized IDs are not certified.
A title change on frame 48
Verify hard Source switching on adjacent frames while preserving title alpha.
Starting conditions
DaVinci Resolve 21 · Switch 21 · editorial reference 2026-10-18 · DaVinci Resolve 21 with Switch available. · Target OS is not fixed; native verification is pending.
1920 × 1080 · 24 fps · 120 frames · Lesson values use 0–1 in a known input space with a fixed Viewer transform. Source dimensions, start frame and alpha are defined in the exercise assets.
- Create the sources or prepare the described files; no prebuilt .comp/.setting files or media are included.
Source material
- A
Create two Text+ nodes and a Background in the composition. Both titles remain available throughout frames 0–119 at 24 fps.
Replace them with two transparent logos of matching dimensions and duration.
Nodes and connections
A— Title A · TextPlusB— Title B · TextPlusFX— Title switch · SwitchBG— Plate · BackgroundMIX— Title on plate · MergeOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Title A (A)Output | Title switch (FX)Input0 | image |
Title B (B)Output | Title switch (FX)Input1 | image |
Title switch (FX)Output | Title on plate (MIX)Foreground | image |
Plate (BG)Output | Title on plate (MIX)Background | image |
Title on plate (MIX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Title A (A) / Text / Styled Text
"ALPHA"The first title.
- Title B (B) / Text / Styled Text
"BETA"The second title.
- Title A (A) / Text / Size
0.12Match both title sizes.
- Title B (B) / Text / Size
0.12Match both title sizes.
- Title A (A) / Shading / Color
[1,0.7,0.2,1]A distinct ALPHA color.
- Title B (B) / Shading / Color
[0.2,0.7,1,1]A distinct BETA color.
- Plate (BG) / Controls / Color
[0.025,0.025,0.025,1]An opaque plate.
- Title switch (FX) / Config / Number of Inputs
2Two prepared choices.
- Title switch (FX) / Config / Name 0
"ALPHA"The first input label.
- Title switch (FX) / Config / Name 1
"BETA"The second input label.
- Title switch (FX) / Controls / Source
"ALPHA"· frame 0An explicit choice on a check frame.
- Title switch (FX) / Controls / Source
"ALPHA"· frame 47An explicit choice on a check frame.
- Title switch (FX) / Controls / Source
"BETA"· frame 48An explicit choice on a check frame.
- Title switch (FX) / Controls / Source
"BETA"· frame 95An explicit choice on a check frame.
- Title switch (FX) / Controls / Source
"ALPHA"· frame 96An explicit choice on a check frame.
Reproduce the example
- Create both titles at the same size and connect Switch to Merge Foreground, with a separate Background plate.
Inspect the selected title’s transparency before opaque compositing.
Check: Both Text+ sources exist at frames 47 and 48 with transparent backgrounds.
- Set two inputs named ALPHA and BETA and verify each Source button.
The keyed labels must refer to the prepared choices.
Check: ALPHA selects A; BETA selects B.
- Animate Source with the listed keys: ALPHA at 0/47, BETA at 48/95 and ALPHA at 96.
Adjacent check frames establish the exact change boundaries.
Check: A remains through frame 47; B appears at 48. Also inspect 95/96.
- Inspect Switch RGB/alpha directly, then review frames 47, 48, 95 and 96 at MediaOut.
Source selection should not turn into a composite of both titles.
Check: Exactly one title is visible; the composited plate stays opaque.
Expected result
- Output (OUT) · frame 47
ALPHA is visible.
Alpha: Verify alpha=1 on the opaque result.
- Output (OUT) · frame 48
BETA is visible without an intermediate ALPHA overlay.
Alpha: Verify alpha=1 on the opaque result.
- Output (OUT) · frame 96
Selection has returned to ALPHA.
Alpha: Verify alpha=1 on the opaque result.
When the result differs
- The title changes one frame early.
Cause: A key is on an adjacent frame or the range uses a different local origin.
Correction: Check composition frame numbers and the 47/48 pair.
References
- 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 · Switch
Printed pp.2655–2656: dynamic input count, Source, input names, slider through nine with manual entry above nine, and support for Shapes/3D. Two supplied Inspector PNGs confirm Input0/Input1 and Config fields. The semantic registry intentionally describes only the illustrated two-image configuration; neither input is universally required independently of Source. Supplied article socket colors are retained; native Flow colors and serialized IDs are not certified.
A proxy with an aligned canvas
Align a 540p proxy with a 1080p final source before selecting Source, then check dimensions and frame correspondence.
Starting conditions
DaVinci Resolve 21 · Switch 21 · editorial reference 2026-10-18 · DaVinci Resolve 21 with Switch available. · Target OS is not fixed; native verification is pending.
1920 × 1080 · 24 fps · 120 frames · Lesson values use 0–1 in a known input space with a fixed Viewer transform. Source dimensions, start frame and alpha are defined in the exercise assets.
- Create the sources or prepare the described files; no prebuilt .comp/.setting files or media are included.
Source material
- A
A 960×540 proxy of one 24 fps clip, frames 0–119, without cropping and with the same encoding and start frame as B.
Prepare the proxy by downscaling your own 1920×1080 clip; do not use another take.
- B
The 1920×1080 original of the same clip; an opaque image with an identifiable moving feature.
Both versions must share frame correspondence, 16:9 aspect and square pixels.
Nodes and connections
A— Proxy 540p · MediaInSIZE— Canvas 1080p · ResizeB— Final 1080p · MediaInFX— Version · SwitchOUT— Output · MediaOut
| Source | Destination | Data |
|---|---|---|
Proxy 540p (A)Output | Canvas 1080p (SIZE)ImageInput | image |
Canvas 1080p (SIZE)ImageOutput | Version (FX)Input0 | image |
Final 1080p (B)Output | Version (FX)Input1 | image |
Version (FX)Output | Output (OUT)Input | image |
Graph output: Output (OUT)
Parameter values
- Canvas 1080p (SIZE) / Controls / Auto Resolution
falseUse explicit output dimensions.
- Canvas 1080p (SIZE) / Controls / Width
1920A common canvas before Switch.
- Canvas 1080p (SIZE) / Controls / Height
1080A common canvas before Switch.
- Canvas 1080p (SIZE) / Controls / Filter Method
"Linear"A fixed filter for the reference proxy.
- Version (FX) / Config / Number of Inputs
2Two prepared choices.
- Version (FX) / Config / Name 0
"Proxy"The first input label.
- Version (FX) / Config / Name 1
"Final"The second input label.
- Version (FX) / Controls / Source
"Final"Select the full-resolution source for the final state.
Reproduce the example
- Route the proxy through Resize, disable Auto Resolution and set 1920×1080 with Linear.
Switch does not perform this alignment automatically.
Check: SIZE and B have the same output canvas.
- Connect SIZE to Input0 and B to Input1; name the choices Proxy and Final.
Version selection now leaves downstream dimensions stable.
Check: Check both wires after renaming.
- Toggle Proxy/Final at frames 24, 48 and 72; leave Final selected afterward.
Matching frame rates alone do not establish timing alignment.
Check: The object position matches, although the proxy has less detail.
- Inspect MediaOut and confirm 1920×1080, Final selection and opaque alpha.
Check the actual format and final version.
Check: Returning to Proxy changes detail, not canvas size or event timing.
Expected result
- Output (OUT) · frame 48
The final version fills a 1920×1080 canvas; switching preserves frame correspondence and object position.
Alpha: Verify alpha=1 on the opaque result.
When the result differs
- The object jumps when choosing a version.
Cause: Proxy and final differ in crop, aspect or time origin.
Correction: Align the branches before Switch and repeat the three-frame check.
References
- 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 · Switch
Printed pp.2655–2656: dynamic input count, Source, input names, slider through nine with manual entry above nine, and support for Shapes/3D. Two supplied Inspector PNGs confirm Input0/Input1 and Config fields. The semantic registry intentionally describes only the illustrated two-image configuration; neither input is universally required independently of Source. Supplied article socket colors are retained; native Flow colors and serialized IDs are not certified.
Other outlines from the article
Two colors and input names
Verify Source, Input0/Input1 numbering and the absence of blending.
- Background
- Background
- Switch
- MediaOut
A title change on frame 48
Verify hard Source switching on adjacent frames while preserving title alpha.
- TextPlus
- TextPlus
- Switch
- Background
- Merge
- MediaOut
A proxy with an aligned canvas
Align a 540p proxy with a 1080p final source before selecting Source, then check dimensions and frame correspondence.
- MediaIn
- Resize
- MediaIn
- Switch
- MediaOut
Mistakes
- Using Switch to blend two pictures.
- Treating 9 as a hard input limit.
- Renaming a choice without checking its wire.
- Switching between mismatched dimensions or timing.
- Sending Shape/3D directly to an image sink without rendering.
Tips
- Use two clearly different colors for diagnosis, then restore the real sources.
- Use two adjacent frames as the hard-cut acceptance check.
- Align a proxy before Switch and compare it on the same frame.
- Measure actual processing time instead of assuming an unselected branch is never evaluated.
Workflow order
- Define one data domain and a common output canvas.
- Set input count and short names in Config.
- Connect the sources and verify each Source button.
- Align branch size, color space and timing.
- For animated selection, inspect frames immediately before and after the cut.
- Inspect output RGB and alpha through the downstream chain.
