Houdini 20.0 hapi

hapi.getAvailableAssetCount function

Get the number of assets contained in an asset library.

Usage

getAvailableAssetCount(session: hapi.Session, library_id: int) → int

Get the number of assets contained in an asset library. You should call hapi.loadAssetLibraryFromFile prior to get a library_id.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

library_id

Returns asset_count as a int.

hapi