Gromacs output files to .nmd file

Hello everyone,

I am trying to visualize normal modes from GROMACS NMA outputs in NMWiz (VMD), and I need to convert the GROMACS files (eigenvec.trr, eigenval.xvg, and a structure file) into .nmd format.

So far, the only approach I can think of is writing a Python script to generate the .nmd manually, but I was wondering if anyone has experience with this or knows a more straightforward method. Any insights, scripts, or references would be greatly appreciated!

Thank you in advance.