Search - User list
Full Version: Cook TOPS from python or HScript, verbose
Root » PDG/TOPs » Cook TOPS from python or HScript, verbose
Anpi
Is it possible to “cook” a TOPS network from a external Python or HScript, via “hython” or “hscript”. (Like we would use “hou.node().render()” to render or cache) And would it be possible to get some information/status from the instances running on the different threads?
EricSheng
So I find a way to cook a TOP node with python code in the Houdini menu file:

# you can check the nodegraphtopui.py file in the Houdini installation folder
import nodegraphtopui as topui

node = hou.node("YOUR TOP NODE PATH")

# do cook
topui.dirtyCookNode(node)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB