Search - User list
Full Version: Controlling node cooks
Root » Houdini Engine API » Controlling node cooks
LithLoren
Is it possible to cancel a Node Cook?

What’s the expected behavior if I start cook, then change a property on the object. Can/should I kick another cook before the first cook has finished?
dpernuit
Hi,

There is currently no way to cancel a cook. Depending on if your using threaded mode, that cook might be asynchronous, and its always best to wait for it to finish by checking HAPI_GetStatus() before firing another one.

If a property has changed while waiting for that cook to finish, you probably want to keep track of that change( by marking that property/the asset as dirty in your code), then fire another cook once the current one has finished, with the current state of that parameter.
LithLoren
Good to know, thanks!
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