blender-python-stubs 5.1.0.3__tar.gz → 5.2.1.1__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-5.1.0.3 → blender_python_stubs-5.2.1.1}/PKG-INFO +5 -5
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/README.md +2 -2
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/aud/__init__.pyi +120 -11
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/blf/__init__.pyi +4 -1
- blender_python_stubs-5.2.1.1/blf/types/__init__.pyi +16 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/ops/__init__.pyi +19 -4
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/app/__init__.pyi +1 -1
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/msgbus/__init__.pyi +2 -3
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/ops/__init__.pyi +2078 -190
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/types/__init__.pyi +5281 -681
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/utils/__init__.pyi +4 -1
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/utils/previews/__init__.pyi +1 -1
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/anim_utils/__init__.pyi +13 -5
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/io_utils/__init__.pyi +12 -6
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/node_utils/__init__.pyi +3 -1
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/object_utils/__init__.pyi +5 -2
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/chainingiterators/__init__.pyi +81 -64
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/functions/__init__.pyi +119 -103
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/predicates/__init__.pyi +95 -91
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/shaders/__init__.pyi +110 -109
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/types/__init__.pyi +607 -254
- blender_python_stubs-5.2.1.1/freestyle/utils/__init__.pyi +237 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/__init__.pyi +5 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/platform/__init__.pyi +3 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/state/__init__.pyi +11 -2
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/types/__init__.pyi +136 -75
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu_extras/batch/__init__.pyi +1 -1
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/idprop/types/__init__.pyi +15 -5
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/imbuf/__init__.pyi +21 -1
- blender_python_stubs-5.2.1.1/imbuf/types/__init__.pyi +148 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/__init__.pyi +20 -10
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/pyproject.toml +2 -2
- blender_python_stubs-5.1.0.3/freestyle/utils/__init__.pyi +0 -159
- blender_python_stubs-5.1.0.3/imbuf/types/__init__.pyi +0 -50
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/.gitignore +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/.python-version +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/LICENSE +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/aud/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bl_math/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bl_math/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/blf/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/geometry/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/types/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bmesh/utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/path/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/props/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy/utils/toolsystem/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/asset_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/id_map_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/image_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/mesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/node_shader_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/bpy_extras/view3d_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/freestyle/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/capabilities/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/compute/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/matrix/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/select/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/shader/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu/texture/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu_extras/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu_extras/presets/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/gpu_extras/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/idprop/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/idprop/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/imbuf/py.typed +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/bvhtree/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/geometry/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/interpolate/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/kdtree/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/noise/__init__.pyi +0 -0
- {blender_python_stubs-5.1.0.3 → blender_python_stubs-5.2.1.1}/mathutils/py.typed +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: blender-python-stubs
|
|
3
|
-
Version: 5.1.
|
|
4
|
-
Summary: Type stubs for Blender 5.
|
|
3
|
+
Version: 5.2.1.1
|
|
4
|
+
Summary: Type stubs for Blender 5.2 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
|
|
7
7
|
Project-URL: Repository, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs
|
|
@@ -23,14 +23,14 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
|
|
24
24
|
[](https://pypi.org/project/blender-python-stubs/)
|
|
25
25
|
|
|
26
|
-
Strict type stubs for Blender 5.
|
|
26
|
+
Strict type stubs for Blender 5.2 Python API.
|
|
27
27
|
|
|
28
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`.
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
pip install "blender-python-stubs>=5.
|
|
33
|
+
pip install "blender-python-stubs>=5.2,<5.3"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Features
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/blender-python-stubs/)
|
|
4
4
|
|
|
5
|
-
Strict type stubs for Blender 5.
|
|
5
|
+
Strict type stubs for Blender 5.2 Python API.
|
|
6
6
|
|
|
7
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`.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pip install "blender-python-stubs>=5.
|
|
12
|
+
pip install "blender-python-stubs>=5.2,<5.3"
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Features
|
|
@@ -139,7 +139,15 @@ STRETCHER_QUALITY_FAST: int
|
|
|
139
139
|
STRETCHER_QUALITY_HIGH: int
|
|
140
140
|
|
|
141
141
|
class AnimateableProperty:
|
|
142
|
-
"""
|
|
142
|
+
""".. class:: AnimateableProperty(count, value=0.0, /)
|
|
143
|
+
|
|
144
|
+
An AnimateableProperty object stores an array of float values for animating sound properties (e.g. pan, volume, pitch-scale).
|
|
145
|
+
|
|
146
|
+
:arg count: The number of float values to store per frame.
|
|
147
|
+
:type count: int
|
|
148
|
+
:arg value: The initial value for all elements.
|
|
149
|
+
:type value: float
|
|
150
|
+
"""
|
|
143
151
|
|
|
144
152
|
animated: object
|
|
145
153
|
"""Whether the property is animated."""
|
|
@@ -147,6 +155,7 @@ class AnimateableProperty:
|
|
|
147
155
|
count: object
|
|
148
156
|
"""The count of floats for a property."""
|
|
149
157
|
|
|
158
|
+
def __init__(self, count: int, value: float = 0.0, /) -> None: ...
|
|
150
159
|
def read(self, position: float) -> object:
|
|
151
160
|
"""Reads the properties value at the given position.
|
|
152
161
|
|
|
@@ -177,7 +186,23 @@ class AnimateableProperty:
|
|
|
177
186
|
"""
|
|
178
187
|
|
|
179
188
|
class Device:
|
|
180
|
-
"""
|
|
189
|
+
""".. class:: Device(type='', rate=48000.0, channels=2, format=36, buffer_size=1024, name='')
|
|
190
|
+
|
|
191
|
+
Device objects represent an audio output backend like OpenAL or SDL, but might also represent a file output or RAM buffer output.
|
|
192
|
+
|
|
193
|
+
:arg type: The device type. An empty string means the default device.
|
|
194
|
+
:type type: string
|
|
195
|
+
:arg rate: The sample rate in Hz.
|
|
196
|
+
:type rate: double
|
|
197
|
+
:arg channels: The number of channels.
|
|
198
|
+
:type channels: int
|
|
199
|
+
:arg format: The sample format.
|
|
200
|
+
:type format: int
|
|
201
|
+
:arg buffer_size: The size of the audio buffer in samples.
|
|
202
|
+
:type buffer_size: int
|
|
203
|
+
:arg name: The name of the device.
|
|
204
|
+
:type name: string
|
|
205
|
+
"""
|
|
181
206
|
|
|
182
207
|
channels: object
|
|
183
208
|
"""The channel count of the device."""
|
|
@@ -213,6 +238,15 @@ The speed of sound in air is typically 343.3 m/s."""
|
|
|
213
238
|
volume: object
|
|
214
239
|
"""The overall volume of the device."""
|
|
215
240
|
|
|
241
|
+
def __init__(
|
|
242
|
+
self,
|
|
243
|
+
type: str = "",
|
|
244
|
+
rate: float = 48000.0,
|
|
245
|
+
channels: int = 2,
|
|
246
|
+
format: int = 36,
|
|
247
|
+
buffer_size: int = 1024,
|
|
248
|
+
name: str = "",
|
|
249
|
+
) -> None: ...
|
|
216
250
|
def lock(self) -> None:
|
|
217
251
|
"""Locks the device so that it's guaranteed, that no samples are
|
|
218
252
|
read from the streams until :meth:`unlock` is called.
|
|
@@ -232,8 +266,13 @@ The speed of sound in air is typically 343.3 m/s."""
|
|
|
232
266
|
"""
|
|
233
267
|
|
|
234
268
|
class DynamicMusic:
|
|
235
|
-
"""
|
|
236
|
-
|
|
269
|
+
""".. class:: DynamicMusic(device, /)
|
|
270
|
+
|
|
271
|
+
The DynamicMusic object allows to play music depending on a current scene, scene changes are managed by the class, with the possibility of custom transitions.
|
|
272
|
+
The default transition is a crossfade effect, and the default scene is silent and has id 0.
|
|
273
|
+
|
|
274
|
+
:arg device: The device that will be used to play sounds.
|
|
275
|
+
:type device: :class:`Device`
|
|
237
276
|
"""
|
|
238
277
|
|
|
239
278
|
fadeTime: object
|
|
@@ -251,6 +290,7 @@ class DynamicMusic:
|
|
|
251
290
|
volume: object
|
|
252
291
|
"""The volume of the scene."""
|
|
253
292
|
|
|
293
|
+
def __init__(self, device: Device, /) -> None: ...
|
|
254
294
|
def addScene(self, scene: Sound, /) -> int:
|
|
255
295
|
"""Adds a new scene."""
|
|
256
296
|
|
|
@@ -267,7 +307,10 @@ class DynamicMusic:
|
|
|
267
307
|
"""Stops playback of the scene."""
|
|
268
308
|
|
|
269
309
|
class HRTF:
|
|
270
|
-
"""
|
|
310
|
+
""".. class:: HRTF()
|
|
311
|
+
|
|
312
|
+
An HRTF object represents a set of head related transfer functions as impulse responses. It's used for binaural sound.
|
|
313
|
+
"""
|
|
271
314
|
|
|
272
315
|
def addImpulseResponseFromSound(
|
|
273
316
|
self, sound: Sound, azimuth: float, elevation: float
|
|
@@ -369,11 +412,26 @@ This can be used to seek the sound to some position and start playback again.
|
|
|
369
412
|
"""Stops playback."""
|
|
370
413
|
|
|
371
414
|
class ImpulseResponse:
|
|
372
|
-
"""
|
|
415
|
+
""".. class:: ImpulseResponse(sound, /)
|
|
416
|
+
|
|
417
|
+
An ImpulseResponse object represents a filter with which to convolve a sound.
|
|
418
|
+
|
|
419
|
+
:arg sound: The sound to use as the impulse response.
|
|
420
|
+
:type sound: :class:`Sound`
|
|
421
|
+
"""
|
|
422
|
+
|
|
423
|
+
def __init__(self, sound: Sound, /) -> None: ...
|
|
373
424
|
|
|
374
425
|
class PlaybackManager:
|
|
375
|
-
"""
|
|
426
|
+
""".. class:: PlaybackManager(device, /)
|
|
427
|
+
|
|
428
|
+
A PlaybackManager object allows to easily control groups of sounds organized in categories.
|
|
376
429
|
|
|
430
|
+
:arg device: The device that will be used to play sounds.
|
|
431
|
+
:type device: :class:`Device`
|
|
432
|
+
"""
|
|
433
|
+
|
|
434
|
+
def __init__(self, device: Device, /) -> None: ...
|
|
377
435
|
def addCategory(self, volume: float) -> int:
|
|
378
436
|
"""Adds a category with a custom volume."""
|
|
379
437
|
|
|
@@ -399,7 +457,19 @@ class PlaybackManager:
|
|
|
399
457
|
"""Stops playback of the category."""
|
|
400
458
|
|
|
401
459
|
class Sequence(Sound, Generic[_T]):
|
|
402
|
-
"""
|
|
460
|
+
""".. class:: Sequence(channels=2, rate=48000.0, fps=30.0, muted=False)
|
|
461
|
+
|
|
462
|
+
This sound represents sequenced entries to play a sound sequence.
|
|
463
|
+
|
|
464
|
+
:arg channels: The number of channels.
|
|
465
|
+
:type channels: int
|
|
466
|
+
:arg rate: The sample rate in Hz.
|
|
467
|
+
:type rate: double
|
|
468
|
+
:arg fps: The frames per second of the sequence.
|
|
469
|
+
:type fps: float
|
|
470
|
+
:arg muted: Whether the sequence is muted.
|
|
471
|
+
:type muted: bool
|
|
472
|
+
"""
|
|
403
473
|
|
|
404
474
|
channels: object
|
|
405
475
|
"""The channel count of the sequence."""
|
|
@@ -426,6 +496,13 @@ This factor is a scaling factor for the velocity vectors in doppler calculation.
|
|
|
426
496
|
"""The speed of sound of the sequence.
|
|
427
497
|
The speed of sound in air is typically 343.3 m/s."""
|
|
428
498
|
|
|
499
|
+
def __init__(
|
|
500
|
+
self,
|
|
501
|
+
channels: int = 2,
|
|
502
|
+
rate: float = 48000.0,
|
|
503
|
+
fps: float = 30.0,
|
|
504
|
+
muted: bool = False,
|
|
505
|
+
) -> None: ...
|
|
429
506
|
def add(self, sound: Sound, begin: float, end: float, skip: float) -> SequenceEntry:
|
|
430
507
|
"""Adds a new entry to the sequence."""
|
|
431
508
|
|
|
@@ -507,7 +584,16 @@ At this distance the volume will be exactly :attr:`volume`.
|
|
|
507
584
|
"""Writes animation data to a sequenced entry."""
|
|
508
585
|
|
|
509
586
|
class Sound:
|
|
510
|
-
"""
|
|
587
|
+
""".. class:: Sound(filename, stream=0)
|
|
588
|
+
|
|
589
|
+
Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback.
|
|
590
|
+
|
|
591
|
+
:arg filename: Path of the file.
|
|
592
|
+
:type filename: string
|
|
593
|
+
:arg stream: The index of the audio stream within the file if it
|
|
594
|
+
contains multiple audio streams, 0 by default.
|
|
595
|
+
:type stream: int
|
|
596
|
+
"""
|
|
511
597
|
|
|
512
598
|
length: object
|
|
513
599
|
"""The sample specification of the sound as a tuple with rate and channel count."""
|
|
@@ -515,6 +601,7 @@ class Sound:
|
|
|
515
601
|
specs: object
|
|
516
602
|
"""The sample specification of the sound as a tuple with rate and channel count."""
|
|
517
603
|
|
|
604
|
+
def __init__(self, filename: str, stream: int = 0) -> None: ...
|
|
518
605
|
def ADSR(
|
|
519
606
|
self, attack: float, decay: float, sustain: float, release: float
|
|
520
607
|
) -> Sound:
|
|
@@ -711,7 +798,17 @@ class Sound:
|
|
|
711
798
|
"""Writes the sound to a file."""
|
|
712
799
|
|
|
713
800
|
class Source:
|
|
714
|
-
"""
|
|
801
|
+
""".. class:: Source(azimuth, elevation, distance, /)
|
|
802
|
+
|
|
803
|
+
The source object represents the source position of a binaural sound.
|
|
804
|
+
|
|
805
|
+
:arg azimuth: The azimuth angle in degrees.
|
|
806
|
+
:type azimuth: float
|
|
807
|
+
:arg elevation: The elevation angle in degrees.
|
|
808
|
+
:type elevation: float
|
|
809
|
+
:arg distance: The distance of the source.
|
|
810
|
+
:type distance: float
|
|
811
|
+
"""
|
|
715
812
|
|
|
716
813
|
azimuth: object
|
|
717
814
|
"""The azimuth angle."""
|
|
@@ -722,8 +819,20 @@ class Source:
|
|
|
722
819
|
elevation: object
|
|
723
820
|
"""The elevation angle."""
|
|
724
821
|
|
|
822
|
+
def __init__(
|
|
823
|
+
self, azimuth: float, elevation: float, distance: float, /
|
|
824
|
+
) -> None: ...
|
|
825
|
+
|
|
725
826
|
class ThreadPool:
|
|
726
|
-
"""
|
|
827
|
+
""".. class:: ThreadPool(nThreads, /)
|
|
828
|
+
|
|
829
|
+
A ThreadPool is used to parallelize convolution efficiently.
|
|
830
|
+
|
|
831
|
+
:arg nThreads: The number of threads in the pool.
|
|
832
|
+
:type nThreads: int
|
|
833
|
+
"""
|
|
834
|
+
|
|
835
|
+
def __init__(self, nThreads: int, /) -> None: ...
|
|
727
836
|
|
|
728
837
|
class error:
|
|
729
838
|
"""Common base class for all non-exit exceptions."""
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"""This module provides access to Blender's text drawing functions."""
|
|
2
2
|
|
|
3
|
+
from . import types as types
|
|
3
4
|
import imbuf.types
|
|
4
5
|
|
|
5
6
|
CLIPPING: int
|
|
6
7
|
|
|
7
8
|
MONOCHROME: int
|
|
8
9
|
|
|
10
|
+
NO_FALLBACK: int
|
|
11
|
+
|
|
9
12
|
ROTATION: int
|
|
10
13
|
|
|
11
14
|
SHADOW: int
|
|
@@ -20,7 +23,7 @@ def aspect(fontid: int, aspect: float) -> None:
|
|
|
20
23
|
|
|
21
24
|
def bind_imbuf(
|
|
22
25
|
fontid: int, imbuf: imbuf.types.ImBuf, *, display_name: str | None = None
|
|
23
|
-
) -> object:
|
|
26
|
+
) -> blf.types.object:
|
|
24
27
|
"""Context manager to draw text into an image buffer instead of the GPU's context.
|
|
25
28
|
|
|
26
29
|
:param fontid: The id of the typeface as returned by :func:`blf.load`, for default font use 0.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""This module provides access to font drawing types."""
|
|
2
|
+
|
|
3
|
+
from typing import Self
|
|
4
|
+
|
|
5
|
+
class BLFImBufContext:
|
|
6
|
+
"""Context manager returned by :func:`blf.bind_imbuf` that binds an image buffer
|
|
7
|
+
as the destination for text drawing.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
def __enter__(self) -> Self: ...
|
|
11
|
+
def __exit__(
|
|
12
|
+
self,
|
|
13
|
+
exc_type: type[BaseException] | None,
|
|
14
|
+
exc_val: BaseException | None,
|
|
15
|
+
exc_tb: object,
|
|
16
|
+
) -> None: ...
|
|
@@ -35,6 +35,11 @@ def bridge_loops(*args: object, **kwargs: object) -> None:
|
|
|
35
35
|
-> dict(faces=[], edges=[])
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
|
+
def circularize(*args: object, **kwargs: object) -> None:
|
|
39
|
+
"""BMeshOpFunc bmesh.ops.circularize(bmesh, geom=[], factor=0.0, custom_radius=0.0, angle=0.0, fit_method=0, flatten=0.0, regular=False, lock_x=False, lock_y=False, lock_z=False, mirror_x=False, mirror_y=False, mirror_z=False)
|
|
40
|
+
-> dict()
|
|
41
|
+
"""
|
|
42
|
+
|
|
38
43
|
def collapse(*args: object, **kwargs: object) -> None:
|
|
39
44
|
"""BMeshOpFunc bmesh.ops.collapse(bmesh, edges=[], uvs=False)
|
|
40
45
|
-> dict()
|
|
@@ -126,7 +131,7 @@ def dissolve_degenerate(*args: object, **kwargs: object) -> None:
|
|
|
126
131
|
"""
|
|
127
132
|
|
|
128
133
|
def dissolve_edges(*args: object, **kwargs: object) -> None:
|
|
129
|
-
"""BMeshOpFunc bmesh.ops.dissolve_edges(bmesh, edges=[], use_verts=False, use_face_split=False, angle_threshold=0.0)
|
|
134
|
+
"""BMeshOpFunc bmesh.ops.dissolve_edges(bmesh, edges=[], use_verts=False, use_face_split=False, angle_threshold=0.0, use_preserve_quads=False)
|
|
130
135
|
-> dict(region=[])
|
|
131
136
|
"""
|
|
132
137
|
|
|
@@ -195,6 +200,11 @@ def find_doubles(*args: object, **kwargs: object) -> None:
|
|
|
195
200
|
-> dict(targetmap={})
|
|
196
201
|
"""
|
|
197
202
|
|
|
203
|
+
def flatten(*args: object, **kwargs: object) -> None:
|
|
204
|
+
"""BMeshOpFunc bmesh.ops.flatten(bmesh, geom=[], factor=0.0, method=0, view_normal=Vector(), lock_x=False, lock_y=False, lock_z=False)
|
|
205
|
+
-> dict()
|
|
206
|
+
"""
|
|
207
|
+
|
|
198
208
|
def flip_quad_tessellation(*args: object, **kwargs: object) -> None:
|
|
199
209
|
"""BMeshOpFunc bmesh.ops.flip_quad_tessellation(bmesh, faces=[])
|
|
200
210
|
-> dict()
|
|
@@ -251,12 +261,12 @@ def planar_faces(*args: object, **kwargs: object) -> None:
|
|
|
251
261
|
"""
|
|
252
262
|
|
|
253
263
|
def pointmerge(*args: object, **kwargs: object) -> None:
|
|
254
|
-
"""BMeshOpFunc bmesh.ops.pointmerge(bmesh, verts=[], merge_co=Vector())
|
|
264
|
+
"""BMeshOpFunc bmesh.ops.pointmerge(bmesh, verts=[], merge_co=Vector(), vert_target=None)
|
|
255
265
|
-> dict()
|
|
256
266
|
"""
|
|
257
267
|
|
|
258
268
|
def pointmerge_facedata(*args: object, **kwargs: object) -> None:
|
|
259
|
-
"""BMeshOpFunc bmesh.ops.pointmerge_facedata(bmesh, verts=[],
|
|
269
|
+
"""BMeshOpFunc bmesh.ops.pointmerge_facedata(bmesh, verts=[], vert_target=None)
|
|
260
270
|
-> dict()
|
|
261
271
|
"""
|
|
262
272
|
|
|
@@ -335,6 +345,11 @@ def solidify(*args: object, **kwargs: object) -> None:
|
|
|
335
345
|
-> dict(geom=[])
|
|
336
346
|
"""
|
|
337
347
|
|
|
348
|
+
def space_edge_loops_evenly(*args: object, **kwargs: object) -> None:
|
|
349
|
+
"""BMeshOpFunc bmesh.ops.space_edge_loops_evenly(bmesh, geom=[], interpolation='CUBIC', factor=0.0, lock_x=False, lock_y=False, lock_z=False)
|
|
350
|
+
-> dict()
|
|
351
|
+
"""
|
|
352
|
+
|
|
338
353
|
def spin(*args: object, **kwargs: object) -> None:
|
|
339
354
|
"""BMeshOpFunc bmesh.ops.spin(bmesh, geom=[], cent=Vector(), axis=Vector(), dvec=Vector(), angle=0.0, space=Matrix(), steps=0, use_merge=False, use_normal_flip=False, use_duplicate=False)
|
|
340
355
|
-> dict(geom_last=[])
|
|
@@ -391,7 +406,7 @@ def unsubdivide(*args: object, **kwargs: object) -> None:
|
|
|
391
406
|
"""
|
|
392
407
|
|
|
393
408
|
def weld_verts(*args: object, **kwargs: object) -> None:
|
|
394
|
-
"""BMeshOpFunc bmesh.ops.weld_verts(bmesh, targetmap={}, use_centroid=False)
|
|
409
|
+
"""BMeshOpFunc bmesh.ops.weld_verts(bmesh, targetmap={}, use_centroid=False, average_vert_data=False)
|
|
395
410
|
-> dict()
|
|
396
411
|
"""
|
|
397
412
|
|
|
@@ -131,7 +131,7 @@ version_string: str
|
|
|
131
131
|
def count(value: object, /) -> None:
|
|
132
132
|
"""Return number of occurrences of value."""
|
|
133
133
|
|
|
134
|
-
def help_text(all: bool) -> str:
|
|
134
|
+
def help_text(*, all: bool = False) -> str:
|
|
135
135
|
"""Return the help text as a string.
|
|
136
136
|
|
|
137
137
|
:param all: Return all arguments, even those which aren't available for the current platform.
|
|
@@ -9,8 +9,7 @@ def clear_by_owner(owner: object, /) -> None:
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
11
|
def publish_rna(
|
|
12
|
-
*,
|
|
13
|
-
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
|
|
12
|
+
*, key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str]
|
|
14
13
|
) -> None:
|
|
15
14
|
""":param key: Represents the type of data being subscribed to
|
|
16
15
|
|
|
@@ -22,7 +21,7 @@ def publish_rna(
|
|
|
22
21
|
|
|
23
22
|
def subscribe_rna(
|
|
24
23
|
*,
|
|
25
|
-
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str]
|
|
24
|
+
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str],
|
|
26
25
|
owner: object,
|
|
27
26
|
args: tuple[object, ...],
|
|
28
27
|
notify: Callable[..., None],
|