Skip to content
VIDEOMONTAZHERDAVINCI RESOLVE · VIDEO · AI

FUSION · Expressions

Easing: linear ramps and smoothstep

Create a soft start and stop, then map the curve to any range.

Fusion / DaVinci Resolve 20–21

After this lesson

  • Separate time normalization from the curve shape.
  • Build a smooth transition with zero speed at both ends.
  • Map progress to any range.

Before you start

Composition
A separate Fusion Composition. 1920×1080, square pixels, 25 fps.
Parameter
Merge1 → Blend
Range
Start at comp.RenderStart. Reference frames are local unless stated otherwise.

Linear motion has constant speed between its endpoints but starts and stops instantly. Easing redistributes speed. A cubic smoothstep function is enough for a simple gentle transition.

Normalize time first

Let u = clamp((time-start)/duration,0,1). This is explanatory notation, not an automatically available Fusion variable. For a one-line formula, substitute the complete expression or create a separate custom control.

Smoothstep is u*u*(3-2*u). Its endpoints remain 0 and 1, with zero slope at each end. The midpoint is 0.5. Speed is not constant: the object accelerates and then slows down.

A complete 40-frame formula

The following expression has no hidden variables and can be pasted into a numeric input. Repeated parts make it longer but show the exact dependency.

SIMPLE EXPRESSION · FUSION
(math.min(1, math.max(0, (time-comp.RenderStart)/40)))^2 * (3 - 2 * math.min(1, math.max(0, (time-comp.RenderStart)/40)))

Mapping the curve and choosing a tool

For a range A…B, use A+(B-A)*easedProgress. For example, 0.8+0.2*smoothstep gently raises scale from 0.8 to 1.0.

Spline Editor is more convenient for a complex hand-shaped curve. Anim Curves suits reusable transitions controlled through Inspector. Bounce and overshoot may suit some parameters but are often inappropriate for Blend.

Why smoothstep feels softer

A linear ramp maintains speed inside the transition but jumps from zero to that speed at the start and back to zero at the end. For 3u²−2u³, the slopes at u=0 and u=1 are zero, creating gentle starts and stops. This is not a physical spring: smoothstep has no decaying oscillation or overshoot.

At one quarter of the duration, linear progress is 0.25 while smoothstep is 0.15625. At three quarters, smoothstep is 0.84375 instead of 0.75. Sharing a midpoint of 0.5 does not make the curves identical. Compare their starts and ends.

Mapping 0…1 to size or position

Normalized progress need not drive Blend. For Size from 0.8 to 1.1, calculate 0.8+0.3*f(u). For X from 0.2 to 0.8, use 0.2+0.6*f(u), then include it in Point(X,0.5). Expose the endpoints as controls to preserve the motion shape at different sizes.

Clamp u before applying the polynomial. Evaluating 3u²−2u³ outside 0…1 makes the result reverse direction; clamping the final result does not correct the trajectory. Use Spline for manually directed motion, and a formula or Anim Curves for repeatable parametric transitions.

Parameters and ranges

ParameterWhat it changesExample / check
uProgress clamped to 0…1.u=(time−start)/40 after clamping.
f(u)=u²(3−2u)Acceleration and deceleration shape.Neither overshoot nor a spring.
40Transition duration.1.6 seconds at 25 fps.

USE IN A COMPOSITION

Build it in Fusion

Merge1 → Blend

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.Background1.Output → Merge1.BackgroundMerge1.Output → MediaOut1.InputText1.Output → Merge1.Foregroundcontrol.Value → Merge1.BlendText1 · Image node · FlowT+Text1Text+Background1 · Image node · Flow▧Background1BackgroundMerge1 · Image node · Flow⊕Merge1MergeBlendBlend · an Inspector parameter, not an image portMediaOut1 · Image node · Flow↗MediaOut1MediaOutSmoothstep · Expression · InspectorEXPRESSIONSmoothstepSimple Expression
BackgroundImageForegroundParameter · Inspector
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 parameter4

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. Create a background and foreground.
  2. Paste smoothstep into Blend.
  3. Compare it with a linear ramp of the same duration.
  4. Watch the first and last five frames, not just the middle.
SIMPLE EXPRESSION · FUSION
(math.min(1, math.max(0, (time-comp.RenderStart)/40)))^2 * (3 - 2 * math.min(1, math.max(0, (time-comp.RenderStart)/40)))

Expected result. The transition starts and ends more gently than a linear ramp; the value holds before and after it.

Checkpoints

When / what to checkExpectedWhy check it
00Zero initial speed.
100.15625Behind the linear ramp.
200.5Midpoint.
300.84375Already ahead of linear progress.
40 onwards1Holds the final state.

INTERACTIVE EXAMPLE

Change a parameter. Compare the result.

INTERACTIVE EXAMPLE

Smooth reveal

CONTROLLED INPUTMerge1 → Blend
VIEWER · FORMULA EVALUATIONPREVIEW
VIDEOMONTAZHER / FUSION

Motion
in the details.

TEACHING VIEWER0020 f
0 f← → one frame at a time25 fps
VALUE GRAPH
Value
-0.120.51.120 f40 f80 f
Select a point on the graph to go to that frame. Values are checked throughout the range.

First clamp progress to 0…1, then reshape it with smoothstep. The value holds after the transition ends.

VALUE AT THIS FRAME 200.5
CHECK THE DEPENDENCY

Move past the transition end. The value should hold rather than keep increasing.

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

The value starts changing again outside the range

Clamp u before applying the polynomial.

The pasted variable u is unknown

u is shorthand in the explanation; create a control or substitute the full formula.

Independent exercise

How do you map an existing 0…1 curve e to scale 0.6…1.2?

Show the solution and explanation

0.6 + (1.2-0.6)*e, or 0.6+0.6*e. Check the limits of e first.

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.