fake-bpy-module 20240421__py3-none-any.whl → 20240423__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bl_operators/add_mesh_torus/__init__.pyi +2 -1
- bl_operators/assets/__init__.pyi +12 -12
- bl_operators/geometry_nodes/__init__.pyi +256 -238
- bl_operators/node/__init__.pyi +262 -260
- bl_operators/object_quick_effects/__init__.pyi +19 -19
- bl_operators/presets/__init__.pyi +371 -368
- bl_operators/wm/__init__.pyi +4 -4
- bl_ui/__init__.pyi +3 -3
- bl_ui/anim/__init__.pyi +1 -1
- bl_ui/asset_shelf/__init__.pyi +1 -1
- bl_ui/generic_ui_list/__init__.pyi +3 -3
- bl_ui/node_add_menu/__init__.pyi +1 -1
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +50 -48
- bl_ui/node_add_menu_shader/__init__.pyi +10 -10
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_collection/__init__.pyi +39 -25
- bl_ui/properties_constraint/__init__.pyi +1257 -1041
- bl_ui/properties_data_armature/__init__.pyi +120 -96
- bl_ui/properties_data_bone/__init__.pyi +36 -29
- bl_ui/properties_data_camera/__init__.pyi +32 -14
- bl_ui/properties_data_curve/__init__.pyi +143 -116
- bl_ui/properties_data_curves/__init__.pyi +30 -25
- bl_ui/properties_data_empty/__init__.pyi +21 -21
- bl_ui/properties_data_gpencil/__init__.pyi +297 -260
- bl_ui/properties_data_grease_pencil/__init__.pyi +228 -205
- bl_ui/properties_data_lattice/__init__.pyi +25 -22
- bl_ui/properties_data_light/__init__.pyi +44 -31
- bl_ui/properties_data_lightprobe/__init__.pyi +54 -32
- bl_ui/properties_data_mesh/__init__.pyi +579 -570
- bl_ui/properties_data_metaball/__init__.pyi +29 -24
- bl_ui/properties_data_modifier/__init__.pyi +55 -43
- bl_ui/properties_data_pointcloud/__init__.pyi +146 -139
- bl_ui/properties_data_shaderfx/__init__.pyi +13 -13
- bl_ui/properties_data_speaker/__init__.pyi +27 -24
- bl_ui/properties_data_volume/__init__.pyi +75 -68
- bl_ui/properties_freestyle/__init__.pyi +407 -284
- bl_ui/properties_grease_pencil_common/__init__.pyi +13 -13
- bl_ui/properties_mask_common/__init__.pyi +7 -7
- bl_ui/properties_material/__init__.pyi +186 -162
- bl_ui/properties_material_gpencil/__init__.pyi +111 -87
- bl_ui/properties_object/__init__.pyi +102 -84
- bl_ui/properties_output/__init__.pyi +255 -228
- bl_ui/properties_paint_common/__init__.pyi +9 -9
- bl_ui/properties_particle/__init__.pyi +341 -254
- bl_ui/properties_physics_cloth/__init__.pyi +54 -33
- bl_ui/properties_physics_common/__init__.pyi +20 -20
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +231 -193
- bl_ui/properties_physics_field/__init__.pyi +52 -36
- bl_ui/properties_physics_fluid/__init__.pyi +119 -96
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -1
- bl_ui/properties_physics_rigidbody/__init__.pyi +36 -20
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +51 -25
- bl_ui/properties_physics_softbody/__init__.pyi +62 -34
- bl_ui/properties_render/__init__.pyi +275 -187
- bl_ui/properties_scene/__init__.pyi +173 -154
- bl_ui/properties_texture/__init__.pyi +251 -205
- bl_ui/properties_view_layer/__init__.pyi +126 -93
- bl_ui/properties_workspace/__init__.pyi +82 -76
- bl_ui/properties_world/__init__.pyi +31 -26
- bl_ui/space_clip/__init__.pyi +495 -433
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +209 -174
- bl_ui/space_filebrowser/__init__.pyi +691 -679
- bl_ui/space_graph/__init__.pyi +25 -20
- bl_ui/space_image/__init__.pyi +959 -845
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +26 -17
- bl_ui/space_node/__init__.pyi +49 -36
- bl_ui/space_outliner/__init__.pyi +14 -14
- bl_ui/space_properties/__init__.pyi +3 -3
- bl_ui/space_sequencer/__init__.pyi +510 -444
- bl_ui/space_spreadsheet/__init__.pyi +1 -1
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +16 -16
- bl_ui/space_time/__init__.pyi +27 -23
- bl_ui/space_toolsystem_common/__init__.pyi +1 -1
- bl_ui/space_toolsystem_toolbar/__init__.pyi +52 -4
- bl_ui/space_topbar/__init__.pyi +26 -26
- bl_ui/space_userpref/__init__.pyi +795 -658
- bl_ui/space_view3d/__init__.pyi +1460 -1428
- bl_ui/space_view3d_toolbar/__init__.pyi +2968 -2657
- bl_ui/temp_anim_layers/__init__.pyi +1 -1
- bmesh/types/__init__.pyi +13 -6
- bpy/app/__init__.pyi +4 -4
- bpy/app/icons/__init__.pyi +8 -6
- bpy/app/timers/__init__.pyi +10 -8
- bpy/app/translations/__init__.pyi +22 -20
- bpy/msgbus/__init__.pyi +4 -2
- bpy/ops/action/__init__.pyi +319 -316
- bpy/ops/anim/__init__.pyi +428 -428
- bpy/ops/armature/__init__.pyi +359 -358
- bpy/ops/asset/__init__.pyi +146 -146
- bpy/ops/boid/__init__.pyi +50 -50
- bpy/ops/brush/__init__.pyi +72 -72
- bpy/ops/buttons/__init__.pyi +128 -128
- bpy/ops/cachefile/__init__.pyi +124 -124
- bpy/ops/camera/__init__.pyi +22 -22
- bpy/ops/clip/__init__.pyi +773 -768
- bpy/ops/cloth/__init__.pyi +10 -10
- bpy/ops/collection/__init__.pyi +64 -64
- bpy/ops/console/__init__.pyi +150 -150
- bpy/ops/constraint/__init__.pyi +150 -150
- bpy/ops/curve/__init__.pyi +475 -472
- bpy/ops/curves/__init__.pyi +247 -244
- bpy/ops/cycles/__init__.pyi +18 -18
- bpy/ops/dpaint/__init__.pyi +34 -34
- bpy/ops/ed/__init__.pyi +122 -122
- bpy/ops/export_anim/__init__.pyi +18 -18
- bpy/ops/export_mesh/__init__.pyi +26 -26
- bpy/ops/export_scene/__init__.pyi +333 -307
- bpy/ops/file/__init__.pyi +340 -340
- bpy/ops/fluid/__init__.pyi +88 -88
- bpy/ops/font/__init__.pyi +252 -252
- bpy/ops/geometry/__init__.pyi +86 -86
- bpy/ops/gizmogroup/__init__.pyi +22 -22
- bpy/ops/gpencil/__init__.pyi +1459 -1444
- bpy/ops/graph/__init__.pyi +645 -642
- bpy/ops/grease_pencil/__init__.pyi +580 -436
- bpy/ops/image/__init__.pyi +614 -612
- bpy/ops/import_anim/__init__.pyi +26 -26
- bpy/ops/import_curve/__init__.pyi +6 -6
- bpy/ops/import_mesh/__init__.pyi +20 -18
- bpy/ops/import_scene/__init__.pyi +92 -86
- bpy/ops/info/__init__.pyi +60 -60
- bpy/ops/lattice/__init__.pyi +64 -64
- bpy/ops/marker/__init__.pyi +106 -106
- bpy/ops/mask/__init__.pyi +321 -318
- bpy/ops/material/__init__.pyi +18 -18
- bpy/ops/mball/__init__.pyi +71 -70
- bpy/ops/mesh/__init__.pyi +1997 -1990
- bpy/ops/nla/__init__.pyi +331 -330
- bpy/ops/node/__init__.pyi +867 -852
- bpy/ops/object/__init__.pyi +2433 -2430
- bpy/ops/outliner/__init__.pyi +498 -498
- bpy/ops/paint/__init__.pyi +554 -544
- bpy/ops/paintcurve/__init__.pyi +64 -64
- bpy/ops/palette/__init__.pyi +48 -48
- bpy/ops/particle/__init__.pyi +266 -264
- bpy/ops/pose/__init__.pyi +336 -336
- bpy/ops/poselib/__init__.pyi +70 -70
- bpy/ops/preferences/__init__.pyi +338 -336
- bpy/ops/ptcache/__init__.pyi +46 -46
- bpy/ops/render/__init__.pyi +114 -114
- bpy/ops/rigidbody/__init__.pyi +102 -102
- bpy/ops/scene/__init__.pyi +270 -270
- bpy/ops/screen/__init__.pyi +378 -378
- bpy/ops/script/__init__.pyi +18 -18
- bpy/ops/sculpt/__init__.pyi +411 -405
- bpy/ops/sculpt_curves/__init__.pyi +42 -40
- bpy/ops/sequencer/__init__.pyi +1053 -1040
- bpy/ops/sound/__init__.pyi +208 -208
- bpy/ops/spreadsheet/__init__.pyi +30 -30
- bpy/ops/surface/__init__.pyi +108 -108
- bpy/ops/text/__init__.pyi +382 -382
- bpy/ops/text_editor/__init__.pyi +10 -10
- bpy/ops/texture/__init__.pyi +26 -26
- bpy/ops/transform/__init__.pyi +826 -790
- bpy/ops/ui/__init__.pyi +216 -216
- bpy/ops/uilist/__init__.pyi +20 -20
- bpy/ops/uv/__init__.pyi +605 -600
- bpy/ops/view2d/__init__.pyi +156 -156
- bpy/ops/view3d/__init__.pyi +578 -576
- bpy/ops/wm/__init__.pyi +2418 -2376
- bpy/ops/workspace/__init__.pyi +42 -42
- bpy/ops/world/__init__.pyi +6 -6
- bpy/path/__init__.pyi +48 -33
- bpy/props/__init__.pyi +263 -261
- bpy/types/__init__.pyi +105733 -102298
- bpy/utils/__init__.pyi +87 -52
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +21 -18
- bpy_extras/anim_utils/__init__.pyi +9 -2
- bpy_extras/io_utils/__init__.pyi +2 -1
- bpy_extras/view3d_utils/__init__.pyi +2 -1
- bpy_types/__init__.pyi +236 -236
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/RECORD +187 -187
- freestyle/chainingiterators/__init__.pyi +7 -2
- freestyle/types/__init__.pyi +8 -3
- gpu_extras/presets/__init__.pyi +14 -2
- keyingsets_builtins/__init__.pyi +92 -92
- mathutils/__init__.pyi +9 -5
- mathutils/geometry/__init__.pyi +8 -4
- nodeitems_builtins/__init__.pyi +7 -7
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/top_level.txt +0 -0
|
@@ -4,82 +4,84 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def fbx(
|
|
7
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
-
execution_context: typing.Union[str, int] = None,
|
|
9
|
-
undo: bool = None,
|
|
7
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
8
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
9
|
+
undo: typing.Optional[bool] = None,
|
|
10
10
|
filepath: typing.Union[str, typing.Any] = "",
|
|
11
|
-
check_existing: typing.Union[bool, typing.Any] = True,
|
|
11
|
+
check_existing: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
12
12
|
filter_glob: typing.Union[str, typing.Any] = "*.fbx",
|
|
13
|
-
use_selection: typing.Union[bool, typing.Any] = False,
|
|
14
|
-
use_visible: typing.Union[bool, typing.Any] = False,
|
|
15
|
-
use_active_collection: typing.Union[bool, typing.Any] = False,
|
|
13
|
+
use_selection: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
14
|
+
use_visible: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
15
|
+
use_active_collection: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
16
16
|
collection: typing.Union[str, typing.Any] = "",
|
|
17
|
-
global_scale: typing.Any = 1.0,
|
|
18
|
-
apply_unit_scale: typing.Union[bool, typing.Any] = True,
|
|
19
|
-
apply_scale_options: typing.Any = "FBX_SCALE_NONE",
|
|
20
|
-
use_space_transform: typing.Union[bool, typing.Any] = True,
|
|
21
|
-
bake_space_transform: typing.Union[bool, typing.Any] = False,
|
|
22
|
-
object_types: typing.Any = {
|
|
23
|
-
'"MESH"',
|
|
17
|
+
global_scale: typing.Optional[typing.Any] = 1.0,
|
|
18
|
+
apply_unit_scale: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
19
|
+
apply_scale_options: typing.Optional[typing.Any] = "FBX_SCALE_NONE",
|
|
20
|
+
use_space_transform: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
21
|
+
bake_space_transform: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
22
|
+
object_types: typing.Optional[typing.Any] = {
|
|
24
23
|
'"CAMERA"',
|
|
25
|
-
'"
|
|
24
|
+
'"EMPTY"',
|
|
26
25
|
'"LIGHT"',
|
|
26
|
+
'"MESH"',
|
|
27
|
+
'"OTHER"',
|
|
27
28
|
'"ARMATURE"',
|
|
28
|
-
'"EMPTY"',
|
|
29
29
|
},
|
|
30
|
-
use_mesh_modifiers: typing.Union[bool, typing.Any] = True,
|
|
31
|
-
use_mesh_modifiers_render: typing.Union[bool, typing.Any] = True,
|
|
32
|
-
mesh_smooth_type: typing.Any = "OFF",
|
|
33
|
-
colors_type: typing.Any = "SRGB",
|
|
34
|
-
prioritize_active_color: typing.Union[bool, typing.Any] = False,
|
|
35
|
-
use_subsurf: typing.Union[bool, typing.Any] = False,
|
|
36
|
-
use_mesh_edges: typing.Union[bool, typing.Any] = False,
|
|
37
|
-
use_tspace: typing.Union[bool, typing.Any] = False,
|
|
38
|
-
use_triangles: typing.Union[bool, typing.Any] = False,
|
|
39
|
-
use_custom_props: typing.Union[bool, typing.Any] = False,
|
|
40
|
-
add_leaf_bones: typing.Union[bool, typing.Any] = True,
|
|
41
|
-
primary_bone_axis: typing.Any = "Y",
|
|
42
|
-
secondary_bone_axis: typing.Any = "X",
|
|
43
|
-
use_armature_deform_only: typing.Union[bool, typing.Any] = False,
|
|
44
|
-
armature_nodetype: typing.Any = "NULL",
|
|
45
|
-
bake_anim: typing.Union[bool, typing.Any] = True,
|
|
46
|
-
bake_anim_use_all_bones: typing.Union[bool, typing.Any] = True,
|
|
47
|
-
bake_anim_use_nla_strips: typing.Union[bool, typing.Any] = True,
|
|
48
|
-
bake_anim_use_all_actions: typing.Union[bool, typing.Any] = True,
|
|
49
|
-
bake_anim_force_startend_keying: typing.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
30
|
+
use_mesh_modifiers: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
31
|
+
use_mesh_modifiers_render: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
32
|
+
mesh_smooth_type: typing.Optional[typing.Any] = "OFF",
|
|
33
|
+
colors_type: typing.Optional[typing.Any] = "SRGB",
|
|
34
|
+
prioritize_active_color: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
35
|
+
use_subsurf: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
36
|
+
use_mesh_edges: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
37
|
+
use_tspace: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
38
|
+
use_triangles: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
39
|
+
use_custom_props: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
40
|
+
add_leaf_bones: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
41
|
+
primary_bone_axis: typing.Optional[typing.Any] = "Y",
|
|
42
|
+
secondary_bone_axis: typing.Optional[typing.Any] = "X",
|
|
43
|
+
use_armature_deform_only: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
44
|
+
armature_nodetype: typing.Optional[typing.Any] = "NULL",
|
|
45
|
+
bake_anim: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
46
|
+
bake_anim_use_all_bones: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
47
|
+
bake_anim_use_nla_strips: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
48
|
+
bake_anim_use_all_actions: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
49
|
+
bake_anim_force_startend_keying: typing.Optional[
|
|
50
|
+
typing.Union[bool, typing.Any]
|
|
51
|
+
] = True,
|
|
52
|
+
bake_anim_step: typing.Optional[typing.Any] = 1.0,
|
|
53
|
+
bake_anim_simplify_factor: typing.Optional[typing.Any] = 1.0,
|
|
54
|
+
path_mode: typing.Optional[typing.Any] = "AUTO",
|
|
55
|
+
embed_textures: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
56
|
+
batch_mode: typing.Optional[typing.Any] = "OFF",
|
|
57
|
+
use_batch_own_dir: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
58
|
+
use_metadata: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
59
|
+
axis_forward: typing.Optional[typing.Any] = "-Z",
|
|
60
|
+
axis_up: typing.Optional[typing.Any] = "Y",
|
|
59
61
|
):
|
|
60
62
|
"""Write a FBX file
|
|
61
63
|
|
|
62
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
63
|
-
:type execution_context: typing.Union[str, int]
|
|
64
|
-
:type undo: bool
|
|
64
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
65
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
66
|
+
:type undo: typing.Optional[bool]
|
|
65
67
|
:param filepath: File Path, Filepath used for exporting the file
|
|
66
68
|
:type filepath: typing.Union[str, typing.Any]
|
|
67
69
|
:param check_existing: Check Existing, Check and warn on overwriting existing files
|
|
68
|
-
:type check_existing: typing.Union[bool, typing.Any]
|
|
70
|
+
:type check_existing: typing.Optional[typing.Union[bool, typing.Any]]
|
|
69
71
|
:param filter_glob: filter_glob
|
|
70
72
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
71
73
|
:param use_selection: Selected Objects, Export selected and visible objects only
|
|
72
|
-
:type use_selection: typing.Union[bool, typing.Any]
|
|
74
|
+
:type use_selection: typing.Optional[typing.Union[bool, typing.Any]]
|
|
73
75
|
:param use_visible: Visible Objects, Export visible objects only
|
|
74
|
-
:type use_visible: typing.Union[bool, typing.Any]
|
|
76
|
+
:type use_visible: typing.Optional[typing.Union[bool, typing.Any]]
|
|
75
77
|
:param use_active_collection: Active Collection, Export only objects from the active collection (and its children)
|
|
76
|
-
:type use_active_collection: typing.Union[bool, typing.Any]
|
|
78
|
+
:type use_active_collection: typing.Optional[typing.Union[bool, typing.Any]]
|
|
77
79
|
:param collection: Source Collection, Export only objects from this collection (and its children)
|
|
78
80
|
:type collection: typing.Union[str, typing.Any]
|
|
79
81
|
:param global_scale: Scale, Scale all data (Some importers do not support scaled armatures!)
|
|
80
|
-
:type global_scale: typing.Any
|
|
82
|
+
:type global_scale: typing.Optional[typing.Any]
|
|
81
83
|
:param apply_unit_scale: Apply Unit, Take into account current Blender units settings (if unset, raw Blender Units values are used as-is)
|
|
82
|
-
:type apply_unit_scale: typing.Union[bool, typing.Any]
|
|
84
|
+
:type apply_unit_scale: typing.Optional[typing.Union[bool, typing.Any]]
|
|
83
85
|
:param apply_scale_options: Apply Scalings, How to apply custom and units scalings in generated FBX file (Blender uses FBX scale to detect units on import, but many other applications do not handle the same way)
|
|
84
86
|
|
|
85
87
|
FBX_SCALE_NONE
|
|
@@ -93,11 +95,11 @@ def fbx(
|
|
|
93
95
|
|
|
94
96
|
FBX_SCALE_ALL
|
|
95
97
|
FBX All -- Apply custom scaling and units scaling to FBX scale.
|
|
96
|
-
:type apply_scale_options: typing.Any
|
|
98
|
+
:type apply_scale_options: typing.Optional[typing.Any]
|
|
97
99
|
:param use_space_transform: Use Space Transform, Apply global space transform to the object rotations. When disabled only the axis space is written to the file and all object transforms are left as-is
|
|
98
|
-
:type use_space_transform: typing.Union[bool, typing.Any]
|
|
100
|
+
:type use_space_transform: typing.Optional[typing.Union[bool, typing.Any]]
|
|
99
101
|
:param bake_space_transform: Apply Transform, Bake space transform into object data, avoids getting unwanted rotations to objects when target space is not aligned with Blender's space (WARNING! experimental option, use at own risk, known to be broken with armatures/animations)
|
|
100
|
-
:type bake_space_transform: typing.Union[bool, typing.Any]
|
|
102
|
+
:type bake_space_transform: typing.Optional[typing.Union[bool, typing.Any]]
|
|
101
103
|
:param object_types: Object Types, Which kind of object to export
|
|
102
104
|
|
|
103
105
|
EMPTY
|
|
@@ -117,11 +119,11 @@ def fbx(
|
|
|
117
119
|
|
|
118
120
|
OTHER
|
|
119
121
|
Other -- Other geometry types, like curve, metaball, etc. (converted to meshes).
|
|
120
|
-
:type object_types: typing.Any
|
|
122
|
+
:type object_types: typing.Optional[typing.Any]
|
|
121
123
|
:param use_mesh_modifiers: Apply Modifiers, Apply modifiers to mesh objects (except Armature ones) - WARNING: prevents exporting shape keys
|
|
122
|
-
:type use_mesh_modifiers: typing.Union[bool, typing.Any]
|
|
124
|
+
:type use_mesh_modifiers: typing.Optional[typing.Union[bool, typing.Any]]
|
|
123
125
|
:param use_mesh_modifiers_render: Use Modifiers Render Setting, Use render settings when applying modifiers to mesh objects (DISABLED in Blender 2.8)
|
|
124
|
-
:type use_mesh_modifiers_render: typing.Union[bool, typing.Any]
|
|
126
|
+
:type use_mesh_modifiers_render: typing.Optional[typing.Union[bool, typing.Any]]
|
|
125
127
|
:param mesh_smooth_type: Smoothing, Export smoothing information (prefer 'Normals Only' option if your target importer understand split normals)
|
|
126
128
|
|
|
127
129
|
OFF
|
|
@@ -132,7 +134,7 @@ def fbx(
|
|
|
132
134
|
|
|
133
135
|
EDGE
|
|
134
136
|
Edge -- Write edge smoothing.
|
|
135
|
-
:type mesh_smooth_type: typing.Any
|
|
137
|
+
:type mesh_smooth_type: typing.Optional[typing.Any]
|
|
136
138
|
:param colors_type: Vertex Colors, Export vertex color attributes
|
|
137
139
|
|
|
138
140
|
NONE
|
|
@@ -143,27 +145,27 @@ def fbx(
|
|
|
143
145
|
|
|
144
146
|
LINEAR
|
|
145
147
|
Linear -- Export colors in linear color space.
|
|
146
|
-
:type colors_type: typing.Any
|
|
148
|
+
:type colors_type: typing.Optional[typing.Any]
|
|
147
149
|
:param prioritize_active_color: Prioritize Active Color, Make sure active color will be exported first. Could be important since some other software can discard other color attributes besides the first one
|
|
148
|
-
:type prioritize_active_color: typing.Union[bool, typing.Any]
|
|
150
|
+
:type prioritize_active_color: typing.Optional[typing.Union[bool, typing.Any]]
|
|
149
151
|
:param use_subsurf: Export Subdivision Surface, Export the last Catmull-Rom subdivision modifier as FBX subdivision (does not apply the modifier even if 'Apply Modifiers' is enabled)
|
|
150
|
-
:type use_subsurf: typing.Union[bool, typing.Any]
|
|
152
|
+
:type use_subsurf: typing.Optional[typing.Union[bool, typing.Any]]
|
|
151
153
|
:param use_mesh_edges: Loose Edges, Export loose edges (as two-vertices polygons)
|
|
152
|
-
:type use_mesh_edges: typing.Union[bool, typing.Any]
|
|
154
|
+
:type use_mesh_edges: typing.Optional[typing.Union[bool, typing.Any]]
|
|
153
155
|
:param use_tspace: Tangent Space, Add binormal and tangent vectors, together with normal they form the tangent space (will only work correctly with tris/quads only meshes!)
|
|
154
|
-
:type use_tspace: typing.Union[bool, typing.Any]
|
|
156
|
+
:type use_tspace: typing.Optional[typing.Union[bool, typing.Any]]
|
|
155
157
|
:param use_triangles: Triangulate Faces, Convert all faces to triangles
|
|
156
|
-
:type use_triangles: typing.Union[bool, typing.Any]
|
|
158
|
+
:type use_triangles: typing.Optional[typing.Union[bool, typing.Any]]
|
|
157
159
|
:param use_custom_props: Custom Properties, Export custom properties
|
|
158
|
-
:type use_custom_props: typing.Union[bool, typing.Any]
|
|
160
|
+
:type use_custom_props: typing.Optional[typing.Union[bool, typing.Any]]
|
|
159
161
|
:param add_leaf_bones: Add Leaf Bones, Append a final bone to the end of each chain to specify last bone length (use this when you intend to edit the armature from exported data)
|
|
160
|
-
:type add_leaf_bones: typing.Union[bool, typing.Any]
|
|
162
|
+
:type add_leaf_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
161
163
|
:param primary_bone_axis: Primary Bone Axis
|
|
162
|
-
:type primary_bone_axis: typing.Any
|
|
164
|
+
:type primary_bone_axis: typing.Optional[typing.Any]
|
|
163
165
|
:param secondary_bone_axis: Secondary Bone Axis
|
|
164
|
-
:type secondary_bone_axis: typing.Any
|
|
166
|
+
:type secondary_bone_axis: typing.Optional[typing.Any]
|
|
165
167
|
:param use_armature_deform_only: Only Deform Bones, Only write deforming bones (and non-deforming ones when they have deforming children)
|
|
166
|
-
:type use_armature_deform_only: typing.Union[bool, typing.Any]
|
|
168
|
+
:type use_armature_deform_only: typing.Optional[typing.Union[bool, typing.Any]]
|
|
167
169
|
:param armature_nodetype: Armature FBXNode Type, FBX type of node (object) used to represent Blender's armatures (use the Null type unless you experience issues with the other app, as other choices may not import back perfectly into Blender...)
|
|
168
170
|
|
|
169
171
|
NULL
|
|
@@ -174,21 +176,21 @@ def fbx(
|
|
|
174
176
|
|
|
175
177
|
LIMBNODE
|
|
176
178
|
LimbNode -- 'LimbNode' FBX node, a regular joint between two bones....
|
|
177
|
-
:type armature_nodetype: typing.Any
|
|
179
|
+
:type armature_nodetype: typing.Optional[typing.Any]
|
|
178
180
|
:param bake_anim: Baked Animation, Export baked keyframe animation
|
|
179
|
-
:type bake_anim: typing.Union[bool, typing.Any]
|
|
181
|
+
:type bake_anim: typing.Optional[typing.Union[bool, typing.Any]]
|
|
180
182
|
:param bake_anim_use_all_bones: Key All Bones, Force exporting at least one key of animation for all bones (needed with some target applications, like UE4)
|
|
181
|
-
:type bake_anim_use_all_bones: typing.Union[bool, typing.Any]
|
|
183
|
+
:type bake_anim_use_all_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
182
184
|
:param bake_anim_use_nla_strips: NLA Strips, Export each non-muted NLA strip as a separated FBX's AnimStack, if any, instead of global scene animation
|
|
183
|
-
:type bake_anim_use_nla_strips: typing.Union[bool, typing.Any]
|
|
185
|
+
:type bake_anim_use_nla_strips: typing.Optional[typing.Union[bool, typing.Any]]
|
|
184
186
|
:param bake_anim_use_all_actions: All Actions, Export each action as a separated FBX's AnimStack, instead of global scene animation (note that animated objects will get all actions compatible with them, others will get no animation at all)
|
|
185
|
-
:type bake_anim_use_all_actions: typing.Union[bool, typing.Any]
|
|
187
|
+
:type bake_anim_use_all_actions: typing.Optional[typing.Union[bool, typing.Any]]
|
|
186
188
|
:param bake_anim_force_startend_keying: Force Start/End Keying, Always add a keyframe at start and end of actions for animated channels
|
|
187
|
-
:type bake_anim_force_startend_keying: typing.Union[bool, typing.Any]
|
|
189
|
+
:type bake_anim_force_startend_keying: typing.Optional[typing.Union[bool, typing.Any]]
|
|
188
190
|
:param bake_anim_step: Sampling Rate, How often to evaluate animated values (in frames)
|
|
189
|
-
:type bake_anim_step: typing.Any
|
|
191
|
+
:type bake_anim_step: typing.Optional[typing.Any]
|
|
190
192
|
:param bake_anim_simplify_factor: Simplify, How much to simplify baked values (0.0 to disable, the higher the more simplified)
|
|
191
|
-
:type bake_anim_simplify_factor: typing.Any
|
|
193
|
+
:type bake_anim_simplify_factor: typing.Optional[typing.Any]
|
|
192
194
|
:param path_mode: Path Mode, Method used to reference paths
|
|
193
195
|
|
|
194
196
|
AUTO
|
|
@@ -208,9 +210,9 @@ def fbx(
|
|
|
208
210
|
|
|
209
211
|
COPY
|
|
210
212
|
Copy -- Copy the file to the destination path (or subdirectory).
|
|
211
|
-
:type path_mode: typing.Any
|
|
213
|
+
:type path_mode: typing.Optional[typing.Any]
|
|
212
214
|
:param embed_textures: Embed Textures, Embed textures in FBX binary file (only for "Copy" path mode!)
|
|
213
|
-
:type embed_textures: typing.Union[bool, typing.Any]
|
|
215
|
+
:type embed_textures: typing.Optional[typing.Union[bool, typing.Any]]
|
|
214
216
|
:param batch_mode: Batch Mode
|
|
215
217
|
|
|
216
218
|
OFF
|
|
@@ -227,133 +229,157 @@ def fbx(
|
|
|
227
229
|
|
|
228
230
|
ACTIVE_SCENE_COLLECTION
|
|
229
231
|
Active Scene Collections -- Each collection (including master, non-data-block one) of the active scene as a file, including content from children collections.
|
|
230
|
-
:type batch_mode: typing.Any
|
|
232
|
+
:type batch_mode: typing.Optional[typing.Any]
|
|
231
233
|
:param use_batch_own_dir: Batch Own Dir, Create a dir for each exported file
|
|
232
|
-
:type use_batch_own_dir: typing.Union[bool, typing.Any]
|
|
234
|
+
:type use_batch_own_dir: typing.Optional[typing.Union[bool, typing.Any]]
|
|
233
235
|
:param use_metadata: Use Metadata
|
|
234
|
-
:type use_metadata: typing.Union[bool, typing.Any]
|
|
236
|
+
:type use_metadata: typing.Optional[typing.Union[bool, typing.Any]]
|
|
235
237
|
:param axis_forward: Forward
|
|
236
|
-
:type axis_forward: typing.Any
|
|
238
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
237
239
|
:param axis_up: Up
|
|
238
|
-
:type axis_up: typing.Any
|
|
240
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
239
241
|
"""
|
|
240
242
|
|
|
241
243
|
...
|
|
242
244
|
|
|
243
245
|
def gltf(
|
|
244
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
245
|
-
execution_context: typing.Union[str, int] = None,
|
|
246
|
-
undo: bool = None,
|
|
246
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
247
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
248
|
+
undo: typing.Optional[bool] = None,
|
|
247
249
|
filepath: typing.Union[str, typing.Any] = "",
|
|
248
|
-
check_existing: typing.Union[bool, typing.Any] = True,
|
|
249
|
-
export_import_convert_lighting_mode: typing.Any = "SPEC",
|
|
250
|
+
check_existing: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
251
|
+
export_import_convert_lighting_mode: typing.Optional[typing.Any] = "SPEC",
|
|
250
252
|
gltf_export_id: typing.Union[str, typing.Any] = "",
|
|
251
|
-
export_use_gltfpack: typing.Union[bool, typing.Any] = False,
|
|
252
|
-
export_gltfpack_tc: typing.Union[bool, typing.Any] = True,
|
|
253
|
-
export_gltfpack_tq: typing.Any = 8,
|
|
254
|
-
export_gltfpack_si: typing.Any = 1.0,
|
|
255
|
-
export_gltfpack_sa: typing.Union[bool, typing.Any] = False,
|
|
256
|
-
export_gltfpack_slb: typing.Union[bool, typing.Any] = False,
|
|
257
|
-
export_gltfpack_vp: typing.Any = 14,
|
|
258
|
-
export_gltfpack_vt: typing.Any = 12,
|
|
259
|
-
export_gltfpack_vn: typing.Any = 8,
|
|
260
|
-
export_gltfpack_vc: typing.Any = 8,
|
|
261
|
-
export_gltfpack_vpi: typing.Any = "Integer",
|
|
262
|
-
export_gltfpack_noq: typing.Union[bool, typing.Any] = True,
|
|
263
|
-
export_format: typing.Union[str, int, typing.Any] = "",
|
|
264
|
-
ui_tab: typing.Any = "GENERAL",
|
|
253
|
+
export_use_gltfpack: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
254
|
+
export_gltfpack_tc: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
255
|
+
export_gltfpack_tq: typing.Optional[typing.Any] = 8,
|
|
256
|
+
export_gltfpack_si: typing.Optional[typing.Any] = 1.0,
|
|
257
|
+
export_gltfpack_sa: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
258
|
+
export_gltfpack_slb: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
259
|
+
export_gltfpack_vp: typing.Optional[typing.Any] = 14,
|
|
260
|
+
export_gltfpack_vt: typing.Optional[typing.Any] = 12,
|
|
261
|
+
export_gltfpack_vn: typing.Optional[typing.Any] = 8,
|
|
262
|
+
export_gltfpack_vc: typing.Optional[typing.Any] = 8,
|
|
263
|
+
export_gltfpack_vpi: typing.Optional[typing.Any] = "Integer",
|
|
264
|
+
export_gltfpack_noq: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
265
|
+
export_format: typing.Optional[typing.Union[str, int, typing.Any]] = "",
|
|
266
|
+
ui_tab: typing.Optional[typing.Any] = "GENERAL",
|
|
265
267
|
export_copyright: typing.Union[str, typing.Any] = "",
|
|
266
|
-
export_image_format: typing.Any = "AUTO",
|
|
267
|
-
export_image_add_webp: typing.Union[bool, typing.Any] = False,
|
|
268
|
-
export_image_webp_fallback: typing.Union[bool, typing.Any] = False,
|
|
268
|
+
export_image_format: typing.Optional[typing.Any] = "AUTO",
|
|
269
|
+
export_image_add_webp: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
270
|
+
export_image_webp_fallback: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
269
271
|
export_texture_dir: typing.Union[str, typing.Any] = "",
|
|
270
|
-
export_jpeg_quality: typing.Any = 75,
|
|
271
|
-
export_image_quality: typing.Any = 75,
|
|
272
|
-
export_keep_originals: typing.Union[bool, typing.Any] = False,
|
|
273
|
-
export_texcoords: typing.Union[bool, typing.Any] = True,
|
|
274
|
-
export_normals: typing.Union[bool, typing.Any] = True,
|
|
275
|
-
export_gn_mesh: typing.Union[bool, typing.Any] = False,
|
|
276
|
-
export_draco_mesh_compression_enable: typing.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
272
|
+
export_jpeg_quality: typing.Optional[typing.Any] = 75,
|
|
273
|
+
export_image_quality: typing.Optional[typing.Any] = 75,
|
|
274
|
+
export_keep_originals: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
275
|
+
export_texcoords: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
276
|
+
export_normals: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
277
|
+
export_gn_mesh: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
278
|
+
export_draco_mesh_compression_enable: typing.Optional[
|
|
279
|
+
typing.Union[bool, typing.Any]
|
|
280
|
+
] = False,
|
|
281
|
+
export_draco_mesh_compression_level: typing.Optional[typing.Any] = 6,
|
|
282
|
+
export_draco_position_quantization: typing.Optional[typing.Any] = 14,
|
|
283
|
+
export_draco_normal_quantization: typing.Optional[typing.Any] = 10,
|
|
284
|
+
export_draco_texcoord_quantization: typing.Optional[typing.Any] = 12,
|
|
285
|
+
export_draco_color_quantization: typing.Optional[typing.Any] = 10,
|
|
286
|
+
export_draco_generic_quantization: typing.Optional[typing.Any] = 12,
|
|
287
|
+
export_tangents: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
288
|
+
export_materials: typing.Optional[typing.Any] = "EXPORT",
|
|
289
|
+
export_unused_images: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
290
|
+
export_unused_textures: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
291
|
+
export_colors: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
292
|
+
export_attributes: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
293
|
+
use_mesh_edges: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
294
|
+
use_mesh_vertices: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
295
|
+
export_cameras: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
296
|
+
use_selection: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
297
|
+
use_visible: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
298
|
+
use_renderable: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
299
|
+
use_active_collection_with_nested: typing.Optional[
|
|
300
|
+
typing.Union[bool, typing.Any]
|
|
301
|
+
] = True,
|
|
302
|
+
use_active_collection: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
303
|
+
use_active_scene: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
298
304
|
collection: typing.Union[str, typing.Any] = "",
|
|
299
|
-
export_extras: typing.Union[bool, typing.Any] = False,
|
|
300
|
-
export_yup: typing.Union[bool, typing.Any] = True,
|
|
301
|
-
export_apply: typing.Union[bool, typing.Any] = False,
|
|
302
|
-
export_shared_accessors: typing.Union[bool, typing.Any] = False,
|
|
303
|
-
export_animations: typing.Union[bool, typing.Any] = True,
|
|
304
|
-
export_frame_range: typing.Union[bool, typing.Any] = False,
|
|
305
|
-
export_frame_step: typing.Any = 1,
|
|
306
|
-
export_force_sampling: typing.Union[bool, typing.Any] = True,
|
|
307
|
-
export_animation_mode: typing.Any = "ACTIONS",
|
|
305
|
+
export_extras: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
306
|
+
export_yup: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
307
|
+
export_apply: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
308
|
+
export_shared_accessors: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
309
|
+
export_animations: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
310
|
+
export_frame_range: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
311
|
+
export_frame_step: typing.Optional[typing.Any] = 1,
|
|
312
|
+
export_force_sampling: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
313
|
+
export_animation_mode: typing.Optional[typing.Any] = "ACTIONS",
|
|
308
314
|
export_nla_strips_merged_animation_name: typing.Union[
|
|
309
315
|
str, typing.Any
|
|
310
316
|
] = "Animation",
|
|
311
|
-
export_def_bones: typing.Union[bool, typing.Any] = False,
|
|
312
|
-
export_hierarchy_flatten_bones: typing.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
317
|
+
export_def_bones: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
318
|
+
export_hierarchy_flatten_bones: typing.Optional[
|
|
319
|
+
typing.Union[bool, typing.Any]
|
|
320
|
+
] = False,
|
|
321
|
+
export_hierarchy_flatten_objs: typing.Optional[
|
|
322
|
+
typing.Union[bool, typing.Any]
|
|
323
|
+
] = False,
|
|
324
|
+
export_armature_object_remove: typing.Optional[
|
|
325
|
+
typing.Union[bool, typing.Any]
|
|
326
|
+
] = False,
|
|
327
|
+
export_leaf_bone: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
328
|
+
export_optimize_animation_size: typing.Optional[
|
|
329
|
+
typing.Union[bool, typing.Any]
|
|
330
|
+
] = True,
|
|
331
|
+
export_optimize_animation_keep_anim_armature: typing.Optional[
|
|
332
|
+
typing.Union[bool, typing.Any]
|
|
333
|
+
] = True,
|
|
334
|
+
export_optimize_animation_keep_anim_object: typing.Optional[
|
|
335
|
+
typing.Union[bool, typing.Any]
|
|
336
|
+
] = False,
|
|
337
|
+
export_optimize_armature_disable_viewport: typing.Optional[
|
|
338
|
+
typing.Union[bool, typing.Any]
|
|
339
|
+
] = False,
|
|
340
|
+
export_negative_frame: typing.Optional[typing.Any] = "SLIDE",
|
|
341
|
+
export_anim_slide_to_zero: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
342
|
+
export_bake_animation: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
343
|
+
export_anim_single_armature: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
344
|
+
export_reset_pose_bones: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
345
|
+
export_current_frame: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
346
|
+
export_rest_position_armature: typing.Optional[
|
|
347
|
+
typing.Union[bool, typing.Any]
|
|
348
|
+
] = True,
|
|
349
|
+
export_anim_scene_split_object: typing.Optional[
|
|
350
|
+
typing.Union[bool, typing.Any]
|
|
351
|
+
] = True,
|
|
352
|
+
export_skins: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
353
|
+
export_influence_nb: typing.Optional[typing.Any] = 4,
|
|
354
|
+
export_all_influences: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
355
|
+
export_morph: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
356
|
+
export_morph_normal: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
357
|
+
export_morph_tangent: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
358
|
+
export_morph_animation: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
359
|
+
export_morph_reset_sk_data: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
360
|
+
export_lights: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
361
|
+
export_try_sparse_sk: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
362
|
+
export_try_omit_sparse_sk: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
363
|
+
export_gpu_instances: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
364
|
+
export_action_filter: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
365
|
+
export_nla_strips: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
366
|
+
export_original_specular: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
367
|
+
will_save_settings: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
368
|
+
export_hierarchy_full_collections: typing.Optional[
|
|
369
|
+
typing.Union[bool, typing.Any]
|
|
370
|
+
] = False,
|
|
371
|
+
export_extra_animations: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
346
372
|
filter_glob: typing.Union[str, typing.Any] = "*.glb",
|
|
347
373
|
):
|
|
348
374
|
"""Export scene as glTF 2.0 file
|
|
349
375
|
|
|
350
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
351
|
-
:type execution_context: typing.Union[str, int]
|
|
352
|
-
:type undo: bool
|
|
376
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
377
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
378
|
+
:type undo: typing.Optional[bool]
|
|
353
379
|
:param filepath: File Path, Filepath used for exporting the file
|
|
354
380
|
:type filepath: typing.Union[str, typing.Any]
|
|
355
381
|
:param check_existing: Check Existing, Check and warn on overwriting existing files
|
|
356
|
-
:type check_existing: typing.Union[bool, typing.Any]
|
|
382
|
+
:type check_existing: typing.Optional[typing.Union[bool, typing.Any]]
|
|
357
383
|
:param export_import_convert_lighting_mode: Lighting Mode, Optional backwards compatibility for non-standard render engines. Applies to lights
|
|
358
384
|
|
|
359
385
|
SPEC
|
|
@@ -364,29 +390,29 @@ def gltf(
|
|
|
364
390
|
|
|
365
391
|
RAW
|
|
366
392
|
Raw (Deprecated) -- Blender lighting strengths with no conversion.
|
|
367
|
-
:type export_import_convert_lighting_mode: typing.Any
|
|
393
|
+
:type export_import_convert_lighting_mode: typing.Optional[typing.Any]
|
|
368
394
|
:param gltf_export_id: Identifier, Identifier of caller (in case of add-on calling this exporter). Can be useful in case of Extension added by other add-ons
|
|
369
395
|
:type gltf_export_id: typing.Union[str, typing.Any]
|
|
370
396
|
:param export_use_gltfpack: Use Gltfpack, Use gltfpack to simplify the mesh and/or compress its textures
|
|
371
|
-
:type export_use_gltfpack: typing.Union[bool, typing.Any]
|
|
397
|
+
:type export_use_gltfpack: typing.Optional[typing.Union[bool, typing.Any]]
|
|
372
398
|
:param export_gltfpack_tc: KTX2 Compression, Convert all textures to KTX2 with BasisU supercompression
|
|
373
|
-
:type export_gltfpack_tc: typing.Union[bool, typing.Any]
|
|
399
|
+
:type export_gltfpack_tc: typing.Optional[typing.Union[bool, typing.Any]]
|
|
374
400
|
:param export_gltfpack_tq: Texture Encoding Quality, Texture encoding quality
|
|
375
|
-
:type export_gltfpack_tq: typing.Any
|
|
401
|
+
:type export_gltfpack_tq: typing.Optional[typing.Any]
|
|
376
402
|
:param export_gltfpack_si: Mesh Simplification Ratio, Simplify meshes targeting triangle count ratio
|
|
377
|
-
:type export_gltfpack_si: typing.Any
|
|
403
|
+
:type export_gltfpack_si: typing.Optional[typing.Any]
|
|
378
404
|
:param export_gltfpack_sa: Aggressive Mesh Simplification, Aggressively simplify to the target ratio disregarding quality
|
|
379
|
-
:type export_gltfpack_sa: typing.Union[bool, typing.Any]
|
|
405
|
+
:type export_gltfpack_sa: typing.Optional[typing.Union[bool, typing.Any]]
|
|
380
406
|
:param export_gltfpack_slb: Lock Mesh Border Vertices, Lock border vertices during simplification to avoid gaps on connected meshes
|
|
381
|
-
:type export_gltfpack_slb: typing.Union[bool, typing.Any]
|
|
407
|
+
:type export_gltfpack_slb: typing.Optional[typing.Union[bool, typing.Any]]
|
|
382
408
|
:param export_gltfpack_vp: Position Quantization, Use N-bit quantization for positions
|
|
383
|
-
:type export_gltfpack_vp: typing.Any
|
|
409
|
+
:type export_gltfpack_vp: typing.Optional[typing.Any]
|
|
384
410
|
:param export_gltfpack_vt: Texture Coordinate Quantization, Use N-bit quantization for texture coordinates
|
|
385
|
-
:type export_gltfpack_vt: typing.Any
|
|
411
|
+
:type export_gltfpack_vt: typing.Optional[typing.Any]
|
|
386
412
|
:param export_gltfpack_vn: Normal/Tangent Quantization, Use N-bit quantization for normals and tangents
|
|
387
|
-
:type export_gltfpack_vn: typing.Any
|
|
413
|
+
:type export_gltfpack_vn: typing.Optional[typing.Any]
|
|
388
414
|
:param export_gltfpack_vc: Vertex Color Quantization, Use N-bit quantization for colors
|
|
389
|
-
:type export_gltfpack_vc: typing.Any
|
|
415
|
+
:type export_gltfpack_vc: typing.Optional[typing.Any]
|
|
390
416
|
:param export_gltfpack_vpi: Vertex Position Attributes, Type to use for vertex position attributes
|
|
391
417
|
|
|
392
418
|
Integer
|
|
@@ -397,11 +423,11 @@ def gltf(
|
|
|
397
423
|
|
|
398
424
|
Floating-point
|
|
399
425
|
Floating-point -- Use floating-point attributes for positions.
|
|
400
|
-
:type export_gltfpack_vpi: typing.Any
|
|
426
|
+
:type export_gltfpack_vpi: typing.Optional[typing.Any]
|
|
401
427
|
:param export_gltfpack_noq: Disable Quantization, Disable quantization; produces much larger glTF files with no extensions
|
|
402
|
-
:type export_gltfpack_noq: typing.Union[bool, typing.Any]
|
|
428
|
+
:type export_gltfpack_noq: typing.Optional[typing.Union[bool, typing.Any]]
|
|
403
429
|
:param export_format: Format, Output format. Binary is most efficient, but JSON may be easier to edit later
|
|
404
|
-
:type export_format: typing.Union[str, int, typing.Any]
|
|
430
|
+
:type export_format: typing.Optional[typing.Union[str, int, typing.Any]]
|
|
405
431
|
:param ui_tab: ui_tab, Export setting categories
|
|
406
432
|
|
|
407
433
|
GENERAL
|
|
@@ -415,7 +441,7 @@ def gltf(
|
|
|
415
441
|
|
|
416
442
|
ANIMATION
|
|
417
443
|
Animation -- Animation settings.
|
|
418
|
-
:type ui_tab: typing.Any
|
|
444
|
+
:type ui_tab: typing.Optional[typing.Any]
|
|
419
445
|
:param export_copyright: Copyright, Legal rights and conditions for the model
|
|
420
446
|
:type export_copyright: typing.Union[str, typing.Any]
|
|
421
447
|
:param export_image_format: Images, Output format for images. PNG is lossless and generally preferred, but JPEG might be preferable for web applications due to the smaller file size. Alternatively they can be omitted if they are not needed
|
|
@@ -431,41 +457,41 @@ def gltf(
|
|
|
431
457
|
|
|
432
458
|
NONE
|
|
433
459
|
None -- Don't export images.
|
|
434
|
-
:type export_image_format: typing.Any
|
|
460
|
+
:type export_image_format: typing.Optional[typing.Any]
|
|
435
461
|
:param export_image_add_webp: Create WebP, Creates WebP textures for every texture. For already WebP textures, nothing happens
|
|
436
|
-
:type export_image_add_webp: typing.Union[bool, typing.Any]
|
|
462
|
+
:type export_image_add_webp: typing.Optional[typing.Union[bool, typing.Any]]
|
|
437
463
|
:param export_image_webp_fallback: WebP fallback, For all WebP textures, create a PNG fallback texture
|
|
438
|
-
:type export_image_webp_fallback: typing.Union[bool, typing.Any]
|
|
464
|
+
:type export_image_webp_fallback: typing.Optional[typing.Union[bool, typing.Any]]
|
|
439
465
|
:param export_texture_dir: Textures, Folder to place texture files in. Relative to the .gltf file
|
|
440
466
|
:type export_texture_dir: typing.Union[str, typing.Any]
|
|
441
467
|
:param export_jpeg_quality: JPEG quality, Quality of JPEG export
|
|
442
|
-
:type export_jpeg_quality: typing.Any
|
|
468
|
+
:type export_jpeg_quality: typing.Optional[typing.Any]
|
|
443
469
|
:param export_image_quality: Image quality, Quality of image export
|
|
444
|
-
:type export_image_quality: typing.Any
|
|
470
|
+
:type export_image_quality: typing.Optional[typing.Any]
|
|
445
471
|
:param export_keep_originals: Keep original, Keep original textures files if possible. WARNING: if you use more than one texture, where pbr standard requires only one, only one texture will be used. This can lead to unexpected results
|
|
446
|
-
:type export_keep_originals: typing.Union[bool, typing.Any]
|
|
472
|
+
:type export_keep_originals: typing.Optional[typing.Union[bool, typing.Any]]
|
|
447
473
|
:param export_texcoords: UVs, Export UVs (texture coordinates) with meshes
|
|
448
|
-
:type export_texcoords: typing.Union[bool, typing.Any]
|
|
474
|
+
:type export_texcoords: typing.Optional[typing.Union[bool, typing.Any]]
|
|
449
475
|
:param export_normals: Normals, Export vertex normals with meshes
|
|
450
|
-
:type export_normals: typing.Union[bool, typing.Any]
|
|
476
|
+
:type export_normals: typing.Optional[typing.Union[bool, typing.Any]]
|
|
451
477
|
:param export_gn_mesh: Geometry Nodes Instances (Experimental), Export Geometry nodes instance meshes
|
|
452
|
-
:type export_gn_mesh: typing.Union[bool, typing.Any]
|
|
478
|
+
:type export_gn_mesh: typing.Optional[typing.Union[bool, typing.Any]]
|
|
453
479
|
:param export_draco_mesh_compression_enable: Draco mesh compression, Compress mesh using Draco
|
|
454
|
-
:type export_draco_mesh_compression_enable: typing.Union[bool, typing.Any]
|
|
480
|
+
:type export_draco_mesh_compression_enable: typing.Optional[typing.Union[bool, typing.Any]]
|
|
455
481
|
:param export_draco_mesh_compression_level: Compression level, Compression level (0 = most speed, 6 = most compression, higher values currently not supported)
|
|
456
|
-
:type export_draco_mesh_compression_level: typing.Any
|
|
482
|
+
:type export_draco_mesh_compression_level: typing.Optional[typing.Any]
|
|
457
483
|
:param export_draco_position_quantization: Position quantization bits, Quantization bits for position values (0 = no quantization)
|
|
458
|
-
:type export_draco_position_quantization: typing.Any
|
|
484
|
+
:type export_draco_position_quantization: typing.Optional[typing.Any]
|
|
459
485
|
:param export_draco_normal_quantization: Normal quantization bits, Quantization bits for normal values (0 = no quantization)
|
|
460
|
-
:type export_draco_normal_quantization: typing.Any
|
|
486
|
+
:type export_draco_normal_quantization: typing.Optional[typing.Any]
|
|
461
487
|
:param export_draco_texcoord_quantization: Texcoord quantization bits, Quantization bits for texture coordinate values (0 = no quantization)
|
|
462
|
-
:type export_draco_texcoord_quantization: typing.Any
|
|
488
|
+
:type export_draco_texcoord_quantization: typing.Optional[typing.Any]
|
|
463
489
|
:param export_draco_color_quantization: Color quantization bits, Quantization bits for color values (0 = no quantization)
|
|
464
|
-
:type export_draco_color_quantization: typing.Any
|
|
490
|
+
:type export_draco_color_quantization: typing.Optional[typing.Any]
|
|
465
491
|
:param export_draco_generic_quantization: Generic quantization bits, Quantization bits for generic values like weights or joints (0 = no quantization)
|
|
466
|
-
:type export_draco_generic_quantization: typing.Any
|
|
492
|
+
:type export_draco_generic_quantization: typing.Optional[typing.Any]
|
|
467
493
|
:param export_tangents: Tangents, Export vertex tangents with meshes
|
|
468
|
-
:type export_tangents: typing.Union[bool, typing.Any]
|
|
494
|
+
:type export_tangents: typing.Optional[typing.Union[bool, typing.Any]]
|
|
469
495
|
:param export_materials: Materials, Export materials
|
|
470
496
|
|
|
471
497
|
EXPORT
|
|
@@ -476,51 +502,51 @@ def gltf(
|
|
|
476
502
|
|
|
477
503
|
NONE
|
|
478
504
|
No export -- Do not export materials, and combine mesh primitive groups, losing material slot information.
|
|
479
|
-
:type export_materials: typing.Any
|
|
505
|
+
:type export_materials: typing.Optional[typing.Any]
|
|
480
506
|
:param export_unused_images: Unused images, Export images not assigned to any material
|
|
481
|
-
:type export_unused_images: typing.Union[bool, typing.Any]
|
|
507
|
+
:type export_unused_images: typing.Optional[typing.Union[bool, typing.Any]]
|
|
482
508
|
:param export_unused_textures: Prepare Unused textures, Export image texture nodes not assigned to any material. This feature is not standard and needs an external extension to be included in the glTF file
|
|
483
|
-
:type export_unused_textures: typing.Union[bool, typing.Any]
|
|
509
|
+
:type export_unused_textures: typing.Optional[typing.Union[bool, typing.Any]]
|
|
484
510
|
:param export_colors: Dummy, Keep for compatibility only
|
|
485
|
-
:type export_colors: typing.Union[bool, typing.Any]
|
|
511
|
+
:type export_colors: typing.Optional[typing.Union[bool, typing.Any]]
|
|
486
512
|
:param export_attributes: Attributes, Export Attributes (when starting with underscore)
|
|
487
|
-
:type export_attributes: typing.Union[bool, typing.Any]
|
|
513
|
+
:type export_attributes: typing.Optional[typing.Union[bool, typing.Any]]
|
|
488
514
|
:param use_mesh_edges: Loose Edges, Export loose edges as lines, using the material from the first material slot
|
|
489
|
-
:type use_mesh_edges: typing.Union[bool, typing.Any]
|
|
515
|
+
:type use_mesh_edges: typing.Optional[typing.Union[bool, typing.Any]]
|
|
490
516
|
:param use_mesh_vertices: Loose Points, Export loose points as glTF points, using the material from the first material slot
|
|
491
|
-
:type use_mesh_vertices: typing.Union[bool, typing.Any]
|
|
517
|
+
:type use_mesh_vertices: typing.Optional[typing.Union[bool, typing.Any]]
|
|
492
518
|
:param export_cameras: Cameras, Export cameras
|
|
493
|
-
:type export_cameras: typing.Union[bool, typing.Any]
|
|
519
|
+
:type export_cameras: typing.Optional[typing.Union[bool, typing.Any]]
|
|
494
520
|
:param use_selection: Selected Objects, Export selected objects only
|
|
495
|
-
:type use_selection: typing.Union[bool, typing.Any]
|
|
521
|
+
:type use_selection: typing.Optional[typing.Union[bool, typing.Any]]
|
|
496
522
|
:param use_visible: Visible Objects, Export visible objects only
|
|
497
|
-
:type use_visible: typing.Union[bool, typing.Any]
|
|
523
|
+
:type use_visible: typing.Optional[typing.Union[bool, typing.Any]]
|
|
498
524
|
:param use_renderable: Renderable Objects, Export renderable objects only
|
|
499
|
-
:type use_renderable: typing.Union[bool, typing.Any]
|
|
525
|
+
:type use_renderable: typing.Optional[typing.Union[bool, typing.Any]]
|
|
500
526
|
:param use_active_collection_with_nested: Include Nested Collections, Include active collection and nested collections
|
|
501
|
-
:type use_active_collection_with_nested: typing.Union[bool, typing.Any]
|
|
527
|
+
:type use_active_collection_with_nested: typing.Optional[typing.Union[bool, typing.Any]]
|
|
502
528
|
:param use_active_collection: Active Collection, Export objects in the active collection only
|
|
503
|
-
:type use_active_collection: typing.Union[bool, typing.Any]
|
|
529
|
+
:type use_active_collection: typing.Optional[typing.Union[bool, typing.Any]]
|
|
504
530
|
:param use_active_scene: Active Scene, Export active scene only
|
|
505
|
-
:type use_active_scene: typing.Union[bool, typing.Any]
|
|
531
|
+
:type use_active_scene: typing.Optional[typing.Union[bool, typing.Any]]
|
|
506
532
|
:param collection: Source Collection, Export only objects from this collection (and its children)
|
|
507
533
|
:type collection: typing.Union[str, typing.Any]
|
|
508
534
|
:param export_extras: Custom Properties, Export custom properties as glTF extras
|
|
509
|
-
:type export_extras: typing.Union[bool, typing.Any]
|
|
535
|
+
:type export_extras: typing.Optional[typing.Union[bool, typing.Any]]
|
|
510
536
|
:param export_yup: +Y Up, Export using glTF convention, +Y up
|
|
511
|
-
:type export_yup: typing.Union[bool, typing.Any]
|
|
537
|
+
:type export_yup: typing.Optional[typing.Union[bool, typing.Any]]
|
|
512
538
|
:param export_apply: Apply Modifiers, Apply modifiers (excluding Armatures) to mesh objects -WARNING: prevents exporting shape keys
|
|
513
|
-
:type export_apply: typing.Union[bool, typing.Any]
|
|
539
|
+
:type export_apply: typing.Optional[typing.Union[bool, typing.Any]]
|
|
514
540
|
:param export_shared_accessors: Shared Accessors, Export Primitives using shared accessors for attributes
|
|
515
|
-
:type export_shared_accessors: typing.Union[bool, typing.Any]
|
|
541
|
+
:type export_shared_accessors: typing.Optional[typing.Union[bool, typing.Any]]
|
|
516
542
|
:param export_animations: Animations, Exports active actions and NLA tracks as glTF animations
|
|
517
|
-
:type export_animations: typing.Union[bool, typing.Any]
|
|
543
|
+
:type export_animations: typing.Optional[typing.Union[bool, typing.Any]]
|
|
518
544
|
:param export_frame_range: Limit to Playback Range, Clips animations to selected playback range
|
|
519
|
-
:type export_frame_range: typing.Union[bool, typing.Any]
|
|
545
|
+
:type export_frame_range: typing.Optional[typing.Union[bool, typing.Any]]
|
|
520
546
|
:param export_frame_step: Sampling Rate, How often to evaluate animated values (in frames)
|
|
521
|
-
:type export_frame_step: typing.Any
|
|
547
|
+
:type export_frame_step: typing.Optional[typing.Any]
|
|
522
548
|
:param export_force_sampling: Always Sample Animations, Apply sampling to all animations
|
|
523
|
-
:type export_force_sampling: typing.Union[bool, typing.Any]
|
|
549
|
+
:type export_force_sampling: typing.Optional[typing.Union[bool, typing.Any]]
|
|
524
550
|
:param export_animation_mode: Animation mode, Export Animation mode
|
|
525
551
|
|
|
526
552
|
ACTIONS
|
|
@@ -537,27 +563,27 @@ def gltf(
|
|
|
537
563
|
|
|
538
564
|
SCENE
|
|
539
565
|
Scene -- Export baked scene as a single animation.
|
|
540
|
-
:type export_animation_mode: typing.Any
|
|
566
|
+
:type export_animation_mode: typing.Optional[typing.Any]
|
|
541
567
|
:param export_nla_strips_merged_animation_name: Merged Animation Name, Name of single glTF animation to be exported
|
|
542
568
|
:type export_nla_strips_merged_animation_name: typing.Union[str, typing.Any]
|
|
543
569
|
:param export_def_bones: Export Deformation Bones Only, Export Deformation bones only
|
|
544
|
-
:type export_def_bones: typing.Union[bool, typing.Any]
|
|
570
|
+
:type export_def_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
545
571
|
:param export_hierarchy_flatten_bones: Flatten Bone Hierarchy, Flatten Bone Hierarchy. Useful in case of non decomposable transformation matrix
|
|
546
|
-
:type export_hierarchy_flatten_bones: typing.Union[bool, typing.Any]
|
|
572
|
+
:type export_hierarchy_flatten_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
547
573
|
:param export_hierarchy_flatten_objs: Flatten Object Hierarchy, Flatten Object Hierarchy. Useful in case of non decomposable transformation matrix
|
|
548
|
-
:type export_hierarchy_flatten_objs: typing.Union[bool, typing.Any]
|
|
574
|
+
:type export_hierarchy_flatten_objs: typing.Optional[typing.Union[bool, typing.Any]]
|
|
549
575
|
:param export_armature_object_remove: Remove Armature Object, Remove Armature object if possible. If Armature has multiple root bones, object will not be removed
|
|
550
|
-
:type export_armature_object_remove: typing.Union[bool, typing.Any]
|
|
576
|
+
:type export_armature_object_remove: typing.Optional[typing.Union[bool, typing.Any]]
|
|
551
577
|
:param export_leaf_bone: Add Leaf Bones, Append a final bone to the end of each chain to specify last bone length (use this when you intend to edit the armature from exported data)
|
|
552
|
-
:type export_leaf_bone: typing.Union[bool, typing.Any]
|
|
578
|
+
:type export_leaf_bone: typing.Optional[typing.Union[bool, typing.Any]]
|
|
553
579
|
:param export_optimize_animation_size: Optimize Animation Size, Reduce exported file size by removing duplicate keyframes
|
|
554
|
-
:type export_optimize_animation_size: typing.Union[bool, typing.Any]
|
|
580
|
+
:type export_optimize_animation_size: typing.Optional[typing.Union[bool, typing.Any]]
|
|
555
581
|
:param export_optimize_animation_keep_anim_armature: Force keeping channels for bones, If all keyframes are identical in a rig, force keeping the minimal animation. When off, all possible channels for the bones will be exported, even if empty (minimal animation, 2 keyframes)
|
|
556
|
-
:type export_optimize_animation_keep_anim_armature: typing.Union[bool, typing.Any]
|
|
582
|
+
:type export_optimize_animation_keep_anim_armature: typing.Optional[typing.Union[bool, typing.Any]]
|
|
557
583
|
:param export_optimize_animation_keep_anim_object: Force keeping channel for objects, If all keyframes are identical for object transformations, force keeping the minimal animation
|
|
558
|
-
:type export_optimize_animation_keep_anim_object: typing.Union[bool, typing.Any]
|
|
584
|
+
:type export_optimize_animation_keep_anim_object: typing.Optional[typing.Union[bool, typing.Any]]
|
|
559
585
|
:param export_optimize_armature_disable_viewport: Disable viewport if possible, When exporting armature, disable viewport for other objects, for performance. Drivers on shape keys for skined meshes prevent this optimization for now
|
|
560
|
-
:type export_optimize_armature_disable_viewport: typing.Union[bool, typing.Any]
|
|
586
|
+
:type export_optimize_armature_disable_viewport: typing.Optional[typing.Union[bool, typing.Any]]
|
|
561
587
|
:param export_negative_frame: Negative Frames, Negative Frames are slid or cropped
|
|
562
588
|
|
|
563
589
|
SLIDE
|
|
@@ -565,57 +591,57 @@ def gltf(
|
|
|
565
591
|
|
|
566
592
|
CROP
|
|
567
593
|
Crop -- Keep only frames above frame 0.
|
|
568
|
-
:type export_negative_frame: typing.Any
|
|
594
|
+
:type export_negative_frame: typing.Optional[typing.Any]
|
|
569
595
|
:param export_anim_slide_to_zero: Set all glTF Animation starting at 0, Set all glTF animation starting at 0.0s. Can be useful for looping animations
|
|
570
|
-
:type export_anim_slide_to_zero: typing.Union[bool, typing.Any]
|
|
596
|
+
:type export_anim_slide_to_zero: typing.Optional[typing.Union[bool, typing.Any]]
|
|
571
597
|
:param export_bake_animation: Bake All Objects Animations, Force exporting animation on every object. Can be useful when using constraints or driver. Also useful when exporting only selection
|
|
572
|
-
:type export_bake_animation: typing.Union[bool, typing.Any]
|
|
598
|
+
:type export_bake_animation: typing.Optional[typing.Union[bool, typing.Any]]
|
|
573
599
|
:param export_anim_single_armature: Export all Armature Actions, Export all actions, bound to a single armature. WARNING: Option does not support exports including multiple armatures
|
|
574
|
-
:type export_anim_single_armature: typing.Union[bool, typing.Any]
|
|
600
|
+
:type export_anim_single_armature: typing.Optional[typing.Union[bool, typing.Any]]
|
|
575
601
|
:param export_reset_pose_bones: Reset pose bones between actions, Reset pose bones between each action exported. This is needed when some bones are not keyed on some animations
|
|
576
|
-
:type export_reset_pose_bones: typing.Union[bool, typing.Any]
|
|
602
|
+
:type export_reset_pose_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
577
603
|
:param export_current_frame: Use Current Frame as Object Rest Transformations, Export the scene in the current animation frame. When off, frame 0 is used as rest transformations for objects
|
|
578
|
-
:type export_current_frame: typing.Union[bool, typing.Any]
|
|
604
|
+
:type export_current_frame: typing.Optional[typing.Union[bool, typing.Any]]
|
|
579
605
|
:param export_rest_position_armature: Use Rest Position Armature, Export armatures using rest position as joints' rest pose. When off, current frame pose is used as rest pose
|
|
580
|
-
:type export_rest_position_armature: typing.Union[bool, typing.Any]
|
|
606
|
+
:type export_rest_position_armature: typing.Optional[typing.Union[bool, typing.Any]]
|
|
581
607
|
:param export_anim_scene_split_object: Split Animation by Object, Export Scene as seen in Viewport, But split animation by Object
|
|
582
|
-
:type export_anim_scene_split_object: typing.Union[bool, typing.Any]
|
|
608
|
+
:type export_anim_scene_split_object: typing.Optional[typing.Union[bool, typing.Any]]
|
|
583
609
|
:param export_skins: Skinning, Export skinning (armature) data
|
|
584
|
-
:type export_skins: typing.Union[bool, typing.Any]
|
|
610
|
+
:type export_skins: typing.Optional[typing.Union[bool, typing.Any]]
|
|
585
611
|
:param export_influence_nb: Bone Influences, Choose how many Bone influences to export
|
|
586
|
-
:type export_influence_nb: typing.Any
|
|
612
|
+
:type export_influence_nb: typing.Optional[typing.Any]
|
|
587
613
|
:param export_all_influences: Include All Bone Influences, Allow export of all joint vertex influences. Models may appear incorrectly in many viewers
|
|
588
|
-
:type export_all_influences: typing.Union[bool, typing.Any]
|
|
614
|
+
:type export_all_influences: typing.Optional[typing.Union[bool, typing.Any]]
|
|
589
615
|
:param export_morph: Shape Keys, Export shape keys (morph targets)
|
|
590
|
-
:type export_morph: typing.Union[bool, typing.Any]
|
|
616
|
+
:type export_morph: typing.Optional[typing.Union[bool, typing.Any]]
|
|
591
617
|
:param export_morph_normal: Shape Key Normals, Export vertex normals with shape keys (morph targets)
|
|
592
|
-
:type export_morph_normal: typing.Union[bool, typing.Any]
|
|
618
|
+
:type export_morph_normal: typing.Optional[typing.Union[bool, typing.Any]]
|
|
593
619
|
:param export_morph_tangent: Shape Key Tangents, Export vertex tangents with shape keys (morph targets)
|
|
594
|
-
:type export_morph_tangent: typing.Union[bool, typing.Any]
|
|
620
|
+
:type export_morph_tangent: typing.Optional[typing.Union[bool, typing.Any]]
|
|
595
621
|
:param export_morph_animation: Shape Key Animations, Export shape keys animations (morph targets)
|
|
596
|
-
:type export_morph_animation: typing.Union[bool, typing.Any]
|
|
622
|
+
:type export_morph_animation: typing.Optional[typing.Union[bool, typing.Any]]
|
|
597
623
|
:param export_morph_reset_sk_data: Reset shape keys between actions, Reset shape keys between each action exported. This is needed when some SK channels are not keyed on some animations
|
|
598
|
-
:type export_morph_reset_sk_data: typing.Union[bool, typing.Any]
|
|
624
|
+
:type export_morph_reset_sk_data: typing.Optional[typing.Union[bool, typing.Any]]
|
|
599
625
|
:param export_lights: Punctual Lights, Export directional, point, and spot lights. Uses "KHR_lights_punctual" glTF extension
|
|
600
|
-
:type export_lights: typing.Union[bool, typing.Any]
|
|
626
|
+
:type export_lights: typing.Optional[typing.Union[bool, typing.Any]]
|
|
601
627
|
:param export_try_sparse_sk: Use Sparse Accessor if better, Try using Sparse Accessor if it saves space
|
|
602
|
-
:type export_try_sparse_sk: typing.Union[bool, typing.Any]
|
|
628
|
+
:type export_try_sparse_sk: typing.Optional[typing.Union[bool, typing.Any]]
|
|
603
629
|
:param export_try_omit_sparse_sk: Omitting Sparse Accessor if data is empty, Omitting Sparse Accessor if data is empty
|
|
604
|
-
:type export_try_omit_sparse_sk: typing.Union[bool, typing.Any]
|
|
630
|
+
:type export_try_omit_sparse_sk: typing.Optional[typing.Union[bool, typing.Any]]
|
|
605
631
|
:param export_gpu_instances: GPU Instances, Export using EXT_mesh_gpu_instancing. Limited to children of a given Empty. Multiple materials might be omitted
|
|
606
|
-
:type export_gpu_instances: typing.Union[bool, typing.Any]
|
|
632
|
+
:type export_gpu_instances: typing.Optional[typing.Union[bool, typing.Any]]
|
|
607
633
|
:param export_action_filter: Filter Actions, Filter Actions to be exported
|
|
608
|
-
:type export_action_filter: typing.Union[bool, typing.Any]
|
|
634
|
+
:type export_action_filter: typing.Optional[typing.Union[bool, typing.Any]]
|
|
609
635
|
:param export_nla_strips: Group by NLA Track, When on, multiple actions become part of the same glTF animation if they're pushed onto NLA tracks with the same name. When off, all the currently assigned actions become one glTF animation
|
|
610
|
-
:type export_nla_strips: typing.Union[bool, typing.Any]
|
|
636
|
+
:type export_nla_strips: typing.Optional[typing.Union[bool, typing.Any]]
|
|
611
637
|
:param export_original_specular: Export original PBR Specular, Export original glTF PBR Specular, instead of Blender Principled Shader Specular
|
|
612
|
-
:type export_original_specular: typing.Union[bool, typing.Any]
|
|
638
|
+
:type export_original_specular: typing.Optional[typing.Union[bool, typing.Any]]
|
|
613
639
|
:param will_save_settings: Remember Export Settings, Store glTF export settings in the Blender project
|
|
614
|
-
:type will_save_settings: typing.Union[bool, typing.Any]
|
|
640
|
+
:type will_save_settings: typing.Optional[typing.Union[bool, typing.Any]]
|
|
615
641
|
:param export_hierarchy_full_collections: Full Collection Hierarchy, Export full hierarchy, including intermediate collections
|
|
616
|
-
:type export_hierarchy_full_collections: typing.Union[bool, typing.Any]
|
|
642
|
+
:type export_hierarchy_full_collections: typing.Optional[typing.Union[bool, typing.Any]]
|
|
617
643
|
:param export_extra_animations: Prepare extra animations, Export additional animationsThis feature is not standard and needs an external extension to be included in the glTF file
|
|
618
|
-
:type export_extra_animations: typing.Union[bool, typing.Any]
|
|
644
|
+
:type export_extra_animations: typing.Optional[typing.Union[bool, typing.Any]]
|
|
619
645
|
:param filter_glob: filter_glob
|
|
620
646
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
621
647
|
"""
|
|
@@ -623,54 +649,54 @@ def gltf(
|
|
|
623
649
|
...
|
|
624
650
|
|
|
625
651
|
def x3d(
|
|
626
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
627
|
-
execution_context: typing.Union[str, int] = None,
|
|
628
|
-
undo: bool = None,
|
|
652
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
653
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
654
|
+
undo: typing.Optional[bool] = None,
|
|
629
655
|
filepath: typing.Union[str, typing.Any] = "",
|
|
630
|
-
check_existing: typing.Union[bool, typing.Any] = True,
|
|
656
|
+
check_existing: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
631
657
|
filter_glob: typing.Union[str, typing.Any] = "*.x3d",
|
|
632
|
-
use_selection: typing.Union[bool, typing.Any] = False,
|
|
633
|
-
use_mesh_modifiers: typing.Union[bool, typing.Any] = True,
|
|
634
|
-
use_triangulate: typing.Union[bool, typing.Any] = False,
|
|
635
|
-
use_normals: typing.Union[bool, typing.Any] = False,
|
|
636
|
-
use_compress: typing.Union[bool, typing.Any] = False,
|
|
637
|
-
use_hierarchy: typing.Union[bool, typing.Any] = True,
|
|
638
|
-
name_decorations: typing.Union[bool, typing.Any] = True,
|
|
639
|
-
use_h3d: typing.Union[bool, typing.Any] = False,
|
|
640
|
-
global_scale: typing.Any = 1.0,
|
|
641
|
-
path_mode: typing.Any = "AUTO",
|
|
642
|
-
axis_forward: typing.Any = "Z",
|
|
643
|
-
axis_up: typing.Any = "Y",
|
|
658
|
+
use_selection: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
659
|
+
use_mesh_modifiers: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
660
|
+
use_triangulate: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
661
|
+
use_normals: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
662
|
+
use_compress: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
663
|
+
use_hierarchy: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
664
|
+
name_decorations: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
665
|
+
use_h3d: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
666
|
+
global_scale: typing.Optional[typing.Any] = 1.0,
|
|
667
|
+
path_mode: typing.Optional[typing.Any] = "AUTO",
|
|
668
|
+
axis_forward: typing.Optional[typing.Any] = "Z",
|
|
669
|
+
axis_up: typing.Optional[typing.Any] = "Y",
|
|
644
670
|
):
|
|
645
671
|
"""Export selection to Extensible 3D file (.x3d)
|
|
646
672
|
|
|
647
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
648
|
-
:type execution_context: typing.Union[str, int]
|
|
649
|
-
:type undo: bool
|
|
673
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
674
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
675
|
+
:type undo: typing.Optional[bool]
|
|
650
676
|
:param filepath: File Path, Filepath used for exporting the file
|
|
651
677
|
:type filepath: typing.Union[str, typing.Any]
|
|
652
678
|
:param check_existing: Check Existing, Check and warn on overwriting existing files
|
|
653
|
-
:type check_existing: typing.Union[bool, typing.Any]
|
|
679
|
+
:type check_existing: typing.Optional[typing.Union[bool, typing.Any]]
|
|
654
680
|
:param filter_glob: filter_glob
|
|
655
681
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
656
682
|
:param use_selection: Selection Only, Export selected objects only
|
|
657
|
-
:type use_selection: typing.Union[bool, typing.Any]
|
|
683
|
+
:type use_selection: typing.Optional[typing.Union[bool, typing.Any]]
|
|
658
684
|
:param use_mesh_modifiers: Apply Modifiers, Use transformed mesh data from each object
|
|
659
|
-
:type use_mesh_modifiers: typing.Union[bool, typing.Any]
|
|
685
|
+
:type use_mesh_modifiers: typing.Optional[typing.Union[bool, typing.Any]]
|
|
660
686
|
:param use_triangulate: Triangulate, Write quads into 'IndexedTriangleSet'
|
|
661
|
-
:type use_triangulate: typing.Union[bool, typing.Any]
|
|
687
|
+
:type use_triangulate: typing.Optional[typing.Union[bool, typing.Any]]
|
|
662
688
|
:param use_normals: Normals, Write normals with geometry
|
|
663
|
-
:type use_normals: typing.Union[bool, typing.Any]
|
|
689
|
+
:type use_normals: typing.Optional[typing.Union[bool, typing.Any]]
|
|
664
690
|
:param use_compress: Compress, Compress the exported file
|
|
665
|
-
:type use_compress: typing.Union[bool, typing.Any]
|
|
691
|
+
:type use_compress: typing.Optional[typing.Union[bool, typing.Any]]
|
|
666
692
|
:param use_hierarchy: Hierarchy, Export parent child relationships
|
|
667
|
-
:type use_hierarchy: typing.Union[bool, typing.Any]
|
|
693
|
+
:type use_hierarchy: typing.Optional[typing.Union[bool, typing.Any]]
|
|
668
694
|
:param name_decorations: Name decorations, Add prefixes to the names of exported nodes to indicate their type
|
|
669
|
-
:type name_decorations: typing.Union[bool, typing.Any]
|
|
695
|
+
:type name_decorations: typing.Optional[typing.Union[bool, typing.Any]]
|
|
670
696
|
:param use_h3d: H3D Extensions, Export shaders for H3D
|
|
671
|
-
:type use_h3d: typing.Union[bool, typing.Any]
|
|
697
|
+
:type use_h3d: typing.Optional[typing.Union[bool, typing.Any]]
|
|
672
698
|
:param global_scale: Scale
|
|
673
|
-
:type global_scale: typing.Any
|
|
699
|
+
:type global_scale: typing.Optional[typing.Any]
|
|
674
700
|
:param path_mode: Path Mode, Method used to reference paths
|
|
675
701
|
|
|
676
702
|
AUTO
|
|
@@ -690,11 +716,11 @@ def x3d(
|
|
|
690
716
|
|
|
691
717
|
COPY
|
|
692
718
|
Copy -- Copy the file to the destination path (or subdirectory).
|
|
693
|
-
:type path_mode: typing.Any
|
|
719
|
+
:type path_mode: typing.Optional[typing.Any]
|
|
694
720
|
:param axis_forward: Forward
|
|
695
|
-
:type axis_forward: typing.Any
|
|
721
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
696
722
|
:param axis_up: Up
|
|
697
|
-
:type axis_up: typing.Any
|
|
723
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
698
724
|
"""
|
|
699
725
|
|
|
700
726
|
...
|