fake-bpy-module 20240224__py3-none-any.whl → 20240326__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.
- addon_utils/__init__.pyi +54 -10
- animsys_refactor/__init__.pyi +36 -6
- aud/__init__.pyi +132 -125
- bgl/__init__.pyi +2545 -546
- bl_app_override/__init__.pyi +14 -3
- bl_app_override/helpers/__init__.pyi +24 -2
- bl_app_template_utils/__init__.pyi +19 -4
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -5
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -3
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -5
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -15
- bl_i18n_utils/merge_po/__init__.pyi +4 -1
- bl_i18n_utils/settings/__init__.pyi +53 -6
- bl_i18n_utils/utils/__init__.pyi +332 -44
- bl_i18n_utils/utils_cli/__init__.pyi +29 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -2
- bl_keymap_utils/io/__init__.pyi +44 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -2
- bl_keymap_utils/versioning/__init__.pyi +4 -1
- bl_math/__init__.pyi +3 -3
- bl_operators/__init__.pyi +9 -2
- bl_operators/add_mesh_torus/__init__.pyi +171 -37
- bl_operators/anim/__init__.pyi +1065 -226
- bl_operators/assets/__init__.pyi +427 -92
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -9
- bl_operators/clip/__init__.pyi +1342 -287
- bl_operators/console/__init__.pyi +647 -140
- bl_operators/constraint/__init__.pyi +524 -112
- bl_operators/file/__init__.pyi +396 -84
- bl_operators/freestyle/__init__.pyi +532 -113
- bl_operators/geometry_nodes/__init__.pyi +2412 -596
- bl_operators/image/__init__.pyi +380 -82
- bl_operators/mesh/__init__.pyi +401 -85
- bl_operators/node/__init__.pyi +1756 -384
- bl_operators/object/__init__.pyi +2022 -552
- bl_operators/object_align/__init__.pyi +145 -31
- bl_operators/object_quick_effects/__init__.pyi +555 -124
- bl_operators/object_randomize_transform/__init__.pyi +136 -32
- bl_operators/presets/__init__.pyi +3516 -708
- bl_operators/rigidbody/__init__.pyi +401 -85
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -29
- bl_operators/sequencer/__init__.pyi +731 -149
- bl_operators/spreadsheet/__init__.pyi +145 -30
- bl_operators/userpref/__init__.pyi +3416 -824
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -32
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -34
- bl_operators/uvcalc_transform/__init__.pyi +344 -73
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -30
- bl_operators/view3d/__init__.pyi +697 -146
- bl_operators/wm/__init__.pyi +6287 -1533
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -7
- bl_rna_utils/data_path/__init__.pyi +12 -2
- bl_text_utils/external_editor/__init__.pyi +4 -1
- bl_ui/__init__.pyi +504 -106
- bl_ui/anim/__init__.pyi +164 -33
- bl_ui/asset_shelf/__init__.pyi +146 -31
- bl_ui/generic_ui_list/__init__.pyi +471 -99
- bl_ui/node_add_menu/__init__.pyi +196 -40
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -621
- bl_ui/node_add_menu_geometry/__init__.pyi +8060 -1625
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -348
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -305
- bl_ui/properties_animviz/__init__.pyi +32 -2
- bl_ui/properties_collection/__init__.pyi +787 -179
- bl_ui/properties_constraint/__init__.pyi +28635 -5523
- bl_ui/properties_data_armature/__init__.pyi +1905 -448
- bl_ui/properties_data_bone/__init__.pyi +1560 -336
- bl_ui/properties_data_camera/__init__.pyi +2269 -494
- bl_ui/properties_data_curve/__init__.pyi +2362 -534
- bl_ui/properties_data_curves/__init__.pyi +951 -203
- bl_ui/properties_data_empty/__init__.pyi +317 -69
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -734
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -188
- bl_ui/properties_data_lattice/__init__.pyi +472 -104
- bl_ui/properties_data_light/__init__.pyi +1570 -337
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -208
- bl_ui/properties_data_mesh/__init__.pyi +3205 -767
- bl_ui/properties_data_metaball/__init__.pyi +774 -170
- bl_ui/properties_data_modifier/__init__.pyi +1554 -328
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -194
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -34
- bl_ui/properties_data_speaker/__init__.pyi +782 -168
- bl_ui/properties_data_volume/__init__.pyi +1243 -281
- bl_ui/properties_freestyle/__init__.pyi +4071 -1030
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -483
- bl_ui/properties_mask_common/__init__.pyi +1256 -249
- bl_ui/properties_material/__init__.pyi +2351 -542
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -365
- bl_ui/properties_object/__init__.pyi +2179 -512
- bl_ui/properties_output/__init__.pyi +2956 -705
- bl_ui/properties_paint_common/__init__.pyi +947 -140
- bl_ui/properties_particle/__init__.pyi +8322 -1970
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -508
- bl_ui/properties_physics_common/__init__.pyi +200 -44
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -965
- bl_ui/properties_physics_field/__init__.pyi +1695 -364
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1280
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -32
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -278
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -483
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -542
- bl_ui/properties_render/__init__.pyi +8312 -1933
- bl_ui/properties_scene/__init__.pyi +2211 -539
- bl_ui/properties_texture/__init__.pyi +4185 -1013
- bl_ui/properties_view_layer/__init__.pyi +2803 -664
- bl_ui/properties_workspace/__init__.pyi +626 -148
- bl_ui/properties_world/__init__.pyi +1092 -234
- bl_ui/space_clip/__init__.pyi +11475 -2805
- bl_ui/space_console/__init__.pyi +967 -202
- bl_ui/space_dopesheet/__init__.pyi +4260 -966
- bl_ui/space_filebrowser/__init__.pyi +4852 -1187
- bl_ui/space_graph/__init__.pyi +3251 -702
- bl_ui/space_image/__init__.pyi +12219 -2968
- bl_ui/space_info/__init__.pyi +964 -200
- bl_ui/space_nla/__init__.pyi +2756 -584
- bl_ui/space_node/__init__.pyi +5661 -1265
- bl_ui/space_outliner/__init__.pyi +2294 -478
- bl_ui/space_properties/__init__.pyi +417 -92
- bl_ui/space_sequencer/__init__.pyi +12436 -3009
- bl_ui/space_spreadsheet/__init__.pyi +184 -36
- bl_ui/space_statusbar/__init__.pyi +135 -30
- bl_ui/space_text/__init__.pyi +2556 -542
- bl_ui/space_time/__init__.pyi +1151 -243
- bl_ui/space_toolsystem_common/__init__.pyi +368 -66
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -228
- bl_ui/space_topbar/__init__.pyi +4214 -887
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +43701 -10599
- bl_ui/space_view3d_toolbar/__init__.pyi +16380 -3860
- bl_ui/utils/__init__.pyi +42 -4
- bl_ui_utils/bug_report_url/__init__.pyi +4 -1
- bl_ui_utils/layout/__init__.pyi +4 -1
- blend_render_info/__init__.pyi +13 -3
- blf/__init__.pyi +5 -7
- bmesh/__init__.pyi +7 -7
- bmesh/geometry/__init__.pyi +5 -5
- bmesh/ops/__init__.pyi +490 -504
- bmesh/types/__init__.pyi +268 -262
- bmesh/utils/__init__.pyi +55 -55
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +4 -5
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -10
- bpy/app/timers/__init__.pyi +9 -11
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +3 -12
- bpy/ops/action/__init__.pyi +350 -305
- bpy/ops/anim/__init__.pyi +464 -426
- bpy/ops/armature/__init__.pyi +392 -360
- bpy/ops/asset/__init__.pyi +166 -129
- bpy/ops/boid/__init__.pyi +64 -37
- bpy/ops/brush/__init__.pyi +78 -72
- bpy/ops/buttons/__init__.pyi +136 -122
- bpy/ops/cachefile/__init__.pyi +128 -123
- bpy/ops/camera/__init__.pyi +22 -24
- bpy/ops/clip/__init__.pyi +844 -735
- bpy/ops/cloth/__init__.pyi +10 -11
- bpy/ops/collection/__init__.pyi +38 -38
- bpy/ops/console/__init__.pyi +170 -141
- bpy/ops/constraint/__init__.pyi +156 -159
- bpy/ops/curve/__init__.pyi +518 -461
- bpy/ops/curves/__init__.pyi +188 -159
- bpy/ops/cycles/__init__.pyi +20 -18
- bpy/ops/dpaint/__init__.pyi +40 -30
- bpy/ops/ed/__init__.pyi +136 -107
- bpy/ops/export_anim/__init__.pyi +18 -19
- bpy/ops/export_mesh/__init__.pyi +26 -27
- bpy/ops/export_scene/__init__.pyi +313 -334
- bpy/ops/file/__init__.pyi +394 -304
- bpy/ops/fluid/__init__.pyi +114 -63
- bpy/ops/font/__init__.pyi +272 -245
- bpy/ops/geometry/__init__.pyi +92 -87
- bpy/ops/gizmogroup/__init__.pyi +24 -21
- bpy/ops/gpencil/__init__.pyi +1530 -1476
- bpy/ops/graph/__init__.pyi +680 -659
- bpy/ops/grease_pencil/__init__.pyi +510 -390
- bpy/ops/image/__init__.pyi +650 -603
- bpy/ops/import_anim/__init__.pyi +26 -27
- bpy/ops/import_curve/__init__.pyi +6 -7
- bpy/ops/import_mesh/__init__.pyi +18 -21
- bpy/ops/import_scene/__init__.pyi +86 -95
- bpy/ops/info/__init__.pyi +68 -55
- bpy/ops/lattice/__init__.pyi +70 -63
- bpy/ops/marker/__init__.pyi +110 -111
- bpy/ops/mask/__init__.pyi +352 -308
- bpy/ops/material/__init__.pyi +24 -12
- bpy/ops/mball/__init__.pyi +72 -75
- bpy/ops/mesh/__init__.pyi +2052 -2088
- bpy/ops/nla/__init__.pyi +369 -313
- bpy/ops/node/__init__.pyi +944 -805
- bpy/ops/object/__init__.pyi +2662 -2461
- bpy/ops/outliner/__init__.pyi +582 -431
- bpy/ops/paint/__init__.pyi +605 -516
- bpy/ops/paintcurve/__init__.pyi +72 -60
- bpy/ops/palette/__init__.pyi +54 -46
- bpy/ops/particle/__init__.pyi +302 -245
- bpy/ops/pose/__init__.pyi +366 -330
- bpy/ops/poselib/__init__.pyi +78 -64
- bpy/ops/preferences/__init__.pyi +361 -341
- bpy/ops/ptcache/__init__.pyi +56 -38
- bpy/ops/render/__init__.pyi +120 -117
- bpy/ops/rigidbody/__init__.pyi +114 -97
- bpy/ops/scene/__init__.pyi +302 -240
- bpy/ops/screen/__init__.pyi +414 -363
- bpy/ops/script/__init__.pyi +20 -18
- bpy/ops/sculpt/__init__.pyi +414 -452
- bpy/ops/sculpt_curves/__init__.pyi +42 -43
- bpy/ops/sequencer/__init__.pyi +1094 -1053
- bpy/ops/sound/__init__.pyi +214 -206
- bpy/ops/spreadsheet/__init__.pyi +34 -28
- bpy/ops/surface/__init__.pyi +108 -114
- bpy/ops/text/__init__.pyi +432 -350
- bpy/ops/text_editor/__init__.pyi +10 -11
- bpy/ops/texture/__init__.pyi +32 -21
- bpy/ops/transform/__init__.pyi +801 -854
- bpy/ops/ui/__init__.pyi +254 -185
- bpy/ops/uilist/__init__.pyi +20 -23
- bpy/ops/uv/__init__.pyi +618 -626
- bpy/ops/view2d/__init__.pyi +162 -161
- bpy/ops/view3d/__init__.pyi +669 -658
- bpy/ops/wm/__init__.pyi +2433 -2415
- bpy/ops/workspace/__init__.pyi +54 -31
- bpy/ops/world/__init__.pyi +8 -4
- bpy/path/__init__.pyi +111 -68
- bpy/props/__init__.pyi +263 -267
- bpy/types/__init__.pyi +86789 -85719
- bpy/utils/__init__.pyi +265 -123
- bpy/utils/previews/__init__.pyi +103 -17
- bpy/utils/units/__init__.pyi +19 -22
- bpy_extras/__init__.pyi +0 -4
- bpy_extras/anim_utils/__init__.pyi +11 -46
- bpy_extras/asset_utils/__init__.pyi +3 -12
- bpy_extras/id_map_utils/__init__.pyi +0 -2
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +30 -27
- bpy_extras/keyconfig_utils/__init__.pyi +4 -1
- bpy_extras/mesh_utils/__init__.pyi +18 -18
- bpy_extras/node_utils/__init__.pyi +4 -3
- bpy_extras/object_utils/__init__.pyi +25 -26
- bpy_extras/view3d_utils/__init__.pyi +33 -38
- bpy_restrict_state/__init__.pyi +14 -1
- bpy_types/__init__.pyi +3873 -997
- console_python/__init__.pyi +41 -7
- console_shell/__init__.pyi +24 -5
- {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/chainingiterators/__init__.pyi +50 -52
- freestyle/functions/__init__.pyi +303 -207
- freestyle/predicates/__init__.pyi +299 -115
- freestyle/shaders/__init__.pyi +49 -80
- freestyle/types/__init__.pyi +465 -472
- freestyle/utils/ContextFunctions/__init__.pyi +9 -9
- freestyle/utils/__init__.pyi +28 -18
- gpu/capabilities/__init__.pyi +27 -19
- gpu/matrix/__init__.pyi +14 -16
- gpu/platform/__init__.pyi +5 -5
- gpu/shader/__init__.pyi +2 -5
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +54 -85
- gpu_extras/batch/__init__.pyi +27 -5
- gpu_extras/presets/__init__.pyi +52 -14
- graphviz_export/__init__.pyi +9 -2
- idprop/types/__init__.pyi +36 -12
- imbuf/__init__.pyi +8 -9
- imbuf/types/__init__.pyi +8 -15
- keyingsets_builtins/__init__.pyi +3149 -701
- keyingsets_utils/__init__.pyi +69 -14
- mathutils/__init__.pyi +502 -427
- mathutils/bvhtree/__init__.pyi +28 -32
- mathutils/geometry/__init__.pyi +177 -186
- mathutils/kdtree/__init__.pyi +16 -18
- mathutils/noise/__init__.pyi +47 -48
- nodeitems_builtins/__init__.pyi +50 -10
- nodeitems_utils/__init__.pyi +58 -10
- rna_info/__init__.pyi +230 -26
- rna_keymap_ui/__init__.pyi +29 -6
- rna_prop_ui/__init__.pyi +69 -12
- rna_xml/__init__.pyi +29 -6
- sys_info/__init__.pyi +4 -1
- bpy_extras/bmesh_utils/__init__.pyi +0 -6
- bpy_extras/extensions/__init__.pyi +0 -4
- bpy_extras/extensions/junction_module/__init__.pyi +0 -12
- bpy_extras/node_shader_utils/__init__.pyi +0 -131
- bpy_extras/wm_utils/__init__.pyi +0 -4
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -29
- fake_bpy_module-20240224.dist-info/RECORD +0 -349
- {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
|
@@ -6,8 +6,8 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
6
6
|
def get_border() -> typing.Tuple:
|
|
7
7
|
"""Returns the border.
|
|
8
8
|
|
|
9
|
-
:rtype: typing.Tuple
|
|
10
9
|
:return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).
|
|
10
|
+
:rtype: typing.Tuple
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
...
|
|
@@ -15,8 +15,8 @@ def get_border() -> typing.Tuple:
|
|
|
15
15
|
def get_canvas_height() -> int:
|
|
16
16
|
"""Returns the canvas height.
|
|
17
17
|
|
|
18
|
-
:rtype: int
|
|
19
18
|
:return: The canvas height.
|
|
19
|
+
:rtype: int
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
...
|
|
@@ -24,17 +24,17 @@ def get_canvas_height() -> int:
|
|
|
24
24
|
def get_canvas_width() -> int:
|
|
25
25
|
"""Returns the canvas width.
|
|
26
26
|
|
|
27
|
-
:rtype: int
|
|
28
27
|
:return: The canvas width.
|
|
28
|
+
:rtype: int
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
...
|
|
32
32
|
|
|
33
|
-
def get_selected_fedge() ->
|
|
33
|
+
def get_selected_fedge() -> freestyle.types.FEdge:
|
|
34
34
|
"""Returns the selected FEdge.
|
|
35
35
|
|
|
36
|
-
:rtype: 'freestyle.types.FEdge'
|
|
37
36
|
:return: The selected FEdge.
|
|
37
|
+
:rtype: freestyle.types.FEdge
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
...
|
|
@@ -42,8 +42,8 @@ def get_selected_fedge() -> "freestyle.types.FEdge":
|
|
|
42
42
|
def get_time_stamp() -> int:
|
|
43
43
|
"""Returns the system time stamp.
|
|
44
44
|
|
|
45
|
-
:rtype: int
|
|
46
45
|
:return: The system time stamp.
|
|
46
|
+
:rtype: int
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
49
|
...
|
|
@@ -77,8 +77,8 @@ def read_complete_view_map_pixel(level: int, x: int, y: int) -> float:
|
|
|
77
77
|
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
78
78
|
is in the lower-left corner.
|
|
79
79
|
:type y: int
|
|
80
|
-
:rtype: float
|
|
81
80
|
:return: The floating-point value stored for that pixel.
|
|
81
|
+
:rtype: float
|
|
82
82
|
"""
|
|
83
83
|
|
|
84
84
|
...
|
|
@@ -100,8 +100,8 @@ def read_directional_view_map_pixel(
|
|
|
100
100
|
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
101
101
|
is in the lower-left corner.
|
|
102
102
|
:type y: int
|
|
103
|
-
:rtype: float
|
|
104
103
|
:return: The floating-point value stored for that pixel.
|
|
104
|
+
:rtype: float
|
|
105
105
|
"""
|
|
106
106
|
|
|
107
107
|
...
|
|
@@ -120,8 +120,8 @@ def read_map_pixel(map_name: str, level: int, x: int, y: int) -> float:
|
|
|
120
120
|
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
121
121
|
is in the lower-left corner.
|
|
122
122
|
:type y: int
|
|
123
|
-
:rtype: float
|
|
124
123
|
:return: The floating-point value stored for that pixel.
|
|
124
|
+
:rtype: float
|
|
125
125
|
"""
|
|
126
126
|
|
|
127
127
|
...
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -13,7 +13,6 @@ class BoundingBox:
|
|
|
13
13
|
"""True if self inside other, False otherwise
|
|
14
14
|
|
|
15
15
|
:param other:
|
|
16
|
-
:type other:
|
|
17
16
|
"""
|
|
18
17
|
...
|
|
19
18
|
|
|
@@ -24,7 +23,6 @@ class StrokeCollector:
|
|
|
24
23
|
"""
|
|
25
24
|
|
|
26
25
|
:param stroke:
|
|
27
|
-
:type stroke:
|
|
28
26
|
"""
|
|
29
27
|
...
|
|
30
28
|
|
|
@@ -33,23 +31,31 @@ def angle_x_normal(it):
|
|
|
33
31
|
|
|
34
32
|
...
|
|
35
33
|
|
|
36
|
-
def bound(lower, x, higher):
|
|
34
|
+
def bound(lower, x, higher):
|
|
35
|
+
""" """
|
|
36
|
+
|
|
37
|
+
...
|
|
38
|
+
|
|
37
39
|
def bounding_box(stroke):
|
|
38
40
|
"""Returns the maximum and minimum coordinates (the bounding box) of the stroke's vertices"""
|
|
39
41
|
|
|
40
42
|
...
|
|
41
43
|
|
|
42
|
-
def curvature_from_stroke_vertex(svert):
|
|
44
|
+
def curvature_from_stroke_vertex(svert):
|
|
45
|
+
""" """
|
|
46
|
+
|
|
47
|
+
...
|
|
48
|
+
|
|
43
49
|
def find_matching_vertex(id, it):
|
|
44
50
|
"""Finds the matching vertex, or returns None."""
|
|
45
51
|
|
|
46
52
|
...
|
|
47
53
|
|
|
48
|
-
def getCurrentScene() ->
|
|
54
|
+
def getCurrentScene() -> bpy.types.Scene:
|
|
49
55
|
"""Returns the current scene.
|
|
50
56
|
|
|
51
|
-
:rtype: 'bpy.types.Scene'
|
|
52
57
|
:return: The current scene.
|
|
58
|
+
:rtype: bpy.types.Scene
|
|
53
59
|
"""
|
|
54
60
|
|
|
55
61
|
...
|
|
@@ -75,32 +81,32 @@ def get_test_stroke():
|
|
|
75
81
|
...
|
|
76
82
|
|
|
77
83
|
def integrate(
|
|
78
|
-
func:
|
|
79
|
-
it:
|
|
80
|
-
it_end:
|
|
81
|
-
integration_type:
|
|
82
|
-
) -> typing.Union[
|
|
84
|
+
func: freestyle.types.UnaryFunction0D,
|
|
85
|
+
it: freestyle.types.Interface0DIterator,
|
|
86
|
+
it_end: freestyle.types.Interface0DIterator,
|
|
87
|
+
integration_type: freestyle.types.IntegrationType,
|
|
88
|
+
) -> typing.Union[int, float]:
|
|
83
89
|
"""Returns a single value from a set of values evaluated at each 0D
|
|
84
90
|
element of this 1D element.
|
|
85
91
|
|
|
86
92
|
:param func: The UnaryFunction0D used to compute a value at each
|
|
87
93
|
Interface0D.
|
|
88
|
-
:type func:
|
|
94
|
+
:type func: freestyle.types.UnaryFunction0D
|
|
89
95
|
:param it: The Interface0DIterator used to iterate over the 0D
|
|
90
96
|
elements of this 1D element. The integration will occur over
|
|
91
97
|
the 0D elements starting from the one pointed by it.
|
|
92
|
-
:type it:
|
|
98
|
+
:type it: freestyle.types.Interface0DIterator
|
|
93
99
|
:param it_end: The Interface0DIterator pointing the end of the 0D
|
|
94
100
|
elements of the 1D element.
|
|
95
|
-
:type it_end:
|
|
101
|
+
:type it_end: freestyle.types.Interface0DIterator
|
|
96
102
|
:param integration_type: The integration method used to compute a
|
|
97
103
|
single value from a set of values.
|
|
98
|
-
:type integration_type:
|
|
99
|
-
:rtype: typing.Union[float, int]
|
|
104
|
+
:type integration_type: freestyle.types.IntegrationType
|
|
100
105
|
:return: The single value obtained for the 1D element. The return
|
|
101
106
|
value type is float if func is of the `UnaryFunction0DDouble`
|
|
102
107
|
or `UnaryFunction0DFloat` type, and int if func is of the
|
|
103
108
|
`UnaryFunction0DUnsigned` type.
|
|
109
|
+
:rtype: typing.Union[int, float]
|
|
104
110
|
"""
|
|
105
111
|
|
|
106
112
|
...
|
|
@@ -148,8 +154,12 @@ def material_from_fedge(fe):
|
|
|
148
154
|
|
|
149
155
|
...
|
|
150
156
|
|
|
151
|
-
def normal_at_I0D(it):
|
|
152
|
-
|
|
157
|
+
def normal_at_I0D(it):
|
|
158
|
+
""" """
|
|
159
|
+
|
|
160
|
+
...
|
|
161
|
+
|
|
162
|
+
def pairwise(iterable, types={"None"}):
|
|
153
163
|
"""Yields a tuple containing the previous and current object"""
|
|
154
164
|
|
|
155
165
|
...
|
gpu/capabilities/__init__.pyi
CHANGED
|
@@ -5,16 +5,15 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
5
5
|
def compute_shader_support_get() -> bool:
|
|
6
6
|
"""Are compute shaders supported.
|
|
7
7
|
|
|
8
|
-
:rtype: bool
|
|
9
8
|
:return: True when supported, False when not supported.
|
|
9
|
+
:rtype: bool
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
...
|
|
13
13
|
|
|
14
|
-
def extensions_get()
|
|
14
|
+
def extensions_get():
|
|
15
15
|
"""Get supported extensions in the current context.
|
|
16
16
|
|
|
17
|
-
:rtype: typing.Tuple
|
|
18
17
|
:return: Extensions.
|
|
19
18
|
"""
|
|
20
19
|
|
|
@@ -23,8 +22,8 @@ def extensions_get() -> typing.Tuple:
|
|
|
23
22
|
def hdr_support_get() -> bool:
|
|
24
23
|
"""Return whether GPU backend supports High Dynamic range for viewport.
|
|
25
24
|
|
|
26
|
-
:rtype: bool
|
|
27
25
|
:return: HDR support available.
|
|
26
|
+
:rtype: bool
|
|
28
27
|
"""
|
|
29
28
|
|
|
30
29
|
...
|
|
@@ -32,8 +31,8 @@ def hdr_support_get() -> bool:
|
|
|
32
31
|
def max_batch_indices_get() -> int:
|
|
33
32
|
"""Get maximum number of vertex array indices.
|
|
34
33
|
|
|
35
|
-
:rtype: int
|
|
36
34
|
:return: Number of indices.
|
|
35
|
+
:rtype: int
|
|
37
36
|
"""
|
|
38
37
|
|
|
39
38
|
...
|
|
@@ -41,8 +40,17 @@ def max_batch_indices_get() -> int:
|
|
|
41
40
|
def max_batch_vertices_get() -> int:
|
|
42
41
|
"""Get maximum number of vertex array vertices.
|
|
43
42
|
|
|
44
|
-
:rtype: int
|
|
45
43
|
:return: Number of vertices.
|
|
44
|
+
:rtype: int
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
...
|
|
48
|
+
|
|
49
|
+
def max_images_get() -> int:
|
|
50
|
+
"""Get maximum supported number of image units.
|
|
51
|
+
|
|
52
|
+
:return: Number of image units.
|
|
53
|
+
:rtype: int
|
|
46
54
|
"""
|
|
47
55
|
|
|
48
56
|
...
|
|
@@ -50,8 +58,8 @@ def max_batch_vertices_get() -> int:
|
|
|
50
58
|
def max_texture_layers_get() -> int:
|
|
51
59
|
"""Get maximum number of layers in texture.
|
|
52
60
|
|
|
53
|
-
:rtype: int
|
|
54
61
|
:return: Number of layers.
|
|
62
|
+
:rtype: int
|
|
55
63
|
"""
|
|
56
64
|
|
|
57
65
|
...
|
|
@@ -59,8 +67,8 @@ def max_texture_layers_get() -> int:
|
|
|
59
67
|
def max_texture_size_get() -> int:
|
|
60
68
|
"""Get estimated maximum texture size to be able to handle.
|
|
61
69
|
|
|
62
|
-
:rtype: int
|
|
63
70
|
:return: Texture size.
|
|
71
|
+
:rtype: int
|
|
64
72
|
"""
|
|
65
73
|
|
|
66
74
|
...
|
|
@@ -69,8 +77,8 @@ def max_textures_frag_get() -> int:
|
|
|
69
77
|
"""Get maximum supported texture image units used for
|
|
70
78
|
accessing texture maps from the fragment shader.
|
|
71
79
|
|
|
72
|
-
:rtype: int
|
|
73
80
|
:return: Texture image units.
|
|
81
|
+
:rtype: int
|
|
74
82
|
"""
|
|
75
83
|
|
|
76
84
|
...
|
|
@@ -79,8 +87,8 @@ def max_textures_geom_get() -> int:
|
|
|
79
87
|
"""Get maximum supported texture image units used for
|
|
80
88
|
accessing texture maps from the geometry shader.
|
|
81
89
|
|
|
82
|
-
:rtype: int
|
|
83
90
|
:return: Texture image units.
|
|
91
|
+
:rtype: int
|
|
84
92
|
"""
|
|
85
93
|
|
|
86
94
|
...
|
|
@@ -90,8 +98,8 @@ def max_textures_get() -> int:
|
|
|
90
98
|
accessing texture maps from the vertex shader and the
|
|
91
99
|
fragment processor.
|
|
92
100
|
|
|
93
|
-
:rtype: int
|
|
94
101
|
:return: Texture image units.
|
|
102
|
+
:rtype: int
|
|
95
103
|
"""
|
|
96
104
|
|
|
97
105
|
...
|
|
@@ -100,8 +108,8 @@ def max_textures_vert_get() -> int:
|
|
|
100
108
|
"""Get maximum supported texture image units used for
|
|
101
109
|
accessing texture maps from the vertex shader.
|
|
102
110
|
|
|
103
|
-
:rtype: int
|
|
104
111
|
:return: Texture image units.
|
|
112
|
+
:rtype: int
|
|
105
113
|
"""
|
|
106
114
|
|
|
107
115
|
...
|
|
@@ -110,8 +118,8 @@ def max_uniforms_frag_get() -> int:
|
|
|
110
118
|
"""Get maximum number of values held in uniform variable
|
|
111
119
|
storage for a fragment shader.
|
|
112
120
|
|
|
113
|
-
:rtype: int
|
|
114
121
|
:return: Number of values.
|
|
122
|
+
:rtype: int
|
|
115
123
|
"""
|
|
116
124
|
|
|
117
125
|
...
|
|
@@ -120,8 +128,8 @@ def max_uniforms_vert_get() -> int:
|
|
|
120
128
|
"""Get maximum number of values held in uniform variable
|
|
121
129
|
storage for a vertex shader.
|
|
122
130
|
|
|
123
|
-
:rtype: int
|
|
124
131
|
:return: Number of values.
|
|
132
|
+
:rtype: int
|
|
125
133
|
"""
|
|
126
134
|
|
|
127
135
|
...
|
|
@@ -130,8 +138,8 @@ def max_varying_floats_get() -> int:
|
|
|
130
138
|
"""Get maximum number of varying variables used by
|
|
131
139
|
vertex and fragment shaders.
|
|
132
140
|
|
|
133
|
-
:rtype: int
|
|
134
141
|
:return: Number of variables.
|
|
142
|
+
:rtype: int
|
|
135
143
|
"""
|
|
136
144
|
|
|
137
145
|
...
|
|
@@ -140,8 +148,8 @@ def max_vertex_attribs_get() -> int:
|
|
|
140
148
|
"""Get maximum number of vertex attributes accessible to
|
|
141
149
|
a vertex shader.
|
|
142
150
|
|
|
143
|
-
:rtype: int
|
|
144
151
|
:return: Number of attributes.
|
|
152
|
+
:rtype: int
|
|
145
153
|
"""
|
|
146
154
|
|
|
147
155
|
...
|
|
@@ -151,8 +159,8 @@ def max_work_group_count_get(index: int) -> int:
|
|
|
151
159
|
|
|
152
160
|
:param index: Index of the dimension.
|
|
153
161
|
:type index: int
|
|
154
|
-
:rtype: int
|
|
155
162
|
:return: Maximum number of work groups for the queried dimension.
|
|
163
|
+
:rtype: int
|
|
156
164
|
"""
|
|
157
165
|
|
|
158
166
|
...
|
|
@@ -162,8 +170,8 @@ def max_work_group_size_get(index: int) -> int:
|
|
|
162
170
|
|
|
163
171
|
:param index: Index of the dimension.
|
|
164
172
|
:type index: int
|
|
165
|
-
:rtype: int
|
|
166
173
|
:return: Maximum size of a work group for the queried dimension.
|
|
174
|
+
:rtype: int
|
|
167
175
|
"""
|
|
168
176
|
|
|
169
177
|
...
|
|
@@ -171,8 +179,8 @@ def max_work_group_size_get(index: int) -> int:
|
|
|
171
179
|
def shader_image_load_store_support_get() -> bool:
|
|
172
180
|
"""Is image load/store supported.
|
|
173
181
|
|
|
174
|
-
:rtype: bool
|
|
175
182
|
:return: True when supported, False when not supported.
|
|
183
|
+
:rtype: bool
|
|
176
184
|
"""
|
|
177
185
|
|
|
178
186
|
...
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -3,29 +3,29 @@ import mathutils
|
|
|
3
3
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
|
-
def get_model_view_matrix() ->
|
|
6
|
+
def get_model_view_matrix() -> mathutils.Matrix:
|
|
7
7
|
"""Return a copy of the model-view matrix.
|
|
8
8
|
|
|
9
|
-
:rtype: 'mathutils.Matrix'
|
|
10
9
|
:return: A 4x4 view matrix.
|
|
10
|
+
:rtype: mathutils.Matrix
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
...
|
|
14
14
|
|
|
15
|
-
def get_normal_matrix() ->
|
|
15
|
+
def get_normal_matrix() -> mathutils.Matrix:
|
|
16
16
|
"""Return a copy of the normal matrix.
|
|
17
17
|
|
|
18
|
-
:rtype: 'mathutils.Matrix'
|
|
19
18
|
:return: A 3x3 normal matrix.
|
|
19
|
+
:rtype: mathutils.Matrix
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
...
|
|
23
23
|
|
|
24
|
-
def get_projection_matrix() ->
|
|
24
|
+
def get_projection_matrix() -> mathutils.Matrix:
|
|
25
25
|
"""Return a copy of the projection matrix.
|
|
26
26
|
|
|
27
|
-
:rtype: 'mathutils.Matrix'
|
|
28
27
|
:return: A 4x4 projection matrix.
|
|
28
|
+
:rtype: mathutils.Matrix
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
...
|
|
@@ -35,31 +35,31 @@ def load_identity():
|
|
|
35
35
|
|
|
36
36
|
...
|
|
37
37
|
|
|
38
|
-
def load_matrix(matrix: typing.Union[
|
|
38
|
+
def load_matrix(matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]):
|
|
39
39
|
"""Load a matrix into the stack.
|
|
40
40
|
|
|
41
41
|
:param matrix: A 4x4 matrix.
|
|
42
|
-
:type matrix: typing.Union[
|
|
42
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
43
43
|
"""
|
|
44
44
|
|
|
45
45
|
...
|
|
46
46
|
|
|
47
47
|
def load_projection_matrix(
|
|
48
|
-
matrix: typing.Union[
|
|
48
|
+
matrix: typing.Union[typing.Sequence[float], mathutils.Matrix],
|
|
49
49
|
):
|
|
50
50
|
"""Load a projection matrix into the stack.
|
|
51
51
|
|
|
52
52
|
:param matrix: A 4x4 matrix.
|
|
53
|
-
:type matrix: typing.Union[
|
|
53
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
...
|
|
57
57
|
|
|
58
|
-
def multiply_matrix(matrix: typing.Union[
|
|
58
|
+
def multiply_matrix(matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]):
|
|
59
59
|
"""Multiply the current stack matrix.
|
|
60
60
|
|
|
61
61
|
:param matrix: A 4x4 matrix.
|
|
62
|
-
:type matrix: typing.Union[
|
|
62
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
63
63
|
"""
|
|
64
64
|
|
|
65
65
|
...
|
|
@@ -99,11 +99,10 @@ def reset():
|
|
|
99
99
|
|
|
100
100
|
...
|
|
101
101
|
|
|
102
|
-
def scale(scale
|
|
102
|
+
def scale(scale):
|
|
103
103
|
"""Scale the current stack matrix.
|
|
104
104
|
|
|
105
105
|
:param scale: Scale the current stack matrix.
|
|
106
|
-
:type scale: typing.List
|
|
107
106
|
"""
|
|
108
107
|
|
|
109
108
|
...
|
|
@@ -117,11 +116,10 @@ def scale_uniform(scale: float):
|
|
|
117
116
|
|
|
118
117
|
...
|
|
119
118
|
|
|
120
|
-
def translate(offset
|
|
119
|
+
def translate(offset):
|
|
121
120
|
"""Scale the current stack matrix.
|
|
122
121
|
|
|
123
122
|
:param offset: Translate the current stack matrix.
|
|
124
|
-
:type offset: typing.List
|
|
125
123
|
"""
|
|
126
124
|
|
|
127
125
|
...
|
gpu/platform/__init__.pyi
CHANGED
|
@@ -5,8 +5,8 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
5
5
|
def backend_type_get() -> str:
|
|
6
6
|
"""Get actuve GPU backend.
|
|
7
7
|
|
|
8
|
-
:rtype: str
|
|
9
8
|
:return: Backend type ('OPENGL', 'VULKAN', 'METAL', 'NONE', 'UNKNOWN').
|
|
9
|
+
:rtype: str
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
...
|
|
@@ -14,8 +14,8 @@ def backend_type_get() -> str:
|
|
|
14
14
|
def device_type_get() -> str:
|
|
15
15
|
"""Get GPU device type.
|
|
16
16
|
|
|
17
|
-
:rtype: str
|
|
18
17
|
:return: Device type ('APPLE', 'NVIDIA', 'AMD', 'INTEL', 'SOFTWARE', 'QUALCOMM', 'UNKNOWN').
|
|
18
|
+
:rtype: str
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
...
|
|
@@ -23,8 +23,8 @@ def device_type_get() -> str:
|
|
|
23
23
|
def renderer_get() -> str:
|
|
24
24
|
"""Get GPU to be used for rendering.
|
|
25
25
|
|
|
26
|
-
:rtype: str
|
|
27
26
|
:return: GPU name.
|
|
27
|
+
:rtype: str
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
...
|
|
@@ -32,8 +32,8 @@ def renderer_get() -> str:
|
|
|
32
32
|
def vendor_get() -> str:
|
|
33
33
|
"""Get GPU vendor.
|
|
34
34
|
|
|
35
|
-
:rtype: str
|
|
36
35
|
:return: Vendor name.
|
|
36
|
+
:rtype: str
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
...
|
|
@@ -41,8 +41,8 @@ def vendor_get() -> str:
|
|
|
41
41
|
def version_get() -> str:
|
|
42
42
|
"""Get GPU driver version.
|
|
43
43
|
|
|
44
|
-
:rtype: str
|
|
45
44
|
:return: Driver version.
|
|
45
|
+
:rtype: str
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
...
|
gpu/shader/__init__.pyi
CHANGED
|
@@ -2,18 +2,16 @@ import typing
|
|
|
2
2
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
|
-
def create_from_info(shader_info
|
|
5
|
+
def create_from_info(shader_info):
|
|
6
6
|
"""Create shader from a GPUShaderCreateInfo.
|
|
7
7
|
|
|
8
8
|
:param shader_info: GPUShaderCreateInfo
|
|
9
|
-
:type shader_info: typing.Any
|
|
10
|
-
:rtype: typing.Any
|
|
11
9
|
:return: Shader object corresponding to the given name.
|
|
12
10
|
"""
|
|
13
11
|
|
|
14
12
|
...
|
|
15
13
|
|
|
16
|
-
def from_builtin(shader_name: str, config: str = "DEFAULT")
|
|
14
|
+
def from_builtin(shader_name: str, config: str = "DEFAULT"):
|
|
17
15
|
"""Shaders that are embedded in the blender internal code (see `built-in-shaders`).
|
|
18
16
|
They all read the uniform mat4 ModelViewProjectionMatrix,
|
|
19
17
|
which can be edited by the `gpu.matrix` module.You can also choose a shader configuration that uses clip_planes by setting the CLIPPED value to the config parameter. Note that in this case you also need to manually set the value of mat4 ModelMatrix.
|
|
@@ -26,7 +24,6 @@ def from_builtin(shader_name: str, config: str = "DEFAULT") -> typing.Any:
|
|
|
26
24
|
|
|
27
25
|
CLIPPED
|
|
28
26
|
:type config: str
|
|
29
|
-
:rtype: typing.Any
|
|
30
27
|
:return: Shader object corresponding to the given name.
|
|
31
28
|
"""
|
|
32
29
|
|
gpu/state/__init__.pyi
CHANGED
|
@@ -119,11 +119,11 @@ def scissor_get() -> typing.Union[int, int]:
|
|
|
119
119
|
"""Retrieve the scissors of the active framebuffer.
|
|
120
120
|
Note: Only valid between 'scissor_set' and a framebuffer rebind.
|
|
121
121
|
|
|
122
|
-
:rtype: typing.Union[int, int]
|
|
123
122
|
:return: The scissor of the active framebuffer as a tuple
|
|
124
123
|
(x, y, xsize, ysize).
|
|
125
124
|
x, y: lower left corner of the scissor rectangle, in pixels.
|
|
126
125
|
xsize, ysize: width and height of the scissor rectangle.
|
|
126
|
+
:rtype: typing.Union[int, int]
|
|
127
127
|
"""
|
|
128
128
|
|
|
129
129
|
...
|
gpu/texture/__init__.pyi
CHANGED
|
@@ -4,14 +4,14 @@ import gpu.types
|
|
|
4
4
|
|
|
5
5
|
GenericType = typing.TypeVar("GenericType")
|
|
6
6
|
|
|
7
|
-
def from_image(image:
|
|
7
|
+
def from_image(image: bpy.types.Image) -> gpu.types.GPUTexture:
|
|
8
8
|
"""Get GPUTexture corresponding to an Image datablock. The GPUTexture memory is shared with Blender.
|
|
9
9
|
Note: Colors read from the texture will be in scene linear color space and have premultiplied or straight alpha matching the image alpha mode.
|
|
10
10
|
|
|
11
11
|
:param image: The Image datablock.
|
|
12
|
-
:type image:
|
|
13
|
-
:rtype: 'gpu.types.GPUTexture'
|
|
12
|
+
:type image: bpy.types.Image
|
|
14
13
|
:return: The GPUTexture used by the image.
|
|
14
|
+
:rtype: gpu.types.GPUTexture
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
...
|