24 #ifndef PXR_USD_USD_UTILS_AUTHORING_H
25 #define PXR_USD_USD_UTILS_AUTHORING_H
63 const SdfLayerHandle &destination,
64 bool skipSublayers =
false,
65 bool bakeUnauthoredFallbacks =
false);
124 double minInclusionRatio=0.75,
125 const unsigned int maxNumExcludesBelowInclude=5u,
126 const unsigned int minIncludeExcludeCollectionSize=3u,
186 const std::vector<std::pair<TfToken, SdfPathSet>> &assignments,
188 const double minInclusionRatio=0.75,
189 const unsigned int maxNumExcludesBelowInclude=5u,
190 const unsigned int minIncludeExcludeCollectionSize=3u);
197 bool includeClipLayers =
true);
USDUTILS_API SdfLayerHandleVector UsdUtilsGetDirtyLayers(UsdStagePtr stage, bool includeClipLayers=true)
Retrieve a list of all dirty layers from the stage's UsedLayers.
UsdStagePtr UsdStageWeakPtr
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
GLsizei GLsizei GLchar * source
USDUTILS_API std::vector< UsdCollectionAPI > UsdUtilsCreateCollections(const std::vector< std::pair< TfToken, SdfPathSet >> &assignments, const UsdPrim &usdPrim, const double minInclusionRatio=0.75, const unsigned int maxNumExcludesBelowInclude=5u, const unsigned int minIncludeExcludeCollectionSize=3u)
USDUTILS_API bool UsdUtilsComputeCollectionIncludesAndExcludes(const SdfPathSet &includedRootPaths, const UsdStageWeakPtr &usdStage, SdfPathVector *pathsToInclude, SdfPathVector *pathsToExclude, double minInclusionRatio=0.75, const unsigned int maxNumExcludesBelowInclude=5u, const unsigned int minIncludeExcludeCollectionSize=3u, const UsdUtilsPathHashSet &pathsToIgnore=UsdUtilsPathHashSet())
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
std::set< class SdfPath > SdfPathSet
A set of SdfPaths.
USDUTILS_API UsdCollectionAPI UsdUtilsAuthorCollection(const TfToken &collectionName, const UsdPrim &usdPrim, const SdfPathVector &pathsToInclude, const SdfPathVector &pathsToExclude=SdfPathVector())
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
TfHashSet< SdfPath, SdfPath::Hash > UsdUtilsPathHashSet
USDUTILS_API bool UsdUtilsCopyLayerMetadata(const SdfLayerHandle &source, const SdfLayerHandle &destination, bool skipSublayers=false, bool bakeUnauthoredFallbacks=false)