Blender
V2.93
source
blender
io
usd
usd.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2019 Blender Foundation.
17
* All rights reserved.
18
*/
19
20
#pragma once
21
22
#include "
DEG_depsgraph.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
struct
bContext
;
29
30
struct
USDExportParams
{
31
bool
export_animation
;
32
bool
export_hair
;
33
bool
export_uvmaps
;
34
bool
export_normals
;
35
bool
export_materials
;
36
bool
selected_objects_only
;
37
bool
visible_objects_only
;
38
bool
use_instancing
;
39
enum
eEvaluationMode
evaluation_mode
;
40
};
41
42
/* The USD_export takes a as_background_job parameter, and returns a boolean.
43
*
44
* When as_background_job=true, returns false immediately after scheduling
45
* a background job.
46
*
47
* When as_background_job=false, performs the export synchronously, and returns
48
* true when the export was ok, and false if there were any errors.
49
*/
50
51
bool
USD_export
(
struct
bContext
*
C
,
52
const
char
*filepath,
53
const
struct
USDExportParams
*
params
,
54
bool
as_background_job);
55
56
int
USD_get_version
(
void
);
57
58
#ifdef __cplusplus
59
}
60
#endif
DEG_depsgraph.h
eEvaluationMode
eEvaluationMode
Definition:
DEG_depsgraph.h:60
C
#define C
Definition:
RandGen.cpp:39
params
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
Definition:
interface_widgets.c:1164
USDExportParams
Definition:
usd.h:30
USDExportParams::export_animation
bool export_animation
Definition:
usd.h:31
USDExportParams::evaluation_mode
enum eEvaluationMode evaluation_mode
Definition:
usd.h:39
USDExportParams::export_materials
bool export_materials
Definition:
usd.h:35
USDExportParams::selected_objects_only
bool selected_objects_only
Definition:
usd.h:36
USDExportParams::visible_objects_only
bool visible_objects_only
Definition:
usd.h:37
USDExportParams::export_normals
bool export_normals
Definition:
usd.h:34
USDExportParams::export_hair
bool export_hair
Definition:
usd.h:32
USDExportParams::use_instancing
bool use_instancing
Definition:
usd.h:38
USDExportParams::export_uvmaps
bool export_uvmaps
Definition:
usd.h:33
bContext
Definition:
context.c:69
USD_get_version
int USD_get_version(void)
Definition:
usd_capi.cc:240
USD_export
bool USD_export(struct bContext *C, const char *filepath, const struct USDExportParams *params, bool as_background_job)
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1