Skip to content
VIDEOMONTAZHERDAVINCI RESOLVE · VIDEO · AI

FUSION · Expressions

Coordinates, Point and circular motion

Normalized coordinates, pixel conversion and a circle that stays circular.

Fusion / DaVinci Resolve 20–21

After this lesson

  • Convert a pixel radius to Point.
  • Preserve a circle in a wide frame.
  • Separate position, rotation and transformation origin.

Before you start

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

A positional input returns a point, not two separate numeric expressions. In a normal 2D composition, the image center is Point(0.5, 0.5). However, normalized X and Y units correspond to different pixel distances in a wide frame.

Point and coordinate systems

Point(x, y) constructs a position value. For an ordinary image, X increases to the right and Y upwards. The browser laboratory deliberately converts the Y direction because screen SVG coordinates increase downwards.

Center moves the object; Pivot defines the transformation origin. Do not compensate for an incorrect Pivot in the Center formula: check the tool geometry first.

Pixels in normalized units

A 100-pixel X offset at width 1920 is 100/1920; a Y offset at height 1080 is 100/1080. Use the image dimensions relevant to the input, not automatically the final timeline dimensions.

Equal X and Y amplitudes of 0.1 in a 16:9 frame produce an ellipse in pixels. For a circle, define the same pixel radius and divide by the corresponding dimension. This example assumes square pixels.

An orbit and independent rotation

Cosine for X and sine for Y with a shared phase produce a circle. Center defines the path but does not necessarily rotate the object along its tangent: set Angle separately.

SIMPLE EXPRESSION · FUSION
Point(0.5 + 160/1920 * math.cos(2 * math.pi * (time - comp.RenderStart) / 90), 0.5 + 160/1080 * math.sin(2 * math.pi * (time - comp.RenderStart) / 90))

Why equal numbers produce an ellipse

With square pixels in a 1920×1080 frame, x=0.1 is 192 pixels and y=0.1 is 108 pixels. Thus Point(0.5+0.1*cos(t), 0.5+0.1*sin(t)) traces a pixel ellipse despite equal coefficients. Dividing the radius by width and height corrects this geometry.

When changing format to 1080×1920, update the denominators. Non-square pixels also require their displayed aspect ratio; normalized coordinates alone do not guarantee a circle on screen. Check the Viewer using the correct display mode without uneven window stretching.

Orbiting does not have to rotate the object

Center controls where Transform moves the object. Angle controls orientation. Leave Angle=0 for text that travels in a circle while remaining horizontal. To rotate it with the motion, add a separate Angle dependency; matching periods alone do not guarantee the correct phase offset.

Start with an object centered in the source image. An offset mask inside a large transparent Background brings its own displacement into the orbit. Center the geometry first, then animate it. For cropped sources, check canvas size and Pivot: this is a separate issue from calculating Point.

Parameters and ranges

ParameterWhat it changesExample / check
160The circle radius in pixels.Horizontal offset 160/1920≈0.08333.
1920 / 1080Dimensions of the image that Center refers to.Not the Viewer window size.
90Period in frames.A quarter takes 22.5 frame intervals.
0.5, 0.5Orbit center.Change both base values to move the entire path.

USE IN A COMPOSITION

Build it in Fusion

Transform1 → Center; 1920×1080 composition

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.CenterText1.Output → Transform1.InputTransform1.Output → MediaOut1.InputPoint(x, y) · Expression · InspectorEXPRESSIONPoint(x, y)Simple ExpressionText1 · Image node · FlowT+Text1Text+Transform1 · Image node · FlowƒTransform1TransformCenterCenter · 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. Create a small object initially centered in the image.
  2. Add Transform and an Expression on Center.
  3. Paste the formula for 1920×1080.
  4. Check the circle in a Viewer with the correct pixel aspect, then change the radius.
SIMPLE EXPRESSION · FUSION
Point(0.5 + 160/1920 * math.cos(2 * math.pi * (time - comp.RenderStart) / 90), 0.5 + 160/1080 * math.sin(2 * math.pi * (time - comp.RenderStart) / 90))

Expected result. The object center follows a circle with a 160-pixel radius and a 90-frame period.

Checkpoints

When / what to checkExpectedWhy check it
0Point(0.58333, 0.5)Rightmost point of the orbit.
22.5Point(0.5, 0.64815)Top point; Y increases upwards.
45Point(0.41667, 0.5)Leftmost point.
67.5Point(0.5, 0.35185)Bottom point.

INTERACTIVE EXAMPLE

Change a parameter. Compare the result.

INTERACTIVE EXAMPLE

Orbit

CONTROLLED INPUTTransform1 → Center
VIEWER · FORMULA EVALUATION1920 × 1080
X → · Y ↑ · radius 160 px
TEACHING VIEWER0023 f
0 f← → one frame at a time25 fps
VALUE GRAPH
XY
0.320.50.680 f45 f90 f
Select a point on the graph to go to that frame. Values are checked throughout the range.

An equal radius in pixels on both axes. Different denominators preserve a circle in a wide frame.

VALUE AT THIS FRAME 23Point(0.497092, 0.648058)
CHECK THE DEPENDENCY

Change the radius. The circle must remain circular: X and Y values convert to pixels using different frame dimensions.

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 result is an ellipse

Account for width, height and pixel aspect.

The object orbits an offset center

Check its initial position, Center and Pivot before enabling the expression.

Independent exercise

Use a 100-pixel radius and move the orbit center to Point(0.3,0.6).

Show the solution and explanation

Replace 160 with 100 in both amplitudes, the first base 0.5 with 0.3 and the second with 0.6.

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.