Photo to Part
PLUGINPhoto to Part for Ulpi: turn photos, a few measurements, or a messy 3D scan into a parametric printable part, and check the mesh locally before you print.
by mojomast · v0.1.23
What it does
Photo to Part for Ulpi: turn photos, a few measurements, or a messy 3D scan into a parametric printable part, and check the mesh locally before you print. The agent writes the solid in code, checks that it is watertight and the right size, and renders views you can hold next to the original.
Six tools: photo_part_template (watertight starting shapes such as plates with holes, an L-bracket, a print-in-place hinge, thread, knurl, hex standoff, bottle cap, spur gear and strap hinge), photo_part_build (runs one local build script after Ulpi approval), photo_part_validate (watertightness, shell count, size, bores, printability and spec.json dimension checks), photo_part_render (fitted views, a comparison sheet and a silhouette overlay scored against your photo), photo_part_heal (weld, fill holes and clean up a scan) and photo_part_measure (pixels per millimetre from a coin, a ruler or an ArUco/AprilTag marker). Output is STL or 3MF; a STEP solid needs CadQuery or build123d in the project environment.
A millimetre value you state is never replaced by a photo measurement. Ulpi 0.23 or newer can show an optional Part studio pane with the stage, photo and overlay, renders, history and file paths while a run is in progress; the six tools still install and run when that pane is unavailable.
It is for makers replacing a broken clip, bracket, knob, cap or gear, printing a fit test, or turning a scan into a clean solid. To start, run ulpi plugins install photo-to-part and enable it, then start a new session.
Attach a photo with a coin or ruler in frame, give any dimensions you know, and ask for a printable replacement. The skill id is photo-to-part:photo-to-printable-part.
Pass that exact string only to skill_view. Do not pass it to skills_list, and do not add a plugin: prefix or a slash.
Disclosure — files and network: tools read and write only the paths you pass (STL, 3MF, PNG, JSON), plus progress notes in a.photopart folder inside those project folders and a
Tools it adds
The tools an agent gets once this plugin is installed.
- photo_part_validate
- photo_part_render
- photo_part_heal
- photo_part_template
- photo_part_measure
- photo_part_build
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve