Cook TOPS from python or HScript, verbose

   2068   1   0
User Avatar
Member
8 posts
Joined: May 2019
Offline
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?
User Avatar
Member
159 posts
Joined: Feb. 2018
Offline
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)
Edited by EricSheng - Aug. 6, 2019 22:59:21
  • Quick Links