Add more wedge count during pdg cook ?

   1195   2   0
User Avatar
Member
13 posts
Joined: Feb. 2020
Offline
Is there a trick to add more wedge count during pdg cook, something like queue.
Example: I have 5 input 'wedge count', when I press a button (that I create to execute python), it will increase the 'wedge count', rather than stop the pdg.
User Avatar
Staff
586 posts
Joined: May 2014
Offline
That's currently not possible. Once the network begins to cook, external Python code can't make those kind of modification to the graph. It is possible to add work items to a node using the Python API (https://www.sidefx.com/docs/houdini/tops/pdg/Processor.html#injectStaticItems), however that can only be done when the graph is not cooking. Any requests to insert work items into a node that is part of an active cook will be queued up and processed once the cook finishes.
User Avatar
Member
13 posts
Joined: Feb. 2020
Offline
tpetrick
That's currently not possible. Once the network begins to cook, external Python code can't make those kind of modification to the graph. It is possible to add work items to a node using the Python API (https://www.sidefx.com/docs/houdini/tops/pdg/Processor.html#injectStaticItems), however that can only be done when the graph is not cooking. Any requests to insert work items into a node that is part of an active cook will be queued up and processed once the cook finishes.
Thank you for clarify.
So without pdg, is there other pipeline to do the concept like that (a button to add work item to queue during cook, use all computer resource at the same time).
  • Quick Links