Corner Pin
Warps an image onto a four-corner quad with true perspective — the screen-replacement workhorse.
Category: Track Menu path: Track > Corner Pin
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
in | imageRgba16f | input | The image to pin (the "insert" — typically a LayerSource referencing your screen-content layer). |
to0_in–to3_in | vec2 | input | Destination corner overrides. Wire PlanarTrack's c0–c3 here; connected values fully override the to params. |
out | imageRgba16f | output | The warped result. Transparent outside the quad. |
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
to0–to3 | vec2 | comp corners | Destination quad (comp pixels, top-left origin; TL, TR, BR, BL). Keyframeable for manual four-point animation. |
fromMode | enum | CompCorners | CompCorners maps the full input frame onto the quad. Custom exposes a source quad for pinning a sub-region. |
from0–from3 | vec2 | comp corners | Source quad (Custom mode only). |
How It Works
Computes the 3×3 homography mapping the from-quad to the to-quad and inverse-samples the input on the GPU with a perspective divide — straight lines stay straight and perspective foreshortening is correct, unlike a 2D scale/skew approximation. A degenerate quad (corners collinear) passes the input through unchanged rather than erroring.
Usage Examples
Screen replacement
Footage layer: VideoSource → PlanarTrack → Output. Insert layer: your screen content. On the footage layer, use the PlanarTrack's Pin Setup button (Properties) — it wires LayerSource(insert) → CornerPin, connects the tracked corners, and merges the pin over the footage. Done.
Manual four-point animation
A standalone CornerPin with keyframed to corners makes a quick "page peel" / perspective slide without any tracking.
Tips
- Drag the pins in the viewer. When the pin is track-driven, drags write correction keyframes on the upstream PlanarTrack instead of fighting the track.
- Content pinned outside the comp is clipped.
- For soft-edged inserts, matte or feather the insert layer before the pin.
Related Nodes
- PlanarTrack — drives the corners from tracked footage
- LayerSource — brings the insert layer's pixels into the footage layer's graph
- UVRemap — arbitrary per-pixel distortion when four corners aren't enough