what is the common way in C++ to access multiple outputs of an asset that has been loaded into the houdini engine?
I created an asset that has 8 outputs with different geometries, these exists as OUT-nodes within the asset that are all marked as template. This was the way to do in Engine 2.0, now it seems that things have changed… in the end I need to save each output as an .obj file.
This is what I found in the documentation but the object list is zero. Node-id refers to the asset node (which as multiple outputs) that sits below a geo-node in the network.
int object_count; HAPI_ComposeObjectList(NULL, node_id, nullptr, &object_count); std::vector<HAPI_ObjectInfo> object_infos(object_count); HAPI_GetComposedObjectList(NULL, node_id, object_infos.data(), 0, object_count);
I also found different approaches by accessing child nodes, this way I can filter the child nodes down to the 8 outputs (using HAPI_NODEFLAGS_TEMPLATED) but I don't know how to get a geometry I can save from here.
Also I tried to connect Null-nodes to the outputs, here I found that HAPI_ConnectNodeInput doesn't even provide a way to select a specific output, it's like multiple outputs have disappeared in Engine 3.0, if so what's the new way?
Any help is appreciated