BradyAJohnston / MolecularNodes

Toolbox for molecular animations in Blender, powered by Geometry Nodes.
https://bradyajohnston.github.io/MolecularNodes/
GNU General Public License v3.0
916 stars 87 forks source link

Fix relative filepaths #663

Open BradyAJohnston opened 1 day ago

BradyAJohnston commented 1 day ago

If we import a molecular dynamics trajectory before first saving the .blend file, then the file paths will be absolute for the topology and trajectory. This means the .blend is no longer portable.

This is fine if we remain on the same machine, but breaks if we try to move a folder onto another machine for rendering.

To fix this, part of the saving / serialisation process has to be turning absolute file paths into relative. This was previously quite janky (#662 ), so needs to be improved and streamlined.