fake-bpy-module 20240320__py3-none-any.whl → 20240322__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.
- addon_utils/__init__.pyi +54 -10
- animsys_refactor/__init__.pyi +27 -11
- aud/__init__.pyi +130 -123
- bgl/__init__.pyi +1831 -216
- bl_app_override/__init__.pyi +14 -3
- bl_app_override/helpers/__init__.pyi +19 -10
- bl_app_template_utils/__init__.pyi +19 -4
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -5
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -3
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -5
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -15
- bl_i18n_utils/merge_po/__init__.pyi +4 -1
- bl_i18n_utils/settings/__init__.pyi +19 -23
- bl_i18n_utils/utils/__init__.pyi +81 -143
- bl_i18n_utils/utils_cli/__init__.pyi +29 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -2
- bl_keymap_utils/io/__init__.pyi +44 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -2
- bl_keymap_utils/versioning/__init__.pyi +4 -1
- bl_math/__init__.pyi +3 -3
- bl_operators/__init__.pyi +9 -2
- bl_operators/add_mesh_torus/__init__.pyi +120 -49
- bl_operators/anim/__init__.pyi +903 -297
- bl_operators/assets/__init__.pyi +348 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -9
- bl_operators/clip/__init__.pyi +1262 -470
- bl_operators/console/__init__.pyi +542 -160
- bl_operators/constraint/__init__.pyi +452 -140
- bl_operators/file/__init__.pyi +339 -114
- bl_operators/freestyle/__init__.pyi +440 -132
- bl_operators/geometry_nodes/__init__.pyi +2131 -842
- bl_operators/image/__init__.pyi +330 -97
- bl_operators/mesh/__init__.pyi +339 -109
- bl_operators/node/__init__.pyi +1506 -621
- bl_operators/object/__init__.pyi +1828 -668
- bl_operators/object_align/__init__.pyi +124 -35
- bl_operators/object_quick_effects/__init__.pyi +470 -149
- bl_operators/object_randomize_transform/__init__.pyi +114 -35
- bl_operators/presets/__init__.pyi +3056 -1374
- bl_operators/rigidbody/__init__.pyi +336 -106
- bl_operators/screen_play_rendered_anim/__init__.pyi +115 -33
- bl_operators/sequencer/__init__.pyi +579 -204
- bl_operators/spreadsheet/__init__.pyi +110 -38
- bl_operators/userpref/__init__.pyi +3201 -1236
- bl_operators/uvcalc_follow_active/__init__.pyi +119 -38
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -54
- bl_operators/uvcalc_transform/__init__.pyi +295 -83
- bl_operators/vertexpaint_dirt/__init__.pyi +119 -34
- bl_operators/view3d/__init__.pyi +542 -184
- bl_operators/wm/__init__.pyi +5554 -2159
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -7
- bl_rna_utils/data_path/__init__.pyi +12 -2
- bl_text_utils/external_editor/__init__.pyi +4 -1
- bl_ui/__init__.pyi +346 -146
- bl_ui/anim/__init__.pyi +107 -47
- bl_ui/asset_shelf/__init__.pyi +111 -33
- bl_ui/generic_ui_list/__init__.pyi +349 -146
- bl_ui/node_add_menu/__init__.pyi +138 -53
- bl_ui/node_add_menu_compositor/__init__.pyi +2134 -1016
- bl_ui/node_add_menu_geometry/__init__.pyi +5833 -2855
- bl_ui/node_add_menu_shader/__init__.pyi +1162 -511
- bl_ui/node_add_menu_texture/__init__.pyi +1008 -450
- bl_ui/properties_animviz/__init__.pyi +14 -12
- bl_ui/properties_collection/__init__.pyi +601 -218
- bl_ui/properties_constraint/__init__.pyi +10115 -10647
- bl_ui/properties_data_armature/__init__.pyi +1550 -648
- bl_ui/properties_data_bone/__init__.pyi +1317 -511
- bl_ui/properties_data_camera/__init__.pyi +1852 -719
- bl_ui/properties_data_curve/__init__.pyi +2015 -781
- bl_ui/properties_data_curves/__init__.pyi +713 -262
- bl_ui/properties_data_empty/__init__.pyi +252 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2505 -1105
- bl_ui/properties_data_grease_pencil/__init__.pyi +1350 -594
- bl_ui/properties_data_lattice/__init__.pyi +374 -123
- bl_ui/properties_data_light/__init__.pyi +1319 -489
- bl_ui/properties_data_lightprobe/__init__.pyi +734 -241
- bl_ui/properties_data_mesh/__init__.pyi +2652 -1189
- bl_ui/properties_data_metaball/__init__.pyi +610 -197
- bl_ui/properties_data_modifier/__init__.pyi +1143 -506
- bl_ui/properties_data_pointcloud/__init__.pyi +670 -303
- bl_ui/properties_data_shaderfx/__init__.pyi +126 -36
- bl_ui/properties_data_speaker/__init__.pyi +618 -195
- bl_ui/properties_data_volume/__init__.pyi +1052 -408
- bl_ui/properties_freestyle/__init__.pyi +3366 -1450
- bl_ui/properties_grease_pencil_common/__init__.pyi +1634 -776
- bl_ui/properties_mask_common/__init__.pyi +803 -371
- bl_ui/properties_material/__init__.pyi +2038 -831
- bl_ui/properties_material_gpencil/__init__.pyi +1272 -523
- bl_ui/properties_object/__init__.pyi +1863 -745
- bl_ui/properties_output/__init__.pyi +2482 -1071
- bl_ui/properties_paint_common/__init__.pyi +317 -424
- bl_ui/properties_particle/__init__.pyi +7235 -2942
- bl_ui/properties_physics_cloth/__init__.pyi +1903 -758
- bl_ui/properties_physics_common/__init__.pyi +164 -51
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2787 -1114
- bl_ui/properties_physics_field/__init__.pyi +1294 -486
- bl_ui/properties_physics_fluid/__init__.pyi +3631 -1545
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +115 -34
- bl_ui/properties_physics_rigidbody/__init__.pyi +983 -312
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1718 -656
- bl_ui/properties_physics_softbody/__init__.pyi +2091 -836
- bl_ui/properties_render/__init__.pyi +7177 -2939
- bl_ui/properties_scene/__init__.pyi +1881 -760
- bl_ui/properties_texture/__init__.pyi +3539 -1399
- bl_ui/properties_view_layer/__init__.pyi +2368 -940
- bl_ui/properties_workspace/__init__.pyi +517 -202
- bl_ui/properties_world/__init__.pyi +862 -269
- bl_ui/space_clip/__init__.pyi +9127 -4137
- bl_ui/space_console/__init__.pyi +666 -286
- bl_ui/space_dopesheet/__init__.pyi +3287 -1504
- bl_ui/space_filebrowser/__init__.pyi +3958 -1935
- bl_ui/space_graph/__init__.pyi +2406 -1142
- bl_ui/space_image/__init__.pyi +9242 -4526
- bl_ui/space_info/__init__.pyi +664 -285
- bl_ui/space_nla/__init__.pyi +2014 -932
- bl_ui/space_node/__init__.pyi +4549 -1949
- bl_ui/space_outliner/__init__.pyi +1619 -745
- bl_ui/space_properties/__init__.pyi +340 -105
- bl_ui/space_sequencer/__init__.pyi +9396 -4264
- bl_ui/space_spreadsheet/__init__.pyi +110 -60
- bl_ui/space_statusbar/__init__.pyi +107 -32
- bl_ui/space_text/__init__.pyi +1907 -872
- bl_ui/space_time/__init__.pyi +812 -327
- bl_ui/space_toolsystem_common/__init__.pyi +203 -99
- bl_ui/space_toolsystem_toolbar/__init__.pyi +845 -289
- bl_ui/space_topbar/__init__.pyi +3131 -1437
- bl_ui/space_userpref/__init__.pyi +11510 -4926
- bl_ui/space_view3d/__init__.pyi +31358 -14417
- bl_ui/space_view3d_toolbar/__init__.pyi +12401 -6163
- bl_ui/utils/__init__.pyi +7 -16
- bl_ui_utils/bug_report_url/__init__.pyi +4 -1
- bl_ui_utils/layout/__init__.pyi +4 -1
- blend_render_info/__init__.pyi +13 -3
- blf/__init__.pyi +5 -7
- bmesh/__init__.pyi +7 -7
- bmesh/geometry/__init__.pyi +5 -5
- bmesh/ops/__init__.pyi +490 -504
- bmesh/types/__init__.pyi +253 -247
- bmesh/utils/__init__.pyi +54 -54
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +4 -5
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -10
- bpy/app/timers/__init__.pyi +9 -11
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +3 -12
- bpy/ops/action/__init__.pyi +316 -415
- bpy/ops/anim/__init__.pyi +428 -566
- bpy/ops/armature/__init__.pyi +360 -488
- bpy/ops/asset/__init__.pyi +146 -183
- bpy/ops/boid/__init__.pyi +50 -67
- bpy/ops/brush/__init__.pyi +72 -96
- bpy/ops/buttons/__init__.pyi +128 -142
- bpy/ops/cachefile/__init__.pyi +124 -137
- bpy/ops/camera/__init__.pyi +22 -28
- bpy/ops/clip/__init__.pyi +768 -1005
- bpy/ops/cloth/__init__.pyi +10 -13
- bpy/ops/collection/__init__.pyi +36 -50
- bpy/ops/console/__init__.pyi +150 -203
- bpy/ops/constraint/__init__.pyi +150 -201
- bpy/ops/curve/__init__.pyi +474 -607
- bpy/ops/curves/__init__.pyi +170 -221
- bpy/ops/cycles/__init__.pyi +18 -26
- bpy/ops/dpaint/__init__.pyi +34 -46
- bpy/ops/ed/__init__.pyi +122 -149
- bpy/ops/export_anim/__init__.pyi +18 -21
- bpy/ops/export_mesh/__init__.pyi +26 -29
- bpy/ops/export_scene/__init__.pyi +307 -342
- bpy/ops/file/__init__.pyi +342 -436
- bpy/ops/fluid/__init__.pyi +88 -117
- bpy/ops/font/__init__.pyi +252 -311
- bpy/ops/geometry/__init__.pyi +86 -113
- bpy/ops/gizmogroup/__init__.pyi +22 -27
- bpy/ops/gpencil/__init__.pyi +1444 -1864
- bpy/ops/graph/__init__.pyi +642 -822
- bpy/ops/grease_pencil/__init__.pyi +426 -576
- bpy/ops/image/__init__.pyi +612 -733
- bpy/ops/import_anim/__init__.pyi +26 -29
- bpy/ops/import_curve/__init__.pyi +6 -9
- bpy/ops/import_mesh/__init__.pyi +18 -23
- bpy/ops/import_scene/__init__.pyi +86 -101
- bpy/ops/info/__init__.pyi +60 -77
- bpy/ops/lattice/__init__.pyi +64 -85
- bpy/ops/marker/__init__.pyi +106 -137
- bpy/ops/mask/__init__.pyi +318 -420
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -93
- bpy/ops/mesh/__init__.pyi +1988 -2460
- bpy/ops/nla/__init__.pyi +331 -429
- bpy/ops/node/__init__.pyi +852 -1115
- bpy/ops/object/__init__.pyi +2420 -3081
- bpy/ops/outliner/__init__.pyi +498 -661
- bpy/ops/paint/__init__.pyi +518 -667
- bpy/ops/paintcurve/__init__.pyi +64 -84
- bpy/ops/palette/__init__.pyi +48 -66
- bpy/ops/particle/__init__.pyi +264 -355
- bpy/ops/pose/__init__.pyi +336 -438
- bpy/ops/poselib/__init__.pyi +70 -92
- bpy/ops/preferences/__init__.pyi +336 -440
- bpy/ops/ptcache/__init__.pyi +46 -62
- bpy/ops/render/__init__.pyi +114 -147
- bpy/ops/rigidbody/__init__.pyi +102 -135
- bpy/ops/scene/__init__.pyi +270 -364
- bpy/ops/screen/__init__.pyi +378 -477
- bpy/ops/script/__init__.pyi +18 -26
- bpy/ops/sculpt/__init__.pyi +400 -488
- bpy/ops/sculpt_curves/__init__.pyi +40 -53
- bpy/ops/sequencer/__init__.pyi +1040 -1279
- bpy/ops/sound/__init__.pyi +208 -226
- bpy/ops/spreadsheet/__init__.pyi +30 -40
- bpy/ops/surface/__init__.pyi +108 -126
- bpy/ops/text/__init__.pyi +382 -486
- bpy/ops/text_editor/__init__.pyi +10 -13
- bpy/ops/texture/__init__.pyi +26 -35
- bpy/ops/transform/__init__.pyi +790 -905
- bpy/ops/ui/__init__.pyi +216 -291
- bpy/ops/uilist/__init__.pyi +20 -29
- bpy/ops/uv/__init__.pyi +600 -742
- bpy/ops/view2d/__init__.pyi +156 -195
- bpy/ops/view3d/__init__.pyi +576 -742
- bpy/ops/wm/__init__.pyi +2360 -2702
- bpy/ops/workspace/__init__.pyi +42 -57
- bpy/ops/world/__init__.pyi +6 -8
- bpy/path/__init__.pyi +110 -81
- bpy/props/__init__.pyi +263 -267
- bpy/types/__init__.pyi +86358 -87091
- bpy/utils/__init__.pyi +242 -154
- bpy/utils/previews/__init__.pyi +57 -57
- bpy/utils/units/__init__.pyi +19 -22
- bpy_extras/anim_utils/__init__.pyi +11 -31
- bpy_extras/asset_utils/__init__.pyi +4 -1
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +30 -27
- bpy_extras/keyconfig_utils/__init__.pyi +4 -1
- bpy_extras/mesh_utils/__init__.pyi +18 -18
- bpy_extras/node_utils/__init__.pyi +4 -1
- bpy_extras/object_utils/__init__.pyi +25 -26
- bpy_extras/view3d_utils/__init__.pyi +33 -38
- bpy_restrict_state/__init__.pyi +14 -1
- bpy_types/__init__.pyi +3748 -1248
- console_python/__init__.pyi +41 -7
- console_shell/__init__.pyi +24 -5
- {fake_bpy_module-20240320.dist-info → fake_bpy_module-20240322.dist-info}/METADATA +1 -1
- fake_bpy_module-20240322.dist-info/RECORD +343 -0
- freestyle/chainingiterators/__init__.pyi +50 -52
- freestyle/functions/__init__.pyi +303 -207
- freestyle/predicates/__init__.pyi +299 -115
- freestyle/shaders/__init__.pyi +49 -80
- freestyle/types/__init__.pyi +463 -470
- freestyle/utils/ContextFunctions/__init__.pyi +9 -9
- freestyle/utils/__init__.pyi +27 -17
- gpu/capabilities/__init__.pyi +19 -20
- gpu/matrix/__init__.pyi +14 -16
- gpu/platform/__init__.pyi +5 -5
- gpu/shader/__init__.pyi +2 -5
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +54 -85
- gpu_extras/batch/__init__.pyi +26 -6
- gpu_extras/presets/__init__.pyi +51 -16
- graphviz_export/__init__.pyi +9 -2
- idprop/types/__init__.pyi +36 -12
- imbuf/__init__.pyi +8 -9
- imbuf/types/__init__.pyi +8 -15
- keyingsets_builtins/__init__.pyi +2520 -1085
- keyingsets_utils/__init__.pyi +69 -14
- mathutils/__init__.pyi +491 -423
- mathutils/bvhtree/__init__.pyi +26 -31
- mathutils/geometry/__init__.pyi +176 -185
- mathutils/kdtree/__init__.pyi +14 -17
- mathutils/noise/__init__.pyi +47 -48
- nodeitems_builtins/__init__.pyi +37 -15
- nodeitems_utils/__init__.pyi +45 -13
- rna_info/__init__.pyi +177 -76
- rna_keymap_ui/__init__.pyi +29 -6
- rna_prop_ui/__init__.pyi +56 -14
- rna_xml/__init__.pyi +29 -6
- sys_info/__init__.pyi +4 -1
- fake_bpy_module-20240320.dist-info/RECORD +0 -343
- {fake_bpy_module-20240320.dist-info → fake_bpy_module-20240322.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240320.dist-info → fake_bpy_module-20240322.dist-info}/top_level.txt +0 -0
bmesh/utils/__init__.pyi
CHANGED
|
@@ -3,33 +3,33 @@ import bmesh.types
|
|
|
3
3
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
|
-
def edge_rotate(edge:
|
|
6
|
+
def edge_rotate(edge: bmesh.types.BMEdge, ccw: bool = False) -> bmesh.types.BMEdge:
|
|
7
7
|
"""Rotate the edge and return the newly created edge.
|
|
8
8
|
If rotating the edge fails, None will be returned.
|
|
9
9
|
|
|
10
10
|
:param edge: The edge to rotate.
|
|
11
|
-
:type edge:
|
|
11
|
+
:type edge: bmesh.types.BMEdge
|
|
12
12
|
:param ccw: When True the edge will be rotated counter clockwise.
|
|
13
13
|
:type ccw: bool
|
|
14
|
-
:rtype: 'bmesh.types.BMEdge'
|
|
15
14
|
:return: The newly rotated edge.
|
|
15
|
+
:rtype: bmesh.types.BMEdge
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
...
|
|
19
19
|
|
|
20
20
|
def edge_split(
|
|
21
|
-
edge:
|
|
21
|
+
edge: bmesh.types.BMEdge, vert: bmesh.types.BMVert, fac: float
|
|
22
22
|
) -> typing.Tuple:
|
|
23
23
|
"""Split an edge, return the newly created data.
|
|
24
24
|
|
|
25
25
|
:param edge: The edge to split.
|
|
26
|
-
:type edge:
|
|
26
|
+
:type edge: bmesh.types.BMEdge
|
|
27
27
|
:param vert: One of the verts on the edge, defines the split direction.
|
|
28
|
-
:type vert:
|
|
28
|
+
:type vert: bmesh.types.BMVert
|
|
29
29
|
:param fac: The point on the edge where the new vert will be created [0 - 1].
|
|
30
30
|
:type fac: float
|
|
31
|
-
:rtype: typing.Tuple
|
|
32
31
|
:return: The newly created (edge, vert) pair.
|
|
32
|
+
:rtype: typing.Tuple
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
35
|
...
|
|
@@ -39,155 +39,155 @@ def face_flip(faces):
|
|
|
39
39
|
|
|
40
40
|
...
|
|
41
41
|
|
|
42
|
-
def face_join(faces:
|
|
42
|
+
def face_join(faces: bmesh.types.BMFace, remove: bool = True) -> bmesh.types.BMFace:
|
|
43
43
|
"""Joins a sequence of faces.
|
|
44
44
|
|
|
45
45
|
:param faces: Sequence of faces.
|
|
46
|
-
:type faces:
|
|
46
|
+
:type faces: bmesh.types.BMFace
|
|
47
47
|
:param remove: Remove the edges and vertices between the faces.
|
|
48
48
|
:type remove: bool
|
|
49
|
-
:rtype: 'bmesh.types.BMFace'
|
|
50
49
|
:return: The newly created face or None on failure.
|
|
50
|
+
:rtype: bmesh.types.BMFace
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
...
|
|
54
54
|
|
|
55
55
|
def face_split(
|
|
56
|
-
face:
|
|
57
|
-
vert_a:
|
|
58
|
-
vert_b:
|
|
56
|
+
face: bmesh.types.BMFace,
|
|
57
|
+
vert_a: bmesh.types.BMVert,
|
|
58
|
+
vert_b: bmesh.types.BMVert,
|
|
59
59
|
coords: typing.List[float] = (),
|
|
60
60
|
use_exist: bool = True,
|
|
61
|
-
example:
|
|
62
|
-
) -> typing.Tuple[
|
|
61
|
+
example: bmesh.types.BMEdge = None,
|
|
62
|
+
) -> typing.Tuple[bmesh.types.BMFace, bmesh.types.BMLoop]:
|
|
63
63
|
"""Face split with optional intermediate points.
|
|
64
64
|
|
|
65
65
|
:param face: The face to cut.
|
|
66
|
-
:type face:
|
|
66
|
+
:type face: bmesh.types.BMFace
|
|
67
67
|
:param vert_a: First vertex to cut in the face (face must contain the vert).
|
|
68
|
-
:type vert_a:
|
|
68
|
+
:type vert_a: bmesh.types.BMVert
|
|
69
69
|
:param vert_b: Second vertex to cut in the face (face must contain the vert).
|
|
70
|
-
:type vert_b:
|
|
70
|
+
:type vert_b: bmesh.types.BMVert
|
|
71
71
|
:param coords: Optional argument to define points in between vert_a and vert_b.
|
|
72
72
|
:type coords: typing.List[float]
|
|
73
73
|
:param use_exist: .Use an existing edge if it exists (Only used when coords argument is empty or omitted)
|
|
74
74
|
:type use_exist: bool
|
|
75
75
|
:param example: Newly created edge will copy settings from this one.
|
|
76
|
-
:type example:
|
|
77
|
-
:rtype: typing.Tuple['bmesh.types.BMFace', 'bmesh.types.BMLoop']
|
|
76
|
+
:type example: bmesh.types.BMEdge
|
|
78
77
|
:return: The newly created face or None on failure.
|
|
78
|
+
:rtype: typing.Tuple[bmesh.types.BMFace, bmesh.types.BMLoop]
|
|
79
79
|
"""
|
|
80
80
|
|
|
81
81
|
...
|
|
82
82
|
|
|
83
83
|
def face_split_edgenet(
|
|
84
|
-
face:
|
|
85
|
-
|
|
84
|
+
face: typing.Union[bmesh.types.BMFace, bmesh.types.BMFace],
|
|
85
|
+
edgenet: bmesh.types.BMEdge,
|
|
86
|
+
):
|
|
86
87
|
"""Splits a face into any number of regions defined by an edgenet.
|
|
87
88
|
|
|
88
89
|
:param face: The face to split.The face to split.
|
|
89
|
-
:type face:
|
|
90
|
+
:type face: typing.Union[bmesh.types.BMFace, bmesh.types.BMFace]
|
|
90
91
|
:param edgenet: Sequence of edges.
|
|
91
|
-
:type edgenet:
|
|
92
|
-
:rtype: typing.Tuple
|
|
92
|
+
:type edgenet: bmesh.types.BMEdge
|
|
93
93
|
:return: The newly created faces.
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
96
|
...
|
|
97
97
|
|
|
98
98
|
def face_vert_separate(
|
|
99
|
-
face:
|
|
100
|
-
) ->
|
|
99
|
+
face: bmesh.types.BMFace, vert: bmesh.types.BMVert
|
|
100
|
+
) -> bmesh.types.BMVert:
|
|
101
101
|
"""Rip a vertex in a face away and add a new vertex.
|
|
102
102
|
|
|
103
103
|
:param face: The face to separate.
|
|
104
|
-
:type face:
|
|
104
|
+
:type face: bmesh.types.BMFace
|
|
105
105
|
:param vert: A vertex in the face to separate.
|
|
106
|
-
:type vert:
|
|
107
|
-
:rtype: 'bmesh.types.BMVert'
|
|
106
|
+
:type vert: bmesh.types.BMVert
|
|
108
107
|
:return: The newly created vertex or None on failure.
|
|
108
|
+
:rtype: bmesh.types.BMVert
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
...
|
|
112
112
|
|
|
113
|
-
def loop_separate(loop:
|
|
113
|
+
def loop_separate(loop: bmesh.types.BMLoop) -> bmesh.types.BMVert:
|
|
114
114
|
"""Rip a vertex in a face away and add a new vertex.
|
|
115
115
|
|
|
116
116
|
:param loop: The loop to separate.
|
|
117
|
-
:type loop:
|
|
118
|
-
:rtype: 'bmesh.types.BMVert'
|
|
117
|
+
:type loop: bmesh.types.BMLoop
|
|
119
118
|
:return: The newly created vertex or None on failure.
|
|
119
|
+
:rtype: bmesh.types.BMVert
|
|
120
120
|
"""
|
|
121
121
|
|
|
122
122
|
...
|
|
123
123
|
|
|
124
124
|
def vert_collapse_edge(
|
|
125
|
-
vert:
|
|
126
|
-
) ->
|
|
125
|
+
vert: bmesh.types.BMVert, edge: bmesh.types.BMEdge
|
|
126
|
+
) -> bmesh.types.BMEdge:
|
|
127
127
|
"""Collapse a vertex into an edge.
|
|
128
128
|
|
|
129
129
|
:param vert: The vert that will be collapsed.
|
|
130
|
-
:type vert:
|
|
130
|
+
:type vert: bmesh.types.BMVert
|
|
131
131
|
:param edge: The edge to collapse into.
|
|
132
|
-
:type edge:
|
|
133
|
-
:rtype: 'bmesh.types.BMEdge'
|
|
132
|
+
:type edge: bmesh.types.BMEdge
|
|
134
133
|
:return: The resulting edge from the collapse operation.
|
|
134
|
+
:rtype: bmesh.types.BMEdge
|
|
135
135
|
"""
|
|
136
136
|
|
|
137
137
|
...
|
|
138
138
|
|
|
139
139
|
def vert_collapse_faces(
|
|
140
|
-
vert:
|
|
141
|
-
) ->
|
|
140
|
+
vert: bmesh.types.BMVert, edge: bmesh.types.BMEdge, fac: float, join_faces: bool
|
|
141
|
+
) -> bmesh.types.BMEdge:
|
|
142
142
|
"""Collapses a vertex that has only two manifold edges onto a vertex it shares an edge with.
|
|
143
143
|
|
|
144
144
|
:param vert: The vert that will be collapsed.
|
|
145
|
-
:type vert:
|
|
145
|
+
:type vert: bmesh.types.BMVert
|
|
146
146
|
:param edge: The edge to collapse into.
|
|
147
|
-
:type edge:
|
|
147
|
+
:type edge: bmesh.types.BMEdge
|
|
148
148
|
:param fac: The factor to use when merging customdata [0 - 1].
|
|
149
149
|
:type fac: float
|
|
150
150
|
:param join_faces: When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one.
|
|
151
151
|
:type join_faces: bool
|
|
152
|
-
:rtype: 'bmesh.types.BMEdge'
|
|
153
152
|
:return: The resulting edge from the collapse operation.
|
|
153
|
+
:rtype: bmesh.types.BMEdge
|
|
154
154
|
"""
|
|
155
155
|
|
|
156
156
|
...
|
|
157
157
|
|
|
158
|
-
def vert_dissolve(vert:
|
|
158
|
+
def vert_dissolve(vert: bmesh.types.BMVert) -> bool:
|
|
159
159
|
"""Dissolve this vertex (will be removed).
|
|
160
160
|
|
|
161
161
|
:param vert: The vert to be dissolved.
|
|
162
|
-
:type vert:
|
|
163
|
-
:rtype: bool
|
|
162
|
+
:type vert: bmesh.types.BMVert
|
|
164
163
|
:return: True when the vertex dissolve is successful.
|
|
164
|
+
:rtype: bool
|
|
165
165
|
"""
|
|
166
166
|
|
|
167
167
|
...
|
|
168
168
|
|
|
169
169
|
def vert_separate(
|
|
170
|
-
vert:
|
|
171
|
-
) -> typing.Tuple[
|
|
170
|
+
vert: bmesh.types.BMVert, edges: bmesh.types.BMEdge
|
|
171
|
+
) -> typing.Tuple[bmesh.types.BMVert]:
|
|
172
172
|
"""Separate this vertex at every edge.
|
|
173
173
|
|
|
174
174
|
:param vert: The vert to be separated.
|
|
175
|
-
:type vert:
|
|
175
|
+
:type vert: bmesh.types.BMVert
|
|
176
176
|
:param edges: The edges to separated.
|
|
177
|
-
:type edges:
|
|
178
|
-
:rtype: typing.Tuple['bmesh.types.BMVert']
|
|
177
|
+
:type edges: bmesh.types.BMEdge
|
|
179
178
|
:return: The newly separated verts (including the vertex passed).
|
|
179
|
+
:rtype: typing.Tuple[bmesh.types.BMVert]
|
|
180
180
|
"""
|
|
181
181
|
|
|
182
182
|
...
|
|
183
183
|
|
|
184
|
-
def vert_splice(vert:
|
|
184
|
+
def vert_splice(vert: bmesh.types.BMVert, vert_target: bmesh.types.BMVert):
|
|
185
185
|
"""Splice vert into vert_target.
|
|
186
186
|
|
|
187
187
|
:param vert: The vertex to be removed.
|
|
188
|
-
:type vert:
|
|
188
|
+
:type vert: bmesh.types.BMVert
|
|
189
189
|
:param vert_target: The vertex to use.
|
|
190
|
-
:type vert_target:
|
|
190
|
+
:type vert_target: bmesh.types.BMVert
|
|
191
191
|
"""
|
|
192
192
|
|
|
193
193
|
...
|
bpy/__init__.pyi
CHANGED
|
@@ -10,8 +10,8 @@ from . import types
|
|
|
10
10
|
from . import utils
|
|
11
11
|
|
|
12
12
|
GenericType = typing.TypeVar("GenericType")
|
|
13
|
-
context:
|
|
13
|
+
context: bpy.types.Context
|
|
14
14
|
|
|
15
|
-
data:
|
|
15
|
+
data: bpy.types.BlendData
|
|
16
16
|
""" Access to Blender's internal data
|
|
17
17
|
"""
|
bpy/app/__init__.pyi
CHANGED
|
@@ -6,21 +6,20 @@ from . import translations
|
|
|
6
6
|
|
|
7
7
|
GenericType = typing.TypeVar("GenericType")
|
|
8
8
|
|
|
9
|
-
def help_text(all:
|
|
9
|
+
def help_text(all: bool = False):
|
|
10
10
|
"""Return the help text as a string.
|
|
11
11
|
|
|
12
12
|
:param all: Return all arguments, even those which aren't available for the current platform.
|
|
13
|
-
:type all:
|
|
13
|
+
:type all: bool
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
...
|
|
17
17
|
|
|
18
|
-
def is_job_running(job_type:
|
|
18
|
+
def is_job_running(job_type: str):
|
|
19
19
|
"""Check whether a job of the given type is running.
|
|
20
20
|
|
|
21
21
|
:param job_type: job type in `rna_enum_wm_job_type_items`.
|
|
22
|
-
:type job_type:
|
|
23
|
-
:rtype: typing.Any
|
|
22
|
+
:type job_type: str
|
|
24
23
|
:return: Whether a job of the given type is currently running.
|
|
25
24
|
"""
|
|
26
25
|
|
bpy/app/handlers/__init__.pyi
CHANGED
|
@@ -2,79 +2,79 @@ import typing
|
|
|
2
2
|
import bpy.types
|
|
3
3
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
|
-
animation_playback_post: typing.List[typing.Callable[[
|
|
5
|
+
animation_playback_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
6
6
|
""" on ending animation playback
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
-
animation_playback_pre: typing.List[typing.Callable[[
|
|
9
|
+
animation_playback_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
10
10
|
""" on starting animation playback
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
annotation_post: typing.List[typing.Callable[[
|
|
13
|
+
annotation_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
14
14
|
""" on drawing an annotation (after)
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
annotation_pre: typing.List[typing.Callable[[
|
|
17
|
+
annotation_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
18
18
|
""" on drawing an annotation (before)
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
composite_cancel: typing.List[typing.Callable[[
|
|
21
|
+
composite_cancel: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
22
22
|
""" on a compositing background job (cancel)
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
-
composite_post: typing.List[typing.Callable[[
|
|
25
|
+
composite_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
26
26
|
""" on a compositing background job (after)
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
-
composite_pre: typing.List[typing.Callable[[
|
|
29
|
+
composite_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
30
30
|
""" on a compositing background job (before)
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
-
depsgraph_update_post: typing.List[typing.Callable[[
|
|
33
|
+
depsgraph_update_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
34
34
|
""" on depsgraph update (post)
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
|
-
depsgraph_update_pre: typing.List[typing.Callable[[
|
|
37
|
+
depsgraph_update_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
38
38
|
""" on depsgraph update (pre)
|
|
39
39
|
"""
|
|
40
40
|
|
|
41
|
-
frame_change_post: typing.List[typing.Callable[[
|
|
41
|
+
frame_change_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
42
42
|
""" Called after frame change for playback and rendering, after the data has been evaluated for the new frame.
|
|
43
43
|
"""
|
|
44
44
|
|
|
45
|
-
frame_change_pre: typing.List[typing.Callable[[
|
|
45
|
+
frame_change_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
46
46
|
""" Called after frame change for playback and rendering, before any data is evaluated for the new frame. This makes it possible to change data and relations (for example swap an object to another mesh) for the new frame. Note that this handler is not to be used as 'before the frame changes' event. The dependency graph is not available in this handler, as data and relations may have been altered and the dependency graph has not yet been updated for that.
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
|
-
load_factory_preferences_post: typing.List[typing.Callable[[
|
|
49
|
+
load_factory_preferences_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
50
50
|
""" on loading factory preferences (after)
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
|
-
load_factory_startup_post: typing.List[typing.Callable[[
|
|
53
|
+
load_factory_startup_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
54
54
|
""" on loading factory startup (after)
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
|
-
load_post: typing.List[typing.Callable[[
|
|
57
|
+
load_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
58
58
|
""" on loading a new blend file (after). Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
-
load_post_fail: typing.List[typing.Callable[[
|
|
61
|
+
load_post_fail: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
62
62
|
""" on failure to load a new blend file (after). Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
63
63
|
"""
|
|
64
64
|
|
|
65
|
-
load_pre: typing.List[typing.Callable[[
|
|
65
|
+
load_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
66
66
|
""" on loading a new blend file (before).Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
67
67
|
"""
|
|
68
68
|
|
|
69
|
-
object_bake_cancel: typing.List[typing.Callable[[
|
|
69
|
+
object_bake_cancel: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
70
70
|
""" on canceling a bake job; will be called in the main thread
|
|
71
71
|
"""
|
|
72
72
|
|
|
73
|
-
object_bake_complete: typing.List[typing.Callable[[
|
|
73
|
+
object_bake_complete: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
74
74
|
""" on completing a bake job; will be called in the main thread
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
|
-
object_bake_pre: typing.List[typing.Callable[[
|
|
77
|
+
object_bake_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
78
78
|
""" before starting a bake job
|
|
79
79
|
"""
|
|
80
80
|
|
|
@@ -82,70 +82,70 @@ persistent: typing.Any
|
|
|
82
82
|
""" Function decorator for callback functions not to be removed when loading new files
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
|
-
redo_post: typing.List[typing.Callable[[
|
|
85
|
+
redo_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
86
86
|
""" on loading a redo step (after)
|
|
87
87
|
"""
|
|
88
88
|
|
|
89
|
-
redo_pre: typing.List[typing.Callable[[
|
|
89
|
+
redo_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
90
90
|
""" on loading a redo step (before)
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
|
-
render_cancel: typing.List[typing.Callable[[
|
|
93
|
+
render_cancel: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
94
94
|
""" on canceling a render job
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
|
-
render_complete: typing.List[typing.Callable[[
|
|
97
|
+
render_complete: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
98
98
|
""" on completion of render job
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
|
-
render_init: typing.List[typing.Callable[[
|
|
101
|
+
render_init: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
102
102
|
""" on initialization of a render job
|
|
103
103
|
"""
|
|
104
104
|
|
|
105
|
-
render_post: typing.List[typing.Callable[[
|
|
105
|
+
render_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
106
106
|
""" on render (after)
|
|
107
107
|
"""
|
|
108
108
|
|
|
109
|
-
render_pre: typing.List[typing.Callable[[
|
|
109
|
+
render_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
110
110
|
""" on render (before)
|
|
111
111
|
"""
|
|
112
112
|
|
|
113
|
-
render_stats: typing.List[typing.Callable[[
|
|
113
|
+
render_stats: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
114
114
|
""" on printing render statistics
|
|
115
115
|
"""
|
|
116
116
|
|
|
117
|
-
render_write: typing.List[typing.Callable[[
|
|
117
|
+
render_write: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
118
118
|
""" on writing a render frame (directly after the frame is written)
|
|
119
119
|
"""
|
|
120
120
|
|
|
121
|
-
save_post: typing.List[typing.Callable[[
|
|
121
|
+
save_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
122
122
|
""" on saving a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
123
123
|
"""
|
|
124
124
|
|
|
125
|
-
save_post_fail: typing.List[typing.Callable[[
|
|
125
|
+
save_post_fail: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
126
126
|
""" on failure to save a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
127
127
|
"""
|
|
128
128
|
|
|
129
|
-
save_pre: typing.List[typing.Callable[[
|
|
129
|
+
save_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
130
130
|
""" on saving a blend file (before). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
131
131
|
"""
|
|
132
132
|
|
|
133
|
-
translation_update_post: typing.List[typing.Callable[[
|
|
133
|
+
translation_update_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
134
134
|
""" on translation settings update
|
|
135
135
|
"""
|
|
136
136
|
|
|
137
|
-
undo_post: typing.List[typing.Callable[[
|
|
137
|
+
undo_post: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
138
138
|
""" on loading an undo step (after)
|
|
139
139
|
"""
|
|
140
140
|
|
|
141
|
-
undo_pre: typing.List[typing.Callable[[
|
|
141
|
+
undo_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
142
142
|
""" on loading an undo step (before)
|
|
143
143
|
"""
|
|
144
144
|
|
|
145
|
-
version_update: typing.List[typing.Callable[[
|
|
145
|
+
version_update: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
146
146
|
""" on ending the versioning code
|
|
147
147
|
"""
|
|
148
148
|
|
|
149
|
-
xr_session_start_pre: typing.List[typing.Callable[[
|
|
149
|
+
xr_session_start_pre: typing.List[typing.Callable[[bpy.types.Scene, None]]]
|
|
150
150
|
""" on starting an xr session (before)
|
|
151
151
|
"""
|
bpy/app/icons/__init__.pyi
CHANGED
|
@@ -3,31 +3,29 @@ import typing
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
5
|
def new_triangles(
|
|
6
|
-
range: typing.
|
|
7
|
-
coords: typing.Optional[typing.Sequence[bytes]],
|
|
8
|
-
colors: typing.Optional[typing.Sequence[bytes]],
|
|
6
|
+
range: tuple, coords: typing.Sequence[bytes], colors: typing.Sequence[bytes]
|
|
9
7
|
) -> int:
|
|
10
8
|
"""Create a new icon from triangle geometry.
|
|
11
9
|
|
|
12
10
|
:param range: Pair of ints.
|
|
13
|
-
:type range:
|
|
11
|
+
:type range: tuple
|
|
14
12
|
:param coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.
|
|
15
|
-
:type coords: typing.
|
|
13
|
+
:type coords: typing.Sequence[bytes]
|
|
16
14
|
:param colors: Sequence of ints (12 for one triangles) for RGBA.
|
|
17
|
-
:type colors: typing.
|
|
18
|
-
:rtype: int
|
|
15
|
+
:type colors: typing.Sequence[bytes]
|
|
19
16
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
17
|
+
:rtype: int
|
|
20
18
|
"""
|
|
21
19
|
|
|
22
20
|
...
|
|
23
21
|
|
|
24
|
-
def new_triangles_from_file(filepath:
|
|
22
|
+
def new_triangles_from_file(filepath: str) -> int:
|
|
25
23
|
"""Create a new icon from triangle geometry.
|
|
26
24
|
|
|
27
25
|
:param filepath: File path.
|
|
28
|
-
:type filepath:
|
|
29
|
-
:rtype: int
|
|
26
|
+
:type filepath: str
|
|
30
27
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
28
|
+
:rtype: int
|
|
31
29
|
"""
|
|
32
30
|
|
|
33
31
|
...
|
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -2,21 +2,19 @@ import typing
|
|
|
2
2
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
|
-
def is_registered(function:
|
|
5
|
+
def is_registered(function: int) -> bool:
|
|
6
6
|
"""Check if this function is registered as a timer.
|
|
7
7
|
|
|
8
8
|
:param function: Function to check.
|
|
9
|
-
:type function:
|
|
10
|
-
:rtype: bool
|
|
9
|
+
:type function: int
|
|
11
10
|
:return: True when this function is registered, otherwise False.
|
|
11
|
+
:rtype: bool
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
14
|
...
|
|
15
15
|
|
|
16
16
|
def register(
|
|
17
|
-
function: typing.
|
|
18
|
-
first_interval: typing.Optional[float] = 0,
|
|
19
|
-
persistent: typing.Optional[bool] = False,
|
|
17
|
+
function: typing.Callable, first_interval: float = 0, persistent: bool = False
|
|
20
18
|
):
|
|
21
19
|
"""Add a new function that will be called after the specified amount of seconds.
|
|
22
20
|
The function gets no arguments and is expected to return either None or a float.
|
|
@@ -25,20 +23,20 @@ def register(
|
|
|
25
23
|
functools.partial can be used to assign some parameters.
|
|
26
24
|
|
|
27
25
|
:param function: The function that should called.
|
|
28
|
-
:type function: typing.
|
|
26
|
+
:type function: typing.Callable
|
|
29
27
|
:param first_interval: Seconds until the callback should be called the first time.
|
|
30
|
-
:type first_interval:
|
|
28
|
+
:type first_interval: float
|
|
31
29
|
:param persistent: Don't remove timer when a new file is loaded.
|
|
32
|
-
:type persistent:
|
|
30
|
+
:type persistent: bool
|
|
33
31
|
"""
|
|
34
32
|
|
|
35
33
|
...
|
|
36
34
|
|
|
37
|
-
def unregister(function: typing.
|
|
35
|
+
def unregister(function: typing.Any):
|
|
38
36
|
"""Unregister timer.
|
|
39
37
|
|
|
40
38
|
:param function: Function to unregister.
|
|
41
|
-
:type function: typing.
|
|
39
|
+
:type function: typing.Any
|
|
42
40
|
"""
|
|
43
41
|
|
|
44
42
|
...
|