Jump to content

Run a Python script when Houdini crashing?


Cuckon

Recommended Posts

The term wrap means launch it from something else. If it were Python you could use the subprocess module to start Houdini and then do something depending on what Houdini spits back.


import subprocess
status = subprocess.check_output('houdini')
if 'something to look for' in status:
...
...
[/CODE]

Then do something based on whatever Houdini spit back (the status variable). Another way would be to setup a watchdog running all the time that looks for the Houdini process and have it do something if there's no Houdini running.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...