How to clear the cache of a python script node?

   2108   1   0
User Avatar
Member
2 posts
Joined: Dec. 2023
Offline
Hi,
Is there a way to clear the cache of a python Script Node.
I'm developing a Python script node and just the string of a print or adding a null before the node change the result of the node. So I suspect that the nodes results are cached depending of their inputs and parameters for performance purpose, but when developping something, it's frustrating if the wrong cached value is returned at random. and having to restart houdini, or leaving the possibility of forgetting to reconnect to the final node, or leaving some debug print in an hda.

If there is a way to force to clear the cache of the selected node, all these frustrations can be avoided.

I won't be surprise if it exists somewhere but I just didn't find it.
So if there is an houdini guru that can point me to where i can find this magic button, i'll be eternally gratefull.

Spec:
Windows 10
Houdini 20.0.506
In Solaris

Thanks in advance.
Jeremy TAN
Edited by Shi00n - Dec. 11, 2023 06:46:38
User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
I'm not sure what you mean, there isn't any 'cache' for the python node that I'm aware of. It works like any other node in that it cooks its input, and if the input doesn't change, then it won't recook. Are you talking about python locals not being cleared? I'm not sure if there's any way to clear the python state without restarting Houdini.
  • Quick Links