Trying to access the HDAModule from a Select Script

   120   0   1
User Avatar
Member
456 posts
Joined: 12月 2013
Offline
I'm trying to access a function in a HDAModule from a select script but I'm a bit stuck. I can get this to work as a toolbar script but I'm a bit stuck trying to get it to work as an object's Select Script.

node_type = hou.nodeType(hou.objNodeTypeCategory(), "Hand")
node_type.hdaModule().test()

I'd also like to pass the selected node, normally I'd do that with kwargs from the HDA but I'm not sure how that would work here.
The manual says it's interpreted as HScript so that could make it tricky.

Any ideas?

Thanks!
Pete
  • Quick Links