Blender V4.5
blender::io::usd::USDMaterialExportContext Struct Reference

Public Member Functions

 USDMaterialExportContext ()
 
 USDMaterialExportContext (pxr::UsdStageRefPtr in_stage, const USDExportParams &in_params, ReportList *in_reports)
 
pxr::UsdStageRefPtr get_stage () const
 
std::string export_texture (PYTHON_NS::object obj) const
 

Public Attributes

pxr::UsdStageRefPtr stage
 
USDExportParams params
 
ReportListreports
 

Detailed Description

Definition at line 183 of file usd_hook.cc.

Constructor & Destructor Documentation

◆ USDMaterialExportContext() [1/2]

blender::io::usd::USDMaterialExportContext::USDMaterialExportContext ( )
inline

Definition at line 184 of file usd_hook.cc.

◆ USDMaterialExportContext() [2/2]

blender::io::usd::USDMaterialExportContext::USDMaterialExportContext ( pxr::UsdStageRefPtr in_stage,
const USDExportParams & in_params,
ReportList * in_reports )
inline

Definition at line 186 of file usd_hook.cc.

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 203 of file usd_hook.cc.

References blender::io::usd::export_texture(), blender::io::usd::USDExportParams::export_textures, blender::io::usd::get_tex_image_asset_filepath(), GS, ID_IM, ID::name, blender::io::usd::USDExportParams::overwrite_textures, params, pyrna_id_FromPyObject(), reports, and stage.

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

◆ get_stage()

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

Definition at line 193 of file usd_hook.cc.

References stage.

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

Member Data Documentation

◆ params

USDExportParams blender::io::usd::USDMaterialExportContext::params

Definition at line 230 of file usd_hook.cc.

Referenced by export_texture().

◆ reports

ReportList* blender::io::usd::USDMaterialExportContext::reports

Definition at line 231 of file usd_hook.cc.

Referenced by export_texture().

◆ stage

pxr::UsdStageRefPtr blender::io::usd::USDMaterialExportContext::stage

Definition at line 229 of file usd_hook.cc.

Referenced by export_texture(), and get_stage().


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