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
45 const std::string& filePath,
46 std::vector<std::string>* subLayers,
47 std::vector<std::string>* references,
48 std::vector<std::string>* payloads);
70 std::vector<SdfLayerRefPtr> *layers,
71 std::vector<std::string> *assets,
72 std::vector<std::string> *unresolvedPaths,
73 const std::function<UsdUtilsProcessingFunc> &processingFunc =
74 std::function<UsdUtilsProcessingFunc>());
81 const std::string& assetPath)>;
96 const SdfLayerHandle& layer,
98 bool keepEmptyPathsInArrays =
false);
100PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
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 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.
USDUTILS_API void UsdUtilsExtractExternalReferences(const std::string &filePath, std::vector< std::string > *subLayers, std::vector< std::string > *references, std::vector< std::string > *payloads)
Parses the file at filePath, identifying external references, and sorting them into separate type-bas...