All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
usdzPackage.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#ifndef PXR_USD_USD_UTILS_USDZ_PACKAGE_H
8#define PXR_USD_USD_UTILS_USDZ_PACKAGE_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/sdf/layer.h"
14#include "pxr/usd/usdUtils/api.h"
15
16#include <string>
17#include <vector>
18
19PXR_NAMESPACE_OPEN_SCOPE
20
21class SdfAssetPath;
22
63USDUTILS_API
64bool
66 const SdfAssetPath& assetPath,
67 const std::string& usdzFilePath,
68 const std::string& firstLayerName=std::string(),
69 bool editLayersInPlace = false);
70
112USDUTILS_API
113bool
115 const SdfAssetPath &assetPath,
116 const std::string &usdzFilePath,
117 const std::string &firstLayerName=std::string(),
118 bool editLayersInplace = false);
119
120PXR_NAMESPACE_CLOSE_SCOPE
121
122#endif // PXR_USD_USD_UTILS_USDZ_PACKAGE_H
Contains an asset path and an optional resolved path.
Definition: assetPath.h:30
USDUTILS_API bool UsdUtilsCreateNewUsdzPackage(const SdfAssetPath &assetPath, const std::string &usdzFilePath, const std::string &firstLayerName=std::string(), bool editLayersInPlace=false)
Creates a USDZ package containing the specified asset, identified by its assetPath.
USDUTILS_API bool UsdUtilsCreateNewARKitUsdzPackage(const SdfAssetPath &assetPath, const std::string &usdzFilePath, const std::string &firstLayerName=std::string(), bool editLayersInplace=false)
Similar to UsdUtilsCreateNewUsdzPackage, this function packages all of the dependencies of the given ...