int usd_getpointinstancebounds(<stage>stage, string primpath, int instance_index, string purpose, vector &min, vector &max)
int usd_getpointinstancebounds(<stage>stage, string primpath, int instance_index, string purpose[], vector &min, vector &max)
int usd_getpointinstancebounds(<stage>stage, string primpath, int instance_index, string purpose, float timecode, vector &min, vector &max)
int usd_getpointinstancebounds(<stage>stage, string primpath, int instance_index, string purpose[], float timecode, vector &min, vector &max)
この関数は、ポイントインスタンサーPrim内の特定のインスタンスのPrimの軸平行な境界ボックスを返します。 その境界ボックスの最小コーナーに相当するポイントがminに返され、最大コーナーに相当するポイントがmaxに返されます。 これは常に1を返します。
<stage>
ノードのコンテキスト内(例えば、Wrangle LOP)で実行する時、ステージの読み込み先となる(0から始まる)入力番号を表現した整数をこの引数に指定することができます。 この整数は、特定の入力を参照する文字列形式(例えば、"opinput:0")と等価です。
primpath
Primのパス。
instance_index
返す境界ボックスのインスタンスのインデックス。
purpose
境界ボックスを返すPrimのPurpose(例えば、"default", "render")。
timecode
境界を評価するタイムコード。指定しなかった場合、現行フレームに相当するタイムコードが使用されます。
Returns
常に1。
Examples
// 2番目のsphereの境界ボックスを取得します。 vector min, max; usd_getpointinstancebounds(0, "/src/instanced_spheres", 1, "render", min, max);
See also | |
usd | |
usd_pointinstance |