Blender V5.0
blender::io::usd::USDMaterialExportContext Class Reference

Public Member Functions

 USDMaterialExportContext ()=default
 USDMaterialExportContext (pxr::UsdStageRefPtr stage, const USDExportParams &params, ReportList *reports)
pxr::UsdStageRefPtr get_stage () const
std::string export_texture (PYTHON_NS::object obj) const

Detailed Description

Definition at line 186 of file usd_hook.cc.

Constructor & Destructor Documentation

◆ USDMaterialExportContext() [1/2]

blender::io::usd::USDMaterialExportContext::USDMaterialExportContext ( )
default

◆ USDMaterialExportContext() [2/2]

blender::io::usd::USDMaterialExportContext::USDMaterialExportContext ( pxr::UsdStageRefPtr stage,
const USDExportParams & params,
ReportList * reports )
inline

Definition at line 195 of file usd_hook.cc.

References params.

Member Function Documentation

◆ export_texture()

std::string blender::io::usd::USDMaterialExportContext::export_texture ( PYTHON_NS::object obj) const
inline

Returns the USD asset export path for the given texture image. The image will be copied to the export directory if exporting textures is enabled in the export options. The function may return an empty string in case of an error.

Definition at line 212 of file usd_hook.cc.

References blender::io::usd::export_texture(), blender::io::usd::get_tex_image_asset_filepath(), GS, ID_IM, ID::name, and pyrna_id_FromPyObject().

Referenced by blender::io::usd::register_hook_converters().

◆ get_stage()

pxr::UsdStageRefPtr blender::io::usd::USDMaterialExportContext::get_stage ( ) const
inline

Definition at line 202 of file usd_hook.cc.

Referenced by blender::io::usd::register_hook_converters().


The documentation for this class was generated from the following file: