Skip to content
VIDEOMONTAZHERDAVINCI RESOLVE · VIDEO · AI

FUSION · Expressions

Title duration and adaptive animation

When to stretch an entire curve, when to preserve the entrance and exit, and how to test short clips.

Fusion / DaVinci Resolve 20–21

After this lesson

  • Choose proportional or segmented time changes.
  • Understand the limits of RenderStart/RenderEnd.
  • Test a title in Edit as well as Fusion.

Before you start

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

A reusable title must survive duration changes in Edit. Stretching animation can mean two different things: scaling all motion, or preserving a quick entrance and exit while changing only the hold between them.

Progress across the entire composition

Normalized time travels from 0 to 1 across the complete range. It suits a progress indicator or a gradual change intended to last for the whole clip.

SIMPLE EXPRESSION · FUSION
math.min(1, math.max(0, (time-comp.RenderStart) / math.max(1, comp.RenderEnd-comp.RenderStart)))

Protected edges

A lower third often needs to preserve, for example, ten frames of entrance and ten frames of exit. The remaining duration is a hold. Study KeyStretcher or the relevant keyframe-time node for this, rather than dividing all times by the new duration.

If the finished clip is shorter than the protected edges combined, define the policy in advance: minimum duration, shorter entrance/exit, or a separate short version. A modifier cannot remove this logical conflict.

Test where the template will be used

Test the template in Edit on short, original and long clips. Also test different text lengths, a composition start other than zero and nested use.

Continuous flicker or noise does not always need to follow title stretching. Separate it from entrance keys so the hold does not freeze the effect.

Two different duration contracts

Proportional normalization stretches all motion with the clip: doubling the clip makes the entrance twice as slow. This helps a progress bar spanning an entire segment but may not suit a lower third, whose entrance and exit usually retain their pace while extra seconds allow reading.

A segmented approach divides time into entrance, hold and exit, changing only the middle. Such a template has a minimum length: a clip shorter than entrance plus exit cannot preserve both unchanged. Either prohibit that length or provide a shorter animation.

Why changing the range is insufficient

RenderStart and RenderEnd describe the range available to the composition, but a published title’s behavior depends on packaging and timeline trimming. A correct formula inside the source composition does not replace testing the completed template in Edit.

Create short, original and long title copies. Measure entrance completion, exit start and full-display duration on each. Trim the beginning as well as the end; many errors appear when changing the left boundary. Repeat after changing the text, since longer lines may need more reading time.

Parameters and ranges

ParameterWhat it changesExample / check
RenderEnd−RenderStartNumber of intervals for complete progress.The start and end correspond to 0 and 1.
Entrance / exitProtected intervals in the segmented approach.For example, fifteen intervals each.
HoldThe region that can be stretched.It should not contain unwanted movement.

USE IN A COMPOSITION

Build it in Fusion

Merge1 → Blend or a separate Progress control

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↗MediaOut1MediaOutProgress 0…1 · Expression · InspectorEXPRESSIONProgress 0…1Simple 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 Text1 (Text+) and Background1. Connect Text1 to green Foreground and Background1 to yellow Background on Merge1; connect Merge1 to MediaOut1.
  2. Set the composition range to 0…100. Right-click Merge1 Blend → Expression and paste the full-range progress formula.
  3. Visit frames 0, 50 and 100: Blend should be 0, 0.5 and 1. The last frame is included: there are 101 frames and 100 intervals.
  4. Change the range end to 200. Frame 50 should now read 0.25, frame 100 should read 0.5, and frame 200 should read 1.
  5. On a copy, move the range to 1001…1201. The start, middle and end should repeat the same values.
  6. For an Edit template, test extension and trimming from both ends. For fixed entrance and exit durations, continue to the KeyStretcher example.
SIMPLE EXPRESSION · FUSION
math.min(1, math.max(0, (time-comp.RenderStart) / math.max(1, comp.RenderEnd-comp.RenderStart)))

Expected result. Progress reaches one on the final frame of each range.

Checkpoints

When / what to checkExpectedWhy check it
Range 0…1000 / 0.5 / 1 at 0 / 50 / 100Proportional progress.
Range 0…2000 / 0.5 / 1 at 0 / 100 / 200The middle stretches with the entire motion.
Clip shorter than the protected edgesRequires a separate policyDo not promise to preserve two segments when that is impossible.

INTERACTIVE EXAMPLE

Change a parameter. Compare the result.

EXPRESSION · INTERACTIVE EXAMPLE

The whole range becomes one transition

CONTROLLED PARAMETERMerge1 → Blend
0 f← → one frame at a time25 fps
VALUE GRAPH
Blend
-0.120.51.120 f50 f100 f
Select a point on the graph to go to that frame. Values are checked throughout the range.

Progress is calculated between the composition's first and last frames. Extend the range: the same transition takes longer.

OUTPUT VALUE0.5
CHECK THE ORIGINAL EXAMPLE

For 0…100, the midpoint is frame 50; for 0…200, it is 100. In both cases, Blend=0.5 at the midpoint and 1 at the end.

Formula for the current settings +
Merge1 → Blend
math.min(1, math.max(0, (time - comp.RenderStart) / math.max(1, comp.RenderEnd - comp.RenderStart)))

This shows proportional stretching of the entire animation. To preserve a fixed entrance and exit, use the separate KeyStretcher example.

Errors and troubleshooting

A long title appears too slowly

The whole animation was stretched. Preserve the edges and change only the middle.

A short title cannot finish disappearing

Define a minimum duration or separate behavior for short clips.

Independent exercise

Entrance and exit take twelve frames each. What needs checking on an eighteen-frame clip?

Show the solution and explanation

The protected regions are longer than the clip combined. Define a shortening policy or minimum duration; testing only a long title will not expose the issue.

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.