Save directory according to subject hierarchy

Apologies if this is already possible, but it would be really helpful for me to save data nodes in a folder structure equivalent to the subject hierarchy (or maybe even arbitrary attributes) via GUI (Iā€™m trying to use minimal code for a clinic-friendly handover document).
I know we can create a subject hierarchy from a folder structure, how about the reverse?

Excellent software, btw :slight_smile:

You can use this code snippet to save nodes to the file system in the same directory structure as the subject hierarchy tree.

You can run this script on a keyboard combination (see how to assign Ctrl+Shift+S keyboard shortcut here) or you can override the default save dialog (or just update the paths automatically before showing the save dialog), add a toolbar button, custom module (especially if you already provide a module for some application-specific features), etc. All these just require a couple of lines of Python script.

1 Like

Thanks Andras for your very informative answer!