fake-bpy-module 20240528__py3-none-any.whl → 20240530__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_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -3
- bl_operators/__init__.pyi +2 -0
- bl_operators/connect_to_output/__init__.pyi +325 -0
- bl_operators/image_as_planes/__init__.pyi +11 -5
- bl_operators/node_editor/__init__.pyi +6 -0
- bl_operators/node_editor/node_functions/__init__.pyi +23 -0
- bl_operators/presets/__init__.pyi +12 -12
- bl_operators/wm/__init__.pyi +24 -24
- bl_ui/__init__.pyi +12 -12
- bl_ui/anim/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +6 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +108 -108
- bl_ui/node_add_menu_geometry/__init__.pyi +288 -288
- bl_ui/node_add_menu_shader/__init__.pyi +60 -60
- bl_ui/node_add_menu_texture/__init__.pyi +54 -54
- bl_ui/properties_collection/__init__.pyi +6 -6
- bl_ui/properties_data_armature/__init__.pyi +12 -12
- bl_ui/properties_data_camera/__init__.pyi +12 -12
- bl_ui/properties_data_curves/__init__.pyi +6 -6
- bl_ui/properties_data_gpencil/__init__.pyi +12 -12
- bl_ui/properties_data_grease_pencil/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +24 -24
- bl_ui/properties_data_modifier/__init__.pyi +42 -42
- bl_ui/properties_data_pointcloud/__init__.pyi +6 -6
- bl_ui/properties_freestyle/__init__.pyi +6 -6
- bl_ui/properties_grease_pencil_common/__init__.pyi +72 -72
- bl_ui/properties_mask_common/__init__.pyi +36 -36
- bl_ui/properties_material/__init__.pyi +6 -6
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +6 -6
- bl_ui/properties_output/__init__.pyi +18 -18
- bl_ui/properties_paint_common/__init__.pyi +6 -6
- bl_ui/properties_particle/__init__.pyi +12 -12
- bl_ui/properties_physics_cloth/__init__.pyi +6 -6
- bl_ui/properties_physics_fluid/__init__.pyi +6 -6
- bl_ui/properties_render/__init__.pyi +6 -6
- bl_ui/properties_texture/__init__.pyi +6 -6
- bl_ui/properties_view_layer/__init__.pyi +6 -6
- bl_ui/space_clip/__init__.pyi +186 -186
- bl_ui/space_console/__init__.pyi +30 -30
- bl_ui/space_dopesheet/__init__.pyi +84 -84
- bl_ui/space_filebrowser/__init__.pyi +78 -78
- bl_ui/space_graph/__init__.pyi +96 -96
- bl_ui/space_image/__init__.pyi +138 -138
- bl_ui/space_info/__init__.pyi +30 -30
- bl_ui/space_nla/__init__.pyi +78 -78
- bl_ui/space_node/__init__.pyi +72 -72
- bl_ui/space_outliner/__init__.pyi +72 -72
- bl_ui/space_sequencer/__init__.pyi +204 -204
- bl_ui/space_text/__init__.pyi +72 -72
- bl_ui/space_time/__init__.pyi +24 -24
- bl_ui/space_toolsystem_toolbar/__init__.pyi +4 -0
- bl_ui/space_topbar/__init__.pyi +114 -114
- bl_ui/space_userpref/__init__.pyi +36 -36
- bl_ui/space_view3d/__init__.pyi +1446 -1176
- bl_ui/space_view3d_toolbar/__init__.pyi +30 -30
- bl_ui/utils/__init__.pyi +6 -6
- bmesh/geometry/__init__.pyi +2 -2
- bmesh/ops/__init__.pyi +55 -54
- bmesh/types/__init__.pyi +171 -194
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/handlers/__init__.pyi +37 -37
- bpy/app/icons/__init__.pyi +4 -4
- bpy/app/timers/__init__.pyi +6 -6
- bpy/ops/bl_pkg/__init__.pyi +4 -4
- bpy/ops/image/__init__.pyi +55 -55
- bpy/ops/node/__init__.pyi +18 -0
- bpy/ops/paint/__init__.pyi +66 -0
- bpy/ops/preferences/__init__.pyi +2 -2
- bpy/ops/sculpt/__init__.pyi +126 -0
- bpy/props/__init__.pyi +16 -14
- bpy/types/__init__.pyi +269 -54
- bpy/utils/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +4 -4
- bpy_extras/io_utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +8 -8
- bpy_types/__init__.pyi +12 -12
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/RECORD +92 -89
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +64 -56
- gpu/matrix/__init__.pyi +6 -6
- gpu/types/__init__.pyi +10 -8
- imbuf/__init__.pyi +2 -2
- mathutils/__init__.pyi +176 -137
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +139 -139
- mathutils/kdtree/__init__.pyi +14 -10
- mathutils/noise/__init__.pyi +26 -26
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/top_level.txt +0 -0
bmesh/types/__init__.pyi
CHANGED
|
@@ -203,10 +203,11 @@ class BMEdge:
|
|
|
203
203
|
"""
|
|
204
204
|
...
|
|
205
205
|
|
|
206
|
-
def copy_from(self, other):
|
|
206
|
+
def copy_from(self, other: BMEdge):
|
|
207
207
|
"""Copy values from another element of matching type.
|
|
208
208
|
|
|
209
209
|
:param other:
|
|
210
|
+
:type other: BMEdge
|
|
210
211
|
"""
|
|
211
212
|
...
|
|
212
213
|
|
|
@@ -242,6 +243,34 @@ class BMEdge:
|
|
|
242
243
|
"""
|
|
243
244
|
...
|
|
244
245
|
|
|
246
|
+
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
:param key:
|
|
250
|
+
:type key: BMLayerItem
|
|
251
|
+
:return:
|
|
252
|
+
:rtype: typing.Any
|
|
253
|
+
"""
|
|
254
|
+
...
|
|
255
|
+
|
|
256
|
+
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
:param key:
|
|
260
|
+
:type key: BMLayerItem
|
|
261
|
+
:param value:
|
|
262
|
+
:type value: typing.Any
|
|
263
|
+
"""
|
|
264
|
+
...
|
|
265
|
+
|
|
266
|
+
def __delitem__(self, key: BMLayerItem):
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
:param key:
|
|
270
|
+
:type key: BMLayerItem
|
|
271
|
+
"""
|
|
272
|
+
...
|
|
273
|
+
|
|
245
274
|
class BMEdgeSeq:
|
|
246
275
|
layers: BMLayerAccessEdge
|
|
247
276
|
""" custom-data layers (read-only).
|
|
@@ -253,11 +282,11 @@ class BMEdgeSeq:
|
|
|
253
282
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
254
283
|
...
|
|
255
284
|
|
|
256
|
-
def get(self, verts: BMVert, fallback=None) -> BMEdge:
|
|
285
|
+
def get(self, verts: collections.abc.Iterable[BMVert], fallback=None) -> BMEdge:
|
|
257
286
|
"""Return an edge which uses the verts passed.
|
|
258
287
|
|
|
259
288
|
:param verts: Sequence of verts.
|
|
260
|
-
:type verts: BMVert
|
|
289
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
261
290
|
:param fallback: Return this value if nothing is found.
|
|
262
291
|
:return: The edge found or None
|
|
263
292
|
:rtype: BMEdge
|
|
@@ -268,21 +297,22 @@ class BMEdgeSeq:
|
|
|
268
297
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
269
298
|
...
|
|
270
299
|
|
|
271
|
-
def new(self, verts, example: BMEdge = None) -> BMEdge:
|
|
300
|
+
def new(self, verts, example: BMEdge | None = None) -> BMEdge:
|
|
272
301
|
"""Create a new edge from a given pair of verts.
|
|
273
302
|
|
|
274
303
|
:param verts: Vertex pair.
|
|
275
304
|
:param example: Existing edge to initialize settings (optional argument).
|
|
276
|
-
:type example: BMEdge
|
|
305
|
+
:type example: BMEdge | None
|
|
277
306
|
:return: The newly created edge.
|
|
278
307
|
:rtype: BMEdge
|
|
279
308
|
"""
|
|
280
309
|
...
|
|
281
310
|
|
|
282
|
-
def remove(self, edge):
|
|
311
|
+
def remove(self, edge: BMEdge):
|
|
283
312
|
"""Remove an edge.
|
|
284
313
|
|
|
285
314
|
:param edge:
|
|
315
|
+
:type edge: BMEdge
|
|
286
316
|
"""
|
|
287
317
|
...
|
|
288
318
|
|
|
@@ -306,39 +336,11 @@ class BMEdgeSeq:
|
|
|
306
336
|
"""
|
|
307
337
|
...
|
|
308
338
|
|
|
309
|
-
def
|
|
310
|
-
"""
|
|
311
|
-
|
|
312
|
-
:param key:
|
|
313
|
-
:type key: int
|
|
314
|
-
:param value:
|
|
315
|
-
:type value: BMEdge
|
|
316
|
-
"""
|
|
317
|
-
...
|
|
318
|
-
|
|
319
|
-
def __delitem__(self, key: int) -> BMEdge:
|
|
320
|
-
"""
|
|
321
|
-
|
|
322
|
-
:param key:
|
|
323
|
-
:type key: int
|
|
324
|
-
:return:
|
|
325
|
-
:rtype: BMEdge
|
|
326
|
-
"""
|
|
327
|
-
...
|
|
328
|
-
|
|
329
|
-
def __iter__(self) -> typing.Iterator[GenericType1]:
|
|
330
|
-
"""
|
|
331
|
-
|
|
332
|
-
:return:
|
|
333
|
-
:rtype: typing.Iterator[GenericType1]
|
|
334
|
-
"""
|
|
335
|
-
...
|
|
336
|
-
|
|
337
|
-
def __next__(self) -> GenericType1:
|
|
339
|
+
def __iter__(self) -> BMIter[BMEdge]:
|
|
338
340
|
"""
|
|
339
341
|
|
|
340
342
|
:return:
|
|
341
|
-
:rtype:
|
|
343
|
+
:rtype: BMIter[BMEdge]
|
|
342
344
|
"""
|
|
343
345
|
...
|
|
344
346
|
|
|
@@ -388,7 +390,7 @@ class BMEditSelSeq:
|
|
|
388
390
|
"""Ensures all elements in the selection history are selected."""
|
|
389
391
|
...
|
|
390
392
|
|
|
391
|
-
class BMElemSeq:
|
|
393
|
+
class BMElemSeq(typing.Generic[GenericType1]):
|
|
392
394
|
"""General sequence type used for accessing any sequence of
|
|
393
395
|
`BMVert`, `BMEdge`, `BMFace`, `BMLoop`.When accessed via `BMesh.verts`, `BMesh.edges`, `BMesh.faces`
|
|
394
396
|
there are also functions to create/remove items.
|
|
@@ -408,39 +410,11 @@ class BMElemSeq:
|
|
|
408
410
|
"""
|
|
409
411
|
...
|
|
410
412
|
|
|
411
|
-
def
|
|
412
|
-
"""
|
|
413
|
-
|
|
414
|
-
:param key:
|
|
415
|
-
:type key: int
|
|
416
|
-
:param value:
|
|
417
|
-
:type value: GenericType1
|
|
418
|
-
"""
|
|
419
|
-
...
|
|
420
|
-
|
|
421
|
-
def __delitem__(self, key: int) -> GenericType1:
|
|
422
|
-
"""
|
|
423
|
-
|
|
424
|
-
:param key:
|
|
425
|
-
:type key: int
|
|
426
|
-
:return:
|
|
427
|
-
:rtype: GenericType1
|
|
428
|
-
"""
|
|
429
|
-
...
|
|
430
|
-
|
|
431
|
-
def __iter__(self) -> typing.Iterator[GenericType1]:
|
|
432
|
-
"""
|
|
433
|
-
|
|
434
|
-
:return:
|
|
435
|
-
:rtype: typing.Iterator[GenericType1]
|
|
436
|
-
"""
|
|
437
|
-
...
|
|
438
|
-
|
|
439
|
-
def __next__(self) -> GenericType1:
|
|
413
|
+
def __iter__(self) -> BMIter[GenericType1]:
|
|
440
414
|
"""
|
|
441
415
|
|
|
442
416
|
:return:
|
|
443
|
-
:rtype: GenericType1
|
|
417
|
+
:rtype: BMIter[GenericType1]
|
|
444
418
|
"""
|
|
445
419
|
...
|
|
446
420
|
|
|
@@ -491,10 +465,10 @@ class BMFace:
|
|
|
491
465
|
:type: int
|
|
492
466
|
"""
|
|
493
467
|
|
|
494
|
-
normal:
|
|
468
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
495
469
|
""" The normal for this face as a 3D, wrapped vector.
|
|
496
470
|
|
|
497
|
-
:type:
|
|
471
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
498
472
|
"""
|
|
499
473
|
|
|
500
474
|
select: bool
|
|
@@ -605,10 +579,11 @@ class BMFace:
|
|
|
605
579
|
"""
|
|
606
580
|
...
|
|
607
581
|
|
|
608
|
-
def copy_from(self, other):
|
|
582
|
+
def copy_from(self, other: BMFace):
|
|
609
583
|
"""Copy values from another element of matching type.
|
|
610
584
|
|
|
611
585
|
:param other:
|
|
586
|
+
:type other: BMFace
|
|
612
587
|
"""
|
|
613
588
|
...
|
|
614
589
|
|
|
@@ -651,6 +626,34 @@ class BMFace:
|
|
|
651
626
|
"""
|
|
652
627
|
...
|
|
653
628
|
|
|
629
|
+
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
630
|
+
"""
|
|
631
|
+
|
|
632
|
+
:param key:
|
|
633
|
+
:type key: BMLayerItem
|
|
634
|
+
:return:
|
|
635
|
+
:rtype: typing.Any
|
|
636
|
+
"""
|
|
637
|
+
...
|
|
638
|
+
|
|
639
|
+
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
640
|
+
"""
|
|
641
|
+
|
|
642
|
+
:param key:
|
|
643
|
+
:type key: BMLayerItem
|
|
644
|
+
:param value:
|
|
645
|
+
:type value: typing.Any
|
|
646
|
+
"""
|
|
647
|
+
...
|
|
648
|
+
|
|
649
|
+
def __delitem__(self, key: BMLayerItem):
|
|
650
|
+
"""
|
|
651
|
+
|
|
652
|
+
:param key:
|
|
653
|
+
:type key: BMLayerItem
|
|
654
|
+
"""
|
|
655
|
+
...
|
|
656
|
+
|
|
654
657
|
class BMFaceSeq:
|
|
655
658
|
active: BMFace
|
|
656
659
|
""" active face.
|
|
@@ -668,11 +671,11 @@ class BMFaceSeq:
|
|
|
668
671
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
669
672
|
...
|
|
670
673
|
|
|
671
|
-
def get(self, verts: BMVert, fallback=None) -> BMFace:
|
|
674
|
+
def get(self, verts: collections.abc.Iterable[BMVert], fallback=None) -> BMFace:
|
|
672
675
|
"""Return a face which uses the verts passed.
|
|
673
676
|
|
|
674
677
|
:param verts: Sequence of verts.
|
|
675
|
-
:type verts: BMVert
|
|
678
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
676
679
|
:param fallback: Return this value if nothing is found.
|
|
677
680
|
:return: The face found or None
|
|
678
681
|
:rtype: BMFace
|
|
@@ -683,22 +686,25 @@ class BMFaceSeq:
|
|
|
683
686
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
684
687
|
...
|
|
685
688
|
|
|
686
|
-
def new(
|
|
689
|
+
def new(
|
|
690
|
+
self, verts: collections.abc.Iterable[BMVert], example: BMFace | None = None
|
|
691
|
+
) -> BMFace:
|
|
687
692
|
"""Create a new face from a given set of verts.
|
|
688
693
|
|
|
689
694
|
:param verts: Sequence of 3 or more verts.
|
|
690
|
-
:type verts:
|
|
695
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
691
696
|
:param example: Existing face to initialize settings (optional argument).
|
|
692
|
-
:type example: BMFace
|
|
697
|
+
:type example: BMFace | None
|
|
693
698
|
:return: The newly created face.
|
|
694
699
|
:rtype: BMFace
|
|
695
700
|
"""
|
|
696
701
|
...
|
|
697
702
|
|
|
698
|
-
def remove(self, face):
|
|
703
|
+
def remove(self, face: BMFace):
|
|
699
704
|
"""Remove a face.
|
|
700
705
|
|
|
701
706
|
:param face:
|
|
707
|
+
:type face: BMFace
|
|
702
708
|
"""
|
|
703
709
|
...
|
|
704
710
|
|
|
@@ -722,31 +728,32 @@ class BMFaceSeq:
|
|
|
722
728
|
"""
|
|
723
729
|
...
|
|
724
730
|
|
|
725
|
-
def
|
|
731
|
+
def __iter__(self) -> BMIter[BMFace]:
|
|
726
732
|
"""
|
|
727
733
|
|
|
728
|
-
:
|
|
729
|
-
:
|
|
730
|
-
:param value:
|
|
731
|
-
:type value: BMFace
|
|
734
|
+
:return:
|
|
735
|
+
:rtype: BMIter[BMFace]
|
|
732
736
|
"""
|
|
733
737
|
...
|
|
734
738
|
|
|
735
|
-
def
|
|
739
|
+
def __len__(self) -> int:
|
|
736
740
|
"""
|
|
737
741
|
|
|
738
|
-
:param key:
|
|
739
|
-
:type key: int
|
|
740
742
|
:return:
|
|
741
|
-
:rtype:
|
|
743
|
+
:rtype: int
|
|
742
744
|
"""
|
|
743
745
|
...
|
|
744
746
|
|
|
745
|
-
|
|
747
|
+
class BMIter(typing.Generic[GenericType1]):
|
|
748
|
+
"""Internal BMesh type for looping over verts/faces/edges,
|
|
749
|
+
used for iterating over `BMElemSeq` types.
|
|
750
|
+
"""
|
|
751
|
+
|
|
752
|
+
def __iter__(self) -> BMIter[GenericType1]:
|
|
746
753
|
"""
|
|
747
754
|
|
|
748
755
|
:return:
|
|
749
|
-
:rtype:
|
|
756
|
+
:rtype: BMIter[GenericType1]
|
|
750
757
|
"""
|
|
751
758
|
...
|
|
752
759
|
|
|
@@ -758,21 +765,6 @@ class BMFaceSeq:
|
|
|
758
765
|
"""
|
|
759
766
|
...
|
|
760
767
|
|
|
761
|
-
def __len__(self) -> int:
|
|
762
|
-
"""
|
|
763
|
-
|
|
764
|
-
:return:
|
|
765
|
-
:rtype: int
|
|
766
|
-
"""
|
|
767
|
-
...
|
|
768
|
-
|
|
769
|
-
class BMIter:
|
|
770
|
-
"""Internal BMesh type for looping over verts/faces/edges,
|
|
771
|
-
used for iterating over `BMElemSeq` types.
|
|
772
|
-
"""
|
|
773
|
-
|
|
774
|
-
...
|
|
775
|
-
|
|
776
768
|
class BMLayerAccessEdge:
|
|
777
769
|
"""Exposes custom-data layer attributes."""
|
|
778
770
|
|
|
@@ -980,7 +972,7 @@ class BMLayerCollection:
|
|
|
980
972
|
:type: bool
|
|
981
973
|
"""
|
|
982
974
|
|
|
983
|
-
def get(self, key: str, default=None):
|
|
975
|
+
def get(self, key: str, default: GenericType2 = None) -> BMLayerItem | GenericType2:
|
|
984
976
|
"""Returns the value of the layer matching the key or default
|
|
985
977
|
when not found (matches Python's dictionary function of the same name).
|
|
986
978
|
|
|
@@ -988,6 +980,9 @@ class BMLayerCollection:
|
|
|
988
980
|
:type key: str
|
|
989
981
|
:param default: Optional argument for the value to return if
|
|
990
982
|
key is not found.
|
|
983
|
+
:type default: GenericType2
|
|
984
|
+
:return:
|
|
985
|
+
:rtype: BMLayerItem | GenericType2
|
|
991
986
|
"""
|
|
992
987
|
...
|
|
993
988
|
|
|
@@ -1008,11 +1003,11 @@ class BMLayerCollection:
|
|
|
1008
1003
|
"""
|
|
1009
1004
|
...
|
|
1010
1005
|
|
|
1011
|
-
def new(self, name: str) -> BMLayerItem:
|
|
1006
|
+
def new(self, name: str | None) -> BMLayerItem:
|
|
1012
1007
|
"""Create a new layer
|
|
1013
1008
|
|
|
1014
1009
|
:param name: Optional name argument (will be made unique).
|
|
1015
|
-
:type name: str
|
|
1010
|
+
:type name: str | None
|
|
1016
1011
|
:return: The newly created layer.
|
|
1017
1012
|
:rtype: BMLayerItem
|
|
1018
1013
|
"""
|
|
@@ -1052,10 +1047,11 @@ class BMLayerItem:
|
|
|
1052
1047
|
:type: str
|
|
1053
1048
|
"""
|
|
1054
1049
|
|
|
1055
|
-
def copy_from(self, other):
|
|
1050
|
+
def copy_from(self, other: BMLayerItem):
|
|
1056
1051
|
"""Return a copy of the layer
|
|
1057
1052
|
|
|
1058
|
-
:param other: Another layer to copy from
|
|
1053
|
+
:param other: Another layer to copy from.
|
|
1054
|
+
:type other: BMLayerItem
|
|
1059
1055
|
"""
|
|
1060
1056
|
...
|
|
1061
1057
|
|
|
@@ -1161,87 +1157,62 @@ class BMLoop:
|
|
|
1161
1157
|
"""
|
|
1162
1158
|
...
|
|
1163
1159
|
|
|
1164
|
-
def copy_from(self, other):
|
|
1160
|
+
def copy_from(self, other: BMLoop):
|
|
1165
1161
|
"""Copy values from another element of matching type.
|
|
1166
1162
|
|
|
1167
1163
|
:param other:
|
|
1164
|
+
:type other: BMLoop
|
|
1168
1165
|
"""
|
|
1169
1166
|
...
|
|
1170
1167
|
|
|
1171
1168
|
def copy_from_face_interp(
|
|
1172
|
-
self, face: BMFace, vert: bool = True, multires: bool = True
|
|
1169
|
+
self, face: BMFace, vert: bool | None = True, multires: bool | None = True
|
|
1173
1170
|
):
|
|
1174
1171
|
"""Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
|
|
1175
1172
|
|
|
1176
1173
|
:param face: The face to interpolate data from.
|
|
1177
1174
|
:type face: BMFace
|
|
1178
1175
|
:param vert: When enabled, interpolate the loops vertex data (optional).
|
|
1179
|
-
:type vert: bool
|
|
1176
|
+
:type vert: bool | None
|
|
1180
1177
|
:param multires: When enabled, interpolate the loops multires data (optional).
|
|
1181
|
-
:type multires: bool
|
|
1178
|
+
:type multires: bool | None
|
|
1182
1179
|
"""
|
|
1183
1180
|
...
|
|
1184
1181
|
|
|
1185
|
-
|
|
1186
|
-
layers: BMLayerAccessLoop
|
|
1187
|
-
""" custom-data layers (read-only).
|
|
1188
|
-
|
|
1189
|
-
:type: BMLayerAccessLoop
|
|
1190
|
-
"""
|
|
1191
|
-
|
|
1192
|
-
def __getitem__(self, key: int) -> BMLoop:
|
|
1182
|
+
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
1193
1183
|
"""
|
|
1194
1184
|
|
|
1195
1185
|
:param key:
|
|
1196
|
-
:type key:
|
|
1186
|
+
:type key: BMLayerItem
|
|
1197
1187
|
:return:
|
|
1198
|
-
:rtype:
|
|
1188
|
+
:rtype: typing.Any
|
|
1199
1189
|
"""
|
|
1200
1190
|
...
|
|
1201
1191
|
|
|
1202
|
-
def __setitem__(self, key:
|
|
1192
|
+
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
1203
1193
|
"""
|
|
1204
1194
|
|
|
1205
1195
|
:param key:
|
|
1206
|
-
:type key:
|
|
1196
|
+
:type key: BMLayerItem
|
|
1207
1197
|
:param value:
|
|
1208
|
-
:type value:
|
|
1198
|
+
:type value: typing.Any
|
|
1209
1199
|
"""
|
|
1210
1200
|
...
|
|
1211
1201
|
|
|
1212
|
-
def __delitem__(self, key:
|
|
1202
|
+
def __delitem__(self, key: BMLayerItem):
|
|
1213
1203
|
"""
|
|
1214
1204
|
|
|
1215
1205
|
:param key:
|
|
1216
|
-
:type key:
|
|
1217
|
-
:return:
|
|
1218
|
-
:rtype: BMLoop
|
|
1219
|
-
"""
|
|
1220
|
-
...
|
|
1221
|
-
|
|
1222
|
-
def __iter__(self) -> typing.Iterator[GenericType1]:
|
|
1223
|
-
"""
|
|
1224
|
-
|
|
1225
|
-
:return:
|
|
1226
|
-
:rtype: typing.Iterator[GenericType1]
|
|
1206
|
+
:type key: BMLayerItem
|
|
1227
1207
|
"""
|
|
1228
1208
|
...
|
|
1229
1209
|
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
:return:
|
|
1234
|
-
:rtype: GenericType1
|
|
1235
|
-
"""
|
|
1236
|
-
...
|
|
1237
|
-
|
|
1238
|
-
def __len__(self) -> int:
|
|
1239
|
-
"""
|
|
1210
|
+
class BMLoopSeq:
|
|
1211
|
+
layers: BMLayerAccessLoop
|
|
1212
|
+
""" custom-data layers (read-only).
|
|
1240
1213
|
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
"""
|
|
1244
|
-
...
|
|
1214
|
+
:type: BMLayerAccessLoop
|
|
1215
|
+
"""
|
|
1245
1216
|
|
|
1246
1217
|
class BMLoopUV:
|
|
1247
1218
|
pin_uv: bool
|
|
@@ -1262,19 +1233,19 @@ class BMLoopUV:
|
|
|
1262
1233
|
:type: bool
|
|
1263
1234
|
"""
|
|
1264
1235
|
|
|
1265
|
-
uv:
|
|
1236
|
+
uv: collections.abc.Sequence[float] | mathutils.Vector
|
|
1266
1237
|
""" Loops UV (as a 2D Vector).
|
|
1267
1238
|
|
|
1268
|
-
:type:
|
|
1239
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1269
1240
|
"""
|
|
1270
1241
|
|
|
1271
1242
|
class BMVert:
|
|
1272
1243
|
"""The BMesh vertex type"""
|
|
1273
1244
|
|
|
1274
|
-
co:
|
|
1245
|
+
co: collections.abc.Sequence[float] | mathutils.Vector
|
|
1275
1246
|
""" The coordinates for this vertex as a 3D, wrapped vector.
|
|
1276
1247
|
|
|
1277
|
-
:type:
|
|
1248
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1278
1249
|
"""
|
|
1279
1250
|
|
|
1280
1251
|
hide: bool
|
|
@@ -1331,10 +1302,10 @@ class BMVert:
|
|
|
1331
1302
|
:type: list[BMLoop] | BMElemSeq
|
|
1332
1303
|
"""
|
|
1333
1304
|
|
|
1334
|
-
normal:
|
|
1305
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
1335
1306
|
""" The normal for this vertex as a 3D, wrapped vector.
|
|
1336
1307
|
|
|
1337
|
-
:type:
|
|
1308
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1338
1309
|
"""
|
|
1339
1310
|
|
|
1340
1311
|
select: bool
|
|
@@ -1370,10 +1341,11 @@ class BMVert:
|
|
|
1370
1341
|
"""
|
|
1371
1342
|
...
|
|
1372
1343
|
|
|
1373
|
-
def copy_from(self, other):
|
|
1344
|
+
def copy_from(self, other: BMVert):
|
|
1374
1345
|
"""Copy values from another element of matching type.
|
|
1375
1346
|
|
|
1376
1347
|
:param other:
|
|
1348
|
+
:type other: BMVert
|
|
1377
1349
|
"""
|
|
1378
1350
|
...
|
|
1379
1351
|
|
|
@@ -1385,12 +1357,13 @@ class BMVert:
|
|
|
1385
1357
|
"""
|
|
1386
1358
|
...
|
|
1387
1359
|
|
|
1388
|
-
def copy_from_vert_interp(self, vert_pair: BMVert, fac):
|
|
1360
|
+
def copy_from_vert_interp(self, vert_pair: BMVert, fac: float):
|
|
1389
1361
|
"""Interpolate the customdata from a vert between 2 other verts.
|
|
1390
1362
|
|
|
1391
1363
|
:param vert_pair: The vert to interpolate data from.
|
|
1392
1364
|
:type vert_pair: BMVert
|
|
1393
1365
|
:param fac:
|
|
1366
|
+
:type fac: float
|
|
1394
1367
|
"""
|
|
1395
1368
|
...
|
|
1396
1369
|
|
|
@@ -1419,6 +1392,34 @@ class BMVert:
|
|
|
1419
1392
|
"""
|
|
1420
1393
|
...
|
|
1421
1394
|
|
|
1395
|
+
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
1396
|
+
"""
|
|
1397
|
+
|
|
1398
|
+
:param key:
|
|
1399
|
+
:type key: BMLayerItem
|
|
1400
|
+
:return:
|
|
1401
|
+
:rtype: typing.Any
|
|
1402
|
+
"""
|
|
1403
|
+
...
|
|
1404
|
+
|
|
1405
|
+
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
1406
|
+
"""
|
|
1407
|
+
|
|
1408
|
+
:param key:
|
|
1409
|
+
:type key: BMLayerItem
|
|
1410
|
+
:param value:
|
|
1411
|
+
:type value: typing.Any
|
|
1412
|
+
"""
|
|
1413
|
+
...
|
|
1414
|
+
|
|
1415
|
+
def __delitem__(self, key: BMLayerItem):
|
|
1416
|
+
"""
|
|
1417
|
+
|
|
1418
|
+
:param key:
|
|
1419
|
+
:type key: BMLayerItem
|
|
1420
|
+
"""
|
|
1421
|
+
...
|
|
1422
|
+
|
|
1422
1423
|
class BMVertSeq:
|
|
1423
1424
|
layers: BMLayerAccessVert
|
|
1424
1425
|
""" custom-data layers (read-only).
|
|
@@ -1436,13 +1437,13 @@ class BMVertSeq:
|
|
|
1436
1437
|
|
|
1437
1438
|
def new(
|
|
1438
1439
|
self,
|
|
1439
|
-
co:
|
|
1440
|
+
co: collections.abc.Sequence[float] | mathutils.Vector | None = (0.0, 0.0, 0.0),
|
|
1440
1441
|
example: BMVert = None,
|
|
1441
1442
|
) -> BMVert:
|
|
1442
1443
|
"""Create a new vertex.
|
|
1443
1444
|
|
|
1444
1445
|
:param co: The initial location of the vertex (optional argument).
|
|
1445
|
-
:type co:
|
|
1446
|
+
:type co: collections.abc.Sequence[float] | mathutils.Vector | None
|
|
1446
1447
|
:param example: Existing vert to initialize settings.
|
|
1447
1448
|
:type example: BMVert
|
|
1448
1449
|
:return: The newly created vertex.
|
|
@@ -1450,10 +1451,11 @@ class BMVertSeq:
|
|
|
1450
1451
|
"""
|
|
1451
1452
|
...
|
|
1452
1453
|
|
|
1453
|
-
def remove(self, vert):
|
|
1454
|
+
def remove(self, vert: BMVert):
|
|
1454
1455
|
"""Remove a vert.
|
|
1455
1456
|
|
|
1456
1457
|
:param vert:
|
|
1458
|
+
:type vert: BMVert
|
|
1457
1459
|
"""
|
|
1458
1460
|
...
|
|
1459
1461
|
|
|
@@ -1477,39 +1479,11 @@ class BMVertSeq:
|
|
|
1477
1479
|
"""
|
|
1478
1480
|
...
|
|
1479
1481
|
|
|
1480
|
-
def
|
|
1481
|
-
"""
|
|
1482
|
-
|
|
1483
|
-
:param key:
|
|
1484
|
-
:type key: int
|
|
1485
|
-
:param value:
|
|
1486
|
-
:type value: BMVert
|
|
1487
|
-
"""
|
|
1488
|
-
...
|
|
1489
|
-
|
|
1490
|
-
def __delitem__(self, key: int) -> BMVert:
|
|
1491
|
-
"""
|
|
1492
|
-
|
|
1493
|
-
:param key:
|
|
1494
|
-
:type key: int
|
|
1495
|
-
:return:
|
|
1496
|
-
:rtype: BMVert
|
|
1497
|
-
"""
|
|
1498
|
-
...
|
|
1499
|
-
|
|
1500
|
-
def __iter__(self) -> typing.Iterator[GenericType1]:
|
|
1482
|
+
def __iter__(self) -> BMIter[BMVert]:
|
|
1501
1483
|
"""
|
|
1502
1484
|
|
|
1503
1485
|
:return:
|
|
1504
|
-
:rtype:
|
|
1505
|
-
"""
|
|
1506
|
-
...
|
|
1507
|
-
|
|
1508
|
-
def __next__(self) -> GenericType1:
|
|
1509
|
-
"""
|
|
1510
|
-
|
|
1511
|
-
:return:
|
|
1512
|
-
:rtype: GenericType1
|
|
1486
|
+
:rtype: BMIter[BMVert]
|
|
1513
1487
|
"""
|
|
1514
1488
|
...
|
|
1515
1489
|
|
|
@@ -1608,8 +1582,8 @@ class BMesh:
|
|
|
1608
1582
|
def from_mesh(
|
|
1609
1583
|
self,
|
|
1610
1584
|
mesh: bpy.types.Mesh,
|
|
1611
|
-
face_normals=True,
|
|
1612
|
-
vertex_normals=True,
|
|
1585
|
+
face_normals: bool = True,
|
|
1586
|
+
vertex_normals: bool = True,
|
|
1613
1587
|
use_shape_key: bool = False,
|
|
1614
1588
|
shape_key_index: int = 0,
|
|
1615
1589
|
):
|
|
@@ -1618,7 +1592,9 @@ class BMesh:
|
|
|
1618
1592
|
:param mesh: The mesh data to load.
|
|
1619
1593
|
:type mesh: bpy.types.Mesh
|
|
1620
1594
|
:param face_normals:
|
|
1595
|
+
:type face_normals: bool
|
|
1621
1596
|
:param vertex_normals:
|
|
1597
|
+
:type vertex_normals: bool
|
|
1622
1598
|
:param use_shape_key: Use the locations from a shape key.
|
|
1623
1599
|
:type use_shape_key: bool
|
|
1624
1600
|
:param shape_key_index: The shape key index to use.
|
|
@@ -1629,7 +1605,7 @@ class BMesh:
|
|
|
1629
1605
|
def from_object(
|
|
1630
1606
|
self,
|
|
1631
1607
|
object: bpy.types.Object,
|
|
1632
|
-
depsgraph,
|
|
1608
|
+
depsgraph: bpy.types.Depsgraph,
|
|
1633
1609
|
cage: bool = False,
|
|
1634
1610
|
face_normals: bool = True,
|
|
1635
1611
|
vertex_normals: bool = True,
|
|
@@ -1639,6 +1615,7 @@ class BMesh:
|
|
|
1639
1615
|
:param object: The object data to load.
|
|
1640
1616
|
:type object: bpy.types.Object
|
|
1641
1617
|
:param depsgraph:
|
|
1618
|
+
:type depsgraph: bpy.types.Depsgraph
|
|
1642
1619
|
:param cage: Get the mesh as a deformed cage.
|
|
1643
1620
|
:type cage: bool
|
|
1644
1621
|
:param face_normals: Calculate face normals.
|