使用方法 ¶
setAttributeIndexedStringDataAsync(session: hapi.Session, node_id: int, part_id: int, name: str, attr_info: hapi.AttributeInfo, string_array: list of const char *, string_count: int, indices_array: list of int, indices_start: int, indices_length: int) → int
インデックスでアトリビュート文字列データを非同期で設定します。
session
あなたが操作しているHoudiniのセッション。 セッションの詳細はhapi.Sessionを参照してください。 単にデフォルトのインプロセスのセッションを使用するのであれば、Noneを渡してください。
node_id
SOPノードのID。
part_id
現在のところ、使用されていません。単に0を渡してください。
name
アトリビュート名。
attr_info
必要となるタプルサイズの入力として使用するhapi.AttributeInfo。 データタイプなどの整合性チェックも含みます。 通常では、hapi.getAttributeInfoが返すのと同じ構造体を指定してください。
string_array
最低でもstring_countのサイズの文字列の配列。
string_count
インデックス化される文字列の数。
indices_array
最低でもlength * hapi.AttributeInfo.tupleSizeのサイズの整数配列。 各エントリがstring_arrayのインデックスです。
indices_start
範囲の開始インデックス。 ここには最低でも0、最大でもhapi.AttributeInfo.count - 1を指定してください。
indices_length
ここには最低でも0、最大でもhapi.AttributeInfo.count - startを指定してください。
job_idをintとして返します。