Blender V5.0
usd_asset_utils.cc File Reference
#include "usd_asset_utils.hh"
#include "usd.hh"
#include <pxr/usd/ar/asset.h>
#include <pxr/usd/ar/packageUtils.h>
#include <pxr/usd/ar/resolver.h>
#include <pxr/usd/ar/writableAsset.h>
#include <pxr/usd/usd/common.h>
#include <pxr/usd/usd/stage.h>
#include "BKE_appdir.hh"
#include "BKE_idprop.hh"
#include "BKE_main.hh"
#include "BKE_report.hh"
#include "BLI_fileops.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "BLI_string_utils.hh"
#include "WM_api.hh"
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::io
namespace  blender::io::usd

Functions

static std::pair< std::string, std::string > blender::io::usd::split_udim_pattern (const std::string &path)
static std::string blender::io::usd::get_asset_base_name (const std::string &src_path, ReportList *reports)
static std::string blender::io::usd::copy_asset_to_directory (const std::string &src_path, const char *dest_dir_path, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports)
static std::string blender::io::usd::copy_udim_asset_to_directory (const std::string &src_path, const char *dest_dir_path, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports)
bool blender::io::usd::copy_asset (const std::string &src, const std::string &dst, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports)
bool blender::io::usd::asset_exists (const std::string &path)
std::string blender::io::usd::import_asset (const std::string &src, const char *import_dir, eUSDTexNameCollisionMode name_collision_mode, ReportList *reports)
static bool blender::io::usd::parent_dir_exists_on_file_system (const std::string &path)
bool blender::io::usd::is_udim_path (const std::string &path)
std::string blender::io::usd::get_export_textures_dir (const pxr::UsdStageRefPtr stage)
bool blender::io::usd::should_import_asset (const std::string &path)
bool blender::io::usd::paths_equal (const std::string &path1, const std::string &path2)
const char * blender::io::usd::temp_textures_dir ()
bool blender::io::usd::write_to_path (const void *data, size_t size, const std::string &path, ReportList *reports)
void blender::io::usd::ensure_usd_source_path_prop (const std::string &path, ID *id)
std::string blender::io::usd::get_usd_source_path (ID *id)
std::string blender::io::usd::get_relative_path (const std::string &path, const std::string &anchor)
void blender::io::usd::USD_path_abs (char *path, const char *basepath, bool for_import)

Variables

constexpr char blender::io::usd::UDIM_PATTERN [] = "<UDIM>"
constexpr char blender::io::usd::UDIM_PATTERN2 [] = "%3CUDIM%3E"
constexpr int blender::io::usd::UDIM_START_TILE = 1001
constexpr int blender::io::usd::UDIM_END_TILE = 1100