Controlling node cooks

   4191   2   0
User Avatar
Member
13 posts
Joined: 6月 2018
オフライン
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
スタッフ
564 posts
Joined: 9月 2016
オフライン
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: 6月 2018
オフライン
Good to know, thanks!
  • Quick Links