blender-python-stubs 5.3.0.0__tar.gz → 5.3.0.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-5.3.0.0 → blender_python_stubs-5.3.0.2}/PKG-INFO +1 -1
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/aud/__init__.pyi +50 -45
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/blf/__init__.pyi +2 -1
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/blf/types/__init__.pyi +1 -3
- blender_python_stubs-5.3.0.2/bpy/_typing.pyi +1275 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/app/__init__.pyi +2 -0
- blender_python_stubs-5.3.0.2/bpy/ops/__init__.pyi +39380 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/types/__init__.pyi +128 -22522
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/utils/__init__.pyi +9 -3
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/anim_utils/__init__.pyi +12 -5
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/io_utils/__init__.pyi +144 -0
- blender_python_stubs-5.3.0.2/bpy_extras/node_shader_utils/__init__.pyi +2755 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/object_utils/__init__.pyi +4 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/freestyle/chainingiterators/__init__.pyi +25 -0
- blender_python_stubs-5.3.0.2/freestyle/functions/__init__.pyi +3676 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/freestyle/predicates/__init__.pyi +386 -0
- blender_python_stubs-5.3.0.2/freestyle/shaders/__init__.pyi +3365 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/freestyle/types/__init__.pyi +7 -6
- blender_python_stubs-5.3.0.2/freestyle/utils/__init__.pyi +2615 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/imbuf/__init__.pyi +5 -3
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/pyproject.toml +1 -1
- blender_python_stubs-5.3.0.0/bpy/ops/__init__.pyi +0 -85825
- blender_python_stubs-5.3.0.0/bpy_extras/node_shader_utils/__init__.pyi +0 -197
- blender_python_stubs-5.3.0.0/freestyle/functions/__init__.pyi +0 -1289
- blender_python_stubs-5.3.0.0/freestyle/shaders/__init__.pyi +0 -819
- blender_python_stubs-5.3.0.0/freestyle/utils/__init__.pyi +0 -237
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/.gitignore +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/.python-version +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/LICENSE +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/README.md +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/aud/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bl_math/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bl_math/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/blf/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/geometry/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/ops/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/types/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bmesh/utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/msgbus/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/path/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/props/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/utils/previews/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy/utils/toolsystem/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/asset_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/id_map_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/image_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/mesh_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/node_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/bpy_extras/view3d_utils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/freestyle/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/freestyle/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/capabilities/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/compute/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/matrix/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/platform/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/select/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/shader/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/state/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/texture/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu/types/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu_extras/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu_extras/batch/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu_extras/presets/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/gpu_extras/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/idprop/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/idprop/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/idprop/types/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/imbuf/py.typed +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/imbuf/types/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/bvhtree/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/geometry/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/interpolate/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/kdtree/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/noise/__init__.pyi +0 -0
- {blender_python_stubs-5.3.0.0 → blender_python_stubs-5.3.0.2}/mathutils/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: blender-python-stubs
|
|
3
|
-
Version: 5.3.0.
|
|
3
|
+
Version: 5.3.0.2
|
|
4
4
|
Summary: Type stubs for Blender 5.3 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
|
|
@@ -3,6 +3,7 @@ import collections.abc
|
|
|
3
3
|
"""Audaspace (pronounced "outer space") is a high level audio library."""
|
|
4
4
|
|
|
5
5
|
from typing import Generic, TypeVar
|
|
6
|
+
import bpy.types
|
|
6
7
|
|
|
7
8
|
_T = TypeVar("_T")
|
|
8
9
|
|
|
@@ -254,7 +255,7 @@ The speed of sound in air is typically 343.3 m/s."""
|
|
|
254
255
|
sounds at the same time.
|
|
255
256
|
"""
|
|
256
257
|
|
|
257
|
-
def play(self, sound: Sound, keep: bool = False) -> Handle:
|
|
258
|
+
def play(self, sound: bpy.types.Sound, keep: bool = False) -> Handle:
|
|
258
259
|
"""Plays a sound."""
|
|
259
260
|
|
|
260
261
|
def stopAll(self) -> None:
|
|
@@ -291,10 +292,10 @@ class DynamicMusic:
|
|
|
291
292
|
"""The volume of the scene."""
|
|
292
293
|
|
|
293
294
|
def __init__(self, device: Device, /) -> None: ...
|
|
294
|
-
def addScene(self, scene: Sound, /) -> int:
|
|
295
|
+
def addScene(self, scene: bpy.types.Sound, /) -> int:
|
|
295
296
|
"""Adds a new scene."""
|
|
296
297
|
|
|
297
|
-
def addTransition(self, ini: int, end: int, transition: Sound) -> bool:
|
|
298
|
+
def addTransition(self, ini: int, end: int, transition: bpy.types.Sound) -> bool:
|
|
298
299
|
"""Adds a new scene."""
|
|
299
300
|
|
|
300
301
|
def pause(self) -> bool:
|
|
@@ -313,7 +314,7 @@ class HRTF:
|
|
|
313
314
|
"""
|
|
314
315
|
|
|
315
316
|
def addImpulseResponseFromSound(
|
|
316
|
-
self, sound: Sound, azimuth: float, elevation: float
|
|
317
|
+
self, sound: bpy.types.Sound, azimuth: float, elevation: float
|
|
317
318
|
) -> bool:
|
|
318
319
|
"""Adds a new hrtf to the HRTF object"""
|
|
319
320
|
|
|
@@ -420,7 +421,7 @@ class ImpulseResponse:
|
|
|
420
421
|
:type sound: :class:`Sound`
|
|
421
422
|
"""
|
|
422
423
|
|
|
423
|
-
def __init__(self, sound: Sound, /) -> None: ...
|
|
424
|
+
def __init__(self, sound: bpy.types.Sound, /) -> None: ...
|
|
424
425
|
|
|
425
426
|
class PlaybackManager:
|
|
426
427
|
""".. class:: PlaybackManager(device, /)
|
|
@@ -444,7 +445,7 @@ class PlaybackManager:
|
|
|
444
445
|
def pause(self, catKey: int) -> bool:
|
|
445
446
|
"""Pauses playback of the category."""
|
|
446
447
|
|
|
447
|
-
def play(self, sound: Sound, catKey: int) -> Handle:
|
|
448
|
+
def play(self, sound: bpy.types.Sound, catKey: int) -> Handle:
|
|
448
449
|
"""Plays a sound through the playback manager and assigns it to a category."""
|
|
449
450
|
|
|
450
451
|
def resume(self, catKey: int) -> bool:
|
|
@@ -503,7 +504,9 @@ The speed of sound in air is typically 343.3 m/s."""
|
|
|
503
504
|
fps: float = 30.0,
|
|
504
505
|
muted: bool = False,
|
|
505
506
|
) -> None: ...
|
|
506
|
-
def add(
|
|
507
|
+
def add(
|
|
508
|
+
self, sound: bpy.types.Sound, begin: float, end: float, skip: float
|
|
509
|
+
) -> SequenceEntry:
|
|
507
510
|
"""Adds a new entry to the sequence."""
|
|
508
511
|
|
|
509
512
|
def remove(self, entry: SequenceEntry) -> None:
|
|
@@ -604,12 +607,12 @@ class Sound:
|
|
|
604
607
|
def __init__(self, filename: str, stream: int = 0) -> None: ...
|
|
605
608
|
def ADSR(
|
|
606
609
|
self, attack: float, decay: float, sustain: float, release: float
|
|
607
|
-
) -> Sound:
|
|
610
|
+
) -> bpy.types.Sound:
|
|
608
611
|
"""Attack-Decay-Sustain-Release envelopes the volume of a sound.
|
|
609
612
|
Note: there is currently no way to trigger the release with this API.
|
|
610
613
|
"""
|
|
611
614
|
|
|
612
|
-
def accumulate(self, additive: bool = False) -> Sound:
|
|
615
|
+
def accumulate(self, additive: bool = False) -> bpy.types.Sound:
|
|
613
616
|
"""Accumulates a sound by summing over positive input
|
|
614
617
|
differences thus generating a monotonic sigal.
|
|
615
618
|
If additivity is set to true negative input differences get added too,
|
|
@@ -618,7 +621,7 @@ class Sound:
|
|
|
618
621
|
Note that with additivity the signal is not monotonic anymore.
|
|
619
622
|
"""
|
|
620
623
|
|
|
621
|
-
def addSound(self, sound: Sound, /) -> None:
|
|
624
|
+
def addSound(self, sound: bpy.types.Sound, /) -> None:
|
|
622
625
|
"""Adds a new sound to a sound list."""
|
|
623
626
|
|
|
624
627
|
def animateableTimeStretchPitchScale(
|
|
@@ -628,17 +631,19 @@ class Sound:
|
|
|
628
631
|
pitch_scale: float | object,
|
|
629
632
|
quality: int,
|
|
630
633
|
preserve_formant: bool,
|
|
631
|
-
) -> Sound:
|
|
634
|
+
) -> bpy.types.Sound:
|
|
632
635
|
"""Applies time-stretching and pitch-scaling to the sound."""
|
|
633
636
|
|
|
634
|
-
def binaural(
|
|
637
|
+
def binaural(
|
|
638
|
+
self, hrtf: HRTF, source: Source, threadPool: ThreadPool
|
|
639
|
+
) -> bpy.types.Sound:
|
|
635
640
|
"""Creates a binaural sound using another sound as source. The original sound must be mono"""
|
|
636
641
|
|
|
637
642
|
@classmethod
|
|
638
|
-
def buffer(cls, data: object, rate: float) -> Sound:
|
|
643
|
+
def buffer(cls, data: object, rate: float) -> bpy.types.Sound:
|
|
639
644
|
"""Creates a sound from a data buffer."""
|
|
640
645
|
|
|
641
|
-
def cache(self) -> Sound:
|
|
646
|
+
def cache(self) -> bpy.types.Sound:
|
|
642
647
|
"""Caches a sound into RAM.
|
|
643
648
|
|
|
644
649
|
This saves CPU usage needed for decoding and file access if the
|
|
@@ -648,42 +653,42 @@ class Sound:
|
|
|
648
653
|
|
|
649
654
|
def convolver(
|
|
650
655
|
self, impulseResponse: ImpulseResponse, threadPool: ThreadPool
|
|
651
|
-
) -> Sound:
|
|
656
|
+
) -> bpy.types.Sound:
|
|
652
657
|
"""Creates a sound that will apply convolution to another sound."""
|
|
653
658
|
|
|
654
659
|
def data(self) -> object:
|
|
655
660
|
"""Retrieves the data of the sound as numpy array."""
|
|
656
661
|
|
|
657
|
-
def delay(self, time: float) -> Sound:
|
|
662
|
+
def delay(self, time: float) -> bpy.types.Sound:
|
|
658
663
|
"""Delays by playing adding silence in front of the other sound's data."""
|
|
659
664
|
|
|
660
|
-
def echo(self, delay: float, feedback: float, mix: float) -> Sound:
|
|
665
|
+
def echo(self, delay: float, feedback: float, mix: float) -> bpy.types.Sound:
|
|
661
666
|
"""Adds Echo effect to the sound."""
|
|
662
667
|
|
|
663
668
|
def envelope(
|
|
664
669
|
self, attack: float, release: float, threshold: float, arthreshold: float
|
|
665
|
-
) -> Sound:
|
|
670
|
+
) -> bpy.types.Sound:
|
|
666
671
|
"""Delays by playing adding silence in front of the other sound's data."""
|
|
667
672
|
|
|
668
|
-
def fadein(self, start: float, length: float) -> Sound:
|
|
673
|
+
def fadein(self, start: float, length: float) -> bpy.types.Sound:
|
|
669
674
|
"""Fades a sound in by raising the volume linearly in the given
|
|
670
675
|
time interval.
|
|
671
676
|
"""
|
|
672
677
|
|
|
673
|
-
def fadeout(self, start: float, length: float) -> Sound:
|
|
678
|
+
def fadeout(self, start: float, length: float) -> bpy.types.Sound:
|
|
674
679
|
"""Fades a sound in by lowering the volume linearly in the given
|
|
675
680
|
time interval.
|
|
676
681
|
"""
|
|
677
682
|
|
|
678
683
|
@classmethod
|
|
679
|
-
def file(cls, filename: str) -> Sound:
|
|
684
|
+
def file(cls, filename: str) -> bpy.types.Sound:
|
|
680
685
|
"""Creates a sound object of a sound file."""
|
|
681
686
|
|
|
682
687
|
def filter(
|
|
683
688
|
self,
|
|
684
689
|
b: collections.abc.Sequence[float],
|
|
685
690
|
a: collections.abc.Sequence[float] = (1,),
|
|
686
|
-
) -> Sound:
|
|
691
|
+
) -> bpy.types.Sound:
|
|
687
692
|
"""Filters a sound with the supplied IIR filter coefficients.
|
|
688
693
|
Without the second parameter you'll get a FIR filter.
|
|
689
694
|
|
|
@@ -694,75 +699,75 @@ class Sound:
|
|
|
694
699
|
in the end, you don't have to scale yourself.
|
|
695
700
|
"""
|
|
696
701
|
|
|
697
|
-
def highpass(self, frequency: float, Q: float = 0.5) -> Sound:
|
|
702
|
+
def highpass(self, frequency: float, Q: float = 0.5) -> bpy.types.Sound:
|
|
698
703
|
"""Creates a second order highpass filter based on the transfer
|
|
699
704
|
function :math:`H(s) = s^2 / (s^2 + s/Q + 1)`
|
|
700
705
|
"""
|
|
701
706
|
|
|
702
|
-
def join(self, sound: Sound, /) -> Sound:
|
|
707
|
+
def join(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
|
|
703
708
|
"""Plays two factories in sequence."""
|
|
704
709
|
|
|
705
|
-
def limit(self, start: float, end: float) -> Sound:
|
|
710
|
+
def limit(self, start: float, end: float) -> bpy.types.Sound:
|
|
706
711
|
"""Limits a sound within a specific start and end time."""
|
|
707
712
|
|
|
708
713
|
@classmethod
|
|
709
|
-
def list(cls, random: int) -> Sound:
|
|
714
|
+
def list(cls, random: int) -> bpy.types.Sound:
|
|
710
715
|
"""Creates an empty sound list that can contain several sounds."""
|
|
711
716
|
|
|
712
|
-
def loop(self, count: int) -> Sound:
|
|
717
|
+
def loop(self, count: int) -> bpy.types.Sound:
|
|
713
718
|
"""Loops a sound."""
|
|
714
719
|
|
|
715
|
-
def lowpass(self, frequency: float, Q: float = 0.5) -> Sound:
|
|
720
|
+
def lowpass(self, frequency: float, Q: float = 0.5) -> bpy.types.Sound:
|
|
716
721
|
"""Creates a second order lowpass filter based on the transfer function :math:`H(s) = 1 / (s^2 + s/Q + 1)`"""
|
|
717
722
|
|
|
718
|
-
def mix(self, sound: Sound, /) -> Sound:
|
|
723
|
+
def mix(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
|
|
719
724
|
"""Mixes two factories."""
|
|
720
725
|
|
|
721
|
-
def modulate(self, sound: Sound, /) -> Sound:
|
|
726
|
+
def modulate(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
|
|
722
727
|
"""Modulates two factories."""
|
|
723
728
|
|
|
724
|
-
def mutable(self) -> Sound:
|
|
729
|
+
def mutable(self) -> bpy.types.Sound:
|
|
725
730
|
"""Creates a sound that will be restarted when sought backwards.
|
|
726
731
|
If the original sound is a sound list, the playing sound can change.
|
|
727
732
|
"""
|
|
728
733
|
|
|
729
|
-
def pingpong(self) -> Sound:
|
|
734
|
+
def pingpong(self) -> bpy.types.Sound:
|
|
730
735
|
"""Plays a sound forward and then backward.
|
|
731
736
|
This is like joining a sound with its reverse.
|
|
732
737
|
"""
|
|
733
738
|
|
|
734
|
-
def pitch(self, factor: float) -> Sound:
|
|
739
|
+
def pitch(self, factor: float) -> bpy.types.Sound:
|
|
735
740
|
"""Changes the pitch of a sound with a specific factor."""
|
|
736
741
|
|
|
737
|
-
def rechannel(self, channels: int) -> Sound:
|
|
742
|
+
def rechannel(self, channels: int) -> bpy.types.Sound:
|
|
738
743
|
"""Rechannels the sound."""
|
|
739
744
|
|
|
740
|
-
def resample(self, rate: float, quality: int) -> Sound:
|
|
745
|
+
def resample(self, rate: float, quality: int) -> bpy.types.Sound:
|
|
741
746
|
"""Resamples the sound."""
|
|
742
747
|
|
|
743
|
-
def reverse(self) -> Sound:
|
|
748
|
+
def reverse(self) -> bpy.types.Sound:
|
|
744
749
|
"""Plays a sound reversed."""
|
|
745
750
|
|
|
746
751
|
@classmethod
|
|
747
|
-
def sawtooth(cls, frequency: float, rate: int) -> Sound:
|
|
752
|
+
def sawtooth(cls, frequency: float, rate: int) -> bpy.types.Sound:
|
|
748
753
|
"""Creates a sawtooth sound which plays a sawtooth wave."""
|
|
749
754
|
|
|
750
755
|
@classmethod
|
|
751
|
-
def silence(cls, rate: int) -> Sound:
|
|
756
|
+
def silence(cls, rate: int) -> bpy.types.Sound:
|
|
752
757
|
"""Creates a silence sound which plays simple silence."""
|
|
753
758
|
|
|
754
759
|
@classmethod
|
|
755
|
-
def sine(cls, frequency: float, rate: int) -> Sound:
|
|
760
|
+
def sine(cls, frequency: float, rate: int) -> bpy.types.Sound:
|
|
756
761
|
"""Creates a sine sound which plays a sine wave."""
|
|
757
762
|
|
|
758
763
|
@classmethod
|
|
759
|
-
def square(cls, frequency: float, rate: int) -> Sound:
|
|
764
|
+
def square(cls, frequency: float, rate: int) -> bpy.types.Sound:
|
|
760
765
|
"""Creates a square sound which plays a square wave."""
|
|
761
766
|
|
|
762
|
-
def sum(self) -> Sound:
|
|
767
|
+
def sum(self) -> bpy.types.Sound:
|
|
763
768
|
"""Sums the samples of a sound."""
|
|
764
769
|
|
|
765
|
-
def threshold(self, threshold: float = 0) -> Sound:
|
|
770
|
+
def threshold(self, threshold: float = 0) -> bpy.types.Sound:
|
|
766
771
|
"""Makes a threshold wave out of an audio wave by setting all samples
|
|
767
772
|
with a amplitude >= threshold to 1, all <= -threshold to -1 and
|
|
768
773
|
all between to 0.
|
|
@@ -774,14 +779,14 @@ class Sound:
|
|
|
774
779
|
pitch_scale: float,
|
|
775
780
|
quality: int,
|
|
776
781
|
preserve_formant: bool,
|
|
777
|
-
) -> Sound:
|
|
782
|
+
) -> bpy.types.Sound:
|
|
778
783
|
"""Applies time-stretching and pitch-scaling to the sound."""
|
|
779
784
|
|
|
780
785
|
@classmethod
|
|
781
|
-
def triangle(cls, frequency: float, rate: int) -> Sound:
|
|
786
|
+
def triangle(cls, frequency: float, rate: int) -> bpy.types.Sound:
|
|
782
787
|
"""Creates a triangle sound which plays a triangle wave."""
|
|
783
788
|
|
|
784
|
-
def volume(self, volume: float) -> Sound:
|
|
789
|
+
def volume(self, volume: float) -> bpy.types.Sound:
|
|
785
790
|
"""Changes the volume of a sound."""
|
|
786
791
|
|
|
787
792
|
def write(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""This module provides access to Blender's text drawing functions."""
|
|
2
2
|
|
|
3
3
|
from . import types as types
|
|
4
|
+
import blf.types
|
|
4
5
|
import imbuf.types
|
|
5
6
|
|
|
6
7
|
CLIPPING: int
|
|
@@ -23,7 +24,7 @@ def aspect(fontid: int, aspect: float) -> None:
|
|
|
23
24
|
|
|
24
25
|
def bind_imbuf(
|
|
25
26
|
fontid: int, imbuf: imbuf.types.ImBuf, *, display_name: str | None = None
|
|
26
|
-
) -> blf.types.
|
|
27
|
+
) -> blf.types.BLFImBufContext:
|
|
27
28
|
"""Context manager to draw text into an image buffer instead of the GPU's context.
|
|
28
29
|
|
|
29
30
|
:param fontid: The id of the typeface as returned by :func:`blf.load`, for default font use 0.
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"""This module provides access to font drawing types."""
|
|
2
2
|
|
|
3
|
-
from typing import Self
|
|
4
|
-
|
|
5
3
|
class BLFImBufContext:
|
|
6
4
|
"""Context manager returned by :func:`blf.bind_imbuf` that binds an image buffer
|
|
7
5
|
as the destination for text drawing.
|
|
8
6
|
"""
|
|
9
7
|
|
|
10
|
-
def __enter__(self) ->
|
|
8
|
+
def __enter__(self) -> None: ...
|
|
11
9
|
def __exit__(
|
|
12
10
|
self,
|
|
13
11
|
exc_type: type[BaseException] | None,
|