What version of Maya were you using to run the script? In Maya 2022 at least, the script requires ample amounts of modification in order to export properly, and even still, upon importing the mesh into UE5, it doesn’t seem to acknowledge the rootUV that was supposedly successfully exported.