Jump to content

How to access parameters on newly created HDA node?

Recommended Posts


I have created a houdini digital asset. I want to assign a value to "TimeStamp" parameter on creation, so I added  "OnCreated" Script (plz, see attached image) which is called once the asset is created, HOWEVER I am not sure how to get access to the "TimeStamp" parameter on the asset? i.e. what should be the path? I've tried hou.node("."), but it gave me the parent node and not newly created node...



Share this post

Link to post
Share on other sites

All even handlers have a special kwargs variable available to them, which is a dictionary. Try to print(kwargs) and you will see that it has a reference to your node.

node = kwargs["node"]


  • Like 1

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