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