24 #ifndef PXR_USD_USD_UTILS_DEPENDENCIES_H 25 #define PXR_USD_USD_UTILS_DEPENDENCIES_H 40 #include "pxr/usd/usdUtils/api.h" 45 PXR_NAMESPACE_OPEN_SCOPE
63 const std::string& filePath,
64 std::vector<std::string>* subLayers,
65 std::vector<std::string>* references,
66 std::vector<std::string>* payloads);
103 const std::string& usdzFilePath,
104 const std::string& firstLayerName=std::string());
142 const std::string &usdzFilePath,
143 const std::string &firstLayerName=std::string());
158 std::vector<SdfLayerRefPtr> *layers,
159 std::vector<std::string> *assets,
160 std::vector<std::string> *unresolvedPaths);
167 const std::string& assetPath)>;
179 const SdfLayerHandle& layer,
182 PXR_NAMESPACE_CLOSE_SCOPE
184 #endif // PXR_USD_USD_UTILS_DEPENDENCIES_H
USDUTILS_API void UsdUtilsModifyAssetPaths(const SdfLayerHandle &layer, const UsdUtilsModifyAssetPathFn &modifyFn)
Helper function that visits every asset path in layer, calls modifyFn and replaces the value with the...
std::function< std::string(const std::string &assetPath)> UsdUtilsModifyAssetPathFn
Callback that is used to modify asset paths in a layer.
USDUTILS_API bool UsdUtilsCreateNewARKitUsdzPackage(const SdfAssetPath &assetPath, const std::string &usdzFilePath, const std::string &firstLayerName=std::string())
Similar to UsdUtilsCreateNewUsdzPackage, this function packages all of the dependencies of the given ...
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...
USDUTILS_API bool UsdUtilsComputeAllDependencies(const SdfAssetPath &assetPath, std::vector< SdfLayerRefPtr > *layers, std::vector< std::string > *assets, std::vector< std::string > *unresolvedPaths)
Recursively computes all the dependencies of the given asset and populates layers with all the depend...
Contains an asset path and an optional resolved path.
USDUTILS_API bool UsdUtilsCreateNewUsdzPackage(const SdfAssetPath &assetPath, const std::string &usdzFilePath, const std::string &firstLayerName=std::string())
Creates a USDZ package containing the specified asset, identified by its assetPath.