Hi,
I'm caching the event before-session-write in order to check some stuff. One of the things I'm checking is if the file has already been saved. I'm doing this checking if the name returned by commands.sessionFileName() is a file or not (os.path.isfile(fileName)), is there a better way to do this?
The main problem I'm having is related to the default name that rv uses to save the session if it hasn't already been saved. If you open an image called image1.jpg and click on Save the session is saved as image1.rv without giving you the chance to choose a proper name.
To change that behaviour what I would like to do is:
- Catch the before-session-write event
- Choose a proper name for the file
- Continue the execution of the save event
Right now I'm able to do the two first steps but I'm stuck in the last one? Does exist any command to choose the name for the session that is going to be saved? I would like to use that command in the function called by the before-session-write event.
Thanks!
Manu.