Call python module function when input has changed ?

   3334   2   0
User Avatar
Member
2 posts
Joined: 7月 2017
オフライン
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
9430 posts
Joined: 7月 2007
オフライン
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 - 2021年9月15日 12:15:16
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
2 posts
Joined: 7月 2017
オフライン
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