Clear SOP Cache by VEX

   2787   5   0
User Avatar
Member
53 posts
Joined: June 2009
Offline
Hi

Is there any way to clear SOP Cache by VEX?
User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
No, VEX is not a scripting language. VEX is a shading language.
User Avatar
Member
53 posts
Joined: June 2009
Offline
jsmack
No, VEX is not a scripting language. VEX is a shading language.
How about python? is it possible with python node in SOP?
User Avatar
Member
4495 posts
Joined: Feb. 2012
Offline
You can use this code in python:
hou.hscript(“sopcache -c”)
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
53 posts
Joined: June 2009
Offline
animatrix_
You can use this code in python:
hou.hscript(“sopcache -c”)
Thanks a lot animatrix_
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
animatrix_
You can use this code in python:
hou.hscript("sopcache -c")


So this unload every node right?
What if need to unload specific nodes? Can't find any command for that.



Also, I encountered 2 issues: Python Sop seems to be unaffected by the command, It won't unload.
And even if the nodes upstream have they cache cleared by the command, this won't trigger a re-cook for the Python Sop.

I produced an example case

Attachments:
python_sop_sopcache_clear.hiplc (84.5 KB)

  • Quick Links