Controlling node cooks

   2615   2   0
User Avatar
Member
13 posts
Joined: June 2018
Offline
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?
User Avatar
Staff
534 posts
Joined: Sept. 2016
Offline
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.
User Avatar
Member
13 posts
Joined: June 2018
Offline
Good to know, thanks!
  • Quick Links