Skip to content
Clipwright
Menu
Scale bar that rescales with the zoom: a frame from a film that uses it.
OverlayNew

Scale bar that rescales with the zoom

A map-style scale bar in nice 1-2-5 lengths, labelled in m, km, AU or light years, that keeps honest as the view zooms.

Version
1.0.0
Added
23 October 2026
Films
Not used in a film yet

Parameters

NameTypeDefaultRangeWhat it does
metresPerFrame (Can change over time)number20001e-12 to 1e+30 mhow many metres the frame's width spans; the bar follows it (a track or a follower of the counter)Can change over time
unitchoiceautoauto, nm, um, mm, cm, m, km, Mm, AU, ly, pc, ft, mithe unit it is written in; auto picks cm, m, km, AU or ly to suit the zoom
lengthnumber0.240.08 to 0.6the longest the bar gets, a share of the frame's width
labeltext–– to 40a word over the bar, such as the thing it measures; empty for none
showFrameboolfalse–also write how wide the whole frame is, under the bar
stylechoicecheckerchecker, linea banded map bar, or a plain ruled line
alignchoiceleftleft, rightthe bar grows right from its zero, or left
formatchoicegroupedgrouped, plain, compact, scientifichow numbers are written: 12,500 / 12500 / 12.5k / 1.25×10⁴
atvec20.05, 0.90 to 1the bar's zero, across and down the frame; a bar near an edge slides in
sizenumber0.0420.035 to 0.09the height of the length written over the bar, a share of the frame's height
thicknessnumber0.0160.006 to 0.04the bar's height, a share of the frame's height
inkcolor#f3f0e8–its words, numbers, ticks and outlines
accentcolor#4fb8e8–the bar's bands
fontchoicesanssans, serif, monothe face of its words and numbers
backingnumber0.450 to 1how dark the soft panel behind it is; 0 for none
revealnumber0.80 to 5 show long it takes to draw in; 0 shows it at once

Use it in a film

film.js
elements: { 'scale-bar': { metresPerFrame: 2000, unit: 'auto' } }

Sources

Use it from your agent

Ask your agent to put it in a film. It finds the element by name.