Jump to content

HDA Callback connecting with function


Recommended Posts

hou.pwd() just point to the current node (where the code is called from), alternatively you can use hou.node(".") which basically does the same thing, unless someone knows a real difference.

to query other nodes you can either use relative pathing: hou.node("../otherNode") or absolute paths if you wish hou.node("/obj/geo1/otherNode")

on the other hand, for the network editor, if you want to return all selected nodes, there is the function: hou.selectedNodes() which you could use in shelf tools for instance

Edited by acey195
Link to comment
Share on other sites

I understand the function(parameter) then within the CallBack Script you call the function with the parameter being hou.pwd().  I assume this is linking the function with what is within the CallBack script. 

If my understanding is correct, then hou.pwd() must be first call in the Callback script that represents the current node ?

One other thing why call .HDAModule() within the call back script of a HDA if you're not using any functions or classes within the module ?

Edited by CinnamonMetal
Link to comment
Share on other sites

You must place it in a order.

hou.pwd() being the first, hdaModule(),representing the digital asset (HDA) followed by the function; any reason for this order ?

As well I was reading on the .hdaModule() class and I was wondering how can I read all the methods and functions within this module ?


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...