I attached a file. I would like to open that file and run this python script:
top = hou.node('/obj/topNet/wedge1') print top.path() top.setDisplayFlag(True) top.getPDGNode().cook(True) work_items = top.getPDGNode().workItems print (work_items)
when You run it directly after opening the file, it fails, top.getPDGNode() results in None.
after cooking the top nodes with the ui and deleting the results, the script works.
I wonder, what is going on here. Tt seems that a initial cool by hand, does initialize something so the getPDGNode does work. How can I do this?
thanks for any hints
Martin