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?
Can i run a python script automatically before houdini quit?
3012 3 0- sunhaohui
- Member
- 8 posts
- Joined: 3月 2012
- Offline
- graham
- 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]
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
- sunhaohui
- Member
- 8 posts
- Joined: 3月 2012
- Offline
grahamThank you very much!It works!
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]
However one more question!
how can i let houdini run my python script when it starts…..
- graham
- Member
- 1922 posts
- Joined: 11月 2006
- Offline
-
- Quick Links