Animate
Sizes & units
Any size can be written relative to the comp or to the screen, with limits like CSS clamp(). A 2 px line stays 2 px on the output whether the scene is at ×1 or ×13,000.
What takes a unit
Every size: a stroke width, a shape's width and height, a font size, letter spacing, padding, an auto-layout gap, a corner radius, a feather, and every effect radius and offset. In the inspector, the small chip beside a field's keyframe diamond picks its unit and its limits.
The units
px— plain comp pixels, the default.fw·fh— percent of the comp's width or height. A card80fwwide fits any format.%— percent of the parent box (an auto-layout group with a set size, else the comp).spx— screen pixels: pixels of the output, whatever the layer's scale, its groups' scale or the nests above it. For lines, markers and glows inside a zoom.vw·vh·vmin·vmax— percent of the output frame, also steady at any scale.
Comp units scale with the scene, like px. Screen units do not: they are divided by every scale between the layer and the output. The stage's own zoom is a magnifier and never changes a size.
Limits
clamp(1spx, 0.2fw, 6spx) grows with the comp but never draws thinner than 1 or thicker than 6 screen pixels. max(1spx, 0.2fw) sets only a floor, min(0.2fw, 6spx) only a ceiling. Each bound has its own unit — the line zooms with the scene, but never vanishes and never turns into a slab.
Keys, expressions and agents
A field keeps its unit: later numbers and every key are in it, and changing the unit converts the keys so the size holds. In expressions, spx(), fw(), fh(), vw() and friends mix like CSS calc(): fw(50) - spx(8). Agents write the same text: layer.set {"stroke.<id>.width": "2spx"}.
Effects at output resolution
Layer effects are drawn at the output's resolution through any nest, so a glow on a dot inside a ×13,000 zoom is as crisp as one at ×1, and fading a magnified nest no longer turns it soft or blocky.