| Since | 18.0 | 
                
                    
                    
                    
                        int  usd_setcollectionexpansionrule(int stagehandle, string collectionpath, string rule)
                    
                    
                
            
この関数は、コレクションに展開ルールを設定します。
            
                stagehandle
書き出し先のステージのハンドル。
    現在のところ、唯一有効な値は0のみです。
    この値は、ノード内の現在のステージを意味します(今後は、この引数を使用することで他のステージへの書き出しが可能になります)。
            
                collectionpath
コレクションのパス。
            
                rule
            
            
        
コレクションに設定する展開ルール。
USDは、以下の標準展開ルールに対応しています
- 
        
        
explicitOnly- 包含リストにあって、且つ、除外リストにないパスがコレクションに属します。 - 
        
        
expandPrims- 包含リストにあって(且つ、除外リストにない)パス以下のすべてのPrimsがコレクションに属します。 - 
        
        
expanPrimsAndProperties-expandPrimsと同様ですが、合致したPrimsのプロパティも含めます。 
Returns
成功するとstagehandleの値、失敗すると-1。
Examples ¶
// cubeのコレクションに展開ルールを設定します。 string collection_path = usd_makecollectionpath(0, "/geo/cube", "some_collection"); usd_setcollectionexpansionrule(0, collection_foo, "explicitOnly");
| See also | |
| usd | |
| usd_collection |