hou.hda.addEventCallbackを参照してください。
Note
AssetCreated
とAssetDeleted
のイベントは、ライブラリファイルがインストールまたはアンインストールされた時に発動しません。
値 ¶
hou.hdaEventType.AssetCreated
(ネットワークエディタの Create Digital Asset コンテキストメニューアイテムを使用またはHOMを介して)新しいアセットが作成されました。
コールバック関数は、このイベントタイプと以下の追加引数を使ってコールされます:
asset_definition
新しく作成されたアセットを表わしたhou.HDADefinitionオブジェクト。
hou.hdaEventType.AssetDeleted
(Asset Manager UIまたはHOMを介して)アセットが削除されました。このイベントタイプが発生した時点でアセットはもはや存在していないことに注意してください。
コールバック関数は、このイベントタイプと以下の追加引数を使ってコールされます:
asset_name
削除されたアセットの名前を含んだ文字列。
library_path
削除されたアセットを含んでいたアセットライブラリ(.hda
)ファイルのファイルパスを含んだ文字列。
node_type_category
削除されたアセットのタイプカテゴリ(例えば、Object, SOP, DOP)を表わしたhou.NodeTypeCategory。
hou.hdaEventType.AssetSaved
アセットが保存されました。
コールバック関数は、このイベントタイプと以下の追加引数を使ってコールされます:
asset_definition
保存されたアセットを表わしたhou.HDADefinitionオブジェクト。
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
現在のHoudiniセッションにデジタルアセットライブラリがインストールされました。
コールバック関数は、このイベントタイプと以下の追加引数を使ってコールされます:
library_path
インストールされたアセットライブラリ(.hda
)ファイルのファイルパス。
hou.hdaEventType.LibraryUninstalled
現在のHoudiniセッションからデジタルアセットライブラリがアンインストールされました。
コールバック関数は、このイベントタイプと以下の追加引数を使ってコールされます:
library_path
アンインストールされたアセットライブラリ(.hda
)ファイルのファイルパス。