Stitching (raw 360) images with Hugin

I’m not very good at scripting. Also presume hugin is not optical flow?