Since | 19.0 |
int usd_isiprimvar(<stage>stage, string primpath, string name)
This function checks whether the primitive or its ancestor has a primvar of the given name.
<stage>
ノードのコンテキスト内(例えば、Wrangle LOP)で実行する時、ステージの読み込み先となる(0から始まる)入力番号を表現した整数をこの引数に指定することができます。 この整数は、特定の入力を参照する文字列形式(例えば、“opinput:0”)と等価です。
primpath
Primのパス。
name
Primvar name (without namespace).
Returns
1
if the primvar exists directly on the given primitive or on its ancestor, or 0
otherwise.
Examples
// Check if the sphere primitive or its ancestor has a primvar "some_primvar". int is_primvar = usd_isiprimvar(0, "/geometry/sphere", "some_primvar");
See also | |
usd | |
usd_primvar |
|