Search - User list
Full Version: Pre Cook Sanity Check
Root » PDG/TOPs » Pre Cook Sanity Check
TaylorJamesIT
Hello,

Can someone tell me how I might be able to query the values of environment variables pre cook ? We have a bunch of tokenized paths for events like caching and rendering. We want to check that the values in those tokes are valid prior to executing a cook.

Thanks

Mike
tpetrick
You can register a custom function that gets invoked each time a graph is cooked, and can return True/False to allow/reject the cook to continue based on the state of the graph: https://www.sidefx.com/docs/houdini/tops/pdg/TypeRegistry.html#registerPreflightHandler [www.sidefx.com]

The documentation for that function includes a reference to a page that describes how to write and install custom handlers. Typically they're placed in the PDG search path and loaded when Houdini starts.
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