int [] agentrigchildren(<geometry>geometry, int prim, int transform)
指定したトランスフォームの直接の子のリストを返します。
transform
が範囲外、prim
が範囲外の場合、prim
がエージェントプリミティブでない場合に空っぽの配列を返します。
geometry
参照するジオメトリファイルの名前。Houdini内のSOPを参照するなら、op:full_path_to_sop
のように指定します。
opinput
参照する入力の番号。1番目の入力が0
番、2番目の入力が1
番など。
prim
プリミティブ番号。
transform
エージェントのリグのトランスフォームのインデックス。
Examples
指定したトランスフォームの子すべてを辿ります。
int[] queue = { transform }; while (len(queue) > 0) { int i = removeindex(queue, 0); printf("%d\n", i); foreach (int child; agentrigchildren(0, @primnum, i)) push(queue, child); }
See also | |
crowds |
|
rig |