reseting or closing script when file is reset or closed
I've create a batch render script that is max file dependent (stores perminent varibles). So it stores information inputted by the user for example the project name and render location etc.
What I'm currently having difficulty with is that I would like the script to know when the user resets max or closes the file or opens a new file so that the script can be closed so that the information from the previous file isn't transferred to the new save.
Any help would be appreciated.