Loading...
Searching...
No Matches
Hydra Collection Predicate API

Functions for use in path expressions that are evaluated on prims in a scene index. More...

Functions

HD_API const HdCollectionPredicateLibraryHdGetCollectionPredicateLibrary ()
 Return a predicate library with a foundational set of predicate functions to evaluate SdfPathExpressions on prims in a scene index.
 

Detailed Description

Functions for use in path expressions that are evaluated on prims in a scene index.

The library returned by HdGetCollectionPredicateLibrary provides the following predicate functions:

Deprecated:
The following predicate functions are deprecated and will be removed in a future release:

Any predicate functions in hd will use the 'hd' prefix henceforth to make it clear to the author/reader that it is a (core) hydra predicate.

Usage Examples

This section provides usage examples for the Hydra Collection Predicate API.

"/World//{hdType:basisCurves}" matches all descendant prims of /World that are basis curves.

"//{hdVisible:false}" matches all scene index prims that are invisible.

"//{hdPurpose:guide}" matches all scene index prims whose purpose is 'guide'.

"//Foo/{hdHasDataSource:"bar.baz"}" matches children of any prim named Foo that have a valid data source at bar.baz .

"/Foo//{hdHasPrimvar:baz}" matches all descendant prims of Foo that have a primvar named "baz".

"//{hdHasMaterialBinding:"GlossyMat"}" matches all scene index prims whose resolved (allPurpose) material binding path contains the string "GlossyMat".

Function Documentation

◆ HdGetCollectionPredicateLibrary()

HD_API const HdCollectionPredicateLibrary & HdGetCollectionPredicateLibrary ( )

Return a predicate library with a foundational set of predicate functions to evaluate SdfPathExpressions on prims in a scene index.

To evaluate the path expression, an evaluator object is constructed with the predicate library as an argument.

See also
HdCollectionExpressionEvaluator
SdfPathExpression