All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
localizeAsset.h
Go to the documentation of this file.
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#include "pxr/pxr.h"
9#include "pxr/usd/sdf/layer.h"
10#include "pxr/usd/usdUtils/api.h"
12
13#include <string>
14
15#ifndef PXR_USD_USD_UTILS_LOCALIZE_ASSET
16#define PXR_USD_USD_UTILS_LOCALIZE_ASSET
17
19
20PXR_NAMESPACE_OPEN_SCOPE
21
22class SdfAssetPath;
23
68USDUTILS_API
69bool
71 const SdfAssetPath& assetPath,
72 const std::string& localizationDirectory,
73 bool editLayersInPlace = false,
74 std::function<UsdUtilsProcessingFunc> processingFunc =
75 std::function<UsdUtilsProcessingFunc>());
76
77PXR_NAMESPACE_CLOSE_SCOPE
78
79#endif // PXR_USD_USD_UTILS_LOCALIZE_ASSET
Contains an asset path and an optional resolved path.
Definition: assetPath.h:30
USDUTILS_API bool UsdUtilsLocalizeAsset(const SdfAssetPath &assetPath, const std::string &localizationDirectory, bool editLayersInPlace=false, std::function< UsdUtilsProcessingFunc > processingFunc=std::function< UsdUtilsProcessingFunc >())
Creates a localized version of the asset identified by assetPath and all of its external dependencies...