fake-bpy-module 20240417__py3-none-any.whl → 20240419__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.
- _bpy_internal/__init__.pyi +4 -0
- _bpy_internal/freedesktop/__init__.pyi +88 -0
- _bpy_internal/freedesktop/py.typed +0 -0
- _bpy_internal/py.typed +0 -0
- aud/__init__.pyi +121 -48
- bgl/__init__.pyi +2443 -1265
- bl_math/__init__.pyi +19 -3
- bl_operators/geometry_nodes/__init__.pyi +13 -0
- bl_ui/properties_data_light/__init__.pyi +337 -0
- blf/__init__.pyi +63 -13
- bmesh/__init__.pyi +13 -0
- bmesh/geometry/__init__.pyi +5 -0
- bmesh/ops/__init__.pyi +157 -68
- bmesh/types/__init__.pyi +109 -62
- bmesh/utils/__init__.pyi +11 -2
- bpy/__init__.pyi +7 -0
- bpy/app/__init__.pyi +13 -0
- bpy/app/handlers/__init__.pyi +41 -0
- bpy/app/icons/__init__.pyi +4 -2
- bpy/app/timers/__init__.pyi +38 -2
- bpy/app/translations/__init__.pyi +58 -0
- bpy/msgbus/__init__.pyi +46 -0
- bpy/ops/__init__.pyi +151 -0
- bpy/ops/action/__init__.pyi +76 -76
- bpy/ops/anim/__init__.pyi +104 -104
- bpy/ops/armature/__init__.pyi +96 -96
- bpy/ops/asset/__init__.pyi +32 -32
- bpy/ops/boid/__init__.pyi +16 -16
- bpy/ops/brush/__init__.pyi +18 -18
- bpy/ops/buttons/__init__.pyi +12 -12
- bpy/ops/cachefile/__init__.pyi +10 -10
- bpy/ops/camera/__init__.pyi +4 -4
- bpy/ops/clip/__init__.pyi +184 -184
- bpy/ops/cloth/__init__.pyi +2 -2
- bpy/ops/collection/__init__.pyi +18 -18
- bpy/ops/console/__init__.pyi +42 -42
- bpy/ops/constraint/__init__.pyi +36 -36
- bpy/ops/curve/__init__.pyi +102 -102
- bpy/ops/curves/__init__.pyi +54 -54
- bpy/ops/cycles/__init__.pyi +6 -6
- bpy/ops/dpaint/__init__.pyi +10 -10
- bpy/ops/ed/__init__.pyi +24 -24
- bpy/ops/export_anim/__init__.pyi +2 -2
- bpy/ops/export_mesh/__init__.pyi +2 -2
- bpy/ops/export_scene/__init__.pyi +7 -7
- bpy/ops/file/__init__.pyi +80 -80
- bpy/ops/fluid/__init__.pyi +28 -28
- bpy/ops/font/__init__.pyi +46 -46
- bpy/ops/geometry/__init__.pyi +20 -20
- bpy/ops/gizmogroup/__init__.pyi +4 -4
- bpy/ops/gpencil/__init__.pyi +300 -300
- bpy/ops/graph/__init__.pyi +130 -130
- bpy/ops/grease_pencil/__init__.pyi +112 -112
- bpy/ops/image/__init__.pyi +92 -92
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +2 -2
- bpy/ops/import_mesh/__init__.pyi +2 -2
- bpy/ops/import_scene/__init__.pyi +6 -6
- bpy/ops/info/__init__.pyi +14 -14
- bpy/ops/lattice/__init__.pyi +16 -16
- bpy/ops/marker/__init__.pyi +22 -22
- bpy/ops/mask/__init__.pyi +78 -78
- bpy/ops/material/__init__.pyi +6 -6
- bpy/ops/mball/__init__.pyi +16 -16
- bpy/ops/mesh/__init__.pyi +326 -326
- bpy/ops/nla/__init__.pyi +80 -80
- bpy/ops/node/__init__.pyi +202 -202
- bpy/ops/object/__init__.pyi +509 -500
- bpy/ops/outliner/__init__.pyi +138 -138
- bpy/ops/paint/__init__.pyi +104 -104
- bpy/ops/paintcurve/__init__.pyi +16 -16
- bpy/ops/palette/__init__.pyi +14 -14
- bpy/ops/particle/__init__.pyi +72 -72
- bpy/ops/pose/__init__.pyi +78 -78
- bpy/ops/poselib/__init__.pyi +18 -18
- bpy/ops/preferences/__init__.pyi +76 -76
- bpy/ops/ptcache/__init__.pyi +14 -14
- bpy/ops/render/__init__.pyi +24 -24
- bpy/ops/rigidbody/__init__.pyi +26 -26
- bpy/ops/scene/__init__.pyi +78 -78
- bpy/ops/screen/__init__.pyi +78 -78
- bpy/ops/script/__init__.pyi +6 -6
- bpy/ops/sculpt/__init__.pyi +62 -62
- bpy/ops/sculpt_curves/__init__.pyi +8 -8
- bpy/ops/sequencer/__init__.pyi +170 -170
- bpy/ops/sound/__init__.pyi +14 -14
- bpy/ops/spreadsheet/__init__.pyi +8 -8
- bpy/ops/surface/__init__.pyi +12 -12
- bpy/ops/text/__init__.pyi +86 -86
- bpy/ops/text_editor/__init__.pyi +2 -2
- bpy/ops/texture/__init__.pyi +8 -8
- bpy/ops/transform/__init__.pyi +54 -54
- bpy/ops/ui/__init__.pyi +64 -64
- bpy/ops/uilist/__init__.pyi +6 -6
- bpy/ops/uv/__init__.pyi +98 -98
- bpy/ops/view2d/__init__.pyi +28 -28
- bpy/ops/view3d/__init__.pyi +134 -134
- bpy/ops/wm/__init__.pyi +224 -224
- bpy/ops/workspace/__init__.pyi +14 -14
- bpy/ops/world/__init__.pyi +2 -2
- bpy/path/__init__.pyi +6 -0
- bpy/props/__init__.pyi +141 -29
- bpy/types/__init__.pyi +101517 -5027
- bpy/utils/__init__.pyi +18 -3
- bpy/utils/previews/__init__.pyi +15 -0
- bpy/utils/units/__init__.pyi +11 -3
- bpy_extras/__init__.pyi +19 -0
- bpy_extras/asset_utils/__init__.pyi +5 -0
- {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240419.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240419.dist-info}/RECORD +139 -135
- {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240419.dist-info}/top_level.txt +1 -0
- freestyle/__init__.pyi +18 -0
- freestyle/chainingiterators/__init__.pyi +20 -5
- freestyle/functions/__init__.pyi +151 -155
- freestyle/predicates/__init__.pyi +53 -46
- freestyle/shaders/__init__.pyi +91 -32
- freestyle/types/__init__.pyi +362 -120
- freestyle/utils/ContextFunctions/__init__.pyi +32 -7
- freestyle/utils/__init__.pyi +13 -1
- gpu/__init__.pyi +225 -0
- gpu/capabilities/__init__.pyi +37 -15
- gpu/matrix/__init__.pyi +7 -1
- gpu/platform/__init__.pyi +5 -0
- gpu/select/__init__.pyi +5 -0
- gpu/shader/__init__.pyi +77 -0
- gpu/state/__init__.pyi +15 -4
- gpu/texture/__init__.pyi +5 -0
- gpu/types/__init__.pyi +91 -33
- gpu_extras/__init__.pyi +15 -0
- gpu_extras/presets/__init__.pyi +16 -4
- imbuf/__init__.pyi +13 -0
- imbuf/types/__init__.pyi +20 -5
- mathutils/__init__.pyi +349 -227
- mathutils/bvhtree/__init__.pyi +21 -8
- mathutils/geometry/__init__.pyi +23 -9
- mathutils/interpolate/__init__.pyi +5 -0
- mathutils/kdtree/__init__.pyi +19 -5
- mathutils/noise/__init__.pyi +87 -41
- {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240419.dist-info}/WHEEL +0 -0
bpy/utils/__init__.pyi
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module contains utility functions specific to blender but
|
|
3
|
+
not associated with blenders internal data.
|
|
4
|
+
|
|
5
|
+
bpy.utils.previews.rst
|
|
6
|
+
bpy.utils.units.rst
|
|
7
|
+
|
|
8
|
+
:maxdepth: 1
|
|
9
|
+
:caption: Submodules
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
|
|
1
13
|
import typing
|
|
2
14
|
from . import previews
|
|
3
15
|
from . import units
|
|
@@ -320,12 +332,13 @@ def register_tool(tool_cls, after, separator, group):
|
|
|
320
332
|
|
|
321
333
|
...
|
|
322
334
|
|
|
323
|
-
def resource_path(type: str, major=None[0], minor: str = None[1]) -> str:
|
|
335
|
+
def resource_path(type: str, major: int = None[0], minor: str = None[1]) -> str:
|
|
324
336
|
"""Return the base path for storing system files.
|
|
325
337
|
|
|
326
338
|
:param type: string in ['USER', 'LOCAL', 'SYSTEM'].
|
|
327
339
|
:type type: str
|
|
328
340
|
:param major: major version, defaults to current.
|
|
341
|
+
:type major: int
|
|
329
342
|
:param minor: minor version, defaults to current.
|
|
330
343
|
:type minor: str
|
|
331
344
|
:return: the resource path (not necessarily existing).
|
|
@@ -371,11 +384,12 @@ def script_paths_pref():
|
|
|
371
384
|
|
|
372
385
|
...
|
|
373
386
|
|
|
374
|
-
def smpte_from_frame(frame, fps=None, fps_base=None) -> str:
|
|
387
|
+
def smpte_from_frame(frame: int, fps=None, fps_base=None) -> str:
|
|
375
388
|
"""Returns an SMPTE formatted string from the frame:
|
|
376
389
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
377
390
|
|
|
378
391
|
:param frame: frame number.
|
|
392
|
+
:type frame: int
|
|
379
393
|
:return: the frame string.
|
|
380
394
|
:rtype: str
|
|
381
395
|
"""
|
|
@@ -387,11 +401,12 @@ def smpte_from_frame(frame, fps, fps_base):
|
|
|
387
401
|
|
|
388
402
|
...
|
|
389
403
|
|
|
390
|
-
def smpte_from_seconds(time, fps=None, fps_base=None) -> str:
|
|
404
|
+
def smpte_from_seconds(time: typing.Union[int, float], fps=None, fps_base=None) -> str:
|
|
391
405
|
"""Returns an SMPTE formatted string from the time:
|
|
392
406
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
393
407
|
|
|
394
408
|
:param time: time in seconds.
|
|
409
|
+
:type time: typing.Union[int, float]
|
|
395
410
|
:return: the frame string.
|
|
396
411
|
:rtype: str
|
|
397
412
|
"""
|
bpy/utils/previews/__init__.pyi
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module contains utility functions to handle custom previews.
|
|
3
|
+
|
|
4
|
+
It behaves as a high-level 'cached' previews manager.
|
|
5
|
+
|
|
6
|
+
This allows scripts to generate their own previews, and use them as icons in UI widgets
|
|
7
|
+
('icon_value' for UILayout functions).
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
--------------------
|
|
11
|
+
|
|
12
|
+
```__/__/__/scripts/templates_py/ui_previews_custom_icon.py```
|
|
13
|
+
|
|
14
|
+
"""
|
|
15
|
+
|
|
1
16
|
import typing
|
|
2
17
|
import bpy.types
|
|
3
18
|
|
bpy/utils/units/__init__.pyi
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module contains some data/methods regarding units handling.
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
|
|
1
6
|
import typing
|
|
2
7
|
|
|
3
8
|
GenericType = typing.TypeVar("GenericType")
|
|
@@ -5,8 +10,8 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
5
10
|
def to_string(
|
|
6
11
|
unit_system: str,
|
|
7
12
|
unit_category: str,
|
|
8
|
-
value,
|
|
9
|
-
precision=3,
|
|
13
|
+
value: float,
|
|
14
|
+
precision: int = 3,
|
|
10
15
|
split_unit: bool = False,
|
|
11
16
|
compatible_unit: bool = False,
|
|
12
17
|
) -> str:
|
|
@@ -18,7 +23,9 @@ def to_string(
|
|
|
18
23
|
from `bpy.utils.units.categories`.
|
|
19
24
|
:type unit_category: str
|
|
20
25
|
:param value: The value to convert to a string.
|
|
26
|
+
:type value: float
|
|
21
27
|
:param precision: Number of digits after the comma.
|
|
28
|
+
:type precision: int
|
|
22
29
|
:param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
|
|
23
30
|
:type split_unit: bool
|
|
24
31
|
:param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
|
|
@@ -31,7 +38,7 @@ def to_string(
|
|
|
31
38
|
|
|
32
39
|
def to_value(
|
|
33
40
|
unit_system: str, unit_category: str, str_input: str, str_ref_unit: str = None
|
|
34
|
-
):
|
|
41
|
+
) -> float:
|
|
35
42
|
"""Convert a given input string into a float value.
|
|
36
43
|
|
|
37
44
|
:param unit_system: The unit system, from `bpy.utils.units.systems`.
|
|
@@ -44,6 +51,7 @@ def to_value(
|
|
|
44
51
|
:param str_ref_unit: A reference string from which to extract a default unit, if none is found in str_input.
|
|
45
52
|
:type str_ref_unit: str
|
|
46
53
|
:return: The converted/interpreted value.
|
|
54
|
+
:rtype: float
|
|
47
55
|
"""
|
|
48
56
|
|
|
49
57
|
...
|
bpy_extras/__init__.pyi
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Utility modules associated with the bpy module.
|
|
3
|
+
|
|
4
|
+
bpy_extras.anim_utils.rst
|
|
5
|
+
bpy_extras.asset_utils.rst
|
|
6
|
+
bpy_extras.object_utils.rst
|
|
7
|
+
bpy_extras.io_utils.rst
|
|
8
|
+
bpy_extras.image_utils.rst
|
|
9
|
+
bpy_extras.keyconfig_utils.rst
|
|
10
|
+
bpy_extras.mesh_utils.rst
|
|
11
|
+
bpy_extras.node_utils.rst
|
|
12
|
+
bpy_extras.view3d_utils.rst
|
|
13
|
+
bpy_extras.id_map_utils.rst
|
|
14
|
+
|
|
15
|
+
:maxdepth: 1
|
|
16
|
+
:caption: Submodules
|
|
17
|
+
|
|
18
|
+
"""
|
|
19
|
+
|
|
1
20
|
import typing
|
|
2
21
|
from . import anim_utils
|
|
3
22
|
from . import asset_utils
|