This does not create the asset in the session. Use this for faster querying of asset parameters compared to creating the asset node and querying the node’s parameters.
This does require hapi.loadAssetLibraryFromFile to be called prior, in order to load the asset library and acquire library_id. hapi.getAssetDefinitionParmCounts should be called prior to acquire the count for the size of parm_infos_array.
Usage ¶
getAssetDefinitionParmInfos(session
: hapi.Session, library_id
: int
, asset_name
: str
, start
: int
, length
: int
) → list
of hapi.ParmInfo
Fill an array of hapi.ParmInfo structs with parameter information for the specified asset in the specified asset library.
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
Returned by hapi.loadAssetLibraryFromFile.
asset_name
Name of the asset to get the parm counts for.
start
First index of range. Must be at least 0 and at most parm_count - 1 acquired from hapi.getAssetInfo.
length
Must be at least 1 and at most parm_count - start acquired from hapi.getAssetInfo
Returns parm_infos_array as a list
of hapi.ParmInfo.