7 #ifndef PXR_USD_USD_UTILS_AUTHORING_H
8 #define PXR_USD_USD_UTILS_AUTHORING_H
46 const SdfLayerHandle &destination,
47 bool skipSublayers =
false,
48 bool bakeUnauthoredFallbacks =
false);
107 double minInclusionRatio=0.75,
108 const unsigned int maxNumExcludesBelowInclude=5u,
109 const unsigned int minIncludeExcludeCollectionSize=3u,
169 const std::vector<std::pair<TfToken, SdfPathSet>> &assignments,
171 const double minInclusionRatio=0.75,
172 const unsigned int maxNumExcludesBelowInclude=5u,
173 const unsigned int minIncludeExcludeCollectionSize=3u);
180 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)
std::vector< class SdfPath > SdfPathVector
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::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)