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?
Controlling node cooks
2583 2 0- LithLoren
- Member
- 13 posts
- Joined: June 2018
- Offline
- dpernuit
- 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.
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
- Member
- 13 posts
- Joined: June 2018
- Offline
-
- Quick Links