|
Collection of module-scoped utilities for introspecting a given USD stage. More...
Go to the source code of this file.
Macros | |
#define | USDUTILS_USDSTAGE_STATS |
Functions | |
SDF_DECLARE_HANDLES (SdfLayer) | |
TF_DECLARE_PUBLIC_TOKENS (UsdUtilsUsdStageStatsKeys, USDUTILS_API, USDUTILS_USDSTAGE_STATS) | |
USDUTILS_API UsdStageRefPtr | UsdUtilsComputeUsdStageStats (const std::string &rootLayerPath, VtDictionary *stats) |
Opens the given layer on a USD stage and collects various stats. | |
USDUTILS_API size_t | UsdUtilsComputeUsdStageStats (const UsdStageWeakPtr &stage, VtDictionary *stats) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Computes stats on an already opened USD stage. | |
Collection of module-scoped utilities for introspecting a given USD stage.
Future additions might include full-on dependency extraction, queries like "Does this stage contain this asset?", "usd grep" functionality, etc.
Definition in file introspection.h.
#define USDUTILS_USDSTAGE_STATS |
Definition at line 31 of file introspection.h.
USDUTILS_API UsdStageRefPtr UsdUtilsComputeUsdStageStats | ( | const std::string & | rootLayerPath, |
VtDictionary * | stats | ||
) |
Opens the given layer on a USD stage and collects various stats.
The stats are populated in the dictionary-valued output param stats
.
The set of stats include:
Returns the stage that was opened.
The "prototypes" subdictionary is populated only if the stage has one or more instanced models.
USDUTILS_API size_t UsdUtilsComputeUsdStageStats | ( | const UsdStageWeakPtr & | stage, |
VtDictionary * | stats | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Computes stats on an already opened USD stage.
Returns the total number of prims on the stage, including active, inactive. pure overs, prims inside prototypes etc.