Passing the HDA path to a newly created operator

   6502   2   0
User Avatar
Member
27 posts
Joined: 1月 2007
Offline
Not really sure what you would call it, thus limiting my ability to search for it here or at google etc. But I'm guessing it involves the “callback”, which I don't understand. Not great at programming, and recently started using python in houdini.

I'm trying to make it so that, when pressing a button, the HDA creates a node (a constraint) in a desired DOP network, and hookes it up to the HDA itself (the translate values). I've gotten all else down, but got stuck at how to pass the HDA path to the constraint.. Any ideas?
User Avatar
Member
7735 posts
Joined: 7月 2005
Online
In your callback script, the `oppwf()` (hscript expression) will be the path of your calling node.
User Avatar
Member
27 posts
Joined: 1月 2007
Offline
Great, so how do I use the callback? )

edit
Wops, I figured it out. Thanks for your help!
For others This would be with the hou.pwd, or, hou.pwd.path() in my case, if your using python.
  • Quick Links