Jump to content
carthick

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

Recommended Posts

Posted (edited)

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×