blender-python-stubs 4.5.8.0__tar.gz → 4.5.8.2__tar.gz
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.
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/PKG-INFO +8 -5
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/README.md +6 -3
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/types/__init__.pyi +182 -138
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/__init__.pyi +1 -0
- blender_python_stubs-4.5.8.2/bpy/msgbus/__init__.pyi +15 -0
- blender_python_stubs-4.5.8.2/bpy/ops/__init__.pyi +79680 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/path/__init__.pyi +4 -4
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/types/__init__.pyi +4386 -1538
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/anim_utils/__init__.pyi +2 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/types/__init__.pyi +109 -52
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/state/__init__.pyi +3 -2
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/types/__init__.pyi +23 -8
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/idprop/types/__init__.pyi +13 -0
- blender_python_stubs-4.5.8.2/mathutils/__init__.pyi +3132 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/pyproject.toml +2 -2
- blender_python_stubs-4.5.8.0/bpy/ops/__init__.pyi +0 -176
- blender_python_stubs-4.5.8.0/mathutils/__init__.pyi +0 -2092
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/.gitignore +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/.python-version +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/LICENSE +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/aud/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/aud/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bl_math/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bl_math/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/blf/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/blf/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/geometry/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/ops/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bmesh/utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/app/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/props/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/utils/previews/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy/utils/toolsystem/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/asset_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/id_map_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/image_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/io_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/mesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/node_shader_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/node_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/object_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/bpy_extras/view3d_utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/chainingiterators/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/functions/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/predicates/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/shaders/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/freestyle/utils/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/capabilities/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/compute/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/matrix/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/platform/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/select/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/shader/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu/texture/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu_extras/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu_extras/batch/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu_extras/presets/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/gpu_extras/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/idprop/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/idprop/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/imbuf/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/imbuf/py.typed +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/imbuf/types/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/bvhtree/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/geometry/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/interpolate/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/kdtree/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/noise/__init__.pyi +0 -0
- {blender_python_stubs-4.5.8.0 → blender_python_stubs-4.5.8.2}/mathutils/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blender-python-stubs
|
|
3
|
-
Version: 4.5.8.
|
|
3
|
+
Version: 4.5.8.2
|
|
4
4
|
Summary: Type stubs for Blender 4.5 Python API
|
|
5
5
|
Project-URL: Homepage, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs
|
|
6
6
|
Project-URL: Issues, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs/issues
|
|
@@ -10,7 +10,7 @@ Author-email: Autour de Minuit <tech@autourdeminuit.com>
|
|
|
10
10
|
License-Expression: MIT
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Keywords: autocomplete,blender,bpy,stubs,typing
|
|
13
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
|
|
@@ -21,9 +21,11 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
|
|
22
22
|
# blender-python-stubs
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
[](https://pypi.org/project/blender-python-stubs/)
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Strict type stubs for Blender 4.5 Python API.
|
|
27
|
+
|
|
28
|
+
Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
|
|
27
29
|
|
|
28
30
|
## Installation
|
|
29
31
|
|
|
@@ -47,7 +49,8 @@ pip install "blender-python-stubs>=4.5,<4.6"
|
|
|
47
49
|
```python
|
|
48
50
|
import bpy
|
|
49
51
|
|
|
50
|
-
obj
|
|
52
|
+
obj = bpy.context.active_object
|
|
53
|
+
assert obj is not None
|
|
51
54
|
obj.location.x = 1.0
|
|
52
55
|
|
|
53
56
|
bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# blender-python-stubs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://pypi.org/project/blender-python-stubs/)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Strict type stubs for Blender 4.5 Python API.
|
|
6
|
+
|
|
7
|
+
Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
|
|
6
8
|
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
@@ -26,7 +28,8 @@ pip install "blender-python-stubs>=4.5,<4.6"
|
|
|
26
28
|
```python
|
|
27
29
|
import bpy
|
|
28
30
|
|
|
29
|
-
obj
|
|
31
|
+
obj = bpy.context.active_object
|
|
32
|
+
assert obj is not None
|
|
30
33
|
obj.location.x = 1.0
|
|
31
34
|
|
|
32
35
|
bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
|
|
@@ -66,46 +66,51 @@ class BMEdge:
|
|
|
66
66
|
|
|
67
67
|
To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
@property
|
|
70
|
+
def is_boundary(self) -> bool:
|
|
71
|
+
"""True when this edge is at the boundary of a face (read-only).
|
|
71
72
|
|
|
72
|
-
:type: bool"""
|
|
73
|
+
:type: bool"""
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
@property
|
|
76
|
+
def is_contiguous(self) -> bool:
|
|
77
|
+
"""True when this edge is manifold, between two faces with the same winding (read-only).
|
|
76
78
|
|
|
77
|
-
:type: bool"""
|
|
79
|
+
:type: bool"""
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
@property
|
|
82
|
+
def is_convex(self) -> bool:
|
|
83
|
+
"""True when this edge joins two convex faces, depends on a valid face normal (read-only).
|
|
81
84
|
|
|
82
|
-
:type: bool"""
|
|
85
|
+
:type: bool"""
|
|
83
86
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
:type: bool"""
|
|
87
|
+
@property
|
|
88
|
+
def is_manifold(self) -> bool:
|
|
89
|
+
"""True when this edge is manifold (read-only).
|
|
88
90
|
|
|
91
|
+
:type: bool"""
|
|
89
92
|
is_valid: bool
|
|
90
93
|
"""True when this element is valid (hasn't been removed).
|
|
91
94
|
|
|
92
95
|
:type: bool"""
|
|
93
96
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
:type: bool"""
|
|
97
|
+
@property
|
|
98
|
+
def is_wire(self) -> bool:
|
|
99
|
+
"""True when this edge is not connected to any faces (read-only).
|
|
98
100
|
|
|
99
|
-
|
|
100
|
-
"""Faces connected to this edge, (read-only).
|
|
101
|
+
:type: bool"""
|
|
101
102
|
|
|
102
|
-
|
|
103
|
+
@property
|
|
104
|
+
def link_faces(self) -> object:
|
|
105
|
+
"""Faces connected to this edge, (read-only).
|
|
103
106
|
|
|
104
|
-
|
|
105
|
-
"""Loops connected to this edge, (read-only).
|
|
107
|
+
:type: :class:`BMElemSeq` of :class:`BMFace`"""
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
@property
|
|
110
|
+
def link_loops(self) -> object:
|
|
111
|
+
"""Loops connected to this edge, (read-only).
|
|
108
112
|
|
|
113
|
+
:type: :class:`BMElemSeq` of :class:`BMLoop`"""
|
|
109
114
|
seam: bool
|
|
110
115
|
"""Seam for UV unwrapping.
|
|
111
116
|
|
|
@@ -126,10 +131,11 @@ class BMEdge:
|
|
|
126
131
|
|
|
127
132
|
:type: bool"""
|
|
128
133
|
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
@property
|
|
135
|
+
def verts(self) -> object:
|
|
136
|
+
"""Verts this edge uses (always 2), (read-only).
|
|
131
137
|
|
|
132
|
-
:type: :class:`BMElemSeq` of :class:`BMVert`"""
|
|
138
|
+
:type: :class:`BMElemSeq` of :class:`BMVert`"""
|
|
133
139
|
|
|
134
140
|
def __delitem__(self, key: int | slice) -> None:
|
|
135
141
|
"""Delete self[key]."""
|
|
@@ -170,10 +176,11 @@ class BMEdge:
|
|
|
170
176
|
def __iter__(self) -> Iterator[object]: ...
|
|
171
177
|
|
|
172
178
|
class BMEdgeSeq:
|
|
173
|
-
|
|
174
|
-
|
|
179
|
+
@property
|
|
180
|
+
def layers(self) -> BMLayerAccessEdge:
|
|
181
|
+
"""custom-data layers (read-only).
|
|
175
182
|
|
|
176
|
-
:type: :class:`BMLayerAccessEdge`"""
|
|
183
|
+
:type: :class:`BMLayerAccessEdge`"""
|
|
177
184
|
|
|
178
185
|
def __contains__(self, key: object, /) -> bool:
|
|
179
186
|
"""Return key in self."""
|
|
@@ -220,10 +227,11 @@ class BMEdgeSeq:
|
|
|
220
227
|
class BMEditSelIter: ...
|
|
221
228
|
|
|
222
229
|
class BMEditSelSeq:
|
|
223
|
-
|
|
224
|
-
|
|
230
|
+
@property
|
|
231
|
+
def active(self) -> BMVert | BMEdge | BMFace:
|
|
232
|
+
"""The last selected element or None (read-only).
|
|
225
233
|
|
|
226
|
-
:type: :class:`BMVert`, :class:`BMEdge` or :class:`BMFace`"""
|
|
234
|
+
:type: :class:`BMVert`, :class:`BMEdge` or :class:`BMFace`"""
|
|
227
235
|
|
|
228
236
|
def __contains__(self, key: object, /) -> bool:
|
|
229
237
|
"""Return key in self."""
|
|
@@ -284,11 +292,11 @@ class BMElemSeq:
|
|
|
284
292
|
class BMFace:
|
|
285
293
|
"""The BMesh face with 3 or more sides"""
|
|
286
294
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
:type: :class:`BMElemSeq` of :class:`BMEdge`"""
|
|
295
|
+
@property
|
|
296
|
+
def edges(self) -> object:
|
|
297
|
+
"""Edges of this face, (read-only).
|
|
291
298
|
|
|
299
|
+
:type: :class:`BMElemSeq` of :class:`BMEdge`"""
|
|
292
300
|
hide: bool
|
|
293
301
|
"""Hidden state of this element.
|
|
294
302
|
|
|
@@ -312,20 +320,24 @@ class BMFace:
|
|
|
312
320
|
|
|
313
321
|
:type: bool"""
|
|
314
322
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
:type: :class:`BMElemSeq` of :class:`BMLoop`"""
|
|
323
|
+
@property
|
|
324
|
+
def loops(self) -> object:
|
|
325
|
+
"""Loops of this face, (read-only).
|
|
319
326
|
|
|
327
|
+
:type: :class:`BMElemSeq` of :class:`BMLoop`"""
|
|
320
328
|
material_index: int
|
|
321
329
|
"""The face's material index.
|
|
322
330
|
|
|
323
331
|
:type: int"""
|
|
324
332
|
|
|
325
|
-
|
|
326
|
-
|
|
333
|
+
@property
|
|
334
|
+
def normal(self) -> mathutils.Vector:
|
|
335
|
+
"""The normal for this face as a 3D, wrapped vector.
|
|
336
|
+
|
|
337
|
+
:type: :class:`mathutils.Vector`"""
|
|
327
338
|
|
|
328
|
-
|
|
339
|
+
@normal.setter
|
|
340
|
+
def normal(self, value: mathutils.Vector | Sequence[float]) -> None: ...
|
|
329
341
|
|
|
330
342
|
select: bool
|
|
331
343
|
"""Selected state of this element.
|
|
@@ -342,10 +354,11 @@ class BMFace:
|
|
|
342
354
|
|
|
343
355
|
:type: bool"""
|
|
344
356
|
|
|
345
|
-
|
|
346
|
-
|
|
357
|
+
@property
|
|
358
|
+
def verts(self) -> object:
|
|
359
|
+
"""Verts of this face, (read-only).
|
|
347
360
|
|
|
348
|
-
:type: :class:`BMElemSeq` of :class:`BMVert`"""
|
|
361
|
+
:type: :class:`BMElemSeq` of :class:`BMVert`"""
|
|
349
362
|
|
|
350
363
|
def __delitem__(self, key: int | slice) -> None:
|
|
351
364
|
"""Delete self[key]."""
|
|
@@ -423,10 +436,11 @@ class BMFaceSeq:
|
|
|
423
436
|
|
|
424
437
|
:type: :class:`BMFace` or None"""
|
|
425
438
|
|
|
426
|
-
|
|
427
|
-
|
|
439
|
+
@property
|
|
440
|
+
def layers(self) -> BMLayerAccessFace:
|
|
441
|
+
"""custom-data layers (read-only).
|
|
428
442
|
|
|
429
|
-
:type: :class:`BMLayerAccessFace`"""
|
|
443
|
+
:type: :class:`BMLayerAccessFace`"""
|
|
430
444
|
|
|
431
445
|
def __contains__(self, key: object, /) -> bool:
|
|
432
446
|
"""Return key in self."""
|
|
@@ -663,15 +677,17 @@ class BMLayerAccessVert:
|
|
|
663
677
|
class BMLayerCollection:
|
|
664
678
|
"""Gives access to a collection of custom-data layers of the same type and behaves like Python dictionaries, except for the ability to do list like index access."""
|
|
665
679
|
|
|
666
|
-
|
|
667
|
-
|
|
680
|
+
@property
|
|
681
|
+
def active(self) -> BMLayerItem:
|
|
682
|
+
"""The active layer of this type (read-only).
|
|
668
683
|
|
|
669
|
-
:type: :class:`BMLayerItem`"""
|
|
684
|
+
:type: :class:`BMLayerItem`"""
|
|
670
685
|
|
|
671
|
-
|
|
672
|
-
|
|
686
|
+
@property
|
|
687
|
+
def is_singleton(self) -> bool:
|
|
688
|
+
"""True if there can exists only one layer of this type (read-only).
|
|
673
689
|
|
|
674
|
-
:type: bool"""
|
|
690
|
+
:type: bool"""
|
|
675
691
|
|
|
676
692
|
def __contains__(self, key: object, /) -> bool:
|
|
677
693
|
"""Return key in self."""
|
|
@@ -717,10 +733,11 @@ class BMLayerCollection:
|
|
|
717
733
|
class BMLayerItem:
|
|
718
734
|
"""Exposes a single custom data layer, their main purpose is for use as item accessors to custom-data when used with vert/edge/face/loop data."""
|
|
719
735
|
|
|
720
|
-
|
|
721
|
-
|
|
736
|
+
@property
|
|
737
|
+
def name(self) -> str:
|
|
738
|
+
"""The layers unique name (read-only).
|
|
722
739
|
|
|
723
|
-
:type: str"""
|
|
740
|
+
:type: str"""
|
|
724
741
|
|
|
725
742
|
def copy_from(self, other: BMLayerItem) -> None:
|
|
726
743
|
"""Return a copy of the layer"""
|
|
@@ -728,16 +745,17 @@ class BMLayerItem:
|
|
|
728
745
|
class BMLoop:
|
|
729
746
|
"""This is normally accessed from :class:`BMFace.loops` where each face loop represents a corner of the face."""
|
|
730
747
|
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
:type: :class:`BMEdge`"""
|
|
748
|
+
@property
|
|
749
|
+
def edge(self) -> BMEdge:
|
|
750
|
+
"""The loop's edge (between this loop and the next), (read-only).
|
|
735
751
|
|
|
736
|
-
|
|
737
|
-
"""The face this loop makes (read-only).
|
|
752
|
+
:type: :class:`BMEdge`"""
|
|
738
753
|
|
|
739
|
-
|
|
754
|
+
@property
|
|
755
|
+
def face(self) -> BMFace:
|
|
756
|
+
"""The face this loop makes (read-only).
|
|
740
757
|
|
|
758
|
+
:type: :class:`BMFace`"""
|
|
741
759
|
index: int
|
|
742
760
|
"""Index of this element.
|
|
743
761
|
|
|
@@ -751,50 +769,55 @@ class BMLoop:
|
|
|
751
769
|
|
|
752
770
|
To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
|
|
753
771
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
:type: bool"""
|
|
772
|
+
@property
|
|
773
|
+
def is_convex(self) -> bool:
|
|
774
|
+
"""True when this loop is at the convex corner of a face, depends on a valid face normal (read-only).
|
|
758
775
|
|
|
776
|
+
:type: bool"""
|
|
759
777
|
is_valid: bool
|
|
760
778
|
"""True when this element is valid (hasn't been removed).
|
|
761
779
|
|
|
762
780
|
:type: bool"""
|
|
763
781
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
:type: :class:`BMLoop`"""
|
|
782
|
+
@property
|
|
783
|
+
def link_loop_next(self) -> BMLoop:
|
|
784
|
+
"""The next face corner (read-only).
|
|
768
785
|
|
|
769
|
-
|
|
770
|
-
"""The previous face corner (read-only).
|
|
786
|
+
:type: :class:`BMLoop`"""
|
|
771
787
|
|
|
772
|
-
|
|
788
|
+
@property
|
|
789
|
+
def link_loop_prev(self) -> BMLoop:
|
|
790
|
+
"""The previous face corner (read-only).
|
|
773
791
|
|
|
774
|
-
|
|
775
|
-
"""The next loop around the edge (read-only).
|
|
792
|
+
:type: :class:`BMLoop`"""
|
|
776
793
|
|
|
777
|
-
|
|
794
|
+
@property
|
|
795
|
+
def link_loop_radial_next(self) -> BMLoop:
|
|
796
|
+
"""The next loop around the edge (read-only).
|
|
778
797
|
|
|
779
|
-
|
|
780
|
-
"""The previous loop around the edge (read-only).
|
|
798
|
+
:type: :class:`BMLoop`"""
|
|
781
799
|
|
|
782
|
-
|
|
800
|
+
@property
|
|
801
|
+
def link_loop_radial_prev(self) -> BMLoop:
|
|
802
|
+
"""The previous loop around the edge (read-only).
|
|
783
803
|
|
|
784
|
-
|
|
785
|
-
"""Loops connected to this loop, (read-only).
|
|
804
|
+
:type: :class:`BMLoop`"""
|
|
786
805
|
|
|
787
|
-
|
|
806
|
+
@property
|
|
807
|
+
def link_loops(self) -> object:
|
|
808
|
+
"""Loops connected to this loop, (read-only).
|
|
788
809
|
|
|
810
|
+
:type: :class:`BMElemSeq` of :class:`BMLoop`"""
|
|
789
811
|
tag: bool
|
|
790
812
|
"""Generic attribute scripts can use for own logic
|
|
791
813
|
|
|
792
814
|
:type: bool"""
|
|
793
815
|
|
|
794
|
-
|
|
795
|
-
|
|
816
|
+
@property
|
|
817
|
+
def vert(self) -> BMVert:
|
|
818
|
+
"""The loop's vertex (read-only).
|
|
796
819
|
|
|
797
|
-
:type: :class:`BMVert`"""
|
|
820
|
+
:type: :class:`BMVert`"""
|
|
798
821
|
|
|
799
822
|
def __delitem__(self, key: int | slice) -> None:
|
|
800
823
|
"""Delete self[key]."""
|
|
@@ -831,10 +854,11 @@ class BMLoop:
|
|
|
831
854
|
def __iter__(self) -> Iterator[object]: ...
|
|
832
855
|
|
|
833
856
|
class BMLoopSeq:
|
|
834
|
-
|
|
835
|
-
|
|
857
|
+
@property
|
|
858
|
+
def layers(self) -> BMLayerAccessLoop:
|
|
859
|
+
"""custom-data layers (read-only).
|
|
836
860
|
|
|
837
|
-
:type: :class:`BMLayerAccessLoop`"""
|
|
861
|
+
:type: :class:`BMLayerAccessLoop`"""
|
|
838
862
|
|
|
839
863
|
class BMLoopUV:
|
|
840
864
|
pin_uv: bool
|
|
@@ -852,18 +876,26 @@ class BMLoopUV:
|
|
|
852
876
|
|
|
853
877
|
:type: bool"""
|
|
854
878
|
|
|
855
|
-
|
|
856
|
-
|
|
879
|
+
@property
|
|
880
|
+
def uv(self) -> mathutils.Vector:
|
|
881
|
+
"""Loops UV (as a 2D Vector).
|
|
882
|
+
|
|
883
|
+
:type: :class:`mathutils.Vector`"""
|
|
857
884
|
|
|
858
|
-
|
|
885
|
+
@uv.setter
|
|
886
|
+
def uv(self, value: mathutils.Vector | Sequence[float]) -> None: ...
|
|
859
887
|
|
|
860
888
|
class BMVert:
|
|
861
889
|
"""The BMesh vertex type"""
|
|
862
890
|
|
|
863
|
-
|
|
864
|
-
|
|
891
|
+
@property
|
|
892
|
+
def co(self) -> mathutils.Vector:
|
|
893
|
+
"""The coordinates for this vertex as a 3D, wrapped vector.
|
|
865
894
|
|
|
866
|
-
:type: :class:`mathutils.Vector`"""
|
|
895
|
+
:type: :class:`mathutils.Vector`"""
|
|
896
|
+
|
|
897
|
+
@co.setter
|
|
898
|
+
def co(self, value: mathutils.Vector | Sequence[float]) -> None: ...
|
|
867
899
|
|
|
868
900
|
hide: bool
|
|
869
901
|
"""Hidden state of this element.
|
|
@@ -883,45 +915,54 @@ class BMVert:
|
|
|
883
915
|
|
|
884
916
|
To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
|
|
885
917
|
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
:type: bool"""
|
|
918
|
+
@property
|
|
919
|
+
def is_boundary(self) -> bool:
|
|
920
|
+
"""True when this vertex is connected to boundary edges (read-only).
|
|
890
921
|
|
|
891
|
-
|
|
892
|
-
"""True when this vertex is manifold (read-only).
|
|
922
|
+
:type: bool"""
|
|
893
923
|
|
|
894
|
-
|
|
924
|
+
@property
|
|
925
|
+
def is_manifold(self) -> bool:
|
|
926
|
+
"""True when this vertex is manifold (read-only).
|
|
895
927
|
|
|
928
|
+
:type: bool"""
|
|
896
929
|
is_valid: bool
|
|
897
930
|
"""True when this element is valid (hasn't been removed).
|
|
898
931
|
|
|
899
932
|
:type: bool"""
|
|
900
933
|
|
|
901
|
-
|
|
902
|
-
|
|
934
|
+
@property
|
|
935
|
+
def is_wire(self) -> bool:
|
|
936
|
+
"""True when this vertex is not connected to any faces (read-only).
|
|
903
937
|
|
|
904
|
-
:type: bool"""
|
|
938
|
+
:type: bool"""
|
|
939
|
+
|
|
940
|
+
@property
|
|
941
|
+
def link_edges(self) -> object:
|
|
942
|
+
"""Edges connected to this vertex (read-only).
|
|
905
943
|
|
|
906
|
-
|
|
907
|
-
"""Edges connected to this vertex (read-only).
|
|
944
|
+
:type: :class:`BMElemSeq` of :class:`BMEdge`"""
|
|
908
945
|
|
|
909
|
-
|
|
946
|
+
@property
|
|
947
|
+
def link_faces(self) -> object:
|
|
948
|
+
"""Faces connected to this vertex (read-only).
|
|
910
949
|
|
|
911
|
-
|
|
912
|
-
"""Faces connected to this vertex (read-only).
|
|
950
|
+
:type: :class:`BMElemSeq` of :class:`BMFace`"""
|
|
913
951
|
|
|
914
|
-
|
|
952
|
+
@property
|
|
953
|
+
def link_loops(self) -> object:
|
|
954
|
+
"""Loops that use this vertex (read-only).
|
|
915
955
|
|
|
916
|
-
|
|
917
|
-
"""Loops that use this vertex (read-only).
|
|
956
|
+
:type: :class:`BMElemSeq` of :class:`BMLoop`"""
|
|
918
957
|
|
|
919
|
-
|
|
958
|
+
@property
|
|
959
|
+
def normal(self) -> mathutils.Vector:
|
|
960
|
+
"""The normal for this vertex as a 3D, wrapped vector.
|
|
920
961
|
|
|
921
|
-
|
|
922
|
-
"""The normal for this vertex as a 3D, wrapped vector.
|
|
962
|
+
:type: :class:`mathutils.Vector`"""
|
|
923
963
|
|
|
924
|
-
|
|
964
|
+
@normal.setter
|
|
965
|
+
def normal(self, value: mathutils.Vector | Sequence[float]) -> None: ...
|
|
925
966
|
|
|
926
967
|
select: bool
|
|
927
968
|
"""Selected state of this element.
|
|
@@ -978,10 +1019,11 @@ class BMVert:
|
|
|
978
1019
|
def __iter__(self) -> Iterator[object]: ...
|
|
979
1020
|
|
|
980
1021
|
class BMVertSeq:
|
|
981
|
-
|
|
982
|
-
|
|
1022
|
+
@property
|
|
1023
|
+
def layers(self) -> BMLayerAccessVert:
|
|
1024
|
+
"""custom-data layers (read-only).
|
|
983
1025
|
|
|
984
|
-
:type: :class:`BMLayerAccessVert`"""
|
|
1026
|
+
:type: :class:`BMLayerAccessVert`"""
|
|
985
1027
|
|
|
986
1028
|
def __contains__(self, key: object, /) -> bool:
|
|
987
1029
|
"""Return key in self."""
|
|
@@ -1025,16 +1067,17 @@ class BMVertSeq:
|
|
|
1025
1067
|
class BMesh:
|
|
1026
1068
|
"""The BMesh data structure"""
|
|
1027
1069
|
|
|
1028
|
-
|
|
1029
|
-
|
|
1070
|
+
@property
|
|
1071
|
+
def edges(self) -> BMEdgeSeq:
|
|
1072
|
+
"""This meshes edge sequence (read-only).
|
|
1030
1073
|
|
|
1031
|
-
:type: :class:`BMEdgeSeq`"""
|
|
1074
|
+
:type: :class:`BMEdgeSeq`"""
|
|
1032
1075
|
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
:type: :class:`BMFaceSeq`"""
|
|
1076
|
+
@property
|
|
1077
|
+
def faces(self) -> BMFaceSeq:
|
|
1078
|
+
"""This meshes face sequence (read-only).
|
|
1037
1079
|
|
|
1080
|
+
:type: :class:`BMFaceSeq`"""
|
|
1038
1081
|
is_valid: bool
|
|
1039
1082
|
"""True when this element is valid (hasn't been removed).
|
|
1040
1083
|
|
|
@@ -1045,15 +1088,15 @@ class BMesh:
|
|
|
1045
1088
|
|
|
1046
1089
|
:type: bool"""
|
|
1047
1090
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
:type: :class:`BMLoopSeq`
|
|
1091
|
+
@property
|
|
1092
|
+
def loops(self) -> BMLoopSeq:
|
|
1093
|
+
"""This meshes loops (read-only).
|
|
1052
1094
|
|
|
1053
|
-
|
|
1095
|
+
:type: :class:`BMLoopSeq`
|
|
1054
1096
|
|
|
1055
|
-
|
|
1097
|
+
.. note::
|
|
1056
1098
|
|
|
1099
|
+
Loops must be accessed via faces, this is only exposed for layer access."""
|
|
1057
1100
|
select_history: BMEditSelSeq
|
|
1058
1101
|
"""Sequence of selected items (the last is displayed as active).
|
|
1059
1102
|
|
|
@@ -1064,10 +1107,11 @@ class BMesh:
|
|
|
1064
1107
|
|
|
1065
1108
|
:type: set"""
|
|
1066
1109
|
|
|
1067
|
-
|
|
1068
|
-
|
|
1110
|
+
@property
|
|
1111
|
+
def verts(self) -> BMVertSeq:
|
|
1112
|
+
"""This meshes vert sequence (read-only).
|
|
1069
1113
|
|
|
1070
|
-
:type: :class:`BMVertSeq`"""
|
|
1114
|
+
:type: :class:`BMVertSeq`"""
|
|
1071
1115
|
|
|
1072
1116
|
def calc_loop_triangles(self) -> list[tuple[BMLoop, BMLoop, BMLoop]]:
|
|
1073
1117
|
"""Calculate triangle tessellation from quads/ngons."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import bpy.types
|
|
2
|
+
|
|
3
|
+
def clear_by_owner(owner: object) -> None:
|
|
4
|
+
"""Clear all subscribers using this owner."""
|
|
5
|
+
|
|
6
|
+
def publish_rna(
|
|
7
|
+
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
|
|
8
|
+
) -> None: ...
|
|
9
|
+
def subscribe_rna(
|
|
10
|
+
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
|
|
11
|
+
owner: object,
|
|
12
|
+
args: object,
|
|
13
|
+
notify: object,
|
|
14
|
+
options: set[str] = ...,
|
|
15
|
+
) -> None: ...
|