Note
The AssetCreated
and AssetDeleted
events do not fire when a library file is installed or uninstalled.
Values ¶
hou.hdaEventType.AssetCreated
A new asset was created (using the Create Digital Asset context menu item in the network editor or through HOM).
The callback function is called with this event type and the following additional argument:
asset_definition
An hou.HDADefinition object representing the newly created asset.
hou.hdaEventType.AssetDeleted
An asset was deleted (using the Asset Manager UI or through HOM). Note that the asset no longer exists when this event type occurs.
The callback function is called with this event type and the following additional arguments:
asset_name
A string containing the name of the deleted asset.
library_path
A string containing the file path of the asset library (.hda
) file that contained the asset.
node_type_category
A hou.NodeTypeCategory representing the type category (for example, Object, SOP, DOP) of the deleted asset.
hou.hdaEventType.AssetSaved
An asset was saved.
The callback function is called with this event type and the following additional argument:
asset_definition
An hou.HDADefinition object representing the saved asset.
hou.hdaEventType.BeforeAssetCreated
A new asset is about to be created (using the Create Digital Asset context menu item in the network editor or through HOM).
The callback function is called with this event type and the following additional argument:
asset_name
A string containing the name of the asset to be created.
library_path
A string containing the file path of the asset library (.hda
) file that will contain the asset.
node_type_category
A hou.NodeTypeCategory representing the type category (for example, Object, SOP, DOP) of the asset to be created.
hou.hdaEventType.BeforeAssetDeleted
An asset is about to be deleted (using the Asset Manager UI or through HOM). Note that the asset still exists when this event occurs.
The callback function is called with this event type and the following additional arguments:
asset_definition
An hou.HDADefinition object representing the asset to be deleted.
hou.hdaEventType.BeforeAssetSaved
An asset is about to be saved.
The callback function is called with this event type and the following additional argument:
asset_definition
An hou.HDADefinition object representing the asset to be saved.
hou.hdaEventType.LibraryInstalled
A digital asset library has been installed into the current Houdini session.
The callback function is called with this event type and the following additional argument:
library_path
The file path to the installed asset library (.hda
) file.
hou.hdaEventType.LibraryUninstalled
A digital asset library has been uninstalled from the current Houdini session.
The callback function is called with this event type and the following additional argument:
library_path
The file path to the uninstalled asset library (.hda
) file.