fake-bpy-module 20240420__py3-none-any.whl → 20240422__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.
- 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 +21 -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 +336 -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 +441 -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 +2412 -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 +103670 -100517
- bpy/utils/__init__.pyi +87 -52
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +20 -17
- 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-20240420.dist-info → fake_bpy_module-20240422.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240420.dist-info → fake_bpy_module-20240422.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-20240420.dist-info → fake_bpy_module-20240422.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240420.dist-info → fake_bpy_module-20240422.dist-info}/top_level.txt +0 -0
bpy/ops/import_anim/__init__.pyi
CHANGED
|
@@ -4,45 +4,45 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def bvh(
|
|
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
11
|
filter_glob: typing.Union[str, typing.Any] = "*.bvh",
|
|
12
|
-
target: typing.Any = "ARMATURE",
|
|
13
|
-
global_scale: typing.Any = 1.0,
|
|
14
|
-
frame_start: typing.Any = 1,
|
|
15
|
-
use_fps_scale: typing.Union[bool, typing.Any] = False,
|
|
16
|
-
update_scene_fps: typing.Union[bool, typing.Any] = False,
|
|
17
|
-
update_scene_duration: typing.Union[bool, typing.Any] = False,
|
|
18
|
-
use_cyclic: typing.Union[bool, typing.Any] = False,
|
|
19
|
-
rotate_mode: typing.Any = "NATIVE",
|
|
20
|
-
axis_forward: typing.Any = "-Z",
|
|
21
|
-
axis_up: typing.Any = "Y",
|
|
12
|
+
target: typing.Optional[typing.Any] = "ARMATURE",
|
|
13
|
+
global_scale: typing.Optional[typing.Any] = 1.0,
|
|
14
|
+
frame_start: typing.Optional[typing.Any] = 1,
|
|
15
|
+
use_fps_scale: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
16
|
+
update_scene_fps: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
17
|
+
update_scene_duration: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
18
|
+
use_cyclic: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
19
|
+
rotate_mode: typing.Optional[typing.Any] = "NATIVE",
|
|
20
|
+
axis_forward: typing.Optional[typing.Any] = "-Z",
|
|
21
|
+
axis_up: typing.Optional[typing.Any] = "Y",
|
|
22
22
|
):
|
|
23
23
|
"""Load a BVH motion capture file
|
|
24
24
|
|
|
25
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
26
|
-
:type execution_context: typing.Union[str, int]
|
|
27
|
-
:type undo: bool
|
|
25
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
26
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
27
|
+
:type undo: typing.Optional[bool]
|
|
28
28
|
:param filepath: File Path, Filepath used for importing the file
|
|
29
29
|
:type filepath: typing.Union[str, typing.Any]
|
|
30
30
|
:param filter_glob: filter_glob
|
|
31
31
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
32
32
|
:param target: Target, Import target type
|
|
33
|
-
:type target: typing.Any
|
|
33
|
+
:type target: typing.Optional[typing.Any]
|
|
34
34
|
:param global_scale: Scale, Scale the BVH by this value
|
|
35
|
-
:type global_scale: typing.Any
|
|
35
|
+
:type global_scale: typing.Optional[typing.Any]
|
|
36
36
|
:param frame_start: Start Frame, Starting frame for the animation
|
|
37
|
-
:type frame_start: typing.Any
|
|
37
|
+
:type frame_start: typing.Optional[typing.Any]
|
|
38
38
|
:param use_fps_scale: Scale FPS, Scale the framerate from the BVH to the current scenes, otherwise each BVH frame maps directly to a Blender frame
|
|
39
|
-
:type use_fps_scale: typing.Union[bool, typing.Any]
|
|
39
|
+
:type use_fps_scale: typing.Optional[typing.Union[bool, typing.Any]]
|
|
40
40
|
:param update_scene_fps: Update Scene FPS, Set the scene framerate to that of the BVH file (note that this nullifies the 'Scale FPS' option, as the scale will be 1:1)
|
|
41
|
-
:type update_scene_fps: typing.Union[bool, typing.Any]
|
|
41
|
+
:type update_scene_fps: typing.Optional[typing.Union[bool, typing.Any]]
|
|
42
42
|
:param update_scene_duration: Update Scene Duration, Extend the scene's duration to the BVH duration (never shortens the scene)
|
|
43
|
-
:type update_scene_duration: typing.Union[bool, typing.Any]
|
|
43
|
+
:type update_scene_duration: typing.Optional[typing.Union[bool, typing.Any]]
|
|
44
44
|
:param use_cyclic: Loop, Loop the animation playback
|
|
45
|
-
:type use_cyclic: typing.Union[bool, typing.Any]
|
|
45
|
+
:type use_cyclic: typing.Optional[typing.Union[bool, typing.Any]]
|
|
46
46
|
:param rotate_mode: Rotation, Rotation conversion
|
|
47
47
|
|
|
48
48
|
QUATERNION
|
|
@@ -68,11 +68,11 @@ def bvh(
|
|
|
68
68
|
|
|
69
69
|
ZYX
|
|
70
70
|
Euler (ZYX) -- Convert rotations to euler ZYX.
|
|
71
|
-
:type rotate_mode: typing.Any
|
|
71
|
+
:type rotate_mode: typing.Optional[typing.Any]
|
|
72
72
|
:param axis_forward: Forward
|
|
73
|
-
:type axis_forward: typing.Any
|
|
73
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
74
74
|
:param axis_up: Up
|
|
75
|
-
:type axis_up: typing.Any
|
|
75
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
76
76
|
"""
|
|
77
77
|
|
|
78
78
|
...
|
|
@@ -4,17 +4,17 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def svg(
|
|
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
11
|
filter_glob: typing.Union[str, typing.Any] = "*.svg",
|
|
12
12
|
):
|
|
13
13
|
"""Load a SVG file
|
|
14
14
|
|
|
15
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
16
|
-
:type execution_context: typing.Union[str, int]
|
|
17
|
-
:type undo: bool
|
|
15
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
16
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
17
|
+
:type undo: typing.Optional[bool]
|
|
18
18
|
:param filepath: File Path, Filepath used for importing the file
|
|
19
19
|
:type filepath: typing.Union[str, typing.Any]
|
|
20
20
|
:param filter_glob: filter_glob
|
bpy/ops/import_mesh/__init__.pyi
CHANGED
|
@@ -4,42 +4,44 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def stl(
|
|
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
11
|
filter_glob: typing.Union[str, typing.Any] = "*.stl",
|
|
12
|
-
files:
|
|
12
|
+
files: typing.Optional[
|
|
13
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
14
|
+
] = None,
|
|
13
15
|
directory: typing.Union[str, typing.Any] = "",
|
|
14
|
-
global_scale: typing.Any = 1.0,
|
|
15
|
-
use_scene_unit: typing.Union[bool, typing.Any] = False,
|
|
16
|
-
use_facet_normal: typing.Union[bool, typing.Any] = False,
|
|
17
|
-
axis_forward: typing.Any = "Y",
|
|
18
|
-
axis_up: typing.Any = "Z",
|
|
16
|
+
global_scale: typing.Optional[typing.Any] = 1.0,
|
|
17
|
+
use_scene_unit: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
18
|
+
use_facet_normal: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
19
|
+
axis_forward: typing.Optional[typing.Any] = "Y",
|
|
20
|
+
axis_up: typing.Optional[typing.Any] = "Z",
|
|
19
21
|
):
|
|
20
22
|
"""Load STL triangle mesh data
|
|
21
23
|
|
|
22
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
23
|
-
:type execution_context: typing.Union[str, int]
|
|
24
|
-
:type undo: bool
|
|
24
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
25
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
26
|
+
:type undo: typing.Optional[bool]
|
|
25
27
|
:param filepath: File Path, Filepath used for importing the file
|
|
26
28
|
:type filepath: typing.Union[str, typing.Any]
|
|
27
29
|
:param filter_glob: filter_glob
|
|
28
30
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
29
31
|
:param files: File Path
|
|
30
|
-
:type files: bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
32
|
+
:type files: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]]
|
|
31
33
|
:param directory: directory
|
|
32
34
|
:type directory: typing.Union[str, typing.Any]
|
|
33
35
|
:param global_scale: Scale
|
|
34
|
-
:type global_scale: typing.Any
|
|
36
|
+
:type global_scale: typing.Optional[typing.Any]
|
|
35
37
|
:param use_scene_unit: Scene Unit, Apply current scene's unit (as defined by unit scale) to imported data
|
|
36
|
-
:type use_scene_unit: typing.Union[bool, typing.Any]
|
|
38
|
+
:type use_scene_unit: typing.Optional[typing.Union[bool, typing.Any]]
|
|
37
39
|
:param use_facet_normal: Facet Normals, Use (import) facet normals (note that this will still give flat shading)
|
|
38
|
-
:type use_facet_normal: typing.Union[bool, typing.Any]
|
|
40
|
+
:type use_facet_normal: typing.Optional[typing.Union[bool, typing.Any]]
|
|
39
41
|
:param axis_forward: Forward
|
|
40
|
-
:type axis_forward: typing.Any
|
|
42
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
41
43
|
:param axis_up: Up
|
|
42
|
-
:type axis_up: typing.Any
|
|
44
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
43
45
|
"""
|
|
44
46
|
|
|
45
47
|
...
|
|
@@ -4,41 +4,45 @@ 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
11
|
directory: typing.Union[str, typing.Any] = "",
|
|
12
12
|
filter_glob: typing.Union[str, typing.Any] = "*.fbx",
|
|
13
|
-
files:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
files: typing.Optional[
|
|
14
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
15
|
+
] = None,
|
|
16
|
+
ui_tab: typing.Optional[typing.Any] = "MAIN",
|
|
17
|
+
use_manual_orientation: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
18
|
+
global_scale: typing.Optional[typing.Any] = 1.0,
|
|
19
|
+
bake_space_transform: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
20
|
+
use_custom_normals: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
21
|
+
colors_type: typing.Optional[typing.Any] = "SRGB",
|
|
22
|
+
use_image_search: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
23
|
+
use_alpha_decals: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
24
|
+
decal_offset: typing.Optional[typing.Any] = 0.0,
|
|
25
|
+
use_anim: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
26
|
+
anim_offset: typing.Optional[typing.Any] = 1.0,
|
|
27
|
+
use_subsurf: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
28
|
+
use_custom_props: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
29
|
+
use_custom_props_enum_as_string: typing.Optional[
|
|
30
|
+
typing.Union[bool, typing.Any]
|
|
31
|
+
] = True,
|
|
32
|
+
ignore_leaf_bones: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
33
|
+
force_connect_children: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
34
|
+
automatic_bone_orientation: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
35
|
+
primary_bone_axis: typing.Optional[typing.Any] = "Y",
|
|
36
|
+
secondary_bone_axis: typing.Optional[typing.Any] = "X",
|
|
37
|
+
use_prepost_rot: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
38
|
+
axis_forward: typing.Optional[typing.Any] = "-Z",
|
|
39
|
+
axis_up: typing.Optional[typing.Any] = "Y",
|
|
36
40
|
):
|
|
37
41
|
"""Load a FBX file
|
|
38
42
|
|
|
39
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
40
|
-
:type execution_context: typing.Union[str, int]
|
|
41
|
-
:type undo: bool
|
|
43
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
44
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
45
|
+
:type undo: typing.Optional[bool]
|
|
42
46
|
:param filepath: File Path, Filepath used for importing the file
|
|
43
47
|
:type filepath: typing.Union[str, typing.Any]
|
|
44
48
|
:param directory: directory
|
|
@@ -46,7 +50,7 @@ def fbx(
|
|
|
46
50
|
:param filter_glob: filter_glob
|
|
47
51
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
48
52
|
:param files: File Path
|
|
49
|
-
:type files: bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
53
|
+
:type files: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]]
|
|
50
54
|
:param ui_tab: ui_tab, Import options categories
|
|
51
55
|
|
|
52
56
|
MAIN
|
|
@@ -54,15 +58,15 @@ def fbx(
|
|
|
54
58
|
|
|
55
59
|
ARMATURE
|
|
56
60
|
Armatures -- Armature-related settings.
|
|
57
|
-
:type ui_tab: typing.Any
|
|
61
|
+
:type ui_tab: typing.Optional[typing.Any]
|
|
58
62
|
:param use_manual_orientation: Manual Orientation, Specify orientation and scale, instead of using embedded data in FBX file
|
|
59
|
-
:type use_manual_orientation: typing.Union[bool, typing.Any]
|
|
63
|
+
:type use_manual_orientation: typing.Optional[typing.Union[bool, typing.Any]]
|
|
60
64
|
:param global_scale: Scale
|
|
61
|
-
:type global_scale: typing.Any
|
|
65
|
+
:type global_scale: typing.Optional[typing.Any]
|
|
62
66
|
: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)
|
|
63
|
-
:type bake_space_transform: typing.Union[bool, typing.Any]
|
|
67
|
+
:type bake_space_transform: typing.Optional[typing.Union[bool, typing.Any]]
|
|
64
68
|
:param use_custom_normals: Custom Normals, Import custom normals, if available (otherwise Blender will recompute them)
|
|
65
|
-
:type use_custom_normals: typing.Union[bool, typing.Any]
|
|
69
|
+
:type use_custom_normals: typing.Optional[typing.Union[bool, typing.Any]]
|
|
66
70
|
:param colors_type: Vertex Colors, Import vertex color attributes
|
|
67
71
|
|
|
68
72
|
NONE
|
|
@@ -73,64 +77,66 @@ def fbx(
|
|
|
73
77
|
|
|
74
78
|
LINEAR
|
|
75
79
|
Linear -- Expect file colors in linear color space.
|
|
76
|
-
:type colors_type: typing.Any
|
|
80
|
+
:type colors_type: typing.Optional[typing.Any]
|
|
77
81
|
:param use_image_search: Image Search, Search subdirs for any associated images (WARNING: may be slow)
|
|
78
|
-
:type use_image_search: typing.Union[bool, typing.Any]
|
|
82
|
+
:type use_image_search: typing.Optional[typing.Union[bool, typing.Any]]
|
|
79
83
|
:param use_alpha_decals: Alpha Decals, Treat materials with alpha as decals (no shadow casting)
|
|
80
|
-
:type use_alpha_decals: typing.Union[bool, typing.Any]
|
|
84
|
+
:type use_alpha_decals: typing.Optional[typing.Union[bool, typing.Any]]
|
|
81
85
|
:param decal_offset: Decal Offset, Displace geometry of alpha meshes
|
|
82
|
-
:type decal_offset: typing.Any
|
|
86
|
+
:type decal_offset: typing.Optional[typing.Any]
|
|
83
87
|
:param use_anim: Import Animation, Import FBX animation
|
|
84
|
-
:type use_anim: typing.Union[bool, typing.Any]
|
|
88
|
+
:type use_anim: typing.Optional[typing.Union[bool, typing.Any]]
|
|
85
89
|
:param anim_offset: Animation Offset, Offset to apply to animation during import, in frames
|
|
86
|
-
:type anim_offset: typing.Any
|
|
90
|
+
:type anim_offset: typing.Optional[typing.Any]
|
|
87
91
|
:param use_subsurf: Subdivision Data, Import FBX subdivision information as subdivision surface modifiers
|
|
88
|
-
:type use_subsurf: typing.Union[bool, typing.Any]
|
|
92
|
+
:type use_subsurf: typing.Optional[typing.Union[bool, typing.Any]]
|
|
89
93
|
:param use_custom_props: Custom Properties, Import user properties as custom properties
|
|
90
|
-
:type use_custom_props: typing.Union[bool, typing.Any]
|
|
94
|
+
:type use_custom_props: typing.Optional[typing.Union[bool, typing.Any]]
|
|
91
95
|
:param use_custom_props_enum_as_string: Import Enums As Strings, Store enumeration values as strings
|
|
92
|
-
:type use_custom_props_enum_as_string: typing.Union[bool, typing.Any]
|
|
96
|
+
:type use_custom_props_enum_as_string: typing.Optional[typing.Union[bool, typing.Any]]
|
|
93
97
|
:param ignore_leaf_bones: Ignore Leaf Bones, Ignore the last bone at the end of each chain (used to mark the length of the previous bone)
|
|
94
|
-
:type ignore_leaf_bones: typing.Union[bool, typing.Any]
|
|
98
|
+
:type ignore_leaf_bones: typing.Optional[typing.Union[bool, typing.Any]]
|
|
95
99
|
:param force_connect_children: Force Connect Children, Force connection of children bones to their parent, even if their computed head/tail positions do not match (can be useful with pure-joints-type armatures)
|
|
96
|
-
:type force_connect_children: typing.Union[bool, typing.Any]
|
|
100
|
+
:type force_connect_children: typing.Optional[typing.Union[bool, typing.Any]]
|
|
97
101
|
:param automatic_bone_orientation: Automatic Bone Orientation, Try to align the major bone axis with the bone children
|
|
98
|
-
:type automatic_bone_orientation: typing.Union[bool, typing.Any]
|
|
102
|
+
:type automatic_bone_orientation: typing.Optional[typing.Union[bool, typing.Any]]
|
|
99
103
|
:param primary_bone_axis: Primary Bone Axis
|
|
100
|
-
:type primary_bone_axis: typing.Any
|
|
104
|
+
:type primary_bone_axis: typing.Optional[typing.Any]
|
|
101
105
|
:param secondary_bone_axis: Secondary Bone Axis
|
|
102
|
-
:type secondary_bone_axis: typing.Any
|
|
106
|
+
:type secondary_bone_axis: typing.Optional[typing.Any]
|
|
103
107
|
:param use_prepost_rot: Use Pre/Post Rotation, Use pre/post rotation from FBX transform (you may have to disable that in some cases)
|
|
104
|
-
:type use_prepost_rot: typing.Union[bool, typing.Any]
|
|
108
|
+
:type use_prepost_rot: typing.Optional[typing.Union[bool, typing.Any]]
|
|
105
109
|
:param axis_forward: Forward
|
|
106
|
-
:type axis_forward: typing.Any
|
|
110
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
107
111
|
:param axis_up: Up
|
|
108
|
-
:type axis_up: typing.Any
|
|
112
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
109
113
|
"""
|
|
110
114
|
|
|
111
115
|
...
|
|
112
116
|
|
|
113
117
|
def gltf(
|
|
114
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
115
|
-
execution_context: typing.Union[str, int] = None,
|
|
116
|
-
undo: bool = None,
|
|
118
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
119
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
120
|
+
undo: typing.Optional[bool] = None,
|
|
117
121
|
filepath: typing.Union[str, typing.Any] = "",
|
|
118
|
-
export_import_convert_lighting_mode: typing.Any = "SPEC",
|
|
122
|
+
export_import_convert_lighting_mode: typing.Optional[typing.Any] = "SPEC",
|
|
119
123
|
filter_glob: typing.Union[str, typing.Any] = "*.glb;*.gltf",
|
|
120
|
-
files:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
files: typing.Optional[
|
|
125
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
126
|
+
] = None,
|
|
127
|
+
loglevel: typing.Optional[typing.Any] = 0,
|
|
128
|
+
import_pack_images: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
129
|
+
merge_vertices: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
130
|
+
import_shading: typing.Optional[typing.Any] = "NORMALS",
|
|
131
|
+
bone_heuristic: typing.Optional[typing.Any] = "BLENDER",
|
|
132
|
+
guess_original_bind_pose: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
133
|
+
import_webp_texture: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
128
134
|
):
|
|
129
135
|
"""Load a glTF 2.0 file
|
|
130
136
|
|
|
131
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
132
|
-
:type execution_context: typing.Union[str, int]
|
|
133
|
-
:type undo: bool
|
|
137
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
138
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
139
|
+
:type undo: typing.Optional[bool]
|
|
134
140
|
:param filepath: File Path, Filepath used for importing the file
|
|
135
141
|
:type filepath: typing.Union[str, typing.Any]
|
|
136
142
|
:param export_import_convert_lighting_mode: Lighting Mode, Optional backwards compatibility for non-standard render engines. Applies to lights
|
|
@@ -143,19 +149,19 @@ def gltf(
|
|
|
143
149
|
|
|
144
150
|
RAW
|
|
145
151
|
Raw (Deprecated) -- Blender lighting strengths with no conversion.
|
|
146
|
-
:type export_import_convert_lighting_mode: typing.Any
|
|
152
|
+
:type export_import_convert_lighting_mode: typing.Optional[typing.Any]
|
|
147
153
|
:param filter_glob: filter_glob
|
|
148
154
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
149
155
|
:param files: File Path
|
|
150
|
-
:type files: bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
156
|
+
:type files: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]]
|
|
151
157
|
:param loglevel: Log Level, Log Level
|
|
152
|
-
:type loglevel: typing.Any
|
|
158
|
+
:type loglevel: typing.Optional[typing.Any]
|
|
153
159
|
:param import_pack_images: Pack Images, Pack all images into .blend file
|
|
154
|
-
:type import_pack_images: typing.Union[bool, typing.Any]
|
|
160
|
+
:type import_pack_images: typing.Optional[typing.Union[bool, typing.Any]]
|
|
155
161
|
:param merge_vertices: Merge Vertices, The glTF format requires discontinuous normals, UVs, and other vertex attributes to be stored as separate vertices, as required for rendering on typical graphics hardware. This option attempts to combine co-located vertices where possible. Currently cannot combine verts with different normals
|
|
156
|
-
:type merge_vertices: typing.Union[bool, typing.Any]
|
|
162
|
+
:type merge_vertices: typing.Optional[typing.Union[bool, typing.Any]]
|
|
157
163
|
:param import_shading: Shading, How normals are computed during import
|
|
158
|
-
:type import_shading: typing.Any
|
|
164
|
+
:type import_shading: typing.Optional[typing.Any]
|
|
159
165
|
:param bone_heuristic: Bone Dir, Heuristic for placing bones. Tries to make bones pretty
|
|
160
166
|
|
|
161
167
|
BLENDER
|
|
@@ -166,37 +172,37 @@ def gltf(
|
|
|
166
172
|
|
|
167
173
|
FORTUNE
|
|
168
174
|
Fortune (may look better, less accurate) -- Might look better than Temperance, but also might have errors. A bone with one child has its tip placed at its child's root. Non-uniform scalings may get messed up though, so beware.
|
|
169
|
-
:type bone_heuristic: typing.Any
|
|
175
|
+
:type bone_heuristic: typing.Optional[typing.Any]
|
|
170
176
|
:param guess_original_bind_pose: Guess Original Bind Pose, Try to guess the original bind pose for skinned meshes from the inverse bind matrices. When off, use default/rest pose as bind pose
|
|
171
|
-
:type guess_original_bind_pose: typing.Union[bool, typing.Any]
|
|
177
|
+
:type guess_original_bind_pose: typing.Optional[typing.Union[bool, typing.Any]]
|
|
172
178
|
:param import_webp_texture: Import WebP textures, If a texture exists in WebP format, loads the WebP texture instead of the fallback PNG/JPEG one
|
|
173
|
-
:type import_webp_texture: typing.Union[bool, typing.Any]
|
|
179
|
+
:type import_webp_texture: typing.Optional[typing.Union[bool, typing.Any]]
|
|
174
180
|
"""
|
|
175
181
|
|
|
176
182
|
...
|
|
177
183
|
|
|
178
184
|
def x3d(
|
|
179
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
180
|
-
execution_context: typing.Union[str, int] = None,
|
|
181
|
-
undo: bool = None,
|
|
185
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
186
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
187
|
+
undo: typing.Optional[bool] = None,
|
|
182
188
|
filepath: typing.Union[str, typing.Any] = "",
|
|
183
189
|
filter_glob: typing.Union[str, typing.Any] = "*.x3d;*.wrl",
|
|
184
|
-
axis_forward: typing.Any = "Z",
|
|
185
|
-
axis_up: typing.Any = "Y",
|
|
190
|
+
axis_forward: typing.Optional[typing.Any] = "Z",
|
|
191
|
+
axis_up: typing.Optional[typing.Any] = "Y",
|
|
186
192
|
):
|
|
187
193
|
"""Import an X3D or VRML2 file
|
|
188
194
|
|
|
189
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
190
|
-
:type execution_context: typing.Union[str, int]
|
|
191
|
-
:type undo: bool
|
|
195
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
196
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
197
|
+
:type undo: typing.Optional[bool]
|
|
192
198
|
:param filepath: File Path, Filepath used for importing the file
|
|
193
199
|
:type filepath: typing.Union[str, typing.Any]
|
|
194
200
|
:param filter_glob: filter_glob
|
|
195
201
|
:type filter_glob: typing.Union[str, typing.Any]
|
|
196
202
|
:param axis_forward: Forward
|
|
197
|
-
:type axis_forward: typing.Any
|
|
203
|
+
:type axis_forward: typing.Optional[typing.Any]
|
|
198
204
|
:param axis_up: Up
|
|
199
|
-
:type axis_up: typing.Any
|
|
205
|
+
:type axis_up: typing.Optional[typing.Any]
|
|
200
206
|
"""
|
|
201
207
|
|
|
202
208
|
...
|