FUSION · FULL ARTICLE
CustomTool
Fusion expression processor with three image inputs, a white Matte Input, blue Effect Mask, Number/Point/LUT controls, Setup/Inter and RGBA/aux channel formulas.
Overview
CustomTool is a programmable 2D image processor, not a C++ compiler or Fuse. You write expressions for pixels and auxiliary channels, using three image sources, user controls and masks.
CustomTool has five input roles: Image1, Image2, Image3, a separate Matte Input and Effect Mask. Image1–3 expose distinct images to expressions; Matte Input supplies matte expressions, while Effect Mask limits the result. A standard Effect Mask also accepts an image with a selected channel; Bitmap adds convenient channel and threshold controls.
Orange Image1 is the primary source addressed by r1/g1/b1/a1. Green Image2 uses r2/g2/b2/a2; magenta Image3 uses r3/g3/b3/a3. Sources can represent different maps or alternate versions of a shot.
Matte Input supplies a mask value to the math, documented as m1. It differs from Effect Mask: the white matte can affect the equation itself, while the blue Effect Mask gates the finished effect.
CustomTool still has one 2D image output. Writing a black/white Alpha or a depth value into Z does not turn Output into a blue mask connector.
Controls contains four Point In (X/Y), eight Number In and four LUT In controls. They are editable values consumed by expressions; ordinary animation and modifiers can drive them.
Number In 1–8 are addressed as n1…n8. Renaming a control in Config improves the artist-facing interface but does not rename the expression variables.
Point In 1–4 are addressed as p1x/p1y…p4x/p4y. They are useful for centers, anchors and animated positions, but do not automatically create extra point sockets in the node graph.
LUT In 1–4 are curves; getlut1(value)…getlut4(value) map channel/scalar values. They are not file LUTs, OCIO transforms or additional image inputs.
Setup and Inter are different evaluation stages. Setup handles values computed once per frame; Inter handles intermediate values computed per pixel before final channel expressions.
The bundled current Inspector captures show Setup 1–8 and Intermediate 1–8. Older published Blackmagic references document only Setup 1–4 (s1…s4) and Inter 1–4 (i1…i4); confirm the names s5…s8/i5…i8 on the target build rather than guessing.
Setup is not a per-pixel evaluation stage. r1/g1/b1, x and y are not safe as frame-wide constants; put per-pixel work in Intermediate instead.
Documented Intermediate 1–4 expose i1…i4 to later expressions. Moving repeated math there makes Channels easier to read, but does not remove the need to document variable scope.
Channels provides separate Red, Green, Blue and Alpha expressions. The bundled capture shows r1, g1, b1, a1 for pass-through, which is the best smoke-test baseline.
c1…c3 refer to the current channel from each input. An expression such as c1/2 acts on whichever output channel field contains it; it does not always mean red.
Pixel-stage x/y coordinates are normalized roughly to 0…1 across the frame. w/h (also w1…w3/h1…h3) provide image size; ax/ay provide pixel aspect. These belong to CustomTool formula context, not ordinary Inspector expressions.
Aux Channel Expressions let you write Z, Z Coverage, U/V, XYZ Normal, XY Vector and other technical channels, but their usefulness depends on source data and downstream readers.
Z means depth, Z Coverage means coverage, U/V are texture coordinates, normals encode direction and motion vectors encode motion. These channels are not interchangeable auxiliary colors.
The current capture shows X BackVector below XY Vector. Do not infer a complete BackVector or export-channel inventory from one cropped Inspector image.
CustomTool supports neighbor sampling with get… functions and explicit boundary behavior. Official examples use getr1b(x,y) for zero out of bounds, getr1d(x,y) for clamped edges and getr1w(x,y) for wrapped sampling.
get… arguments are spatial coordinates; do not confuse them with the input index after the channel letter. Neighbor sampling in expressions can be much slower than a dedicated Blur/CustomFilter node.
Color channels may exceed 0…1 in float pipelines. Integer destinations clip out-of-range values; an early hard clamp can destroy HDR headroom while appearing to fix a preview.
Alpha is coverage, not brightness. If an equation changes RGB but not alpha, inspect translucent edges over the intended background and confirm premultiplication handling.
Common Blend/channel controls in Settings apply according to their post-node rules and do not replace expression routing between Image1/Image2/Image3.
Config shows Random Seed and Reseed. Seed controls reproducible rand()/rands() patterns; Reseed deliberately changes the sequence and can make duplicates of a comp diverge.
Show/Name Number, Point and LUT affect the Inspector UI, not the Flow topology. Hiding a control does not necessarily delete its stored value or expression variable.
Do not paste CustomTool formula variables directly into the normal expression field of a Number In control expecting the same namespace: CustomTool and ordinary Inspector expressions use different variable contexts.
For a fixed 3x3/5x5/7x7 convolution, CustomFilter is generally simpler and faster. CustomTool earns its place for arbitrary functions, multiple images, user controls, matte math or specialized auxiliary channels.
Before handoff, verify every referenced image/matte is connected, expressions avoid zero divisions and undefined data, and each exposed control is named for its purpose.
Do not present this article as complete scripting API documentation. The captures establish current UI labels and the manual documents common variable syntax; target-build Resolve 21/21.1 verification is still required for serialized IDs and expanded s5–s8/i5–i8 behavior.
When to use it
- Linearly mix two image inputs with an exposed Mix number.
- Use a third image as a procedural/noise/control input to an equation.
- Use a white Matte Input as a scalar term inside math.
- Gate a processed RGB effect with a separate blue Effect Mask.
- Implement custom remapping for RGB/Alpha/auxiliary channels.
- Build a procedural gradient or radial field using a Point and x/y.
- Add an editable LUT spline for a nonlinear mapping.
- Prototype processing before writing a Fuse.
- Build repeatable randomized effects with a fixed seed.
- Test preservation of technical Z/UV/normal/vector channels in a VFX pipeline.
Article screenshots
- CustomTool — Controls: Point In 1–4, Number In 1–8, LUT In 1–4 and editable curve in current captured Inspector.
- CustomTool — Setup: Setup 1–8 visible in current capture; old references document s1–s4 names.
- CustomTool — Inter: Intermediate 1–8 visible in current capture; old references document i1–i4 names.
- CustomTool — Channels: RGBA defaults and visible Z/Z Coverage/UV/normal/vector auxiliary expressions.
- CustomTool — Config: Random Seed, Reseed and Show/Name Number/Point/LUT controls.
Inputs & outputs
CustomTool: 3 image inputs + white Matte Input + blue Effect Mask → 1 image Output
The five Flow inputs have different semantics. Image1–3 supply r#/g#/b#/a# samples, Matte Input supplies m1 inside the equation, Effect Mask gates processed contribution and Output remains a 2D image.
Evaluates once-per-frame Setup, per-pixel Inter and output channel expressions, then optional Effect Mask gating; Controls and Config manage user variables.
Inputs
- Image1
Main image / r1-g1-b1-a1
Receives: Primary 2D RGBA from MediaIn/Loader/Background.
Inside the node: Equations read r1/g1/b1/a1 and ...1 auxiliary values.
Typical sources: MediaIn · Loader · Background
No source means no reliable pass-through baseline.
- Image2
Second image / r2-g2-b2-a2
Receives: Independent second image, A/B branch or texture.
Inside the node: Sampled through r2/g2/b2/a2 and other ...2 variables.
Typical sources: MediaIn B · Loader · Background
Do not confuse with the white Matte Input or Merge Foreground.
- Image3
Third image: r3, g3, b3, a3
Receives: Third 2D image, such as a control map or procedural branch.
Inside the node: Provides r3/g3/b3/a3.
Typical sources: Fast Noise · Loader · Background
Not a mask port; use Matte Input for m1.
- Matte Input
Matte value inside math · m1
Receives: White Fusion matte from Rectangle/Polygon/Bitmap.
Inside the node: Exposes m1 inside Channels/Inter expressions.
Typical sources: Rectangle · Polygon · Bitmap
Not equivalent to the blue post-process Effect Mask.
- Effect Mask
Post-process effect gate
Receives: Blue Fusion mask from Rectangle/Ellipse/Bitmap.
Inside the node: Limits where the processed equation result contributes.
Typical sources: Rectangle · Ellipse · Bitmap
Does not supply m1 or another image sample.
Outputs and destination
Output
2D RGBA image with Channels output (and aux when the data/consumer supports it); optional Effect Mask gates spatial contribution.
Next step: MediaOut · Merge → Foreground · Color Corrector · Bitmap
A standard Effect Mask accepts an image directly; select its channel in the receiving node’s Settings. Bitmap is useful for explicit channel selection, threshold/softness and mask combinations. Special Garbage Matte/Pre-Mask inputs follow the receiving tool’s own rules.
- Output
- One 2D image output with RGBA and supported auxiliary channels. Not a blue mask/deep/scene3d socket.
Processing order
- Image1 supplies primary RGBA (r1/g1/b1/a1).
- Image2/Image3 supply independent secondary/tertiary sources (r2/r3).
- Matte Input exposes a white matte value m1 inside the equation.
- Number/Point/LUT controls expose n#/p#x-y/getlut# without extra sockets.
- Setup computes frame-level s1–s4; the captured 1–8 UI needs live verification for extensions.
- Intermediate computes per-pixel i1–i4; extended 5–8 UI is not proof of extra variable names.
- Channels writes Red/Green/Blue/Alpha and optional technical channels.
- The blue Effect Mask gates the processed output contribution.
- Output carries one 2D image stream rather than a mask/scene3d.
Two images with an independent matte
MediaIn A.Output → CustomTool.Image1 · MediaIn B.Output → CustomTool.Image2 · Rectangle.Mask → CustomTool.Matte Input · CustomTool.Output → MediaOut.Input
RGB math may use r1/r2 and m1; Effect Mask remains a distinct optional blue input.
Image1/2/3 are three image streams; white Matte Input is m1 in math; blue Effect Mask gates after math; one image Output.
Parameters
CustomTool · Inspector reference
Five inputs → Controls → Setup (frame) → Intermediate (pixel) → Channels (RGBA/Aux) → optional Effect Mask → one image Output. UI slots 5–8 are captured, while extended variable names still require target-build verification.
- Image1/2/3
- 3 × 2D image sources
- Matte
- m1 scalar inside expressions
- Controls
- n1..n8 · p1x/y · getlut#
- Setup
- once per frame · s1..s4 documented
- Inter
- per pixel · i1..i4 documented
- Channels
- RGBA + auxiliary expressions
- Effect Mask
- optional post-process coverage
- Output
- 2D image, not mask
Sources & masks · Image1/2/3 · Matte · Effect Mask
Identify the five independent graph inputs before authoring formulas: three image sources, a white matte inside math and a blue gate for the completed effect.
- Image1 is the default source
Flow > Image1Orange Image1 supplies r1/g1/b1/a1; other inputs do not implicitly mirror it.
Check / distinguish: Disconnect Image2/3 and prove source pass-through.
- Image2 is an independent source
Flow > Image2Green Image2 exposes r2/g2/b2/a2 and should be connected only when the equation uses it.
Check / distinguish: Test Red=r2 on aligned frames.
- Image3 is not a mask socket
Flow > Image3Magenta Image3 is a full image input r3/g3/b3/a3, often used as a texture/control map.
Check / distinguish: Compare r1 against r3 with a known third image.
- White matte enters the equation
Flow > Matte InputWhite Matte Input provides m1 inside the equation rather than post-processing coverage.
Check / distinguish: Connect a Rectangle and compare m1 against a disconnected Matte.
- Blue Effect Mask gates contribution
Flow > Effect MaskBlue Effect Mask gates the finished node contribution; it does not replace m1.
Check / distinguish: A/B with Effect Mask enabled/disabled while leaving formulas unchanged.
- Five inputs, one image output
Flow > Inputs / OutputThree image sources plus two mask-role ports still emit one image Output.
Check / distinguish: Check port colors/types in the node graph.
- Do not use generic Inspector expressions
Controls > Number InNormal Inspector expression widgets and CustomTool Channels/Setup/Inter have different namespaces.
Check / distinguish: Verify n1 in Channels and Inspector link expressions separately.
- Missing channels are not zeros by contract
Flow > Optional inputsDo not assume a universal r2/r3 value for disconnected sources without a build-specific test.
Check / distinguish: Connect Image2/3 before referencing their variables.
Controls · Point · Number · LUT
These are animator-facing values. Formulas use p#x/p#y, n# and getlut#(), not Inspector labels.
- Point In 1–4
Controls > Point In 1–4Four editable XY point pairs. Use p1x/p1y…p4x/p4y in formula context. They can animate but are not extra image/point connectors.
Check / distinguish: Animate Point 1 and check the actual rendered equation response.
- Number In 1–8
Controls > Number In 1–8Eight user-editable numeric controls. Expressions address them as n1…n8. Do not assume a specific 0..1 range unless you set one deliberately.
Check / distinguish: Compare n1=0 and n1=1 in a test blend.
- LUT In 1–4
Controls > LUT In 1–4Four editable LUT splines. Use getlut1(value)…getlut4(value) for curve sampling; these do not import external .cube files.
Check / distinguish: Compare getlut1(r1) against r1 using an identity diagonal.
- Number variables use n1..n8
Controls > Number In 1–8Number In are scalar controls, not automatically new graph number sockets.
Check / distinguish: Test output at n1=0, 0.5 and 1.
- Point variables are XY pairs
Controls > Point In 1–4p1x/p1y…p4x/p4y are animatable control coordinates.
Check / distinguish: Move Point 1 and inspect the image response.
- Points and x/y use related frames
Controls / ChannelsCompare point coordinates to normalized x/y for distance gradients; compensate aspect when a true circle is required.
Check / distinguish: Test the shape at 16:9 and 9:16.
- LUT In means editable spline
Controls > LUT ControlsLUT In 1–4 are editable splines sampled by getlut#(), not external LUT files.
Check / distinguish: Compare identity getlut1(r1) with raw r1.
- LUT channels can differ
Controls > LUT InIndependent RGB curves can use getlut1(r1), getlut2(g1), getlut3(b1).
Check / distinguish: A/B one curve with the others still linear.
- Unused UI controls can be hidden
Config > ShowConfig Show hides UI; it does not automatically remove n2/p2/getlut2 dependencies.
Check / distinguish: Hide one unused control and compare the render.
- Animation is supported
Controls > KeyframesNumber, Point and LUT controls are normal Fusion controls and can use animation/modifiers as appropriate.
Check / distinguish: Test nearby frames, not just a still.
- Label != variable identifier
Config > Name forRenaming Number In 1 to Mix does not rewrite equation syntax; use n1.
Check / distinguish: Rename the control and confirm the same result.
Setup · Setup 1–8 · once per frame
The capture shows eight fields while historical references document only s1…s4 variables. Do not use per-pixel pixel/channel data here.
- Setup 1–8
Setup > Setup 1–8Expressions evaluated per frame; eight fields appear in current UI. Older manuals document s1…s4; verify slots 5–8 and their variable names live. Avoid per-pixel variables here.
Check / distinguish: For a baseline, set s1=n1 and use s1 in Red.
- Frame frequency, not pixel frequency
Setup > Setup 1–8Setup evaluates once per frame and is appropriate for time, constants and non-spatial parameters.
Check / distinguish: Set s1=n1 and read s1 in Channels.
- Historical s1..s4 are documented
Setup > Setup 1–4Blackmagic documents s1…s4; this is the reliable starting point for authored examples.
Check / distinguish: Start with s1 rather than s8.
- Eight fields are visible today
Setup > Setup 5–8The capture shows Setup 5–8, but legacy references do not verify corresponding variable names and dependencies.
Check / distinguish: Validate s5..s8 on live Resolve before automation.
- r1 is per-pixel
Setup > Forbidden pixel contextIf the expression depends on current-pixel r1/g1/b1/x/y, move it to Inter/Channels.
Check / distinguish: Compare the per-pixel equation to an incorrect frame-setup attempt.
- time changes per frame
Setup > timetime is a frame-level variable; inspect actual clip/frame mapping during animation.
Check / distinguish: Compare setup time at frames 0, 24 and 48.
- Avoid divide-by-zero
Setup > w/hFor width/height normalization, ensure the source is connected and valid before division.
Check / distinguish: Test a missing source and changing dimensions.
- Setup results feed later phases
Setup > ChannelsDocumented s1…s4 can be consumed by Intermediate and Channels.
Check / distinguish: Change n1 and inspect s1-to-channel propagation.
Intermediate · Inter 1–8 · per pixel
Intermediate follows Setup and precedes Channels. Historical docs cover i1…i4; extended variable names need verification.
- Intermediate 1–8
Intermediate > Intermediate 1–8Per-pixel intermediate expressions; current UI displays eight fields. The documented names are i1…i4; verify the expanded fields on the target build. Inter evaluates before Channels and can access r1/x/y.
Check / distinguish: Compare i1=r1*n1 with the direct Red formula r1*n1.
- Per-pixel math belongs here
Inter > Intermediate 1–8Intermediate evaluates per pixel and can use r1/x/y and frame-level s1…s4.
Check / distinguish: Compare i1=r1*s1 with direct Red=r1*s1.
- Historical i1..i4
Inter > Intermediate 1–4Blackmagic documents i1…i4 for later use in Channels.
Check / distinguish: Use i1 in Red instead of the field display name.
- Extended slots need live check
Inter > Intermediate 5–8Eight visible fields do not by themselves verify i5…i8 variable names.
Check / distinguish: Confirm names and evaluation order on the target build.
- Watch repeated calculations
Inter > PerformanceInter work runs per pixel, so repeated heavy samples can increase per-frame cost rapidly.
Check / distinguish: Compare rendering at 1080p and UHD.
- Normalized x/y vs image dimensions
Inter > Coordinate systemx/y are normalized, w/h are image dimensions; uncorrected radial math can appear elliptical.
Check / distinguish: Check circle behavior on non-square framing.
- s before i before channel
Setup → Inter → ChannelsEvaluation order matters: Channels are not already evaluated inside Setup.
Check / distinguish: Use s1=n1 → i1=r1*s1 → Red=i1.
- Math domain needs guarding
Inter > Division / nonlinearNegative square-root arguments and division by zero can produce invalid image values.
Check / distinguish: Check Number In extremes and point motion.
Channels · RGBA · Red · Green · Blue · Alpha
Each output channel has its own equation. Start with r1/g1/b1/a1; use r2/r3 and m1 only when the corresponding sources are connected.
- Red
Channels · RGBA > RedRed output expression. Defaults to r1; can combine r1/r2/r3 and n1. Do not treat an unconnected image as a valid source.
Check / distinguish: Check r1, then r2 with Image2 actually connected.
- Green
Channels · RGBA > GreenGreen output expression. Defaults to g1; a coherent RGB transform generally needs matching logic across all three channels.
Check / distinguish: Inspect g1 in the Green Viewer.
- Blue
Channels · RGBA > BlueBlue output expression. Defaults to b1. Leaving blue unmodified while changing red/green may be intentional but affects hue.
Check / distinguish: Compare b1 against the edited expression in the Blue Viewer.
- Alpha
Channels · RGBA > AlphaAlpha output coverage expression. Defaults to a1. Matte math can build coverage, but changing alpha without considering premultiplied RGB needs edge QC.
Check / distinguish: Check output alpha and composite over a contrasting background.
- Pass-through is known baseline
Channels > RGBARed=r1 Green=g1 Blue=b1 Alpha=a1 preserves the basic source pipeline.
Check / distinguish: A/B Source and Output RGB/Alpha.
- c1 means current channel
Channels > c1c1 is channel-relative; copying the same equation between RGB fields samples different components.
Check / distinguish: Compare c1/2 with explicit r1/2 in each field.
- r1/g1/b1 vs r2/r3
Channels > RGB inputsThe suffix is the source-image index, not the destination channel index.
Check / distinguish: Use three differently colored test sources and compare r1/r2/r3.
- Mix uses common n1
Channels > mixAn expression like r1*(1-n1)+r2*n1 linearly mixes RGB when n1 is kept within 0..1; repeat for green/blue.
Check / distinguish: Check n1=0, 0.5 and 1.
- Alpha mixing must be deliberate
Channels > AlphaAlpha=a1 is intentional for an RGB grade; true RGBA compositing requires a deliberate alpha equation.
Check / distinguish: Inspect translucent edges of both sources against a real background.
- m1 is a matte sample
Channels > m1The white matte can enter the formula, e.g. scale Red through m1; it does not replace the primary image source.
Check / distinguish: Compare constant m1 and a Rectangle-driven matte.
- Effect Mask is independent
Flow > Effect MaskBlue Effect Mask is a spatial limiter after equation evaluation, independent of m1.
Check / distinguish: Compare gate behavior separately from matte math.
- Float values can exceed one
Channels > HDRFloat image values can be negative or >1; do not automatically clamp just to improve a preview.
Check / distinguish: Inspect waveform/scopes before any hard clip.
- Premultiplication matters
Channels > RGB/AlphaChanging RGB while leaving Alpha may create fringes in premultiplied imagery; transparency-only inspection is insufficient.
Check / distinguish: Check white, black and intended backgrounds.
- Out-of-bounds sampling choices
Channels > getr#b/d/wgetr1b returns zero, getr1d clamps and getr1w wraps out-of-frame samples.
Check / distinguish: Compare the three modes at a hard frame boundary.
- Do not equate CustomTool with Fuse
Channels > ExecutionThe built-in equation syntax is not equivalent to executing arbitrary C++/Lua code.
Check / distinguish: Use documented expression functions, not plugin source code.
- One channel can be technical
Channels > Single channel QCChanging Red alone can be useful for diagnostics, but restore coherent G/B and Alpha for art delivery.
Check / distinguish: Compare isolated channels with beauty.
Aux Channels · Z · UV · Normal · Vector
Technical fields require valid auxiliary data and a downstream consumer; they are not arbitrary beauty RGB controls.
- Z
Aux Channels > ZTechnical Z-depth output. Can use source z1/z2/z3 when the source actually carries depth; not a replacement for 3D rendering.
Check / distinguish: Check source Z availability and downstream Z viewing.
- Z Coverage
Aux Channels > Z CoverageDepth-associated coverage channel. Can use cv1/cv2/cv3 where present; do not conflate it with RGBA Alpha.
Check / distinguish: Inspect Z Coverage and Alpha separately.
- U / V
Aux Channels > U / VExpressions for UV texture coordinates. Use u1/v1…u3/v3 when present; normal RGB footage may not include UV channels.
Check / distinguish: Verify the source contains UV before swapping U/V.
- X/Y/Z Normal
Aux Channels > X/Y/Z NormalThree surface-normal components. Keep value ranges and coordinate spaces coherent across sources/downstream shading. These are not beauty RGB controls.
Check / distinguish: Check normal direction under a fixed light.
- X/Y Vector · X BackVector
Aux Channels > X/Y Vector · X BackVectorMotion-vector and back-vector channels in Aux Channel Expressions. The Inspector includes X/Y Vector and BackVector controls. Inspect the complete panel and confirm which channels exist in the source before routing them.
Check / distinguish: Check channel availability on the target build before referencing names.
- Z is not Alpha
Aux > ZZ carries depth, not coverage. Downstream Z-aware effects require a valid depth source.
Check / distinguish: Inspect Z pass separately.
- Z Coverage differs from Z
Aux > Z CoverageCoverage measures sample contribution; Z measures distance. They are not interchangeable.
Check / distinguish: Compare both on a render with soft boundaries.
- U/V are texture coordinates
Aux > U/VU/V are mapping coordinates, not automatically red/green beauty channels.
Check / distinguish: Compare source and result UV maps.
- Normal XYZ represents direction
Aux > XYZ NormalEditing nx/ny/nz changes a technical direction vector; inconsistent channel ranges can break lighting.
Check / distinguish: Test lighting response in a fixed scene.
- Vectors describe motion
Aux > X/Y VectorMotion vectors follow renderer/source conventions and are not arbitrary 2D positions.
Check / distinguish: Check direction against known motion.
- BackVector UI is partially captured
Aux > X BackVectorThe capture shows X BackVector near its crop boundary; further controls cannot be asserted without a complete capture.
Check / distinguish: Inspect the full lower panel live before referencing more fields.
- Aux output remains image
Flow > OutputWritten Z/UV/Normal/Vector are auxiliary channels in one image stream, not separate scene sockets.
Check / distinguish: Check the single Output and downstream channel selection.
- Source-channel data
Aux > InputsIf a source lacks UV/normal/vector, default values do not become valid scene data.
Check / distinguish: Use EXR or a dedicated test source with actual auxiliary passes.
Config · Seed · Show · Name
Random Seed/Reseed control randomness; Show/Name polish user controls but do not rename expression variables.
- Random Seed
Config > Random SeedSeed for deterministic randomness in expressions. Used for rand()/rands() where random components appear; keep it fixed for reproducible rendering.
Check / distinguish: Compare two renders with the same seed.
- Reseed
Config > ReseedButton that changes the random seed. Does not rewrite the formula; the current captured UI labels it Reseed rather than Randomize.
Check / distinguish: Compare one frame before and after Reseed.
- Show Number 1–8
Config > Show Number 1–8Shows or hides Number In controls. Config UI visibility only; hidden values can still participate in expressions.
Check / distinguish: Hide Number 2 and verify that n2 remains defined.
- Name for Number 1–8
Config > Name for Number 1–8Artist-facing names for numeric controls. Rename e.g. to Strength, Mix or Radius; expression variables remain n#, with no extra Flow port.
Check / distinguish: Rename Number 1 to Mix while keeping n1 in the equation.
- Show Point 1–4
Config > Show Point 1–4Shows or hides point controls. Also controls point guides; hiding does not delete X/Y values.
Check / distinguish: Hide Point 1 and verify p1x still participates in the equation.
- Name for Point 1–4
Config > Name for Point 1–4Readable labels for Point In. Use purpose-specific names such as Center or Target; formulas still use p#x/p#y.
Check / distinguish: Rename the label without rewriting expressions.
- Show LUT 1–4
Config > Show LUT 1–4Shows or hides user LUT splines. Does not automatically delete the curve or disable its function.
Check / distinguish: Hide LUT 2 and confirm getlut2(...) still works.
- Name for LUT 1–4
Config > Name for LUT 1–4Labels for LUT In curves. For example Contrast Curve or Falloff; the function remains getlut1..getlut4.
Check / distinguish: Rename LUT 1 while leaving getlut1(r1) intact.
- Reseed changes random sequence
Config > ReseedReseed changes the rand()/rands() seed and changes the output without editing the equation.
Check / distinguish: Compare frames before/after and record seed.
- Fixed Seed improves reproducibility
Config > Random SeedRecord Random Seed and frame for reproducible random-effect tests.
Check / distinguish: Re-render with the same seed and compare.
- Show Number only changes UI
Config > Show NumberHiding Number In does not delete n1..n8; it reduces Inspector clutter.
Check / distinguish: Hide a referenced Number In 3 and verify output remains unchanged.
- Show Point also affects guides
Config > Show PointCan hide the point and onscreen guide without altering coordinates.
Check / distinguish: Hide and restore Point 1.
- Show LUT affects curve UI
Config > Show LUTControls LUT In spline visibility, not whether getlut# exists.
Check / distinguish: Hide and restore LUT 1 while preserving its curve.
- Name controls for task
Config > Name forMix/Center/Falloff are easier to maintain than generic names.
Check / distinguish: Review the artist-facing handoff Inspector.
- Names do not rename syntax
Config > Name forName for Number 1 may be Strength while syntax remains n1, p1x and getlut1.
Check / distinguish: Rename all three control types and check equations still run.
Delivery & QC · Expressions · masks · handoff
Check wire types, alpha edges, float precision, the target Resolve version and reproducibility before shipping equations.
- Baseline before equation experiments
Validation > pass-throughStart with r1/g1/b1/a1 and A/B source versus output on the same frame.
Check / distinguish: Record baseline with a screenshot or sampled pixel.
- Separate matte and gate tests
Validation > Matte / Effect MaskOne matte as m1 inside math and a second Effect Mask solve distinct problems.
Check / distinguish: A/B each mechanism separately.
- Watch coordinate aspect
Validation > resolutionNormalized x/y are not equal physical units; a radial effect changes with aspect ratio.
Check / distinguish: Test 1920x1080 and 1080x1920.
- Playback reveals discontinuities
Validation > playbackRandom/threshold equations can flicker across frames despite looking good in one still.
Check / distinguish: Inspect the animation range for flicker.
- Do not overspec variable syntax
Verification > s5 / i5UI 8 vs documented 4 is an evidence boundary; do not promise new variable names without execution.
Check / distinguish: Test the expression and required variable on a simple image in the installed Resolve version.
- Validate with exported settings
Verification > .setting / .compVerify control IDs, port serialization and equation syntax in target Resolve instead of treating an article as a CLI spec.
Check / distinguish: Export a minimal .setting with each role.
- Use a dedicated filter when possible
Optimization > CustomFilterFor a simple kernel, compare dedicated CustomFilter unless multi-image or nonlinear math is needed.
Check / distinguish: Benchmark both on identical source/resolution.
- Channels are not sockets
Graph > channelsFour RGBA and auxiliary output equations remain channels on one image wire.
Check / distinguish: Confirm one image Output in Node Editor.
Before adjusting the node
- Pass-through: Red=r1, Green=g1, Blue=b1, Alpha=a1. If output differs, inspect image inputs and Settings first.
- Reference Image2/3 only after connecting actual independent image streams.
- White Matte Input provides m1 within math; blue Effect Mask gates processed contribution—they are different paths.
- Setup evaluates per frame; Inter per pixel. Variable contexts are not the same.
- Captured Setup/Inter 1–8 does not prove s5–s8/i5–i8 names; target-build testing is required.
- n1/p1/getlut1 syntax does not change when artist-facing names are changed in Config.
- Inspect RGB/Alpha separately, especially premultiplied edges and HDR floats > 1.
- Write aux Z/UV/normal/vector only with real source channels and a downstream consumer.
- getr1b/getr1d/getr1w differ at frame boundaries; choose deliberately.
- Fix Random Seed for reproducible results; Reseed invalidates a strict A/B.
- UI captures do not prove internal serialized control IDs or extended variable names.
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
RGBA pass-through: establish the CustomTool baseline
Verify Image1, Channels, Output and independent Alpha before writing complex math.
Starting conditions
DaVinci Resolve / Fusion Resolve 21/21.1 editorial reference; five inputs confirmed by reference, Setup/Inter 1–8 visible in captured UI; serialized IDs and extended variables pending live verification · DaVinci Resolve Fusion 2D · Cross-platform article; target-workstation live execution pending
1920 × 1080 · 24 fps · 120 frames · Fusion 2D image: Image1–3 + white Matte(m1) → Setup/Inter/Channels → optional blue Effect Mask → image Output
- MediaIn
- Background
- FastNoise
- RectangleMask
- CustomTool
- MediaOut
Source material
- SRC
A source with RGB detail and a semi-transparent edge.
Any MediaIn/Loader with a testable alpha edge.
Nodes and connections
SRC— SOURCE RGBA · MediaInCT— PASS THROUGH · CustomToolOUT— MEDIA OUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE RGBA (SRC)Output | PASS THROUGH (CT)Image1 | image |
PASS THROUGH (CT)Output | MEDIA OUT (OUT)Input | image |
Graph output: MEDIA OUT (OUT)
Parameter values
- PASS THROUGH (CT) / Channels / Red
"r1"Preserve input red.
- PASS THROUGH (CT) / Channels / Green
"g1"Preserve input green.
- PASS THROUGH (CT) / Channels / Blue
"b1"Preserve input blue.
- PASS THROUGH (CT) / Channels / Alpha
"a1"Preserve original coverage.
Reproduce the example
- Connect MediaIn.Output to CustomTool.Image1 and CustomTool.Output to MediaOut.Input.
Image1 is primary; the other four inputs are unnecessary in this smoke test.
Check: The graph has one image source and one image Output, with no masks.
- Set Red=r1, Green=g1, Blue=b1, Alpha=a1.
A neutral result isolates wiring failures from expression failures.
Check: Source and output match in RGBA under the same color interpretation.
- Compare RGB and Alpha independently at 100% Viewer and on nearby frames.
Otherwise premultiplication or color-pipeline differences can be missed.
Check: No unexpected black output, color drift or missing partial alpha.
Expected result
- MEDIA OUT (OUT) · frame 72
CustomTool preserves RGB with r1/g1/b1 and no Image2/Image3 wiring.
Alpha: a1 preserves source Alpha and partial transparency was checked separately from RGB.
When the result differs
- Black or empty output.
Cause: Image1 is disconnected or Channels reference r2/r3 instead of r1.
Correction: Connect Image1 and restore r1/g1/b1/a1; inspect Settings Blend.
References
- Blackmagic Design — Resolve 21 Reference Manual, Custom Tool [CT]
Fusion > Miscellaneous Nodes > Custom Tool: 3 image inputs, Matte and Effect Mask, Controls, Setup, Inter, Channels, Config.
- Blackmagic Design — Fusion 7 Tool Reference, Custom Tool Syntax
Misc Tools > Custom Tool Syntax: n1..n8, p1x/p1y, s1..s4, i1..i4, r1..r3, m1, getlut# and boundary samplers.
- Blackmagic Design — Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask wires, MediaIn, MediaOut and basic graph practices.
Two images: RGB mix driven by Number In 1
Prove independent Image1/Image2 and n1, while keeping alpha handling explicit.
Starting conditions
DaVinci Resolve / Fusion Resolve 21/21.1 editorial reference; five inputs confirmed by reference, Setup/Inter 1–8 visible in captured UI; serialized IDs and extended variables pending live verification · DaVinci Resolve Fusion 2D · Cross-platform article; target-workstation live execution pending
1920 × 1080 · 24 fps · 120 frames · Fusion 2D image: Image1–3 + white Matte(m1) → Setup/Inter/Channels → optional blue Effect Mask → image Output
- MediaIn
- Background
- FastNoise
- RectangleMask
- CustomTool
- MediaOut
Source material
- A
Base shot A.
Any 1920×1080 source A.
- B
Format-matched shot B.
A second source with matching dimensions/timing.
Nodes and connections
A— SOURCE A · MediaInB— SOURCE B · MediaInCT— MIX RGB · CustomToolOUT— MEDIA OUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE A (A)Output | MIX RGB (CT)Image1 | image |
SOURCE B (B)Output | MIX RGB (CT)Image2 | image |
MIX RGB (CT)Output | MEDIA OUT (OUT)Input | image |
Graph output: MEDIA OUT (OUT)
Parameter values
- MIX RGB (CT) / Controls / Number In 1
0.35n1 is the mix factor; use 0..1 for this example.
- MIX RGB (CT) / Channels / Red
"r1*(1-n1)+r2*n1"Blend the red component.
- MIX RGB (CT) / Channels / Green
"g1*(1-n1)+g2*n1"Blend the green component.
- MIX RGB (CT) / Channels / Blue
"b1*(1-n1)+b2*n1"Blend the blue component.
- MIX RGB (CT) / Channels / Alpha
"a1"Keep base alpha intentionally; this is an RGB blend, not a complete RGBA over equation.
- MIX RGB (CT) / Config / Name for Number 1
"Mix"Expose a readable artist-facing label without changing n1 syntax.
Reproduce the example
- Connect A to Image1 and B to Image2; leave Image3 and both masks unused.
r1 and r2 must represent actual distinct pixels, not an unconnected fallback.
Check: Image1/Image2 differ and Output renders.
- Set n1=0.35, use r1*(1-n1)+r2*n1 and matching g/b formulas; keep Alpha=a1.
Number In becomes scalar Mix, not a mask or extra image input.
Check: At n1=0 RGB is A; at n1=1 RGB is B; Alpha remains A.
- Rename Number In 1 to Mix in Config without replacing n1 in equations.
Separate the user-facing label from the expression identifier.
Check: The output remains unchanged after renaming.
Expected result
- MEDIA OUT (OUT) · frame 72
RGB transitions smoothly between A and B through n1 with both images connected.
Alpha: Alpha=a1 is an intentional pass-through, not a complete premultiplied RGBA composite for translucent inputs.
When the result differs
- Changing n1 has no visible effect.
Cause: Image2 is disconnected, equations omit n1 or both sources are identical.
Correction: Inspect r2/g2/b2, the B connection and n1=0/1 extremes.
References
- Blackmagic Design — Resolve 21 Reference Manual, Custom Tool [CT]
Fusion > Miscellaneous Nodes > Custom Tool: 3 image inputs, Matte and Effect Mask, Controls, Setup, Inter, Channels, Config.
- Blackmagic Design — Fusion 7 Tool Reference, Custom Tool Syntax
Misc Tools > Custom Tool Syntax: n1..n8, p1x/p1y, s1..s4, i1..i4, r1..r3, m1, getlut# and boundary samplers.
- Blackmagic Design — Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask wires, MediaIn, MediaOut and basic graph practices.
Third image as a spatial RGB mixing map
Show that Image3 is a separate image source whose r3 can weight a spatial mix between r1 and r2.
Starting conditions
DaVinci Resolve / Fusion Resolve 21/21.1 editorial reference; five inputs confirmed by reference, Setup/Inter 1–8 visible in captured UI; serialized IDs and extended variables pending live verification · DaVinci Resolve Fusion 2D · Cross-platform article; target-workstation live execution pending
1920 × 1080 · 24 fps · 120 frames · Fusion 2D image: Image1–3 + white Matte(m1) → Setup/Inter/Channels → optional blue Effect Mask → image Output
- MediaIn
- Background
- FastNoise
- RectangleMask
- CustomTool
- MediaOut
Source material
- A
Shot A.
Any MediaIn A.
- B
Shot B.
Any format-matched MediaIn B.
Nodes and connections
A— SOURCE A · MediaInB— SOURCE B · MediaInMAP— GRAYSCALE MAP · FastNoiseCT— THIRD INPUT · CustomToolOUT— MEDIA OUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE A (A)Output | THIRD INPUT (CT)Image1 | image |
SOURCE B (B)Output | THIRD INPUT (CT)Image2 | image |
GRAYSCALE MAP (MAP)Output | THIRD INPUT (CT)Image3 | image |
THIRD INPUT (CT)Output | MEDIA OUT (OUT)Input | image |
Graph output: MEDIA OUT (OUT)
Parameter values
- GRAYSCALE MAP (MAP) / Controls / Color
"Grayscale map, approximately 0..1"Supply a bounded weight from the third image.
- THIRD INPUT (CT) / Channels / Red
"r1*(1-r3)+r2*r3"Third-image red drives red blend.
- THIRD INPUT (CT) / Channels / Green
"g1*(1-r3)+g2*r3"Same spatial weight for all RGB.
- THIRD INPUT (CT) / Channels / Blue
"b1*(1-r3)+b2*r3"Same spatial weight for all RGB.
- THIRD INPUT (CT) / Channels / Alpha
"a1"Keep a known alpha baseline.
Reproduce the example
- Wire A/B to Image1/Image2 and grayscale Fast Noise to magenta Image3.
These are three real image streams; the white matte is not used.
Check: The graph has three image connections into CustomTool.
- Use r3 as RGB weight: r1*(1-r3)+r2*r3, repeated for Green/Blue with the same r3.
r3 samples the third image rather than matte m1 or scalar n1.
Check: A and B mix according to the noise image; Alpha remains a1.
- Check that the map stays around 0..1, inspect composite edges and change noise scale without editing the equation.
Out-of-range weights extrapolate instead of performing an ordinary blend.
Check: A full-white/black map favors B/A in RGB.
Expected result
- MEDIA OUT (OUT) · frame 72
Image3 genuinely controls the local mix of Image1 and Image2 via r3, with image wires throughout.
Alpha: a1 keeps coverage fixed; a full composite needs an explicitly designed alpha workflow.
When the result differs
- The map produces overly bright or negative regions.
Cause: r3 leaves the 0..1 range or is in the wrong interpretation/color space.
Correction: Normalize the control map to the intended range and inspect r3 in the Viewer.
References
- Blackmagic Design — Resolve 21 Reference Manual, Custom Tool [CT]
Fusion > Miscellaneous Nodes > Custom Tool: 3 image inputs, Matte and Effect Mask, Controls, Setup, Inter, Channels, Config.
- Blackmagic Design — Fusion 7 Tool Reference, Custom Tool Syntax
Misc Tools > Custom Tool Syntax: n1..n8, p1x/p1y, s1..s4, i1..i4, r1..r3, m1, getlut# and boundary samplers.
- Blackmagic Design — Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask wires, MediaIn, MediaOut and basic graph practices.
- Blackmagic Design — DaVinci Resolve 21 / Fusion Fast Noise [FN] Generator Reference
Fusion Page Effects > Generator Nodes > Fast Noise, p. 2416: optional Noise Detail Map (black=0 detail, white=configured detail), Noise Brightness Map (field control before Color, can replace noise with Detail=0), and Effect Mask. Noise/Color controls are cross-checked with the article captures; no native render is claimed.
White m1 versus blue Effect Mask
Show white matte influencing channel math while blue Effect Mask gates the finished effect.
Starting conditions
DaVinci Resolve / Fusion Resolve 21/21.1 editorial reference; five inputs confirmed by reference, Setup/Inter 1–8 visible in captured UI; serialized IDs and extended variables pending live verification · DaVinci Resolve Fusion 2D · Cross-platform article; target-workstation live execution pending
1920 × 1080 · 24 fps · 120 frames · Fusion 2D image: Image1–3 + white Matte(m1) → Setup/Inter/Channels → optional blue Effect Mask → image Output
- MediaIn
- Background
- FastNoise
- RectangleMask
- CustomTool
- MediaOut
Source material
- SRC
RGB source with visible detail.
Any MediaIn/Loader; opaque alpha is fine.
Nodes and connections
SRC— SOURCE · MediaInM— WHITE M1 · RectangleMaskG— BLUE GATE · RectangleMaskCT— MATTE MATH · CustomToolOUT— MEDIA OUT · MediaOut
| Source | Destination | Data |
|---|---|---|
SOURCE (SRC)Output | MATTE MATH (CT)Image1 | image |
WHITE M1 (M)Mask | MATTE MATH (CT)Matte | mask |
BLUE GATE (G)Mask | MATTE MATH (CT)EffectMask | mask |
MATTE MATH (CT)Output | MEDIA OUT (OUT)Input | image |
Graph output: MEDIA OUT (OUT)
Parameter values
- MATTE MATH (CT) / Channels / Red
"r1*m1"Multiply red by supplied white matte value.
- MATTE MATH (CT) / Channels / Green
"g1*m1"Same operation on green.
- MATTE MATH (CT) / Channels / Blue
"b1*m1"Same operation on blue.
- MATTE MATH (CT) / Channels / Alpha
"a1"Keep alpha unchanged for clear comparison of black RGB and transparency.
- WHITE M1 (M) / Controls / Soft Edge
0.05Use a soft mathematical matte for edge visibility.
- BLUE GATE (G) / Controls / Soft Edge
0.02Gate the calculated effect using an independent region.
Reproduce the example
- Connect Image1, a white Rectangle to Matte and another Rectangle to blue EffectMask.
The graph keeps m1 as a math term and EffectMask as a post-effect gate.
Check: Both mask wires terminate at different sockets.
- Multiply RGB channels by m1; keep Alpha=a1.
m1 directly affects math: outside the matte RGB turns dark while Alpha remains unchanged.
Check: With blue Effect Mask bypassed, RGB math depends on m1 only.
- Enable and move the blue EffectMask independently from white m1.
Blue gating changes only where the processed RGB operation contributes.
Check: The white matte remains unchanged; processed contribution changes inside the blue gate.
Expected result
- MEDIA OUT (OUT) · frame 72
White Matte Input and blue Effect Mask demonstrate distinct semantics while Output remains image.
Alpha: a1 preserves source opacity; dark RGB outside m1 is not transparency, which is the point of this experiment.
When the result differs
- The Rectangle matte seems to have no effect.
Cause: The wire goes to EffectMask while the formula reads m1 on white Matte (or vice versa).
Correction: Check both independent socket paths and A/B with the gate bypassed.
References
- Blackmagic Design — Resolve 21 Reference Manual, Custom Tool [CT]
Fusion > Miscellaneous Nodes > Custom Tool: 3 image inputs, Matte and Effect Mask, Controls, Setup, Inter, Channels, Config.
- Blackmagic Design — Fusion 7 Tool Reference, Custom Tool Syntax
Misc Tools > Custom Tool Syntax: n1..n8, p1x/p1y, s1..s4, i1..i4, r1..r3, m1, getlut# and boundary samplers.
- Blackmagic Design — Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask wires, MediaIn, MediaOut and basic graph practices.
Setup → Inter → RGB and LUT baseline
Separate once-per-frame s1, per-pixel i1 and getlut1 without undocumented s5/i5.
Starting conditions
DaVinci Resolve / Fusion Resolve 21/21.1 editorial reference; five inputs confirmed by reference, Setup/Inter 1–8 visible in captured UI; serialized IDs and extended variables pending live verification · DaVinci Resolve Fusion 2D · Cross-platform article; target-workstation live execution pending
1920 × 1080 · 24 fps · 120 frames · Fusion 2D image: Image1–3 + white Matte(m1) → Setup/Inter/Channels → optional blue Effect Mask → image Output
- MediaIn
- Background
- FastNoise
- RectangleMask
- CustomTool
- MediaOut
Source material
- SRC
Color source with smooth gradients.
MediaIn or a clear gradient source.
Nodes and connections
SRC— GRADIENT SOURCE · MediaInCT— SETUP INTER · CustomToolOUT— MEDIA OUT · MediaOut
| Source | Destination | Data |
|---|---|---|
GRADIENT SOURCE (SRC)Output | SETUP INTER (CT)Image1 | image |
SETUP INTER (CT)Output | MEDIA OUT (OUT)Input | image |
Graph output: MEDIA OUT (OUT)
Parameter values
- SETUP INTER (CT) / Controls / Number In 1
0.6A frame-constant strength controlled by the artist.
- SETUP INTER (CT) / Setup / Setup 1
"n1"Evaluate strength once per frame.
- SETUP INTER (CT) / Inter / Intermediate 1
"r1*s1"Evaluate red contribution once per pixel.
- SETUP INTER (CT) / Channels / Red
"i1"Consume Intermediate 1 in Red.
- SETUP INTER (CT) / Channels / Green
"getlut1(g1)"Read an identity spline first; then intentionally adjust green mapping.
- SETUP INTER (CT) / Channels / Blue
"b1"Keep blue unchanged.
- SETUP INTER (CT) / Channels / Alpha
"a1"Preserve source coverage.
- SETUP INTER (CT) / Config / Name for Number 1
"Strength"A meaningful artist-facing name without changing n1.
Reproduce the example
- Set Number In 1 = 0.6 and Setup 1 = n1.
s1 evaluates once per frame and becomes available downstream in the expression stages.
Check: Changing Number In 1 propagates through s1 once the channel is connected.
- Enter r1*s1 in Inter 1 and use i1 for Red.
This per-pixel operation combines the source channel and frame-level coefficient.
Check: Red is scaled by Strength while other channels are untouched.
- Set Green=getlut1(g1) with an identity LUT 1, then deliberately edit the curve for an A/B.
The spline stage is separate from the scalar Setup/Inter path and does not become a file LUT.
Check: Green stays neutral under the identity curve and changes only after editing it.
- Rename Number In 1 to Strength but keep n1 in Setup.
Separate the UI label from the variable name.
Check: Output remains the same, alpha=a1; s5/i5 are unused.
Expected result
- MEDIA OUT (OUT) · frame 72
Red is scaled through s1/i1, Green is remapped by LUT, Blue remains b1, illustrating three separate stages.
Alpha: a1 carries source coverage through the stages unchanged.
When the result differs
- Red becomes black or ignores n1.
Cause: Setup s1, Inter i1 or Red linkage is wrong, or an undocumented slot was used.
Correction: Verify s1=n1, i1=r1*s1, Red=i1 and baseline r1.
References
- Blackmagic Design — Resolve 21 Reference Manual, Custom Tool [CT]
Fusion > Miscellaneous Nodes > Custom Tool: 3 image inputs, Matte and Effect Mask, Controls, Setup, Inter, Channels, Config.
- Blackmagic Design — Fusion 7 Tool Reference, Custom Tool Syntax
Misc Tools > Custom Tool Syntax: n1..n8, p1x/p1y, s1..s4, i1..i4, r1..r3, m1, getlut# and boundary samplers.
- Blackmagic Design — Visual Effects Guide to DaVinci Resolve 20
Fusion image/mask wires, MediaIn, MediaOut and basic graph practices.
Other outlines from the article
RGBA pass-through baseline
Use Red=r1, Green=g1, Blue=b1 and Alpha=a1 to establish a zero-transform baseline.
- MediaIn
- CustomTool · r1/g1/b1/a1
- MediaOut
A/B image mix
Image1 and Image2 are connected separately; n1 drives RGB mixing while Alpha remains a1 intentionally.
- MediaIn A
- MediaIn B
- CustomTool · n1
- MediaOut
Third image as control
Image3 carries a procedural map; r3 provides an additional value in the equation.
- MediaIn
- Background / Noise · Image3
- CustomTool · r3
- MediaOut
Matte in math vs Effect Mask
White matte participates as m1 in math, while blue Effect Mask separately gates the final effect.
- MediaIn
- Rectangle → Matte Input
- CustomTool · m1
- Effect Mask
- MediaOut
Setup → Intermediate → Channels
s1=n1 computes once per frame, i1=r1*s1 per pixel and Red=i1, with other channels passing through.
- MediaIn
- CustomTool · s1/i1
- MediaOut
Editable LUT mapping
getlut1(r1)/getlut2(g1)/getlut3(b1) links RGB to editable curves without OCIO or File LUT.
- MediaIn
- CustomTool · LUT In
- MediaOut
Aux channel technical test
Z/UV/normal/vector are checked independently from beauty RGB when present in the source.
- Multichannel EXR
- CustomTool · Aux
- Channel Viewer / downstream
Mistakes
- Treating CustomTool as a single-image node and forgetting Image2/Image3.
- Swapping white Matte Input with blue Effect Mask even when m1 belongs in the math.
- Treating Matte Input and Effect Mask as equivalent coverage gates.
- Plugging a mask into Image2 and expecting m1 to appear.
- Using r2 or r3 with no connected image source.
- Treating c1 as red in every output channel field.
- Using per-pixel r1/x/y in once-per-frame Setup.
- Confusing Setup and Intermediate evaluation scopes.
- Assuming eight visible UI slots prove undocumented s5…s8/i5…i8 names.
- Placing all math in Red while overlooking Green/Blue/Alpha.
- Mixing RGB from two sources while ignoring alpha and premultiplication.
- Expecting a blue mask output after writing a matte into Alpha.
- Hard-clamping float HDR values to 0..1 without a reason.
- Confusing technical Z with image luminance.
- Using normals as creative RGB colors.
- Reading UV/vector channels from a source that does not contain them.
- Failing to choose neighbor-sample border behavior in get-functions.
- Expecting CustomTool to outperform dedicated CustomFilter for a standard kernel.
- Renaming Number In to Mix and then replacing n1 with Mix in a formula.
- Assuming Show Number/Point/LUT changes processing or creates Flow inputs.
- Confusing LUT In curves with File LUT/OCIO transforms.
- Pressing Reseed in the middle of reproducible QC.
- Using CustomTool syntax in a normal Inspector Expression field.
- Claiming live-proven serialized control IDs from a screenshot.
- Shipping a production macro without A/B smoke tests for each connected source.
- Assuming a procedural random mask is independent of frame/time and seed.
- Skipping playback checks and expression domain stability.
- Failing to document expression versions/controls across Resolve builds.
Tips
- Start with RGBA pass-through; it is a fast port and node smoke test.
- Distinguish real Image1/2/3 data sources from Number/Point/LUT UI controls in diagrams.
- Use Matte Input as a math variable and Effect Mask as a result gate.
- Call Number In 1 Mix but keep n1 in expressions.
- Prove one channel first, then expand coherently to RGB.
- Keep frame-invariant math in Setup and expensive per-pixel work only where required.
- Use Intermediate for repeated subexpressions and fewer copy/paste mistakes.
- Test n1 = 0/0.5/1 before animating a blend.
- Test mismatched input resolutions and alpha boundaries before production reuse.
- For curve remapping, use getlut# with an identity diagonal as baseline.
- Track normalized x/y independently from pixel w/h for aspect-sensitive effects.
- Prefer get...d over wrap when neighbor samples should not cross to the opposite edge.
- Do not edit auxiliary channels without a test source and a downstream consumer.
- Study float sources in channels/scopes, not only in a beauty Viewer.
- Use two Viewers for alpha math: source Alpha and output Alpha.
- Check Blend and Effect Mask separately from the equations.
- Record the seed in tests whenever rand() affects the result.
- Rename only exposed controls; hide the rest to keep the artist-facing UI focused.
- Verify s5–s8/i5–i8 against live exported settings when versions change.
- Compare dedicated CustomFilter before settling on CustomTool for a simple convolution.
- Keep a clean pass-through preset and a separate production preset with documented expressions.
Workflow order
- Feed a known MediaIn/Loader into orange Image1 and view CustomTool.Output.
- Prove RGBA pass-through: Channels Red=r1, Green=g1, Blue=b1, Alpha=a1.
- If additional sources are needed, connect green Image2 and magenta Image3 explicitly; do not assume they mirror Image1.
- Connect white Matte Input and reference m1 only when the matte should contribute to the equation.
- Use blue Effect Mask to gate the processed result spatially rather than replacing the white Matte Input.
- Expose Number In 1, set a deliberate value and use n1 in a small, safe formula.
- Prove the first mix in Red, then apply the corresponding logic to Green and Blue.
- Initially leave Alpha=a1 and decide whether a new coverage equation is actually needed.
- For a frame-constant coefficient, use Setup 1 and s1 in subsequent equations.
- For per-pixel reusable math, use Intermediate 1 and i1.
- Do not build expressions around s5…s8/i5…i8 until target-build names and dependencies are live-verified.
- Test Point In by moving Point 1 and using p1x/p1y in a distance function.
- For LUT mapping, compare getlut1(r1) against an identity diagonal before editing the curve.
- Edit Aux Channel Expressions only when the source contains the required technical channels and downstream expects them.
- For neighbor sampling, choose explicit get...b/get...d/get...w out-of-bounds behavior.
- Inspect out-of-range values in float/HDR comps rather than hard-clamping an assumed error.
- Check alpha and edge colors over a real background, particularly for premultiplied sources.
- Name Number/Point/LUT controls in Config and hide the unused UI.
- Fix Random Seed if rand() is used, and do not trigger Reseed ahead of the final A/B.
- Inspect the full animation range and parameter extremes, not just a single still frame.
- Export a .setting/.comp for production automation to verify real serialized parameter IDs.
