Nodes/PlateTrack/Export Track
ComfyUI Node

Export Track

Take the match move to Nuke or After Effects

By edgarciavfx·Created 2 months ago·Updated 2 months ago· 1
Export Track
  • track_data
  • path
  • snippet
formatplatetrack_json
filename_prefixtrack
start_frame1
fps24.000

Tracking in ComfyUI is handy, but finishing in ComfyUI is a stretch for a lot of shots. Export Track is the bridge: it writes your track to a canonical JSON file, or - the part that makes it special - renders it as a ready-to-paste Nuke CornerPin2D node or After Effects Corner Pin keyframe data. You tracked in the graph; you finish in the compositor; nothing needs re-doing.

How it works

Every format is baked from the same per-frame homography chain the apply nodes use, so what you pin in ComfyUI is exactly what lands in the compositor. One key per frame, no interpolation surprises.

  • nuke_cornerpin emits a complete, animated CornerPin2D node as .nk text. Save the snippet, open it (or paste it) into the Nuke DAG. The Y-flip to Nuke's Y-up coordinates is already handled, and the from1–4 pins are set to the reference-frame corners, so it's an exact match-move of your tracked quad - paste and it just works. Nuke scripts are 1-based, so start_frame (default 1) sets where the curves begin.
  • ae_cornerpin emits Adobe "8.0 Keyframe Data" text for the Corner Pin effect. Apply Corner Pin to your insert layer, copy the exported text, select the layer, paste. Keyframes are 0-based and per-frame; fps (default 24) only fills the header, so match it to your comp's frame rate.
  • platetrack_json writes the canonical .platetrack.json - the thing Import Track reads back. That's your save-and-share format, and the "keep the track, drop the node graph" option.

Inputs and outputs

  • track_data - the track to export.
  • format - one of the three above.
  • filename_prefix (default "track") - the output filename base.
  • start_frame (optional) - where Nuke curves begin.
  • fps (optional) - AE header frame rate.

Outputs are path (where the file was written) and snippet (the full text, so you can copy it straight off the node - the AE path is literally clipboard-paste, so the snippet output is the feature).

Installing it

Same pack, same install: PlateTrack in Manager or clone + pip install -r requirements.txt. OpenCV only. You don't need Nuke or AE installed to produce the files - they're just text.

Where people get burned

  • Nuke frame numbering. If your curves start at the wrong frame, check start_frame - the default is 1 for Nuke conventions.
  • AE is 0-based and Nuke is 1-based; don't reuse a Nuke start_frame on an AE paste and expect the same timeline.
  • The export is only as good as the track. Export a drift-heavy track and you've exported drift. Fix it in the Planar Track editor first, then export.
CategoryPlateTrack

Inputs (5)

NameTypeDefaultDescription
track_dataPLATETRACK_DATA
formatCOMBOplatetrack_json3 options: platetrack_json, nuke_cornerpin, ae_cornerpin
filename_prefixSTRINGtrack
start_frameoptINT10–1000000
fpsoptFLOAT24.0001–240

Outputs (2)

NameTypeDescription
pathSTRING
snippetSTRING