Skip to content

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

PortTypeDirectionDescription
inimageRgba16finputThe image to pin (the "insert" — typically a LayerSource referencing your screen-content layer).
to0_into3_invec2inputDestination corner overrides. Wire PlanarTrack's c0c3 here; connected values fully override the to params.
outimageRgba16foutputThe warped result. Transparent outside the quad.

Parameters

ParamTypeDefaultDescription
to0to3vec2comp cornersDestination quad (comp pixels, top-left origin; TL, TR, BR, BL). Keyframeable for manual four-point animation.
fromModeenumCompCornersCompCorners maps the full input frame onto the quad. Custom exposes a source quad for pinning a sub-region.
from0from3vec2comp cornersSource 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.
  • 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

Caddis — professional motion design.