Can i run a python script automatically before houdini quit?

   3012   3   0
User Avatar
Member
8 posts
Joined: 3月 2012
Offline
Hi all,
in maya i can use JobScript to run a python script under some events like quiting maya or selecting some objects.Does houdini have Similar funciton?
User Avatar
Member
1922 posts
Joined: 11月 2006
Offline
Houdini will run functions registered with the Python atexit module when it quits.

For things like selecting something, see here: http://www.sidefx.com/docs/houdini12.1/hom/hou/Node#addEventCallback [sidefx.com]
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
8 posts
Joined: 3月 2012
Offline
graham
Houdini will run functions registered with the Python atexit module when it quits.

For things like selecting something, see here: http://www.sidefx.com/docs/houdini12.1/hom/hou/Node#addEventCallback [sidefx.com]
Thank you very much!It works!
However one more question!
how can i let houdini run my python script when it starts…..
User Avatar
Member
1922 posts
Joined: 11月 2006
Offline
http://www.sidefx.com/docs/houdini12.1/hom/independent [sidefx.com]
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links