Is there a way to abort Houdini saving the scene if something in my beforescenesave.py script fails?
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:
No, I don't think it's possible. Similar to OnDelete event in HDA, you cant catch the event, do something with it, but the node deletion is inevitable.
Aleksei Rusev Sr. Graphics Tools Engineer @ Nvidia
if I'm using the HSITE environment variable and I save beforescenesave.py & afterscenesave.py in $HSITE/houdini16.0/scripts, should they work? I'm not seeing anything happen. To clarify, this is what I have in the afterscenesave.py file:
if kwargs["success"] and not kwargs["autosave"]: print "after save"
Edited by rdms - 2017年10月12日 12:08:48
Cheers, Rob Digital Supervisor | Stargate Studios Toronto