Command Palette

Search for a command to run...

Назад к скиллам
скилл № 73219

matchmove

Track a plate's camera in the ComfyUI Image Viewer's matchmove - the lens distortion from a grid, lines or a comp, masks over what moves, feature tracks, the…

БесплатноБез исполняемых скриптов
szprivateот szprivate★ 53 звезды на GitHub

Установить matchmove в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Matchmove: a plate's camera, step by step

matchmove(action, options) does the steps of the viewer's Matchmove guide (the 3D space's Matchmove menu) on the open page. Every answer carries matchmove: the plate, camera, lens, masks, tracks and solve in numbers. Read those numbers after every step: they are how you know whether the track is good. Plate coordinates are its own pixels, x right, y down from the top left; frames count from 0.

The order matters. A wrong lens or an unmasked moving car spoils every step after it, and no amount of solving fixes it later.

0. Is a plate loaded already?

The user often loads the plate themselves (the guide's Plate step, the Plate panel, the plate in the main view). The turn's [VIEWER] lines then carry a matchmove plate=... line: its path, size, frame range, the frame shown ("this frame"), the step, the tracks and the solve. get_viewer_state has the same under state.matchmove. Start with matchmove("info") and go on with that plate; open only when the user wants another one. Never ask the user for the plate's path when one is loaded.

Looking at the plate

matchmove("frame", {"frames": [0, 40, 80]}) (or {"frame": n}; no frame = the one shown) saves those frames as pictures with the tracks drawn on them (green: solved under 1 px, yellow: not solved yet, red: over 1 px or switched off; their ids beside them when there are few) and lists each frame's tracks with x, y and error. Hand result.frames[i].path (or result.contact_sheet) to analyze_image(file_paths=[...]). Use it to see what is in the shot (what moves and needs a mask, where the floor is, straight lines for the lens), to check tracks sit on corners rather than on reflections or edges, and before telling the user anything about how the plate looks. "undistort": true shows the plate through the lens (no tracks drawn). At most 16 frames a call.

1. Plate

matchmove("open", {"plate": "<film, or one frame of a numbered sequence>"}) - only for a plate that is not loaded yet (step 0).

  • Track the original plate: not a graded, retimed, stabilised, cropped or rescaled copy. The lens and the frame size have to be the camera's.
  • Look at result.facts and matchmove.camera. When the file names a focal length and sensor, check them against what the user knows. The sensor size is the recorded area (the camera's format), not the whole chip. A wrong sensor gives a wrong field of view, and then a wrong depth for everything.
  • If the user knows the lens and format, give them: matchmove("camera", {"focal_mm": 35, "sensor": [24.9, 14.0], "known": true}). A known focal length is where the solve starts. With refine: "auto" (the default) the solve still refines it, which is what you want: metadata that is a little off gives a squashed or stretched solve when it is held fixed. Hold it (refine: "off") only for a lens you are sure of, measured on set. When unsure, leave known false and let the solve find it.
  • A camera the user names but the file does not: matchmove("camera", {"preset": "iphone14-wide"}). The list has phones (iphone12-wide .. iphone16-wide, iphone14pro-wide, iphone-ultra, iphone-tele77, iphone-tele120 ...) as 35 mm equivalents on the plate's own shape; an unknown id answers with the whole list.
  • An anamorphic plate: {"pixel_aspect": 2} (or 1.33, 1.5 ...) before the solve. Films say it themselves when they carry it; check matchmove.camera.pixel_aspect.
  • A zoom shot (focal length changing over the shot) is not supported. Say so instead of solving it.

A plate from an iPhone

An iPhone's own film (.mov) or photo (.heic, .heif) is read in full: open the original file straight off the phone (AirDrop or a cable, "Most Compatible" off), not a copy an app re-encoded, or the metadata is gone.

  • result.facts and matchmove.camera give the model and the lens (wide, ultra wide, tele) with its focal length from the phone's 35 mm equivalent. matchmove.phone says which camera, how it was turned (a film shot upright is turned upright for you), the iOS version, and whether it carries depth.
  • A phone stabilises and lens-corrects its films, which crops them a little: its focal length is a good start, never the answer. A fresh iPhone film therefore starts with refine: "on"; keep it.
  • Only a Cinematic film carries depth (matchmove.phone.depth with samples); ordinary iPhone video has none, no gyro data and no LiDAR. A HEIC portrait photo may carry a depth picture. Use the depth in the solve (step 5, depth: "phone"), for the clean-up (track_delete depth_edges), in step 7 (ground how phone) and, when the user wants the maps, matchmove("phone_export") writes the depth track as a 16-bit picture sequence (bright = near) and answers the pattern.
  • The phone's depth has no units: it sets the ground, not the scale. Measure for the scale (step 5).
  • The phone's lens distortion is already corr
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01matchmove
  2. 02get_viewer_state
  3. 03show_in_viewer
  4. 04edit_comp
  5. 05animate_scene
  6. 06analyze_image
  7. 07view_image

FAQ

Что делает скилл matchmove?

Track a plate's camera in the ComfyUI Image Viewer's matchmove - the lens distortion from a grid, lines or a comp, masks over what moves, feature tracks, the camera solve and its error, cleaning up bad tracks, orienting and scaling the scene, a moving object's own track, and the solved camera with the undistorted plate built into the 3D space. Use for "track this shot", "matchmove the plate", "solve the camera of this clip", "camera track for CG", "get me the camera from this footage", "undistort the plate", "lens grid", "track the car in the shot", "put a CG object into this shot", "export the lens distortion to Comp", "why does the solve drift", "track my iPhone clip", "the solve looks squashed", "use the iPhone's depth", "use AI depth for the track", "the camera barely moves", "set the ground", "mask the people with AI".

Как установить скилл matchmove?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл matchmove запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить matchmove с