catchyid Posted January 10, 2020 Share Posted January 10, 2020 Hi, 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... Thanks! Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted January 10, 2020 Share Posted January 10, 2020 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"] 1 Quote Link to comment Share on other sites More sharing options...
catchyid Posted January 10, 2020 Author Share Posted January 10, 2020 Thanks Alex 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.