FUSION · FULL ARTICLE
Ranges
Converts an image into a single-channel Shadows, Midtones or Highlights mask. Shadow/highlight boundaries are defined by four spline points with Bezier falloff, while Midtones are derived from the remaining range.
Overview
The key difference between Ranges and a simple Bitmap Mask is that selection is not driven by a single Low/High threshold. Blackmagic describes Ranges as a spline-based selection of low, mid and high ranges, similar to the Ranges controls in Color Corrector. This gives independent control over where shadows and highlights begin/end and how their Bezier falloff behaves.
Ranges is a mask tool. The orange Image input accepts the 2D image whose values are analyzed, while the output is a single-channel mask. Source RGB does not pass through Ranges as a normal image stream, so a plate being graded or blurred must travel separately to ColorCorrector/Blur/Glow while Ranges.Mask goes to the target Effect Mask.
The node also has an optional blue Effect Mask input. It does not replace Image: it is a separate mask branch used to spatially limit or combine with the tonal matte generated by Ranges. When this input is connected, Paint Mode appears in the Inspector and defines how the incoming mask and the Ranges matte are combined.
The Shadows, Midtones and Highlights buttons in the Range row choose WHICH computed range is output as the mask. They do not switch between three independent spline editors and they do not mean 'edit only this curve.' This is a critical correction to the previous article wording.
Blackmagic describes white pixels in the selected range as fully included, black pixels as excluded and gray pixels as partially included. A gray matte is therefore not automatically dirty or incorrect; it is the expected falloff at a range boundary.
The Spline Display has four main spline points, each with a Bezier handle. The two upper points define the starts of the shadow and highlight ranges, while the two lower points define their ends. The Bezier handles shape the falloff between included and excluded values.
Midtones do not have their own independent boundary controls. They are defined as everything left after the shadow and highlight ranges are applied. Widening Shadows or Highlights therefore reduces Midtones by design rather than through an accidental side effect.
The X and Y fields below the Spline Display belong to the currently selected spline point or Bezier handle and allow precise numeric positioning. They are not the same controls as Center X/Y: Center places the ranges mask/source relative to the output raster, while spline X/Y changes tonal boundaries inside the graph.
Simple and Smooth are not persistent interpolation modes. Blackmagic calls them presets: Simple returns the spline to a straightforward linear-weighted configuration, while Smooth creates a more natural falloff. After applying either preset, the spline points can still be edited manually.
Channel selects the signal from which the ranges are derived. The captured Resolve Inspector verifies Luminance, Red, Green, Blue and Alpha. Luminance is a sensible tonal starting point, but an individual RGB channel can separate a subject much more cleanly; Alpha is useful when source transparency itself carries useful structure.
Level is the global mask-coverage level. Blackmagic's common mask controls define 1.0 as full mask level; lowering it reduces the value of every covered mask pixel. It is not a contrast control and it should not be used in place of editing the spline boundaries.
Soft Edge feathers the resulting mask, while Filter selects the kernel used for that filtering. The captured Inspector offers Box, Bartlett, Multi-box, Gaussian and Fast Gaussian. Build the correct tonal selection first and add Soft Edge afterward so filtering does not hide a bad range definition.
Invert flips the final mask. This differs from Paint Mode = Invert when an external mask is connected: the Invert checkbox reverses the Ranges result as a whole, while the combine mode describes the relationship between two mask streams.
Center X/Y and Fit Input matter when source resolution or aspect differs from mask output. Crop places the source according to Center and clips what falls beyond the mask frame; Stretch fills X and Y independently and can distort; Width/Height scale uniformly to the selected dimension, while Inside/Outside perform proportional fitting relative to the mask frame.
Output Size on the Image tab sets mask-output resolution. The captured Resolve Inspector shows Default, Custom and Source. Source follows the input image size, Default uses the composition/default context, and Custom exposes the common-mask size controls. If the matte is offset or scaled unexpectedly, compare source, mask and target resolutions before compensating elsewhere.
Clipping Mode controls domain-of-definition behavior. The captured Inspector shows None and Frame. It becomes most relevant with Soft Edge and other operations that need samples near or beyond the current DoD; it is not simply an image crop mode.
Paint Mode appears only when Effect Mask is connected. Documented mask-combine modes include Merge, Add, Subtract, Minimum, Maximum, Average, Multiply, Replace, Invert, Copy and Ignore. Multiply is a useful first test when intersecting a tonal range with a spatial Rectangle/Ellipse, but the correct mode depends on the intended mask math.
The most reliable diagnostic view is Ranges.Mask itself in grayscale. If you inspect only the final Glow or ColorCorrector, an overly broad range, a poor channel choice and a bad spline falloff can be mistaken for problems in the downstream effect.
A stable setup order is Image → Channel → output Range → spline/Bezier boundaries → inspect white/gray/black matte → Level/Soft Edge/Filter → optional Effect Mask/Paint Mode → Output Size/Clipping. This keeps tonal selection, mask combination and raster handling as separate decisions.
Ranges does not understand object identity. If skin, sky and a wall share similar values in the chosen Channel, all of them may enter the same range. In that case, constrain the tonal matte spatially through Effect Mask or switch to a keying method better suited to the discrimination problem.
For animated shots, validate the spline matte on multiple frames before keyframing more controls. Narrow ranges on noisy or compressed footage can flicker; widen the falloff, try another Channel or preprocess the analysis source lightly before adding more animation.
When to use it
- Isolate bright highlights and drive Glow or ColorCorrector only there.
- Restrict Blur, Sharpen or grading to shadows or midtones.
- Build a smooth luminance matte without a single hard Low/High threshold.
- Derive the matte from Red/Green/Blue when Luminance separates the subject poorly.
- Use Alpha as the analysis signal for graphics with meaningful transparency.
- Intersect a tonal matte with Rectangle/Ellipse/Polygon through Effect Mask.
- Create an inverted protection mask for highlights or shadows.
- Prepare a technical mask branch for Blur/ErodeDilate/MatteControl cleanup.
Article screenshots
- Ranges Controls: Show View Controls, Level, Filter, Soft Edge, Invert, Center, Fit Input, Range, Channel, spline display, selected X/Y and Simple/Smooth presets
- Ranges Fit Input dropdown with Crop, Stretch, Inside, Width, Height and Outside
- Ranges Filter dropdown with Box, Bartlett, Multi-box, Gaussian and Fast Gaussian
- Ranges Channel dropdown with Luminance, Red, Green, Blue and Alpha
- Ranges Image tab with Output Size Default/Custom/Source and Clipping Mode None/Frame
Inputs & outputs
Ranges: Image + optional Effect Mask → Mask Output
Ranges does not pass the RGB picture downstream as a normal image effect. The orange Image input is analyzed through Channel and the spline, then the node outputs a single-channel mask. An optional blue Effect Mask can further limit or combine that tonal matte through the dynamic Paint Mode.
Converts a 2D source luminance/channel into a spline-defined Shadows, Midtones or Highlights matte and can combine it with an external spatial mask.
Inputs
- Image
Source for tonal analysis
Receives: A 2D RGBA image from MediaIn, Merge, Background, Fast Noise or another image node.
Inside the node: Ranges reads the selected Channel and maps source values into Shadows/Midtones/Highlights coverage according to the spline.
Typical sources: MediaIn · Merge · Background · Fast Noise · Loader
Image is analyzed to build a matte. Do not treat Ranges as a normal image processor: its output is a mask, not the RGB plate.
- Effect Mask
Optional spatial/combine mask
Receives: A single-channel mask from Rectangle, Ellipse, Polygon, B-Spline, Bitmap or another mask node.
Inside the node: The external mask is combined with the tonal matte; connecting it exposes Paint Mode in the Inspector to choose the combine operation.
Typical sources: Rectangle · Ellipse · Polygon · B-Spline · Bitmap
This is not a second image source. When it is disconnected, Paint Mode may not be visible in the Inspector.
Outputs and destination
Mask Output
A single-channel grayscale coverage mask: white is fully included, black excluded and gray applies partial coverage/falloff.
Next step: Color Corrector → Effect Mask · Blur → Effect Mask · Glow → Effect Mask · Merge → Effect Mask · MatteControl / mask chain
Do not feed this output into a regular RGB image input. Route the main image to the downstream effect on a separate branch.
- Mask Output
- Single-channel mask for the selected Shadows, Midtones or Highlights after spline shaping, Level, Soft Edge, Invert and any Effect Mask combination.
Processing order
- Image supplies the 2D source whose values will be analyzed.
- Channel selects Luminance, Red, Green, Blue or Alpha as the range-building signal.
- One shared spline defines Shadow and Highlight boundaries; Midtones are what remains between them.
- Range chooses which of the three computed mattes leaves the node.
- An optional Effect Mask combines with the tonal matte through the Paint Mode that appears when connected.
- Mask Output connects to a downstream blue mask/effect-mask input; the RGB source travels on a separate branch.
Highlights grade + spatial restriction
MediaIn.Output → Ranges.Image · Rectangle.Mask → Ranges.Effect Mask · Ranges.Mask → ColorCorrector.Effect Mask · MediaIn.Output → ColorCorrector.Input
Ranges converts source tonal values into a mask, Rectangle limits it spatially, and the RGB source separately feeds ColorCorrector.
Ranges = an image-to-mask converter: Image is analyzed, optional Effect Mask is combined, and the output is always a mask stream.
Parameters
Ranges · Inspector reference
Keep four layers separate: source/channel, spline-defined tonal ranges, common mask filtering, and mask-combine/output raster handling. Ranges is not a simple threshold; one shared spline partitions the signal into Shadows, Midtones and Highlights.
- Image
- orange 2D source
- Channel
- Luminance / R / G / B / Alpha
- Spline
- 4 points + Bezier handles
- Range
- Shadows / Midtones / Highlights
- Combine
- optional Effect Mask + Paint Mode
- Output
- single-channel Mask
Mask Controls · Global level and edge
Show View Controls, Level, Filter, Soft Edge and Invert act on mask coverage after range construction rather than defining spline tonal boundaries.
- Show View Controls
Mask Controls > Show View ControlsShows or hides on-screen mask controls in the Viewer. This common mask control changes the display of interactive controls for the selected node without changing mask values.
Check / distinguish: Hide overlays when they obstruct matte evaluation; do not disable the node just to get a clean Viewer.
- Level
Mask Controls > LevelSets the overall coverage level of the output mask. At 1.0 the mask uses full coverage. Lowering Level reduces the value of all mask pixels and therefore weakens any downstream Effect Mask contribution.
Check / distinguish: Do not use Level to repair the wrong tonal range; edit the spline first.
- Filter: Box / Bartlett / Multi-box / Gaussian / Fast Gaussian
Mask Controls > Filter: Box / Bartlett / Multi-box / Gaussian / Fast GaussianSelects the filter kernel used for mask smoothing. The captured Resolve Inspector verifies all five modes. Judge Filter together with Soft Edge on real matte boundaries; the names are not a draft/final quality ladder.
Check / distinguish: Compare kernels at identical Soft Edge and 100% Viewer.
- Soft Edge
Mask Controls > Soft EdgeAdds feathering to the selected range mask. 0.0 creates a crisp edge. Increasing it broadens the soft transition using the selected Filter. This is spatial/filter softness applied after the tonal selection is defined.
Check / distinguish: Prove the spline matte at 0.0 first, then add only the softness the shot needs.
- Invert
Mask Controls > InvertInverts the complete resulting matte. White becomes black and vice versa, with gray values reversed proportionally. This is distinct from Paint Mode = Invert used to combine an incoming Effect Mask.
Check / distinguish: After inversion, inspect the standalone Mask Output again rather than judging only the final effect.
- Level attenuates coverage
Controls > LevelLevel below 1.0 reduces all mask-coverage values; it does not widen the tonal range.
Check / distinguish: Compare Level 1.0 and 0.5 on the same unchanged matte.
- Soft Edge after spline
Controls > Soft EdgeSoft Edge should feather an already-correct mask rather than hide wrong tonal boundaries.
Check / distinguish: Return Soft Edge to 0, prove the spline, then add feather.
- Filter is a kernel, not quality tier
Controls > FilterBox/Bartlett/Multi-box/Gaussian/Fast Gaussian are filter kernels for mask smoothing, not a draft/final ladder.
Check / distinguish: Compare kernels at one Soft Edge value in a 100% Viewer.
Placement · Center and Fit Input
Center X/Y and Fit Input place/fit the Image source relative to the mask canvas and are not the spline-point coordinates.
- Center X
Placement > Center XPositions the source/ranges mask horizontally relative to the output frame. Captured baseline is 0.5. Center participates in source placement under Fit Input, especially when source and output resolutions differ.
Check / distinguish: Do not confuse Center X with the precision X field for a selected spline point below the graph.
- Center Y
Placement > Center YPositions the source/ranges mask vertically relative to the output frame. Captured baseline is 0.5. It works with Center X and Fit Input to place the source within the mask canvas.
Check / distinguish: If a mixed-resolution matte is offset, inspect Center and Fit Input before touching the spline.
- Fit Input: Crop / Stretch / Inside / Width / Height / Outside
Placement > Fit Input: Crop / Stretch / Inside / Width / Height / OutsideDefines how the Image source is fitted to the generated mask dimensions. Crop places the source at Center and clips what lies outside the mask frame; Stretch scales X/Y independently; Width/Height scale uniformly to the selected dimension; Inside/Outside perform proportional fitting relative to the mask canvas.
Check / distinguish: Stretch can distort mask geometry; keep source/output the same size while diagnosing the tonal logic.
- Fit Input belongs to raster placement
Controls > Fit InputFit Input handles source/mask dimension mismatch; it does not change spline tonal meaning.
Check / distinguish: Test a source with another aspect ratio under Crop and Stretch.
Ranges · Tonal ranges
Range chooses the output matte, Channel chooses the analyzed signal, and Spline/X/Y/Presets shape Shadow/Highlight boundaries and falloff.
- Range: Shadows / Midtones / Highlights
Ranges > Range: Shadows / Midtones / HighlightsChooses which of the three computed ranges is sent to Mask Output. Shadows outputs the shadow range, Highlights the highlight range and Midtones the remainder between them. The selector does not create an independent spline per mode.
Check / distinguish: Keep the spline unchanged and cycle all three Range choices to understand how the same boundaries partition the signal.
- Channel: Luminance / Red / Green / Blue / Alpha
Ranges > Channel: Luminance / Red / Green / Blue / AlphaChooses the channel whose values are analyzed by the range spline. Luminance is the captured/default tonal basis; individual RGB channels can produce cleaner separation, while Alpha uses source transparency.
Check / distinguish: If Luminance is noisy or ambiguous, compare all RGB channels before rebuilding the spline.
- Spline Display
Ranges > Spline DisplayEdits Shadow/Highlight boundaries and their Bezier falloff. Blackmagic documents four main spline points with Bezier handles: upper points start the shadow/highlight ranges and lower points end them. Midtones are derived from the remaining signal space.
Check / distinguish: Move one point at a time while watching the grayscale matte so the boundary change remains obvious.
- Selected Spline X
Ranges > Selected Spline XNumeric X coordinate for the selected spline point or handle. The X field below the graph becomes relevant for the selected spline element and allows repeatable precision beyond mouse dragging.
Check / distinguish: Use it when comparing two technical variants or reproducing a range exactly.
- Selected Spline Y
Ranges > Selected Spline YNumeric Y coordinate for the selected spline point or handle. The Y field below the graph belongs to the selected point/handle and changes its vertical contribution/falloff in the matte.
Check / distinguish: Do not confuse these graph X/Y fields with Center X/Y above them.
- Preset: Simple / Smooth
Ranges > Preset: Simple / SmoothResets the range spline to one of two documented preset configurations. Simple creates a straightforward linear-weighted selection; Smooth creates a more natural falloff. They are spline presets, not persistent interpolation modes.
Check / distinguish: Use a preset as a starting point, then tune the spline for the actual shot.
- Range chooses output
Controls > RangeShadows/Midtones/Highlights choose which computed tonal matte leaves the node. They do not select a separate set of curve points.
Check / distinguish: Without changing the spline, cycle all three Range choices and compare grayscale outputs.
- White / gray / black semantics
Viewer > Mask OutputWhite means fully included, black excluded and gray partial coverage/falloff. Gray does not mean a dirty mask.
Check / distinguish: View Ranges.Mask directly rather than only the downstream effect.
- Midtones are derived
Controls > Range > MidtonesMidtones are the signal left between shadow/highlight ranges after they are applied; there is no independent Midtones boundary control.
Check / distinguish: Widen Highlights and verify Midtones shrink accordingly.
- Four spline points
Controls > Spline DisplayBlackmagic documents four main spline points, each with a Bezier handle.
Check / distinguish: Move one point at a time and inspect one range output.
- Upper points start ranges
Controls > Spline Display > upper pointsThe two upper spline points define the starts of the shadow/highlight ranges.
Check / distinguish: On a grayscale ramp move an upper point and watch the corresponding range start.
- Lower points end ranges
Controls > Spline Display > lower pointsThe two lower spline points define the ends of the shadow/highlight ranges.
Check / distinguish: Change a lower point separately from its Bezier handle to separate boundary from falloff.
- Bezier handles shape falloff
Controls > Spline Display > BezierBezier handles shape the falloff between included and excluded values.
Check / distinguish: Compare one transition with points fixed while changing only the handle.
- Precision X/Y
Controls > Spline Display > X/YThe X/Y fields under the graph set exact coordinates for the selected spline point or handle; they are not Center controls.
Check / distinguish: Select a point and compare dragging with numeric entry.
- Simple preset
Controls > Preset > SimpleSimple resets the spline to a straightforward linear-weighted configuration.
Check / distinguish: Duplicate the node and compare Simple with a manually smoother falloff.
- Smooth preset
Controls > Preset > SmoothSmooth applies a more natural falloff preset; the spline remains editable afterward.
Check / distinguish: After Smooth move one point to confirm it is not a locked interpolation mode.
- Channel is the analysis signal
Controls > ChannelChannel chooses the signal used to compute ranges: Luminance, R, G, B or Alpha in the captured Inspector.
Check / distinguish: Keep the spline fixed and cycle channels on a color test chart.
Combine · External mask
Paint Mode appears dynamically when Effect Mask is connected and combines the spatial mask with the tonal matte.
- Paint Mode (when Effect Mask is connected)
Combine > Paint Mode (when Effect Mask is connected)Defines how the incoming Effect Mask and the Ranges matte are combined. Documented modes include Merge, Add, Subtract, Minimum, Maximum, Average, Multiply, Replace, Invert, Copy and Ignore. The control appears dynamically when the blue Effect Mask input is connected.
Check / distinguish: For a tonal/spatial intersection, start by testing Multiply and inspect the combined mask in grayscale.
- Effect Mask is optional second input
Flow > Effect MaskThe blue input accepts a mask stream and combines it with the tonal matte; Image remains the separate orange input.
Check / distinguish: Connect Rectangle only to Effect Mask and verify the Image connection stays unchanged.
- Paint Mode is dynamic
Controls > Paint ModePaint Mode appears after Effect Mask is connected and controls the math between two masks: Merge/Add/Subtract/Minimum/Maximum/Average/Multiply/Replace/Invert/Copy/Ignore.
Check / distinguish: For an intersection compare Multiply with the spatial mask temporarily disconnected.
Image · Size and DoD
Output Size sets the mask-output raster while Clipping Mode controls domain-of-definition behavior at boundaries.
- Output Size: Default / Custom / Source
Image > Output Size: Default / Custom / SourceSets the mask-output resolution on the Image tab. Default follows the composition/default context, Source follows the Image input and Custom exposes manual common-mask size/aspect/depth controls. The captured screenshot shows Source.
Check / distinguish: If the mask is not pixel-aligned with the target, check Output Size before adding compensating transforms.
- Clipping Mode: None / Frame
Image > Clipping Mode: None / FrameControls domain-of-definition/clipping behavior for the generated mask. Frame evaluates relative to the full frame; None does not impose additional frame clipping. The distinction matters most with softness or processing near DoD boundaries.
Check / distinguish: Test Clipping Mode with a matte that reaches a frame edge; a centered test may hide the difference.
- Output Size before compensating transforms
Image > Output SizeDefault/Custom/Source define the mask-output raster; a mismatch can look like a bad Center or Fit Input setting.
Check / distinguish: Compare source and target dimensions before adding a Transform.
- Clipping is DoD behavior
Image > Clipping ModeNone/Frame control clipping/domain-of-definition behavior, especially near boundaries with Soft Edge; this is not a normal source crop.
Check / distinguish: Move the matte to an edge and compare None/Frame at the same Soft Edge.
Before adjusting the node
- Ranges outputs a mask stream, not an RGB image; the main image branch travels separately to the target effect.
- Range buttons choose the Shadows/Midtones/Highlights output; they do not select three independent spline-editor states.
- Midtones have no independent boundary controls; they are the remainder between the shadow/highlight ranges.
- Simple/Smooth are spline presets, not persistent interpolation modes.
- X/Y below the graph belongs to the selected spline point/handle; Center X/Y controls mask/source placement.
- Effect Mask is the optional second blue input; Paint Mode appears when it is connected.
- Captured current Inspector: Filter Box/Bartlett/Multi-box/Gaussian/Fast Gaussian; Channel Luminance/R/G/B/Alpha.
- The Image tab shows Output Size Default/Custom/Source and Clipping Mode None/Frame.
- Gray matte values represent partial coverage/falloff and are not automatically an error.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Highlights mask: prove the image-to-mask topology
Build a Luminance Highlights matte, inspect it directly and use it as ColorCorrector Effect Mask without routing RGB through Ranges.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Ranges mask semantics cross-checked against Blackmagic Resolve/Fusion mask documentation and current captured Inspector screenshots · Free / Studio where the classic Ranges mask node is available · Cross-platform editorial reference; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 144 frames · Fusion 2D image-to-mask workflow: Image is analyzed into a single-channel mask; the RGB plate travels separately to the target effect
- DaVinci Resolve 21+
- MediaIn, Ranges, ColorCorrector/Blur, Rectangle, MediaOut
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Use your own material matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 144 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— Source · MediaInRNG— Ranges · RangesMaskCC— Color Corrector · ColorCorrectorOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Source (SRC)Output | Ranges (RNG)Image | image |
Source (SRC)Output | Color Corrector (CC)Input | image |
Ranges (RNG)Mask | Color Corrector (CC)EffectMask | mask |
Color Corrector (CC)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- Ranges (RNG) / Controls / Range
"Highlights"Output the highlight range rather than treating the button as a separate editing mode.
- Ranges (RNG) / Controls / Channel
"Luminance"Start from the documented default tonal signal.
- Ranges (RNG) / Controls / Preset
"Smooth"Use the documented smooth spline preset as a starting shape.
- Ranges (RNG) / Controls / Level
1Keep full mask coverage while judging the range boundaries.
- Ranges (RNG) / Controls / Soft Edge
0Prove the tonal selection before spatial feathering.
- Color Corrector (CC) / Controls / Gain
1.15Make the masked correction visible without changing the mask topology.
Reproduce the example
- Fan out MediaIn: one wire to Ranges.Image and another to ColorCorrector.Input; connect Ranges.Mask to ColorCorrector.Effect Mask.
Ranges outputs a mask stream, not an RGB image. The plate must reach the effect on a separate branch.
Check: The graph has two branches from SRC and the mask wire enters CC's blue Effect Mask.
- Set Luminance, Highlights, Smooth, Level 1 and Soft Edge 0. View Ranges.Mask directly.
This isolates the range matte from ColorCorrector and feathering.
Check: Bright included pixels are white, excluded pixels are black and transitions may be gray.
- Adjust the highlight spline points/Bezier handles until the intended highlights are white and midtones fall to gray/black.
The range boundaries are defined by the spline, not Level or Soft Edge.
Check: Switching to Midtones reveals the remaining region between shadows/highlights rather than an independent spline.
- Return to Highlights and inspect ColorCorrector.Output with Gain 1.15.
This confirms Ranges limits the correction as a mask while source RGB remains a separate branch.
Check: Gain is strongest in selected highlights and fades through gray matte falloff.
Expected result
- MediaOut (OUT) · frame 72
ColorCorrector acts primarily in the selected Highlights while Ranges independently outputs the expected grayscale mask.
Alpha: Ranges.Mask is single-channel coverage; it does not replace the source MediaIn alpha/RGB branch.
When the result differs
- A normal color image is expected after Ranges.
Cause: The mask-node role was confused with an image processor.
Correction: View Ranges as a grayscale matte and route RGB separately to the target effect.
- Midtones seem broken after widening Highlights.
Cause: Midtones are the remainder between shadow/highlight ranges, so they necessarily shrink.
Correction: Readjust the shared spline boundaries and compare all three Range outputs again.
References
- Blackmagic Design — DaVinci Resolve 18 Reference Manual: Ranges Mask
Fusion Page Effects > Mask Nodes > Ranges Mask: orange Image input, optional blue Effect Mask, spline-based Shadows/Midtones/Highlights, Channel, Paint Mode and common mask controls.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow and Effect Mask conventions used by the practice graphs.
Tonal + spatial matte with Effect Mask and Paint Mode
Intersect a Midtones range with Rectangle and apply the result to Blur while keeping tonal selection, spatial masking and the image branch separate.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Ranges mask semantics cross-checked against Blackmagic Resolve/Fusion mask documentation and current captured Inspector screenshots · Free / Studio where the classic Ranges mask node is available · Cross-platform editorial reference; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 144 frames · Fusion 2D image-to-mask workflow: Image is analyzed into a single-channel mask; the RGB plate travels separately to the target effect
- DaVinci Resolve 21+
- MediaIn, Ranges, ColorCorrector/Blur, Rectangle, MediaOut
Source material
- SRC
An opaque test chart with a grayscale ramp, saturated RGB/CMY patches and sharp boundaries. A reference-matching exercise needs a second frame with the same content and a known color difference.
Use your own material matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 144 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— Source · MediaInRECT— Rectangle · RectangleMaskRNG— Ranges · RangesMaskBLUR— Blur · BlurOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Source (SRC)Output | Ranges (RNG)Image | image |
Rectangle (RECT)Mask | Ranges (RNG)EffectMask | mask |
Source (SRC)Output | Blur (BLUR)Input | image |
Ranges (RNG)Mask | Blur (BLUR)EffectMask | mask |
Blur (BLUR)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- Ranges (RNG) / Controls / Range
"Midtones"Use the derived midtone range for the tonal half of the intersection.
- Ranges (RNG) / Controls / Channel
"Luminance"Hold the channel constant while testing mask combination.
- Ranges (RNG) / Controls / Preset
"Smooth"Start from a smooth documented spline configuration.
- Ranges (RNG) / Controls / Paint Mode
"Multiply"Intersect the incoming Rectangle mask with the Ranges matte.
- Ranges (RNG) / Controls / Soft Edge
0.02Add a small amount of mask feather after the tonal selection is understood.
- Rectangle (RECT) / Controls / Soft Edge
0.07Make the spatial boundary visible but not harsh.
- Blur (BLUR) / Controls / Blur Size
0.08Provide an obvious but controlled downstream effect for the mask.
Reproduce the example
- Connect SRC to both Ranges.Image and Blur.Input; Rectangle.Mask to Ranges.Effect Mask; Ranges.Mask to Blur.Effect Mask.
Three roles must stay separate: image data for analysis, a spatial combine mask, and the RGB image for Blur.
Check: Ranges has orange Image plus blue Effect Mask, while Blur receives image and final mask separately.
- Set Midtones/Luminance/Smooth and first inspect Ranges without Rectangle by temporarily disconnecting e2.
The tonal matte must be proven before mask combination.
Check: Midtones read as the remainder between shadow/highlight ranges.
- Reconnect Rectangle to Effect Mask, choose Paint Mode Multiply and view Ranges.Mask.
Multiply keeps only the intersection of tonal and spatial coverage.
Check: White/gray matte remains only inside Rectangle and is suppressed outside.
- Enable Blur Size 0.08 and inspect OUT across several frames.
This verifies the downstream effect is limited by the combined mask rather than Rectangle or tonal range alone.
Check: Blur appears only on midtone pixels inside the spatial rectangle, with a soft stable boundary.
Expected result
- MediaOut (OUT) · frame 72
Blur is limited to the intersection of the Midtones matte and Rectangle while the main RGB source remains independent of the mask-generation branch.
Alpha: Rectangle and Ranges combine as mask streams; Paint Mode does not replace the source image alpha.
When the result differs
- Blur affects areas outside Rectangle.
Cause: The Effect Mask is disconnected from Ranges or Paint Mode is not producing an intersection.
Correction: Check e2 and view Ranges.Mask directly; choose Multiply and compare the grayscale output.
- The mask nearly disappears after combining.
Cause: Rectangle does not overlap the tonal matte or the range is too narrow.
Correction: Temporarily disconnect Rectangle, widen the spline falloff, then reconnect the spatial mask.
References
- Blackmagic Design — DaVinci Resolve 18 Reference Manual: Ranges Mask
Fusion Page Effects > Mask Nodes > Ranges Mask: orange Image input, optional blue Effect Mask, spline-based Shadows/Midtones/Highlights, Channel, Paint Mode and common mask controls.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow and Effect Mask conventions used by the practice graphs.
Other outlines from the article
Glow only on highlights
MediaIn feeds both the main image branch and Ranges. Ranges outputs Highlights as a mask that restricts Glow/ColorCorrector to bright areas.
- MediaIn → main image
- MediaIn → Ranges.Image
- Ranges.Mask → Glow/ColorCorrector.Effect Mask
- Output → MediaOut
Midtones-only correction
Range = Midtones outputs the signal that remains between shadow/highlight ranges. After spline tuning, the matte drives ColorCorrector Effect Mask.
- MediaIn
- Ranges: Midtones
- ColorCorrector Effect Mask
- MediaOut
Tonal plus spatial matte
Rectangle enters Ranges.Effect Mask and Paint Mode Multiply intersects the spatial shape with the tonal range before the result drives Blur.
- MediaIn → Ranges.Image
- Rectangle → Ranges.Effect Mask
- Ranges.Mask → Blur.Effect Mask
- MediaIn → Blur.Input
Selection from an individual RGB channel
If subject luminance matches the background, compare the same spline on Red/Green/Blue. The cleanest channel becomes the mask basis without changing spatial geometry.
- MediaIn
- Ranges: Channel R/G/B
- Matte cleanup (optional)
- Target Effect Mask
Mistakes
- Treating Shadows/Midtones/Highlights as three independent spline sets.
- Describing Simple/Smooth as interpolation modes instead of range-shape presets.
- Routing MediaIn only through Ranges and expecting a normal RGB image output.
- Omitting the optional Effect Mask input and losing tonal-plus-spatial mask combination.
- Confusing Center X/Y with the selected spline point X/Y fields below the graph.
- Trying to give Midtones independent boundaries even though they are derived from the remainder.
- Treating gray matte pixels as errors and forcing every range into a hard binary mask.
- Increasing Soft Edge before the spline correctly separates tones.
- Using Level as a substitute for range-boundary/falloff editing.
- Leaving Luminance by habit without checking whether an RGB or Alpha channel separates the target better.
- Using Stretch without checking aspect and distorting the resulting mask geometry.
- Changing Output Size, Fit Input, Center and spline at once, making an offset impossible to diagnose.
- Confusing the Invert checkbox with Paint Mode = Invert on an incoming mask.
- Choosing Paint Mode blindly without viewing the combined Mask Output.
- Connecting Ranges.Mask to a normal image input instead of a mask/effect-mask input.
- Judging mask quality only through the final Glow/grade rather than viewing the matte itself.
- Using an extremely narrow range on noisy footage and creating temporal flicker.
- Ignoring Clipping Mode/DoD behavior when softness reaches the frame boundary.
Tips
- Use a grayscale ramp while learning: it makes Shadow/Highlight boundaries and the Midtones remainder immediately visible.
- Keep a baseline at Level 1, Soft Edge 0 and Invert off so every later change can be isolated.
- After tuning the spline, cycle all three Range buttons; it is the fastest way to understand how one boundary set creates three masks.
- Do not fear gray falloff. Partial coverage often produces a more natural correction than a binary matte.
- If the range catches an unrelated object with the same tone, constrain Ranges through Effect Mask instead of endlessly narrowing the spline.
- For a spatial intersection, keep Rectangle/Polygon on a separate mask branch and compare Paint Mode Multiply against the uncombined tonal matte.
- On colored footage, cycle Luminance/R/G/B with the spline unchanged to reveal which signal actually separates the target.
- Use Alpha only when source transparency genuinely contains useful structure.
- Treat Simple/Smooth as reset/start points; production mattes still require manual shot-specific boundary checks.
- Selected Spline X/Y is useful for reproducing a technical setup or comparing variants without drag error.
- Judge Soft Edge at 100% and in motion; too much feather can leak onto neighboring tones.
- When source/output resolutions already match, leave Fit Input and Center untouched during tonal diagnosis to remove variables.
- In mixed-resolution work, verify Source vs Default Output Size before compensating with Transform nodes.
- Test Clipping Mode on a matte that touches the frame edge; centered examples often hide DoD differences.
- On noisy material, temporal stability matters more than an ultra-narrow selection; a slightly broader smooth falloff is often better than chatter.
- Review at least beginning, middle and end of subject motion rather than approving a matte from one hero frame.
- If the task requires color identity rather than tonal bands, consider Wand/HSL/Delta/Luma keying instead of forcing Ranges to understand an object.
Workflow order
- Connect the source image to the orange Ranges.Image input; do not route the main RGB branch through Ranges.
- View Ranges.Mask directly in grayscale and temporarily remove the downstream effect from the diagnosis.
- Keep Level 1.0, Soft Edge 0.0, Invert off and matching source/output resolution for a clean baseline.
- Start with Channel = Luminance and choose the needed output Range: Shadows, Midtones or Highlights.
- Apply Simple or Smooth only as a starting spline preset, not as a permanent interpolation mode.
- Adjust the four spline points and Bezier handles until white/gray/black regions match the desired tonal selection.
- Cycle Range through Shadows, Midtones and Highlights without changing the spline to verify how one boundary set partitions all three masks.
- Remember that Midtones are the remainder; if they become too narrow, inspect the Shadows/Highlights boundaries first.
- If Luminance separates poorly, compare Red, Green, Blue and Alpha with the same spline configuration.
- Only after the tonal selection is correct, add Soft Edge and compare Filter kernels on a representative boundary.
- Use Level to attenuate the whole mask, not to widen or narrow its tonal range.
- Enable Invert only when the inverse coverage is actually needed, then re-check the standalone mask.
- When source and target differ in resolution/aspect, inspect Output Size, Fit Input and Center X/Y.
- To localize the tonal range spatially, connect Rectangle/Ellipse/Polygon to the blue Ranges.Effect Mask input.
- After Effect Mask is connected, choose Paint Mode deliberately; Multiply is a useful first test for an intersection.
- View Ranges.Mask again and verify the combined white/gray/black result before connecting it to an effect.
- Connect Mask Output to ColorCorrector/Glow/Blur Effect Mask while that tool's Image/Input receives the separate RGB branch.
- Check several frames for temporal stability; narrow ranges should not chatter due to noise or compression.
- If the matte flickers, first widen spline falloff or change Channel; preprocess the analysis source lightly only if necessary.
- At final review compare both the target RGB result and the standalone mask so a mask defect is not mistaken for an effect defect.
