Search - User list
Full Version: Is there a way to pick up a cooked result of PDG?
Root » PDG/TOPs » Is there a way to pick up a cooked result of PDG?
I have this PDG network that I use to learn and it can cook for quite a bit. Now I want to add more nodes to add it, but I have not changed the upstream stuff. Whenever I open the Houdini scene, I seem to have to recook stuff even though files are baked on my hard-disk and nothing has changes since.
What tools/processes are available to me, so I don't have to recook everything every time?
(I am probably missing something basic, here.)
Hi there,

There are some top level controls on the Topnet itself for saving and loading the task graph. When you reopen the hip file you can use the Load Task Graph button to load the saved task graph file.
Ah cool! Is there a reason why it does not do that by default if the data is available?
Many of the nodes such as ROPFetch has a feature to look at the file it expects to find on disk - and if it does, it will automatically mark the workitem as cooked. We are doing a sweep to make sure this feature is available on as many nodes as possible. So hopefully, PDG will just pick up from where you left off, without you ever needing to do anything, even saving the task graph. This feature would only work if you stick to the @syntax in your output files, because PDG needs to figure out the expected output file, and it can only do that with the @syntax - so please do stick with that as much as possible.
I was confused by the same thing for a time, thinking I had to keep my session open to maintain the cooking states, probably simply because most of Houdini works this way. Having the “Task Graph File” at the front of the TOP parameter really helps but the mechanism and its data is hidden for the user and I can't see how people would read what's happening. Maybe if there was a “dirty condition” visible on the task info with relevant data, like timestamp, it could be self taught?
Yes, I think we're introducing some sort of visual feedback, so that if a workitems were marked cooked because it found its expected file already on disk, then that would be apparent.
@kenxu: I don't quite understand what you mean with your @syntax explanation.

How exactly would it have to be set up to work?
So let's say you have an output string parameter, and some attribute like fooAttr you can put in something like:


With that expression, PDG can predict what the file on disk should be, and if it finds the file there, then the instant cooking will work. By contrast, if you exported fooAttr to an environment variable $FOOATTR, then this will work when outputting the files, but NOT work for the instant cook feature:

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