After this lesson
- Locate an error source step by step.
- Check types, ranges and dependent nodes.
- Separate expression evaluation from cache and display issues.
Before you start
- Composition
- A separate Fusion Composition. 1920×1080, square pixels, 25 fps.
- Parameter
- Transform1 → Size
- Range
- Start at comp.RenderStart. Reference frames are local unless stated otherwise.
A long formula is easier to debug by reducing it temporarily to a minimal working case. Do not change syntax, nodes and viewing settings simultaneously; otherwise you cannot tell which change helped.
A diagnostic ladder
Start with a constant of the correct type: 1 for Size, Point(0.5,0.5) for Center, Text("Test") for Styled Text. Then check time. Add one reference next, and only then the complete mathematics.
Check the exact node name, input ID, case, parentheses and quotes. Copy the error message before making further changes. An image in the Viewer does not prove that the intended input updated.
Boundary cases
Required checks include the start, end, switching point and the frames immediately before and after it. Test zero, minimum and very large periods. Test a zero denominator for division and a negative argument for sqrt.
Check backward scrubbing and direct jumps to arbitrary frames. The result must not depend on playback history.
The source of the displayed result
Display both the changed node and final MediaOut. If cache is suspect, compare live and cached evaluation using the options available in your Resolve version. Clearing cache does not fix a mathematical error.
The cost of dependencies
Hundreds of cross-time requests and deep reference chains complicate evaluation. Use shared controls, avoid repeated expensive requests and cycles, and measure performance at the final resolution and duration.
Three problem classes need different checks
A syntax error prevents evaluation: look for an extra parenthesis, decimal comma, incorrect ID or unavailable function. A numeric error produces an invalid value: division by zero, a negative square-root argument or an excessive range. A visual error can occur with a correct number: the wrong Viewer, control on the wrong branch, or multiplying transforms.
Do not fix visual problems with random formula coefficients. Set a constant first, confirm that the intended parameter controls the object, and only then restore dependencies. This makes the check reproducible instead of relying on a lucky frame.
| Observation | First check | Next step |
|---|---|---|
| The expression is rejected | Set it to 1 | Check syntax and IDs one at a time. |
| Fails at only one point | Check neighboring frames | Look for a zero denominator or a type change. |
| Correct number, wrong image | Compare the Viewer with the node output | Check the branch and repeated Transform nodes. |
| Stopped working after copying | Check source names | Restore references through Pick Whip. |
Out-of-order checks are more useful than one playback
Rendering may request frames in a different order from preview. Compare frames 0, 50, 12 and 50: both requests for 50 must match for deterministic animation. A formula that accumulates state from the previous call is unreliable for arbitrary rendering.
Record initial conditions for external sources: fps, frame format, node names, seed, range, version and dependencies. When machines produce different results, this list supports diagnosis rather than guessing. Missing fonts and plugins especially matter in templates: the mathematics can work while the final image differs.
Parameters and ranges
| Parameter | What it changes | Example / check |
|---|---|---|
| Constant | Checks the connection between the parameter and image. | 1 for Size; 0/1 for Blend. |
| Local time | Checks the time system. | Compare the absolute frame with RenderStart. |
| External reference | Checks whether the source exists. | Recreate it using Pick Whip. |
| Repeated request | Checks determinism. | Request one frame twice after visiting another time. |
USE IN A COMPOSITION
Build it in Fusion
Transform1 → Size
Solid lines are node connections in the Flow. A dashed line is a parameter dependency configured in the Inspector.
Connections by port and parameter3
Color is determined by the destination input. Dashed connections are configured in the Inspector; they do not add an RGBA wire to the Flow.
Assembly steps
- Save the original formula to a text file.
- Check a constant 1.
- Check a simple sine wave without external nodes.
- Restore external dependencies one at a time and note when the error appears.
1 + 0.1 * math.sin(2 * math.pi * (time-comp.RenderStart)/60)Expected result. The problem is narrowed to a specific input, reference or mathematical operation.
Checkpoints
| When / what to check | Expected | Why check it |
|---|---|---|
| Constant 1 | Unchanging size | Excludes the mathematics. |
| Pure sine wave | 0.9…1.1 | Checks local calculation. |
| One external dependency at a time | The failure is isolated to a specific reference | Do not restore the entire graph at once. |
| Repeat frame 50 | The same result | Checks dependence on time and inputs alone. |
INTERACTIVE EXAMPLE
Change a parameter. Compare the result.
Pulse
Transform1 → SizeMotion
in the details.
Size varies around a base value. Amplitude sets the maximum deviation; period determines the speed.
Set amplitude to 0: the size stops changing. Halve the period: cycles occur twice as often.
1 + 0.1 * math.sin(2 * math.pi * (time - comp.RenderStart) / 60)Paste this into the specified parameter's Expression field. It is not Console code.
The formula runs in the browser; the preview shows its result on a teaching object. Fusion's image processing is not reproduced here.
Errors and troubleshooting
After several changes, the failure is unclear
Return to the last minimal working example.
Works only when played from the beginning
Remove accumulated state and dependencies on frame evaluation order.
Independent exercise
A formula works with period 60 but fails at Period=0. What should be checked first?
Show the solution and explanation
Division by the period. Limit the control and protect the denominator inside the expression. Then test negative and fractional periods.
Continue learning
Official sources
An original educational walkthrough. The browser model explains the principle but does not run Fusion. Control placement depends on the version; save the original composition before replacing a parameter's control source.