Since | 19.0 |
int usd_isindexediprimvar(<stage>stage, string primpath, string name)
This function checks whether the given primvar is indexed, if it’s found directly on the given primitive or is inherited from primitive’s ancestor.
Some primvars may contain a compacted array of unique values, and an additional array of indices into the value array. They are called indexed primvars. The length of the value array depends on the number of unique elements, but the length of the index array corresponds to the number of entities the primvar applies to.
<stage>
ノードのコンテキスト内(例えば、Wrangle LOP)で実行する時、ステージの読み込み先となる(0から始まる)入力番号を表現した整数をこの引数に指定することができます。 この整数は、特定の入力を参照する文字列形式(例えば、“opinput:0”)と等価です。
primpath
Primのパス。
name
Primvar name (without namespace).
Returns
1
if the primvar exists and is indexed, or 0
otherwise.
Examples
// Check if primvar "some_primvar" is indexed on sphere or its ancestor. int is_indexed = usd_isindexedprimvar(0, "/geometry/sphere", "some_primvar");
See also | |
usd | |
usd_primvar |
|