fake-bpy-module 20240528__py3-none-any.whl → 20240529__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 +43 -33
- 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-20240529.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240529.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-20240529.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240529.dist-info}/top_level.txt +0 -0
bmesh/types/__init__.pyi
CHANGED
|
@@ -253,11 +253,11 @@ class BMEdgeSeq:
|
|
|
253
253
|
"""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
254
|
...
|
|
255
255
|
|
|
256
|
-
def get(self, verts: BMVert, fallback=None) -> BMEdge:
|
|
256
|
+
def get(self, verts: collections.abc.Iterable[BMVert], fallback=None) -> BMEdge:
|
|
257
257
|
"""Return an edge which uses the verts passed.
|
|
258
258
|
|
|
259
259
|
:param verts: Sequence of verts.
|
|
260
|
-
:type verts: BMVert
|
|
260
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
261
261
|
:param fallback: Return this value if nothing is found.
|
|
262
262
|
:return: The edge found or None
|
|
263
263
|
:rtype: BMEdge
|
|
@@ -268,21 +268,22 @@ class BMEdgeSeq:
|
|
|
268
268
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
269
269
|
...
|
|
270
270
|
|
|
271
|
-
def new(self, verts, example: BMEdge = None) -> BMEdge:
|
|
271
|
+
def new(self, verts, example: BMEdge | None = None) -> BMEdge:
|
|
272
272
|
"""Create a new edge from a given pair of verts.
|
|
273
273
|
|
|
274
274
|
:param verts: Vertex pair.
|
|
275
275
|
:param example: Existing edge to initialize settings (optional argument).
|
|
276
|
-
:type example: BMEdge
|
|
276
|
+
:type example: BMEdge | None
|
|
277
277
|
:return: The newly created edge.
|
|
278
278
|
:rtype: BMEdge
|
|
279
279
|
"""
|
|
280
280
|
...
|
|
281
281
|
|
|
282
|
-
def remove(self, edge):
|
|
282
|
+
def remove(self, edge: BMEdge):
|
|
283
283
|
"""Remove an edge.
|
|
284
284
|
|
|
285
285
|
:param edge:
|
|
286
|
+
:type edge: BMEdge
|
|
286
287
|
"""
|
|
287
288
|
...
|
|
288
289
|
|
|
@@ -491,10 +492,10 @@ class BMFace:
|
|
|
491
492
|
:type: int
|
|
492
493
|
"""
|
|
493
494
|
|
|
494
|
-
normal:
|
|
495
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
495
496
|
""" The normal for this face as a 3D, wrapped vector.
|
|
496
497
|
|
|
497
|
-
:type:
|
|
498
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
498
499
|
"""
|
|
499
500
|
|
|
500
501
|
select: bool
|
|
@@ -668,11 +669,11 @@ class BMFaceSeq:
|
|
|
668
669
|
"""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
670
|
...
|
|
670
671
|
|
|
671
|
-
def get(self, verts: BMVert, fallback=None) -> BMFace:
|
|
672
|
+
def get(self, verts: collections.abc.Iterable[BMVert], fallback=None) -> BMFace:
|
|
672
673
|
"""Return a face which uses the verts passed.
|
|
673
674
|
|
|
674
675
|
:param verts: Sequence of verts.
|
|
675
|
-
:type verts: BMVert
|
|
676
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
676
677
|
:param fallback: Return this value if nothing is found.
|
|
677
678
|
:return: The face found or None
|
|
678
679
|
:rtype: BMFace
|
|
@@ -683,22 +684,25 @@ class BMFaceSeq:
|
|
|
683
684
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
684
685
|
...
|
|
685
686
|
|
|
686
|
-
def new(
|
|
687
|
+
def new(
|
|
688
|
+
self, verts: collections.abc.Iterable[BMVert], example: BMFace | None = None
|
|
689
|
+
) -> BMFace:
|
|
687
690
|
"""Create a new face from a given set of verts.
|
|
688
691
|
|
|
689
692
|
:param verts: Sequence of 3 or more verts.
|
|
690
|
-
:type verts:
|
|
693
|
+
:type verts: collections.abc.Iterable[BMVert]
|
|
691
694
|
:param example: Existing face to initialize settings (optional argument).
|
|
692
|
-
:type example: BMFace
|
|
695
|
+
:type example: BMFace | None
|
|
693
696
|
:return: The newly created face.
|
|
694
697
|
:rtype: BMFace
|
|
695
698
|
"""
|
|
696
699
|
...
|
|
697
700
|
|
|
698
|
-
def remove(self, face):
|
|
701
|
+
def remove(self, face: BMFace):
|
|
699
702
|
"""Remove a face.
|
|
700
703
|
|
|
701
704
|
:param face:
|
|
705
|
+
:type face: BMFace
|
|
702
706
|
"""
|
|
703
707
|
...
|
|
704
708
|
|
|
@@ -1008,11 +1012,11 @@ class BMLayerCollection:
|
|
|
1008
1012
|
"""
|
|
1009
1013
|
...
|
|
1010
1014
|
|
|
1011
|
-
def new(self, name: str) -> BMLayerItem:
|
|
1015
|
+
def new(self, name: str | None) -> BMLayerItem:
|
|
1012
1016
|
"""Create a new layer
|
|
1013
1017
|
|
|
1014
1018
|
:param name: Optional name argument (will be made unique).
|
|
1015
|
-
:type name: str
|
|
1019
|
+
:type name: str | None
|
|
1016
1020
|
:return: The newly created layer.
|
|
1017
1021
|
:rtype: BMLayerItem
|
|
1018
1022
|
"""
|
|
@@ -1052,10 +1056,11 @@ class BMLayerItem:
|
|
|
1052
1056
|
:type: str
|
|
1053
1057
|
"""
|
|
1054
1058
|
|
|
1055
|
-
def copy_from(self, other):
|
|
1059
|
+
def copy_from(self, other: BMLayerItem):
|
|
1056
1060
|
"""Return a copy of the layer
|
|
1057
1061
|
|
|
1058
|
-
:param other: Another layer to copy from
|
|
1062
|
+
:param other: Another layer to copy from.
|
|
1063
|
+
:type other: BMLayerItem
|
|
1059
1064
|
"""
|
|
1060
1065
|
...
|
|
1061
1066
|
|
|
@@ -1169,16 +1174,16 @@ class BMLoop:
|
|
|
1169
1174
|
...
|
|
1170
1175
|
|
|
1171
1176
|
def copy_from_face_interp(
|
|
1172
|
-
self, face: BMFace, vert: bool = True, multires: bool = True
|
|
1177
|
+
self, face: BMFace, vert: bool | None = True, multires: bool | None = True
|
|
1173
1178
|
):
|
|
1174
1179
|
"""Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
|
|
1175
1180
|
|
|
1176
1181
|
:param face: The face to interpolate data from.
|
|
1177
1182
|
:type face: BMFace
|
|
1178
1183
|
:param vert: When enabled, interpolate the loops vertex data (optional).
|
|
1179
|
-
:type vert: bool
|
|
1184
|
+
:type vert: bool | None
|
|
1180
1185
|
:param multires: When enabled, interpolate the loops multires data (optional).
|
|
1181
|
-
:type multires: bool
|
|
1186
|
+
:type multires: bool | None
|
|
1182
1187
|
"""
|
|
1183
1188
|
...
|
|
1184
1189
|
|
|
@@ -1262,19 +1267,19 @@ class BMLoopUV:
|
|
|
1262
1267
|
:type: bool
|
|
1263
1268
|
"""
|
|
1264
1269
|
|
|
1265
|
-
uv:
|
|
1270
|
+
uv: collections.abc.Sequence[float] | mathutils.Vector
|
|
1266
1271
|
""" Loops UV (as a 2D Vector).
|
|
1267
1272
|
|
|
1268
|
-
:type:
|
|
1273
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1269
1274
|
"""
|
|
1270
1275
|
|
|
1271
1276
|
class BMVert:
|
|
1272
1277
|
"""The BMesh vertex type"""
|
|
1273
1278
|
|
|
1274
|
-
co:
|
|
1279
|
+
co: collections.abc.Sequence[float] | mathutils.Vector
|
|
1275
1280
|
""" The coordinates for this vertex as a 3D, wrapped vector.
|
|
1276
1281
|
|
|
1277
|
-
:type:
|
|
1282
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1278
1283
|
"""
|
|
1279
1284
|
|
|
1280
1285
|
hide: bool
|
|
@@ -1331,10 +1336,10 @@ class BMVert:
|
|
|
1331
1336
|
:type: list[BMLoop] | BMElemSeq
|
|
1332
1337
|
"""
|
|
1333
1338
|
|
|
1334
|
-
normal:
|
|
1339
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
1335
1340
|
""" The normal for this vertex as a 3D, wrapped vector.
|
|
1336
1341
|
|
|
1337
|
-
:type:
|
|
1342
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1338
1343
|
"""
|
|
1339
1344
|
|
|
1340
1345
|
select: bool
|
|
@@ -1385,12 +1390,13 @@ class BMVert:
|
|
|
1385
1390
|
"""
|
|
1386
1391
|
...
|
|
1387
1392
|
|
|
1388
|
-
def copy_from_vert_interp(self, vert_pair: BMVert, fac):
|
|
1393
|
+
def copy_from_vert_interp(self, vert_pair: BMVert, fac: float):
|
|
1389
1394
|
"""Interpolate the customdata from a vert between 2 other verts.
|
|
1390
1395
|
|
|
1391
1396
|
:param vert_pair: The vert to interpolate data from.
|
|
1392
1397
|
:type vert_pair: BMVert
|
|
1393
1398
|
:param fac:
|
|
1399
|
+
:type fac: float
|
|
1394
1400
|
"""
|
|
1395
1401
|
...
|
|
1396
1402
|
|
|
@@ -1436,13 +1442,13 @@ class BMVertSeq:
|
|
|
1436
1442
|
|
|
1437
1443
|
def new(
|
|
1438
1444
|
self,
|
|
1439
|
-
co:
|
|
1445
|
+
co: collections.abc.Sequence[float] | mathutils.Vector | None = (0.0, 0.0, 0.0),
|
|
1440
1446
|
example: BMVert = None,
|
|
1441
1447
|
) -> BMVert:
|
|
1442
1448
|
"""Create a new vertex.
|
|
1443
1449
|
|
|
1444
1450
|
:param co: The initial location of the vertex (optional argument).
|
|
1445
|
-
:type co:
|
|
1451
|
+
:type co: collections.abc.Sequence[float] | mathutils.Vector | None
|
|
1446
1452
|
:param example: Existing vert to initialize settings.
|
|
1447
1453
|
:type example: BMVert
|
|
1448
1454
|
:return: The newly created vertex.
|
|
@@ -1450,10 +1456,11 @@ class BMVertSeq:
|
|
|
1450
1456
|
"""
|
|
1451
1457
|
...
|
|
1452
1458
|
|
|
1453
|
-
def remove(self, vert):
|
|
1459
|
+
def remove(self, vert: BMVert):
|
|
1454
1460
|
"""Remove a vert.
|
|
1455
1461
|
|
|
1456
1462
|
:param vert:
|
|
1463
|
+
:type vert: BMVert
|
|
1457
1464
|
"""
|
|
1458
1465
|
...
|
|
1459
1466
|
|
|
@@ -1608,8 +1615,8 @@ class BMesh:
|
|
|
1608
1615
|
def from_mesh(
|
|
1609
1616
|
self,
|
|
1610
1617
|
mesh: bpy.types.Mesh,
|
|
1611
|
-
face_normals=True,
|
|
1612
|
-
vertex_normals=True,
|
|
1618
|
+
face_normals: bool = True,
|
|
1619
|
+
vertex_normals: bool = True,
|
|
1613
1620
|
use_shape_key: bool = False,
|
|
1614
1621
|
shape_key_index: int = 0,
|
|
1615
1622
|
):
|
|
@@ -1618,7 +1625,9 @@ class BMesh:
|
|
|
1618
1625
|
:param mesh: The mesh data to load.
|
|
1619
1626
|
:type mesh: bpy.types.Mesh
|
|
1620
1627
|
:param face_normals:
|
|
1628
|
+
:type face_normals: bool
|
|
1621
1629
|
:param vertex_normals:
|
|
1630
|
+
:type vertex_normals: bool
|
|
1622
1631
|
:param use_shape_key: Use the locations from a shape key.
|
|
1623
1632
|
:type use_shape_key: bool
|
|
1624
1633
|
:param shape_key_index: The shape key index to use.
|
|
@@ -1629,7 +1638,7 @@ class BMesh:
|
|
|
1629
1638
|
def from_object(
|
|
1630
1639
|
self,
|
|
1631
1640
|
object: bpy.types.Object,
|
|
1632
|
-
depsgraph,
|
|
1641
|
+
depsgraph: bpy.types.Depsgraph,
|
|
1633
1642
|
cage: bool = False,
|
|
1634
1643
|
face_normals: bool = True,
|
|
1635
1644
|
vertex_normals: bool = True,
|
|
@@ -1639,6 +1648,7 @@ class BMesh:
|
|
|
1639
1648
|
:param object: The object data to load.
|
|
1640
1649
|
:type object: bpy.types.Object
|
|
1641
1650
|
:param depsgraph:
|
|
1651
|
+
:type depsgraph: bpy.types.Depsgraph
|
|
1642
1652
|
:param cage: Get the mesh as a deformed cage.
|
|
1643
1653
|
:type cage: bool
|
|
1644
1654
|
:param face_normals: Calculate face normals.
|
bmesh/utils/__init__.pyi
CHANGED
|
@@ -61,7 +61,7 @@ def face_split(
|
|
|
61
61
|
face: bmesh.types.BMFace,
|
|
62
62
|
vert_a: bmesh.types.BMVert,
|
|
63
63
|
vert_b: bmesh.types.BMVert,
|
|
64
|
-
coords: list[float] = (),
|
|
64
|
+
coords: list[float] | None = (),
|
|
65
65
|
use_exist: bool = True,
|
|
66
66
|
example: bmesh.types.BMEdge = None,
|
|
67
67
|
) -> tuple[bmesh.types.BMFace, bmesh.types.BMLoop]:
|
|
@@ -74,7 +74,7 @@ def face_split(
|
|
|
74
74
|
:param vert_b: Second vertex to cut in the face (face must contain the vert).
|
|
75
75
|
:type vert_b: bmesh.types.BMVert
|
|
76
76
|
:param coords: Optional argument to define points in between vert_a and vert_b.
|
|
77
|
-
:type coords: list[float]
|
|
77
|
+
:type coords: list[float] | None
|
|
78
78
|
:param use_exist: .Use an existing edge if it exists (Only used when coords argument is empty or omitted)
|
|
79
79
|
:type use_exist: bool
|
|
80
80
|
:param example: Newly created edge will copy settings from this one.
|
bpy/app/handlers/__init__.pyi
CHANGED
|
@@ -45,79 +45,79 @@ import bpy.types
|
|
|
45
45
|
|
|
46
46
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
47
47
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
48
|
-
animation_playback_post: list[
|
|
48
|
+
animation_playback_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
49
49
|
""" on ending animation playback
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
|
-
animation_playback_pre: list[
|
|
52
|
+
animation_playback_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
53
53
|
""" on starting animation playback
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
|
-
annotation_post: list[
|
|
56
|
+
annotation_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
57
57
|
""" on drawing an annotation (after)
|
|
58
58
|
"""
|
|
59
59
|
|
|
60
|
-
annotation_pre: list[
|
|
60
|
+
annotation_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
61
61
|
""" on drawing an annotation (before)
|
|
62
62
|
"""
|
|
63
63
|
|
|
64
|
-
composite_cancel: list[
|
|
64
|
+
composite_cancel: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
65
65
|
""" on a compositing background job (cancel)
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
|
-
composite_post: list[
|
|
68
|
+
composite_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
69
69
|
""" on a compositing background job (after)
|
|
70
70
|
"""
|
|
71
71
|
|
|
72
|
-
composite_pre: list[
|
|
72
|
+
composite_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
73
73
|
""" on a compositing background job (before)
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
-
depsgraph_update_post: list[
|
|
76
|
+
depsgraph_update_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
77
77
|
""" on depsgraph update (post)
|
|
78
78
|
"""
|
|
79
79
|
|
|
80
|
-
depsgraph_update_pre: list[
|
|
80
|
+
depsgraph_update_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
81
81
|
""" on depsgraph update (pre)
|
|
82
82
|
"""
|
|
83
83
|
|
|
84
|
-
frame_change_post: list[
|
|
84
|
+
frame_change_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
85
85
|
""" Called after frame change for playback and rendering, after the data has been evaluated for the new frame.
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
|
-
frame_change_pre: list[
|
|
88
|
+
frame_change_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
89
89
|
""" 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.
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
|
-
load_factory_preferences_post: list[
|
|
92
|
+
load_factory_preferences_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
93
93
|
""" on loading factory preferences (after)
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
|
-
load_factory_startup_post: list[
|
|
96
|
+
load_factory_startup_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
97
97
|
""" on loading factory startup (after)
|
|
98
98
|
"""
|
|
99
99
|
|
|
100
|
-
load_post: list[
|
|
100
|
+
load_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
101
101
|
""" on loading a new blend file (after). Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
102
102
|
"""
|
|
103
103
|
|
|
104
|
-
load_post_fail: list[
|
|
104
|
+
load_post_fail: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
105
105
|
""" on failure to load a new blend file (after). Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
106
106
|
"""
|
|
107
107
|
|
|
108
|
-
load_pre: list[
|
|
108
|
+
load_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
109
109
|
""" on loading a new blend file (before).Accepts one argument: the file being loaded, an empty string for the startup-file.
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
|
-
object_bake_cancel: list[
|
|
112
|
+
object_bake_cancel: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
113
113
|
""" on canceling a bake job; will be called in the main thread
|
|
114
114
|
"""
|
|
115
115
|
|
|
116
|
-
object_bake_complete: list[
|
|
116
|
+
object_bake_complete: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
117
117
|
""" on completing a bake job; will be called in the main thread
|
|
118
118
|
"""
|
|
119
119
|
|
|
120
|
-
object_bake_pre: list[
|
|
120
|
+
object_bake_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
121
121
|
""" before starting a bake job
|
|
122
122
|
"""
|
|
123
123
|
|
|
@@ -125,70 +125,70 @@ persistent: typing.Any
|
|
|
125
125
|
""" Function decorator for callback functions not to be removed when loading new files
|
|
126
126
|
"""
|
|
127
127
|
|
|
128
|
-
redo_post: list[
|
|
128
|
+
redo_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
129
129
|
""" on loading a redo step (after)
|
|
130
130
|
"""
|
|
131
131
|
|
|
132
|
-
redo_pre: list[
|
|
132
|
+
redo_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
133
133
|
""" on loading a redo step (before)
|
|
134
134
|
"""
|
|
135
135
|
|
|
136
|
-
render_cancel: list[
|
|
136
|
+
render_cancel: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
137
137
|
""" on canceling a render job
|
|
138
138
|
"""
|
|
139
139
|
|
|
140
|
-
render_complete: list[
|
|
140
|
+
render_complete: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
141
141
|
""" on completion of render job
|
|
142
142
|
"""
|
|
143
143
|
|
|
144
|
-
render_init: list[
|
|
144
|
+
render_init: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
145
145
|
""" on initialization of a render job
|
|
146
146
|
"""
|
|
147
147
|
|
|
148
|
-
render_post: list[
|
|
148
|
+
render_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
149
149
|
""" on render (after)
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
|
-
render_pre: list[
|
|
152
|
+
render_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
153
153
|
""" on render (before)
|
|
154
154
|
"""
|
|
155
155
|
|
|
156
|
-
render_stats: list[
|
|
157
|
-
""" on printing render statistics
|
|
156
|
+
render_stats: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
157
|
+
""" on printing render statistics. Accepts one argument: the render stats (render/saving time plus in background mode frame/used [peak] memory).
|
|
158
158
|
"""
|
|
159
159
|
|
|
160
|
-
render_write: list[
|
|
160
|
+
render_write: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
161
161
|
""" on writing a render frame (directly after the frame is written)
|
|
162
162
|
"""
|
|
163
163
|
|
|
164
|
-
save_post: list[
|
|
164
|
+
save_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
165
165
|
""" on saving a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
166
166
|
"""
|
|
167
167
|
|
|
168
|
-
save_post_fail: list[
|
|
168
|
+
save_post_fail: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
169
169
|
""" on failure to save a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
170
170
|
"""
|
|
171
171
|
|
|
172
|
-
save_pre: list[
|
|
172
|
+
save_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
173
173
|
""" on saving a blend file (before). Accepts one argument: the file being saved, an empty string for the startup-file.
|
|
174
174
|
"""
|
|
175
175
|
|
|
176
|
-
translation_update_post: list[
|
|
176
|
+
translation_update_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
177
177
|
""" on translation settings update
|
|
178
178
|
"""
|
|
179
179
|
|
|
180
|
-
undo_post: list[
|
|
180
|
+
undo_post: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
181
181
|
""" on loading an undo step (after)
|
|
182
182
|
"""
|
|
183
183
|
|
|
184
|
-
undo_pre: list[
|
|
184
|
+
undo_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
185
185
|
""" on loading an undo step (before)
|
|
186
186
|
"""
|
|
187
187
|
|
|
188
|
-
version_update: list[
|
|
188
|
+
version_update: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
189
189
|
""" on ending the versioning code
|
|
190
190
|
"""
|
|
191
191
|
|
|
192
|
-
xr_session_start_pre: list[
|
|
192
|
+
xr_session_start_pre: list[collections.abc.Callable[[bpy.types.Scene, None]]]
|
|
193
193
|
""" on starting an xr session (before)
|
|
194
194
|
"""
|
bpy/app/icons/__init__.pyi
CHANGED
|
@@ -6,17 +6,17 @@ GenericType2 = typing.TypeVar("GenericType2")
|
|
|
6
6
|
|
|
7
7
|
def new_triangles(
|
|
8
8
|
range: tuple | None,
|
|
9
|
-
coords:
|
|
10
|
-
colors:
|
|
9
|
+
coords: collections.abc.Sequence[bytes] | None,
|
|
10
|
+
colors: collections.abc.Sequence[bytes] | None,
|
|
11
11
|
) -> int:
|
|
12
12
|
"""Create a new icon from triangle geometry.
|
|
13
13
|
|
|
14
14
|
:param range: Pair of ints.
|
|
15
15
|
:type range: tuple | None
|
|
16
16
|
:param coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.
|
|
17
|
-
:type coords:
|
|
17
|
+
:type coords: collections.abc.Sequence[bytes] | None
|
|
18
18
|
:param colors: Sequence of ints (12 for one triangles) for RGBA.
|
|
19
|
-
:type colors:
|
|
19
|
+
:type colors: collections.abc.Sequence[bytes] | None
|
|
20
20
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
21
21
|
:rtype: int
|
|
22
22
|
"""
|
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -36,18 +36,18 @@ import collections.abc
|
|
|
36
36
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
37
37
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
38
38
|
|
|
39
|
-
def is_registered(function:
|
|
39
|
+
def is_registered(function: collections.abc.Callable[[], float]) -> bool:
|
|
40
40
|
"""Check if this function is registered as a timer.
|
|
41
41
|
|
|
42
42
|
:param function: Function to check.
|
|
43
|
-
:type function:
|
|
43
|
+
:type function: collections.abc.Callable[[], float]
|
|
44
44
|
:return: True when this function is registered, otherwise False.
|
|
45
45
|
:rtype: bool
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
...
|
|
49
49
|
|
|
50
|
-
def register(function:
|
|
50
|
+
def register(function: collections.abc.Callable[[], float]):
|
|
51
51
|
"""Add a new function that will be called after the specified amount of seconds.
|
|
52
52
|
The function gets no arguments and is expected to return either None or a float.
|
|
53
53
|
If None is returned, the timer will be unregistered.
|
|
@@ -55,16 +55,16 @@ def register(function: typing.Callable[[], float]):
|
|
|
55
55
|
functools.partial can be used to assign some parameters.
|
|
56
56
|
|
|
57
57
|
:param function: The function that should called.
|
|
58
|
-
:type function:
|
|
58
|
+
:type function: collections.abc.Callable[[], float]
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
...
|
|
62
62
|
|
|
63
|
-
def unregister(function:
|
|
63
|
+
def unregister(function: collections.abc.Callable[[], float]):
|
|
64
64
|
"""Unregister timer.
|
|
65
65
|
|
|
66
66
|
:param function: Function to unregister.
|
|
67
|
-
:type function:
|
|
67
|
+
:type function: collections.abc.Callable[[], float]
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
70
|
...
|
bpy/ops/bl_pkg/__init__.pyi
CHANGED
|
@@ -94,7 +94,7 @@ def extensions_show_for_update(
|
|
|
94
94
|
execution_context: str | int | None = None,
|
|
95
95
|
undo: bool | None = None,
|
|
96
96
|
):
|
|
97
|
-
"""
|
|
97
|
+
"""Open extensions preferences
|
|
98
98
|
|
|
99
99
|
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
100
100
|
:type execution_context: str | int | None
|
|
@@ -156,7 +156,7 @@ def pkg_install(
|
|
|
156
156
|
enable_on_install: bool | typing.Any | None = True,
|
|
157
157
|
url: str | typing.Any = "",
|
|
158
158
|
):
|
|
159
|
-
"""
|
|
159
|
+
"""Download and install the extension
|
|
160
160
|
|
|
161
161
|
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
162
162
|
:type execution_context: str | int | None
|
|
@@ -394,7 +394,7 @@ def pkg_upgrade_all(
|
|
|
394
394
|
*,
|
|
395
395
|
use_active_only: bool | typing.Any | None = False,
|
|
396
396
|
):
|
|
397
|
-
"""
|
|
397
|
+
"""Upgrade all the extensions to their latest version for all the remote repositories
|
|
398
398
|
|
|
399
399
|
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
400
400
|
:type execution_context: str | int | None
|
|
@@ -447,7 +447,7 @@ def repo_sync_all(
|
|
|
447
447
|
*,
|
|
448
448
|
use_active_only: bool | typing.Any | None = False,
|
|
449
449
|
):
|
|
450
|
-
"""
|
|
450
|
+
"""Refresh the list of extensions for all the remote repositories
|
|
451
451
|
|
|
452
452
|
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
453
453
|
:type execution_context: str | int | None
|