/surface-mapper:upgrading-from-0-6from surface-mapper
Use when updating from obs-mapping (0.6.x or earlier) to Surface Mapper (0.7.0 or later) and existing Mapping sources broke — a Mapping source shows an error, appears as a missing or unknown source type, or its mapping disappeared after the update, a scene collection JSON still references "obs_mapping_source", or a CallVendorRequest to vendor "obs-mapping" fails.
Ships in surface-mapper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
0.7.0 renamed the plugin from obs-mapping to Surface Mapper and changed its identifiers. OBS stores each source with its type id, so scene collections saved by 0.6.x still point at obs_mapping_source, a type that no longer exists — OBS keeps the source but cannot load it. The settings keys (mapping_json, mapping_json_last_valid, overlay) and the mapping JSON format did not change, so renaming the type id restores the sources with their mappings intact.
| obs-mapping (≤ 0.6.x) | Surface Mapper (≥ 0.7.0) | |
|---|---|---|
Source type id (id, versioned_id) | obs_mapping_source | surface_mapper_source |
| obs-websocket vendor name | obs-mapping | surface-mapper |
| Plugin folder | obs-mapping / obs-mapping.plugin | surface-mapper / surface-mapper.plugin |
The installers already remove the old plugin folder. Scene collections and external scripts need the steps below.
| OS | Folder |
|---|---|
| macOS | ~/Library/Application Support/obs-studio/basic/scenes/*.json |
| Windows | %APPDATA%\obs-studio\basic\scenes\*.json |
| Other / portable OBS | Pass the folder as an argument to the script |
scripts/migrate.py (in this skill's folder) is Python 3, standard library only. It rewrites every id / versioned_id equal to obs_mapping_source in every *.json of the folder, and nothing else.
--apply while OBS is running.python3 scripts/migrate.pypy scripts\migrate.pypython3 scripts/migrate.py /path/to/basic/scenes--apply. Each changed file is first copied to <name>.json.pre-surface-mapper-<YYYYmmdd-HHMMSS>.bak.To roll back, quit OBS and copy the .bak over the .json (drop the .pre-surface-mapper-….bak suffix).
The script never touches mapping_json or any other setting, and it is idempotent: running it again reports Nothing to migrate.
| Symptom | Cause / fix |
|---|---|
Sources still missing after --apply | OBS was running and overwrote the file on quit. Quit OBS, restore the .bak, run --apply again |
| Source loads but draws nothing | Each surface's source is an OBS source name; it no longer matches a current input. Rename the input back or fix source (see writing-mapping-json) |
| External scripts / agents fail | They still call vendor obs-mapping or create obs_mapping_source. Use surface-mapper and surface_mapper_source (see driving-surface-mapper-over-websocket) |
| Dry run lists nothing but sources are broken | Wrong folder (portable OBS, other profile path). Pass the folder that holds the collection's .json |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub naporin0624/surface-mapper --plugin surface-mapper4 skills in this plugin
/driving-surface-mapper-over-websocketUse when a script, agent or app needs to read or change a Surface Mapper Mapping source from outside the dock — calling CallVendorRequest with vendor "surface-mapper", creating a Mapping source over obs-websocket, listening for MappingChanged / OverlayChanged, a SetMapping that returns ok:false, a mapping that was sent but the output looks unchanged, or Program showing only part (e.g. a quarter) of a mapping that looks correct in a source screenshot./mapping-led-pixel-mapsUse when turning an LED pixel-map chart, LED processor input layout or venue screen drawing (per-screen pixel rectangles on one output canvas) into a Surface Mapper mapping — placing several LED screens on one canvas, round or circular LED screens, deciding how content should fill screens of different aspect ratios, content looking stretched or squashed on a screen, or the LED output being offset, scaled or showing the wrong region./writing-mapping-jsonUse when writing, generating, editing or reviewing a Surface Mapper mapping JSON (version 2) — surfaces, crop, corners, masks, groups, layers — or when SetMapping / Import rejects a document with a path-prefixed error such as "surfaces[0].crop: must satisfy …", "surfaces: order must match the depth-first order of layers", "layers: surface \"x\" is missing from the tree" or "surfaces[1].mask: expected object", or when a surface shows the wrong part of its source, appears in the wrong place, or does not draw at all.