Call python module function when input has changed ?

   2583   2   0
User Avatar
Member
2 posts
Joined: July 2017
Offline
Hello everyone, I have defined function in the python module. How do I call the function when input has changed.?

Attachments:
ss.png (90.5 KB)

User Avatar
Member
8786 posts
Joined: July 2007
Offline
I believe you can use this workflow
https://www.sidefx.com/docs/houdini/hom/locations.html#asset_modules [www.sidefx.com]

shows you how to either call specific function from python module
or also how to create module from section
both can be used to access your python module functions in OnInputChanged callback section
Edited by tamte - Sept. 15, 2021 12:15:16
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
2 posts
Joined: July 2017
Offline
tamte
I believe you can use this workflow
https://www.sidefx.com/docs/houdini/hom/locations.html#asset_modules [www.sidefx.com]

shows you how to either call specific function from python module
or also how to create module from section
both can be used to access your python module functions in OnInputChanged callback section

Thank you tamte, for me it's end up like this
kwargs["node"].hdaModule().log()
  • Quick Links