Blender V5.0
usd_hook.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include <pxr/usd/usd/common.h>
7#include <pxr/usd/usdShade/material.h>
8
9struct Depsgraph;
10struct Material;
11struct ReportList;
12
13namespace blender::io::usd {
14
15struct USDExportParams;
16struct USDImportParams;
17class USDStageReader;
18
22
24void call_export_hooks(pxr::UsdStageRefPtr stage, Depsgraph *depsgraph, ReportList *reports);
25
27void call_material_export_hooks(pxr::UsdStageRefPtr stage,
28 Material *material,
29 const pxr::UsdShadeMaterial &usd_material,
30 const USDExportParams &export_params,
31 ReportList *reports);
32
34void call_import_hooks(USDStageReader *archive, ReportList *reports);
35
37bool have_material_import_hook(pxr::UsdStageRefPtr stage,
38 const pxr::UsdShadeMaterial &usd_material,
39 const USDImportParams &import_params,
40 ReportList *reports);
41
44bool call_material_import_hooks(pxr::UsdStageRefPtr stage,
45 Material *material,
46 const pxr::UsdShadeMaterial &usd_material,
47 const USDImportParams &import_params,
48 ReportList *reports);
49
50} // namespace blender::io::usd
struct Material Material
BPy_StructRNA * depsgraph
bool have_material_import_hook(pxr::UsdStageRefPtr stage, const pxr::UsdShadeMaterial &usd_material, const USDImportParams &import_params, ReportList *reports)
Definition usd_hook.cc:653
void call_import_hooks(USDStageReader *archive, ReportList *reports)
Definition usd_hook.cc:616
bool call_material_import_hooks(pxr::UsdStageRefPtr stage, Material *material, const pxr::UsdShadeMaterial &usd_material, const USDImportParams &import_params, ReportList *reports)
Definition usd_hook.cc:668
void call_material_export_hooks(pxr::UsdStageRefPtr stage, Material *material, const pxr::UsdShadeMaterial &usd_material, const USDExportParams &export_params, ReportList *reports)
Definition usd_hook.cc:601
void call_export_hooks(pxr::UsdStageRefPtr stage, Depsgraph *depsgraph, ReportList *reports)
Definition usd_hook.cc:591
void register_hook_converters()
Definition usd_hook.cc:298