Appearance
Measure
Reports the extent of whatever is wired into it — width, height, size, center and corners — as plain values you can wire into anything else.
Category: Utility Menu path: Utility > Measure
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
in | shape / points / text / imageRgba16f | input | The thing being measured |
other | shape / points / text | input | Optional. A second thing to measure the gap to (see Distance) |
width | scalar | output | Measured width in comp pixels |
height | scalar | output | Measured height in comp pixels |
size | vec2 | output | (width, height) as one vec2 |
center | vec2 | output | Center of the measured box |
min | vec2 | output | Top-left corner (smallest x, smallest y) |
max | vec2 | output | Bottom-right corner (largest x, largest y) |
visualCenter | vec2 | output | Shapes only: the point deepest inside the shape — where a label or icon belongs. Zeros for other inputs |
innerRadius | scalar | output | Shapes only: how far that point is from the outline — the radius of the biggest circle that fits inside |
distance | scalar | output | With other wired: the gap between the two, 0 when they touch or overlap |
nearest | vec2 | output | With other wired: the closest spot on the input |
nearestOther | vec2 | output | With other wired: the closest spot on other |
Every output is in origin-centerd composition pixels — (0, 0) is the center of the frame, +x right, +y down — the same space shapes and points are authored in. That means center drops straight into a Transform2D position and size straight into a Rectangle, with no conversion.
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
mode | string | Content | Content = the extent of what the image actually contains; Canvas = the whole frame. Only shown, and only meaningful, when an image is wired in — geometry and text are always measured at their own extent. |
padding | vec2 | (0, 0) | Grows the measured box. padding.x is added to the total width, padding.y to the total height — half on each side, so center never moves. size, width, height, min and max all include it. |
Expose Channels
None. Measure produces values rather than consuming them; there is nothing to drive.
How It Works
A pure CPU value node — no texture output, no GPU work, no cost worth thinking about.
What it measures depends on what is wired in:
- Shape — the curve-aware bounding box, so a bezier that bulges past its anchor points is inside the measurement. (Measuring the anchors alone would hand you a box the curve escapes from.)
- Points — the bounding box of the point positions.
- Text — the layout box the Text node computed: the extent of the set copy, including line wrapping and multiple lines. After a Text Animate, only the letters that are showing count: a letter counts as soon as it starts to appear, and one that hasn't started yet doesn't. The width runs from the first showing letter to the last, and the height reaches down to the last line with a showing letter. A box sized from Measure grows letter by letter behind a typewriter reveal. Before the first letter appears, every output is zero.
- Image — measured structurally, not by scanning pixels. The node follows the wire back through the chain to its source and reports where that source's rectangle lands on the frame, carried through any Transform2D or Crop on the way. It does not read the image back off the GPU and look for lit pixels, so it will not find the tight extent of, say, a blob painted in the middle of a transparent frame. A generator (Noise, Gradient, Solid Color) or any chain the walk cannot resolve reports the whole frame — which is what those actually fill.
Canvasmode reports the frame rect outright. - Nothing wired, or geometry with no points — every output is zero, including
center. Padding does not apply: it grows a measurement, it does not invent one.
Measure has no clock of its own. It re-reports whenever what it is measuring changes, and costs nothing when that thing is static.
Seeing the numbers
Select the Measure node and Properties shows a Readout section with the measured Size and Center, in composition pixels — the same numbers the ports publish, padding included. They are live measurements, not parameters: there is nothing to type, drag or keyframe there.
The readout follows the last rendered frame. Scrub or play and it moves with the picture; when a frame doesn't need to re-evaluate the node, the last numbers stay on screen rather than blanking out.
min and max are not in the panel — they are the same box said a different way, and they are on the ports for anything that needs them.
Visual Center
center is the middle of the bounding box, which can fall outside the shape itself: the middle of an L, a C or a ring is empty. visualCenter is the point inside the shape that is farthest from every edge, so it always sits inside, in the thickest part. innerRadius is that distance: the biggest circle that fits. Text and images report zeros here; for type, convert it with Text To Shape first.
Distance
Wire a second shape, points or text into other and Measure finds the closest pair: nearest on the input, nearestOther on other, and distance between them. Filled shapes that overlap are 0 apart. Points are measured to their nearest point; text to its layout box.
Usage Examples
Label in the thick of a shape
Shape → Measure, visualCenter → Transform2D.position_in on a Text layer. Scale the label by innerRadius so it always fits.
Connector that hugs the edges
Shape A → Measure.in, Shape B → Measure.other; nearest → Line.p1_in, nearestOther → Line.p2_in. The line joins the two outlines edge to edge as they move.
React as things get close
distance → Math (Remap 200…0 to 0…1) → Glow.intensity_in: the glow comes up as two shapes approach.
Basic: a plate that fits its text
The reason this node exists. Instead of keyframing a rounded rectangle to match every copy change:
Text ──┬──────────────── DrawText ─┐
│ ├─ Merge ── Output
└─ Measure ── Rectangle ── Transform2D ── DrawShape ─┘Wire Text.out into Measure.in, then Measure.size into the Rectangle (or width → width_in and height → height_in if you want them separately). Set padding to the breathing room you want — (60, 32) is a reasonable plate — and the rectangle now tracks the copy, at any string, any font size, any number of lines. Put the DrawShape below the DrawText in the Merge so the plate sits behind the type.
Add cornerRadius on the Rectangle for a pill, and animate the Text and the plate together from one Transform2D.
Basic: a plate that types along
Put a Text Animate between the Text and Measure, set up as a typewriter, and feed the same animated text to the DrawText. The plate now grows with the letters as they appear. Wire Measure.center into the plate's Transform2D position_in as well as size into the Rectangle. A Rectangle grows from its middle, so without the center the plate would spread in both directions instead of following the letters.
Basic: center something on something else
Wire Measure.center into a Transform2D's position_in to park one element on the middle of another's extent — useful when the thing being measured moves or resizes under animation.
Creative: a bar that reads a point cloud
Measure a points cloud (a Point Scatter, a particle population, a Grid) and drive a Rectangle's width from width. The bar now reports the spread of the population as it disperses — a readout built out of the same geometry it describes.
Practical: framing an image
Measure an Image Source to get the rectangle it occupies in the frame, then use size to build a border or a matte around it that follows the footage's aspect without hand-typing numbers. Remember this is the image's placement rectangle, not its lit content — see How It Works.
Tips
- Padding is the total added extent, not a per-side inset:
padding.x = 60gives 30px of room on each side. It reads the way a designer thinks about a plate, and it keepscenterfixed. - Measuring a Transform2D's output measures the transformed result, which is usually what you want — put the Measure after the transform, not before.
- The measurement is a box, not an outline. A rotated shape measures its axis-aligned bounding box, which is larger than the shape itself.
- Wiring
sizeinto a Rectangle gives you a plate the same size as the content, edge to edge. Almost every real use wants somepadding. - For the composition's own dimensions rather than a layer's content, use Comp Details instead — it is free and does not depend on anything being wired.
Related Nodes
- CompDetails — the composition's width / height / fps / duration, rather than a piece of content's
- Rectangle — the usual consumer:
width_in/height_intake the measurement - Transform2D — takes
centeronposition_into park something on what was measured - Text — the usual subject; also exposes its own
width/heightoutputs for the simple single-node case - VectorMath — for arithmetic on
sizebeyond whatpaddingcovers - Debug — the same readout channel on the node's face, for any value in the graph rather than a measurement