Jump to content

General OnCreated event for every node

Recommended Posts

Hello everyone,

Is it possible to add a callback that runs everytime a node is created ? At my studio we have a library of hda (hundreds of nodes) and I'd like to check if the node comes from the general library, or the project library and simply set a color depending on its definition path.

I tried scripts/OnCreated.py with a package and appending the path to the Houdini path but nothing is happening. I also thought appending a few lines of code using


but doing this for hundreds of hda's, and everytime one is created, requires a bit more work than what I can do for now.

Is there a solution ? I've looked at ui event but I haven't found anything interesting.



Edited by DonRomano

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now