How to call a function when the input geometry data changed?

   726   0   0
User Avatar
Member
373 posts
Joined: June 2023
Offline
I'm trying to make a node call a Python function whenever its input data changes. I thought the callback even would be hou.eventType.InputDataChagned. However, I can't get it to work at all.

hou.eventType.InputRewiredworks, but it only gets called when I change which node the input is connected to. I'd like to call a function when the input data is changed. How could I do that?


For example, in this hip file, I'd like to call the function in test_callback when I change the cube's division count.
Edited by kodra - Jan. 11, 2024 06:09:55

Attachments:
test_callback.hiplc (78.8 KB)

  • Quick Links