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
| Parameter | What it changes | Example / check |
|---|---|---|
| First Operand | First number or connection. | 1.2. |
| Operator | How the operands are combined. | Multiply applies a factor. |
| Second Operand | Second number or connection. | 0.75. |
| Time | Transforms the time at which inputs are read. | Check separately from arithmetic. |
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
- Add Calculation to Size on a clean Transform.
- On the Calc tab, set First Operand=1.2, Operator=Multiply and Second Operand=0.75.
- Verify Size=0.9.
- Replace First Operand with a link to the driver tool’s Size.
- Change the driver from 0.8 to 1.6: the follower should change from 0.6 to 1.2.
- 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 check | Expected | Why check it |
|---|---|---|
| Multiply: 1.2 and 0.75 | 0.9 | Checks scaling. |
| First/Second: 2 and 4 | 0.5 | Checks order. |
| Second/First: 2 and 4 | 2 | Same pair, different operation. |
| Divisor 0 | Invalid input | Protect the controller’s contract. |
INTERACTIVE EXAMPLE
Change a parameter. Compare the result.
Calculation: a controllable multiplier
Transform1 → SizeFirst Operand is multiplied by Second Operand. The value feeds Size, so it is a scale factor.
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
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.