Advertisement
whillothewhisp

Get asset name

May 26th, 2025
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. int assetCount;
  2. HAPI_GetAvailableAssetCount(NULL, id, &assetCount);
  3. std::vector<HAPI_StringHandle> assetNames(assetCount);
  4. (HAPI_GetAvailableAssets(NULL, id, assetNames.data(), assetCount));
  5.  
  6. std::string assetName = get_houdini_string(assetNames[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement