Hello,
Is it possible to build and bake a tool from CPP in a blocking function?
I'm trying to automatize the pipeline of my houdini tools. To do that i need function in Cpp/BluePrint/Python that freeze the current Thread.
Thanks,
Bake Houdini from CPP
1345 1 1- alibatiste
- Member
- 4 posts
- Joined: July 2019
- Offline
- dpernuit
- Staff
- 534 posts
- Joined: Sept. 2016
- Offline
Hi,
Cooking in the UE4 plugin was specifically made to be asynchronous, so there is no way of getting a blocking cook “out of the box” with the plugin.
If you want a blocking cook, that's something you'll need to add yourself:
- use the FHoudiniAPI::CookNode function using the HDA's node ID to start a cook.
- then iterate in a blocking loop on the result of FHoudiniAPi::GetStatus()
do not exit until you get one of the HAPI_READY return value.
You'll find a little more info on that in the Houdini Engine docs:
https://www.sidefx.com/docs/hengine/_h_a_p_i__assets.html#HAPI_Assets_Cooking [www.sidefx.com]
Cooking in the UE4 plugin was specifically made to be asynchronous, so there is no way of getting a blocking cook “out of the box” with the plugin.
If you want a blocking cook, that's something you'll need to add yourself:
- use the FHoudiniAPI::CookNode function using the HDA's node ID to start a cook.
- then iterate in a blocking loop on the result of FHoudiniAPi::GetStatus()
do not exit until you get one of the HAPI_READY return value.
You'll find a little more info on that in the Houdini Engine docs:
https://www.sidefx.com/docs/hengine/_h_a_p_i__assets.html#HAPI_Assets_Cooking [www.sidefx.com]
-
- Quick Links