Skip to content
VIDEOMONTAZHERDAVINCI RESOLVE · VIDEO · AI

FUSION · Modifiers

Calculation: arithmetic without writing code

Two operands, one operation and a clear parameter dependency.

Fusion / DaVinci Resolve 20–21

After this lesson

  • Map a driver input range without a long formula.
  • Keep operand order correct for noncommutative operations.
  • Use independent sources.

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.

Calculation adds, subtracts, multiplies or divides numeric values through Inspector. It makes simple mathematical relationships visible without writing an expression.

Operands and order

Assign Calculation to a numeric input and find its operands in Modifiers. Start with two constants. Order is essential for subtraction and division: A−B is not B−A.

An operand can be driven by a compatible connection or animation. One controller can then scale another without combining them into a single hand-shaped curve.

A scaling example

First operand 1.2 multiplied by second operand 0.75 should yield 0.9. This is a simple wiring check before using a complex composition.

When inserting over existing control, check which operand receives the original source. Do not assume it is automatically preserved in the intended place.

Boundaries

Division by zero remains an error without written code. The result is not necessarily clamped to the consumer’s range. For clamping and several conditions, an expression may be clearer than a modifier chain.

Why operand order matters

Swapping operands does not change addition or multiplication, but does change subtraction, division, remainder and exponentiation. With First=2 and Second=4, First/Second gives 0.5, while Second/First gives 2. Simple numbers expose a plausible-looking wrong result faster than debugging real linked inputs.

Do not infer the output range solely from the operation name. Multiplying by a negative factor reverses direction; dividing by a small number greatly increases amplitude. Calculate the expected limits before connecting to Size or Blend.

When time settings are easier than a new formula

Calculation can read linked operand values with time transformations. A follower can therefore have both a different amplitude and a delay. Confirm arithmetic with constants first, connect the source next, and change time settings last.

A time offset changes the frame at which the source is read; it does not move the driver’s keys. For complex chains, make a follower-frame/source-frame table. This is clearer when handing over a template than several unnamed modifiers with different offsets.

Parameters and ranges

ParameterWhat it changesExample / check
First OperandFirst number or connection.1.2.
OperatorHow the operands are combined.Multiply applies a factor.
Second OperandSecond number or connection.0.75.
TimeTransforms the time at which inputs are read.Check separately from arithmetic.

USE IN A COMPOSITION

Build it in Fusion

Transform1 → Size

FUSION / FLOWNodes and parameter control
100%
ImageControl in the InspectorScroll or drag the graph. Choose “Fit” to see all of it.
Solid lines are node connections in the Flow. A dashed line is a parameter dependency configured in the Inspector. A solid arrow's color matches its destination input. Modifiers are shown separately from the Flow.control.Value → Transform1.SizeText1.Output → Transform1.InputTransform1.Output → MediaOut1.InputCalculation1 · Modifier · InspectorMODIFIERSCalculation1Calculation · MultiplyText1 · Image node · FlowT+Text1Text+Transform1 · Image node · FlowƒTransform1TransformSizeSize · an Inspector parameter, not an image portMediaOut1 · Image node · Flow↗MediaOut1MediaOut
Parameter · InspectorImage
Select a node or a colored arrow

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

  1. Add Calculation to Size on a clean Transform.
  2. On the Calc tab, set First Operand=1.2, Operator=Multiply and Second Operand=0.75.
  3. Verify Size=0.9.
  4. Replace First Operand with a link to the driver tool’s Size.
  5. Change the driver from 0.8 to 1.6: the follower should change from 0.6 to 1.2.
  6. Experiment with the Time tab only after verifying the range. Keep another copy without a time offset for comparison.

Expected result. The driven size is 75% of the source.

Checkpoints

When / what to checkExpectedWhy check it
Multiply: 1.2 and 0.750.9Checks scaling.
First/Second: 2 and 40.5Checks order.
Second/First: 2 and 42Same pair, different operation.
Divisor 0Invalid inputProtect the controller’s contract.

INTERACTIVE EXAMPLE

Change a parameter. Compare the result.

INTERACTIVE EXAMPLE

Calculation: a controllable multiplier

CONTROLLED INPUTTransform1 → Size
RESULT IN THE FRAMETEACHING PREVIEW
F
Size = 1
F
Size = 0.9
Original size on the left; result on the right
CALCULATION CHECK1.2 × 0.75 = 0.9

First Operand is multiplied by Second Operand. The value feeds Size, so it is a scale factor.

RESULTSize = 0.9
CHECK THE DEPENDENCY

The initial 1.2 × 0.75 gives 0.9. Then set First Operand = 2: expect 1.5.

A demonstration of the arithmetic output. Time offsets, expressions on inputs and pixel processing are not reproduced here.

Errors and troubleshooting

The difference has the opposite sign

Check operand order.

Animation disappeared after connecting

Return to the saved copy and use supported insertion into the existing dependency.

Independent exercise

Which operation adds a constant fifteen degrees to a driver angle?

Show the solution and explanation

Addition: the driver Angle plus constant 15. Neither multiplication nor a time Offset.

Continue learning

Official sources

Blackmagic Design · Fusion Reference ManualThe chapter “Using Modifiers, Expressions, and Custom Controls”. Page numbers depend on the PDF edition.
Blackmagic Design · Modifiers referenceThe Modifiers section. Available commands depend on the input type and Fusion version.

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.