7#ifndef PXR_USD_USD_UTILS_DEPENDENCIES_H
8#define PXR_USD_USD_UTILS_DEPENDENCIES_H
22#include "pxr/usd/usdUtils/api.h"
29PXR_NAMESPACE_OPEN_SCOPE
41 _resolveUdimPaths = resolveUdimPaths;
45 inline bool GetResolveUdimPaths()
const {
return _resolveUdimPaths; }
48 bool _resolveUdimPaths =
false;
68 const std::string& filePath,
69 std::vector<std::string>* subLayers,
70 std::vector<std::string>* references,
71 std::vector<std::string>* payloads,
94 std::vector<SdfLayerRefPtr> *layers,
95 std::vector<std::string> *assets,
96 std::vector<std::string> *unresolvedPaths,
97 const std::function<UsdUtilsProcessingFunc> &processingFunc =
98 std::function<UsdUtilsProcessingFunc>());
105 const std::string& assetPath)>;
120 const SdfLayerHandle& layer,
122 bool keepEmptyPathsInArrays =
false);
124PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and optional evaluated and resolved paths.
USDUTILS_API void UsdUtilsModifyAssetPaths(const SdfLayerHandle &layer, const UsdUtilsModifyAssetPathFn &modifyFn, bool keepEmptyPathsInArrays=false)
Helper function that visits every asset path in layer, calls modifyFn and replaces the value with the...
USDUTILS_API void UsdUtilsExtractExternalReferences(const std::string &filePath, std::vector< std::string > *subLayers, std::vector< std::string > *references, std::vector< std::string > *payloads, const UsdUtilsExtractExternalReferencesParams ¶ms={})
Parses the file at filePath, identifying external references, and sorting them into separate type-bas...
USDUTILS_API bool UsdUtilsComputeAllDependencies(const SdfAssetPath &assetPath, std::vector< SdfLayerRefPtr > *layers, std::vector< std::string > *assets, std::vector< std::string > *unresolvedPaths, const std::function< UsdUtilsProcessingFunc > &processingFunc=std::function< UsdUtilsProcessingFunc >())
Recursively computes all the dependencies of the given asset and populates layers with all the depend...
std::function< std::string(const std::string &assetPath)> UsdUtilsModifyAssetPathFn
Callback that is used to modify asset paths in a layer.