Programatically load/save scenes and saving folders

For a custom module I was making, I was wondering whether or not it was possible to load and save scenes (MRML files) without user input. For example the scene would save to a directory when the application was closed and would load from a directory when the user selected the module.

No reason you can’t do that. There’s an enter method that gets called when a module is selected. Of course there would need to be logic so the scene doesn’t get loaded multiple times, etc.