plumzl Posted December 31, 2013 Share Posted December 31, 2013 Hi, I just started houdini scripting. I want to have a callback that every time a digital asset is saved, it makes a git commit. I looked at houdini callbacks, it seems all the callbacks are specific to a certain digital asset type. How to make a global callback that's available for all digital asset types? Thanks! Quote Link to comment Share on other sites More sharing options...
graham Posted December 31, 2013 Share Posted December 31, 2013 You can create a global OnUpdated handler script that gets run any time an asset definition is changed. Quote Link to comment Share on other sites More sharing options...
plumzl Posted December 31, 2013 Author Share Posted December 31, 2013 You can create a global OnUpdated handler script that gets run any time an asset definition is changed. Thanks Graham! But I'm actually not sure how to create a global handler. I looked up online and can only find node or digital asset specific handlers. Quote Link to comment Share on other sites More sharing options...
graham Posted December 31, 2013 Share Posted December 31, 2013 You can create global handlers by creating a file with the proper name (and .py extension for Python versions) and placing it in a scripts/ folder somewhere in the HOUDINI_PATH. For example, $HOME/houdini13.0/scripts/OnUpdated.py Quote Link to comment Share on other sites More sharing options...
plumzl Posted December 31, 2013 Author Share Posted December 31, 2013 Thanks! That worked! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.