VortexVFX
VortexVFX
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Run python external-file-writer with click of a button? 2022年12月14日4:26
animatrix_
Yes that should work.
Cheers. Sorry, just edited my earlier message - realised I should just go try it myself, and it does indeed work.
Run python external-file-writer with click of a button? 2022年12月14日4:15
animatrix_
You can use:hou.Node.cook(force=True)
https://www.sidefx.com/docs/houdini/hom/hou/Node.html [www.sidefx.com]
Thanks.
hou.node("./node_i_want_to_cook").cook(force=True)
(Edit: realised it was silly asking when I could just go try it myself. That does indeed seem to work! Thanks for your help.)
Run python external-file-writer with click of a button? 2022年12月14日3:19
Hey all,
I've cobbled together a python-based script to write out geometry to some external files, in a standard Python SOP node, and have it running multiple times in a for-loop to output a bunch of iterations at once... works great when I set the display flag on the output of the loop, and thereby force the whole thing to cook.
...I'd like to find the simplest way to turn it into a sort of custom ROP though... currently, it can get triggered without meaning to by changing display flags around, and I prefer to just have the whole thing cook on-demand using a "Render" button on a parent subnet.
I'm a bit clueless about callback scripts and such... can anyone break down exactly how I'd get a button-press to force a particular node/network to cook, or point me to a resource that explains it in simple terms?
I've cobbled together a python-based script to write out geometry to some external files, in a standard Python SOP node, and have it running multiple times in a for-loop to output a bunch of iterations at once... works great when I set the display flag on the output of the loop, and thereby force the whole thing to cook.
...I'd like to find the simplest way to turn it into a sort of custom ROP though... currently, it can get triggered without meaning to by changing display flags around, and I prefer to just have the whole thing cook on-demand using a "Render" button on a parent subnet.
I'm a bit clueless about callback scripts and such... can anyone break down exactly how I'd get a button-press to force a particular node/network to cook, or point me to a resource that explains it in simple terms?