Jump to content

HDA how to make a callback available for all digital asset types


plumzl

Recommended Posts

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!

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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...