X_H_N
July 25, 2019 17:17:45
Hi
Is Example for control pdg from hython?
I dont know how get pdg.node for cook.
brooke_sidefx
July 25, 2019 17:36:10
If you have a hou.TopNode, you can call:
which will return the pdg.Node associated with the TOP node.
X_H_N
July 26, 2019 06:08:28
hou.node('/obj/box_object1/topnet1/hdaprocessor1').getPDGNode()
returned None
I need open hip file from hython and cook pdg graph
chrisgreb
July 26, 2019 08:56:32
It returns None because the PDG graph does not exist until the TOP graph is cooked.
The easy way to cook the graph is like so:
n = hou.node('/obj/box_object1/topnet1/hdaprocessor1')
n.executeGraph(False, True, False, False)
shadesoforange
July 26, 2019 13:30:03
Hey chris,
could this command theoretically be sent as a job to basically have a graph execution as job?
Thanks!
chrisgreb
July 26, 2019 13:52:20
Yes, that's basically what the ‘Submit Graph As Job’ button does on the Hqueue and Tractor scheduler nodes.
shadesoforange
July 26, 2019 14:07:43
Thanks Chris!
Is there a reason why that doesn't exist on the DL scheduler? If yes, why?
seelan
July 26, 2019 14:23:01
Support for Submit Graph as Job will be added soon for the DL scheduler.
shadesoforange
July 26, 2019 14:27:39
Awesome! Sorry to interrupt this topic.
papsphilip
Aug. 26, 2021 15:22:15
Is there a way from PDG to force a SOP node to cook?
A have a python node that takes geo and exports a txt file. All this in SOP land
When i use a filepattern TOP node to collect my geo from folder and a wedge to control some parameters of the graph that ultimately ends with the python node, i cook it and nothing happens.
i need to select a work item and the python node gets evaluated.
Why is this happening and how can i force sop nodes to cook from tops when i am not using TOP nodes for exporting geo or images but my exports are being done in SOPs. I just need the PDG graph to iterate through my 3d models apply some wedges and let the python sop do its thing.
Apart from the python node i have some other nodes as well that export stuff (Houdini to Unity Volume-point cache exporter). i have the same problem with those.
Any advice would be super helpful