At the moment any errors I raise don't abort the actual save, I see them being raised in the output to the terminal. I would like to perform some validation on the scene before it's saved and if it is successful go ahead with the save, otherwise abort.
I'm trying the following in my beforescenesave.py:
from myModule import validate_scene if not validate_scene(kwargs['file']): kwargs['success'] = False raise RuntimeError('Failed validation')
Thanks in advanced.