string usd_collectionexpansionrule(<stage>stage, string collectionpath)
この関数は、コレクションの展開ルールを返します。
USDは、以下の標準展開ルールに対応しています
-
explicitOnly
- 包含リストにあって、且つ、除外リストにないパスがコレクションに属します。 -
expandPrims
- 包含リストにあって(且つ、除外リストにない)パス以下のすべてのPrimsがコレクションに属します。 -
expanPrimsAndProperties
-expandPrims
と同様ですが、合致したPrimsのプロパティも含めます。
<stage>
ノードのコンテキスト内(例えば、Wrangle LOP)で実行する時、ステージの読み込み先となる(0から始まる)入力番号を表現した整数をこの引数に指定することができます。 この整数は、特定の入力を参照する文字列形式(例えば、"opinput:0")と等価です。
collectionpath
コレクションのパス。
Returns
コレクションの展開ルール。
Examples
// コレクションの展開ルールを取得します。 string collection_path = usd_makecollectionpath(0, "/geo/cube", "some_collection"); string expansion_rule = usd_collectionexpansionrule(0, collection_path);
See also | |
usd | |
usd_collection |