Jump to content

calling the same method via a button callback vs an event handler


carthick

Recommended Posts

i want to call a method when OTL's parameters are updated . that is easily done with the callback script . 

this works ...

hou.node('.').hdaModule().blah()

 

but i want the same method to be called when there is an event. in my case when the (input) connection is changed. the problem is the even doesnt recognize hou.node('.').. 

 

after a trying a few different things... kwargs seem to work. but now the method now needs to take in the kwarg arguments to work ..

dummy.hdanc

 

scene.hipnc

here is a test scene & hda for reference ... can this be done cleaner / better ?

code.JPG

Edited by carthick
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.

Guest
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...