I already have a command-line pipeline that ingests a photo series, stitches the shots in Hugin, then pushes the panorama through a Photoshop action. The flow works, yet the final 360° images sometimes show noticeable distortions, the automated Photoshop fill leaves visible gaps, and occasional objects drift into the wrong part of the scene. I need someone who truly knows Hugin’s scripting and control-point logic to refine the workflow so these defects disappear without introducing manual steps. Your focus will be: • Fine-tune the Hugin command sequence for automated correction—optimising control points, lens parameters, and blending settings so the panorama is level and artifact-free. • Adjust my Photoshop script so the fill routine reliably seals edge gaps in the exported TIFF/PSD and blends seamlessly with existing tones. • Ensure objects stay anchored in their rightful position across the full 360° canvas. • Provide concise documentation of the changes plus before/after samples generated by the revised tool. A solid grasp of Hugin CLI, PTO file manipulation, and Photoshop scripting (ExtendScript or actions) is essential. Once complete, the tool should deliver production-ready panoramas in a single run on both macOS and Windows command lines. If this sounds like your kind of debugging and optimisation challenge, let’s talk—happy to supply sample image sets and the current Python wrapper on request.