I'm using an if condition in my script to validate the existance of a directory. In case it doesn't exist, I want Houdini to stop execuing the code and raise a warning.
So far I have:
if (condition == False):
raise hou.NodeError("No Source Folder Found.")
exit()
But it seems like houdini is ignoring the raise warning function...
EDIT: Looks like the correct function for this is hou.ui.displayMessage("No Source Folder Found."), but it still runs the rest of the code which is not what I want...