fake-bpy-module 20240528__py3-none-any.whl → 20240530__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.
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -3
- bl_operators/__init__.pyi +2 -0
- bl_operators/connect_to_output/__init__.pyi +325 -0
- bl_operators/image_as_planes/__init__.pyi +11 -5
- bl_operators/node_editor/__init__.pyi +6 -0
- bl_operators/node_editor/node_functions/__init__.pyi +23 -0
- bl_operators/presets/__init__.pyi +12 -12
- bl_operators/wm/__init__.pyi +24 -24
- bl_ui/__init__.pyi +12 -12
- bl_ui/anim/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +6 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +108 -108
- bl_ui/node_add_menu_geometry/__init__.pyi +288 -288
- bl_ui/node_add_menu_shader/__init__.pyi +60 -60
- bl_ui/node_add_menu_texture/__init__.pyi +54 -54
- bl_ui/properties_collection/__init__.pyi +6 -6
- bl_ui/properties_data_armature/__init__.pyi +12 -12
- bl_ui/properties_data_camera/__init__.pyi +12 -12
- bl_ui/properties_data_curves/__init__.pyi +6 -6
- bl_ui/properties_data_gpencil/__init__.pyi +12 -12
- bl_ui/properties_data_grease_pencil/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +24 -24
- bl_ui/properties_data_modifier/__init__.pyi +42 -42
- bl_ui/properties_data_pointcloud/__init__.pyi +6 -6
- bl_ui/properties_freestyle/__init__.pyi +6 -6
- bl_ui/properties_grease_pencil_common/__init__.pyi +72 -72
- bl_ui/properties_mask_common/__init__.pyi +36 -36
- bl_ui/properties_material/__init__.pyi +6 -6
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +6 -6
- bl_ui/properties_output/__init__.pyi +18 -18
- bl_ui/properties_paint_common/__init__.pyi +6 -6
- bl_ui/properties_particle/__init__.pyi +12 -12
- bl_ui/properties_physics_cloth/__init__.pyi +6 -6
- bl_ui/properties_physics_fluid/__init__.pyi +6 -6
- bl_ui/properties_render/__init__.pyi +6 -6
- bl_ui/properties_texture/__init__.pyi +6 -6
- bl_ui/properties_view_layer/__init__.pyi +6 -6
- bl_ui/space_clip/__init__.pyi +186 -186
- bl_ui/space_console/__init__.pyi +30 -30
- bl_ui/space_dopesheet/__init__.pyi +84 -84
- bl_ui/space_filebrowser/__init__.pyi +78 -78
- bl_ui/space_graph/__init__.pyi +96 -96
- bl_ui/space_image/__init__.pyi +138 -138
- bl_ui/space_info/__init__.pyi +30 -30
- bl_ui/space_nla/__init__.pyi +78 -78
- bl_ui/space_node/__init__.pyi +72 -72
- bl_ui/space_outliner/__init__.pyi +72 -72
- bl_ui/space_sequencer/__init__.pyi +204 -204
- bl_ui/space_text/__init__.pyi +72 -72
- bl_ui/space_time/__init__.pyi +24 -24
- bl_ui/space_toolsystem_toolbar/__init__.pyi +4 -0
- bl_ui/space_topbar/__init__.pyi +114 -114
- bl_ui/space_userpref/__init__.pyi +36 -36
- bl_ui/space_view3d/__init__.pyi +1446 -1176
- bl_ui/space_view3d_toolbar/__init__.pyi +30 -30
- bl_ui/utils/__init__.pyi +6 -6
- bmesh/geometry/__init__.pyi +2 -2
- bmesh/ops/__init__.pyi +55 -54
- bmesh/types/__init__.pyi +171 -194
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/handlers/__init__.pyi +37 -37
- bpy/app/icons/__init__.pyi +4 -4
- bpy/app/timers/__init__.pyi +6 -6
- bpy/ops/bl_pkg/__init__.pyi +4 -4
- bpy/ops/image/__init__.pyi +55 -55
- bpy/ops/node/__init__.pyi +18 -0
- bpy/ops/paint/__init__.pyi +66 -0
- bpy/ops/preferences/__init__.pyi +2 -2
- bpy/ops/sculpt/__init__.pyi +126 -0
- bpy/props/__init__.pyi +16 -14
- bpy/types/__init__.pyi +269 -54
- bpy/utils/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +4 -4
- bpy_extras/io_utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +8 -8
- bpy_types/__init__.pyi +12 -12
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/RECORD +92 -89
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +64 -56
- gpu/matrix/__init__.pyi +6 -6
- gpu/types/__init__.pyi +10 -8
- imbuf/__init__.pyi +2 -2
- mathutils/__init__.pyi +176 -137
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +139 -139
- mathutils/kdtree/__init__.pyi +14 -10
- mathutils/noise/__init__.pyi +26 -26
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/top_level.txt +0 -0
freestyle/types/__init__.pyi
CHANGED
|
@@ -665,17 +665,17 @@ is a border, it has no Face on its right and therefore no material.
|
|
|
665
665
|
:type: Material
|
|
666
666
|
"""
|
|
667
667
|
|
|
668
|
-
normal_left:
|
|
668
|
+
normal_left: collections.abc.Sequence[float] | mathutils.Vector
|
|
669
669
|
""" The normal to the face lying on the left of the FEdge.
|
|
670
670
|
|
|
671
|
-
:type:
|
|
671
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
672
672
|
"""
|
|
673
673
|
|
|
674
|
-
normal_right:
|
|
674
|
+
normal_right: collections.abc.Sequence[float] | mathutils.Vector
|
|
675
675
|
""" The normal to the face lying on the right of the FEdge. If this FEdge
|
|
676
676
|
is a border, it has no Face on its right and therefore no normal.
|
|
677
677
|
|
|
678
|
-
:type:
|
|
678
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
679
679
|
"""
|
|
680
680
|
|
|
681
681
|
def __init__(self):
|
|
@@ -729,10 +729,10 @@ class FEdgeSmooth:
|
|
|
729
729
|
:type: int
|
|
730
730
|
"""
|
|
731
731
|
|
|
732
|
-
normal:
|
|
732
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
733
733
|
""" The normal of the face that this FEdge is running across.
|
|
734
734
|
|
|
735
|
-
:type:
|
|
735
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
736
736
|
"""
|
|
737
737
|
|
|
738
738
|
def __init__(self):
|
|
@@ -823,16 +823,16 @@ class Interface0D:
|
|
|
823
823
|
:type: Nature
|
|
824
824
|
"""
|
|
825
825
|
|
|
826
|
-
point_2d:
|
|
826
|
+
point_2d: collections.abc.Sequence[float] | mathutils.Vector
|
|
827
827
|
""" The 2D point of this 0D element.
|
|
828
828
|
|
|
829
|
-
:type:
|
|
829
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
830
830
|
"""
|
|
831
831
|
|
|
832
|
-
point_3d:
|
|
832
|
+
point_3d: collections.abc.Sequence[float] | mathutils.Vector
|
|
833
833
|
""" The 3D point of this 0D element.
|
|
834
834
|
|
|
835
|
-
:type:
|
|
835
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
836
836
|
"""
|
|
837
837
|
|
|
838
838
|
projected_x: float
|
|
@@ -1038,28 +1038,28 @@ class Iterator:
|
|
|
1038
1038
|
class Material:
|
|
1039
1039
|
"""Class defining a material."""
|
|
1040
1040
|
|
|
1041
|
-
ambient:
|
|
1041
|
+
ambient: collections.abc.Sequence[float] | mathutils.Color
|
|
1042
1042
|
""" RGBA components of the ambient color of the material.
|
|
1043
1043
|
|
|
1044
|
-
:type:
|
|
1044
|
+
:type: collections.abc.Sequence[float] | mathutils.Color
|
|
1045
1045
|
"""
|
|
1046
1046
|
|
|
1047
|
-
diffuse:
|
|
1047
|
+
diffuse: collections.abc.Sequence[float] | mathutils.Vector
|
|
1048
1048
|
""" RGBA components of the diffuse color of the material.
|
|
1049
1049
|
|
|
1050
|
-
:type:
|
|
1050
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1051
1051
|
"""
|
|
1052
1052
|
|
|
1053
|
-
emission:
|
|
1053
|
+
emission: collections.abc.Sequence[float] | mathutils.Color
|
|
1054
1054
|
""" RGBA components of the emissive color of the material.
|
|
1055
1055
|
|
|
1056
|
-
:type:
|
|
1056
|
+
:type: collections.abc.Sequence[float] | mathutils.Color
|
|
1057
1057
|
"""
|
|
1058
1058
|
|
|
1059
|
-
line:
|
|
1059
|
+
line: collections.abc.Sequence[float] | mathutils.Vector
|
|
1060
1060
|
""" RGBA components of the line color of the material.
|
|
1061
1061
|
|
|
1062
|
-
:type:
|
|
1062
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1063
1063
|
"""
|
|
1064
1064
|
|
|
1065
1065
|
priority: int
|
|
@@ -1074,10 +1074,10 @@ class Material:
|
|
|
1074
1074
|
:type: float
|
|
1075
1075
|
"""
|
|
1076
1076
|
|
|
1077
|
-
specular:
|
|
1077
|
+
specular: collections.abc.Sequence[float] | mathutils.Vector
|
|
1078
1078
|
""" RGBA components of the specular color of the material.
|
|
1079
1079
|
|
|
1080
|
-
:type:
|
|
1080
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1081
1081
|
"""
|
|
1082
1082
|
|
|
1083
1083
|
def __init__(self):
|
|
@@ -1098,11 +1098,11 @@ class Material:
|
|
|
1098
1098
|
|
|
1099
1099
|
def __init__(
|
|
1100
1100
|
self,
|
|
1101
|
-
line:
|
|
1102
|
-
diffuse:
|
|
1103
|
-
ambient:
|
|
1104
|
-
specular:
|
|
1105
|
-
emission:
|
|
1101
|
+
line: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1102
|
+
diffuse: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1103
|
+
ambient: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1104
|
+
specular: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1105
|
+
emission: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1106
1106
|
shininess: float,
|
|
1107
1107
|
priority: int,
|
|
1108
1108
|
):
|
|
@@ -1110,15 +1110,15 @@ class Material:
|
|
|
1110
1110
|
copy constructor, or an overloaded constructor
|
|
1111
1111
|
|
|
1112
1112
|
:param line: The line color.
|
|
1113
|
-
:type line:
|
|
1113
|
+
:type line: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1114
1114
|
:param diffuse: The diffuse color.
|
|
1115
|
-
:type diffuse:
|
|
1115
|
+
:type diffuse: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1116
1116
|
:param ambient: The ambient color.
|
|
1117
|
-
:type ambient:
|
|
1117
|
+
:type ambient: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1118
1118
|
:param specular: The specular color.
|
|
1119
|
-
:type specular:
|
|
1119
|
+
:type specular: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1120
1120
|
:param emission: The emissive color.
|
|
1121
|
-
:type emission:
|
|
1121
|
+
:type emission: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1122
1122
|
:param shininess: The shininess coefficient.
|
|
1123
1123
|
:type shininess: float
|
|
1124
1124
|
:param priority: The line color priority.
|
|
@@ -1162,24 +1162,24 @@ class Noise:
|
|
|
1162
1162
|
...
|
|
1163
1163
|
|
|
1164
1164
|
def smoothNoise2(
|
|
1165
|
-
self, v:
|
|
1165
|
+
self, v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1166
1166
|
) -> float:
|
|
1167
1167
|
"""Returns a smooth noise value for a 2D element.
|
|
1168
1168
|
|
|
1169
1169
|
:param v: Two-dimensional sample point.
|
|
1170
|
-
:type v:
|
|
1170
|
+
:type v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1171
1171
|
:return: A smooth noise value.
|
|
1172
1172
|
:rtype: float
|
|
1173
1173
|
"""
|
|
1174
1174
|
...
|
|
1175
1175
|
|
|
1176
1176
|
def smoothNoise3(
|
|
1177
|
-
self, v:
|
|
1177
|
+
self, v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1178
1178
|
) -> float:
|
|
1179
1179
|
"""Returns a smooth noise value for a 3D element.
|
|
1180
1180
|
|
|
1181
1181
|
:param v: Three-dimensional sample point.
|
|
1182
|
-
:type v:
|
|
1182
|
+
:type v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1183
1183
|
:return: A smooth noise value.
|
|
1184
1184
|
:rtype: float
|
|
1185
1185
|
"""
|
|
@@ -1203,7 +1203,7 @@ class Noise:
|
|
|
1203
1203
|
|
|
1204
1204
|
def turbulence2(
|
|
1205
1205
|
self,
|
|
1206
|
-
v:
|
|
1206
|
+
v: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1207
1207
|
freq: float,
|
|
1208
1208
|
amp: float,
|
|
1209
1209
|
oct: int = 4,
|
|
@@ -1211,7 +1211,7 @@ class Noise:
|
|
|
1211
1211
|
"""Returns a noise value for a 2D element.
|
|
1212
1212
|
|
|
1213
1213
|
:param v: Two-dimensional sample point.
|
|
1214
|
-
:type v:
|
|
1214
|
+
:type v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1215
1215
|
:param freq: Noise frequency.
|
|
1216
1216
|
:type freq: float
|
|
1217
1217
|
:param amp: Amplitude.
|
|
@@ -1225,7 +1225,7 @@ class Noise:
|
|
|
1225
1225
|
|
|
1226
1226
|
def turbulence3(
|
|
1227
1227
|
self,
|
|
1228
|
-
v:
|
|
1228
|
+
v: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
1229
1229
|
freq: float,
|
|
1230
1230
|
amp: float,
|
|
1231
1231
|
oct: int = 4,
|
|
@@ -1233,7 +1233,7 @@ class Noise:
|
|
|
1233
1233
|
"""Returns a noise value for a 3D element.
|
|
1234
1234
|
|
|
1235
1235
|
:param v: Three-dimensional sample point.
|
|
1236
|
-
:type v:
|
|
1236
|
+
:type v: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1237
1237
|
:param freq: Noise frequency.
|
|
1238
1238
|
:type freq: float
|
|
1239
1239
|
:param amp: Amplitude.
|
|
@@ -1677,16 +1677,16 @@ number of normals."""
|
|
|
1677
1677
|
:type: int
|
|
1678
1678
|
"""
|
|
1679
1679
|
|
|
1680
|
-
point_2d:
|
|
1680
|
+
point_2d: collections.abc.Sequence[float] | mathutils.Vector
|
|
1681
1681
|
""" The projected 3D coordinates of the SVertex.
|
|
1682
1682
|
|
|
1683
|
-
:type:
|
|
1683
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1684
1684
|
"""
|
|
1685
1685
|
|
|
1686
|
-
point_3d:
|
|
1686
|
+
point_3d: collections.abc.Sequence[float] | mathutils.Vector
|
|
1687
1687
|
""" The 3D coordinates of the SVertex.
|
|
1688
1688
|
|
|
1689
|
-
:type:
|
|
1689
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1690
1690
|
"""
|
|
1691
1691
|
|
|
1692
1692
|
viewvertex: ViewVertex
|
|
@@ -1712,12 +1712,14 @@ ViewVertex, and None otherwise.
|
|
|
1712
1712
|
"""
|
|
1713
1713
|
...
|
|
1714
1714
|
|
|
1715
|
-
def __init__(
|
|
1715
|
+
def __init__(
|
|
1716
|
+
self, point_3d: collections.abc.Sequence[float] | mathutils.Vector, id: Id
|
|
1717
|
+
):
|
|
1716
1718
|
"""Builds a `SVertex` using the default constructor,
|
|
1717
1719
|
copy constructor or the overloaded constructor which builds a `SVertex` from 3D coordinates and an Id.
|
|
1718
1720
|
|
|
1719
1721
|
:param point_3d: A three-dimensional vector.
|
|
1720
|
-
:type point_3d:
|
|
1722
|
+
:type point_3d: collections.abc.Sequence[float] | mathutils.Vector
|
|
1721
1723
|
:param id: An Id object.
|
|
1722
1724
|
:type id: Id
|
|
1723
1725
|
"""
|
|
@@ -1731,12 +1733,14 @@ ViewVertex, and None otherwise.
|
|
|
1731
1733
|
"""
|
|
1732
1734
|
...
|
|
1733
1735
|
|
|
1734
|
-
def add_normal(
|
|
1736
|
+
def add_normal(
|
|
1737
|
+
self, normal: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1738
|
+
):
|
|
1735
1739
|
"""Adds a normal to the SVertex's set of normals. If the same normal
|
|
1736
1740
|
is already in the set, nothing changes.
|
|
1737
1741
|
|
|
1738
1742
|
:param normal: A three-dimensional vector.
|
|
1739
|
-
:type normal:
|
|
1743
|
+
:type normal: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
1740
1744
|
"""
|
|
1741
1745
|
...
|
|
1742
1746
|
|
|
@@ -1956,18 +1960,18 @@ class StrokeAttribute:
|
|
|
1956
1960
|
:type: float
|
|
1957
1961
|
"""
|
|
1958
1962
|
|
|
1959
|
-
color:
|
|
1963
|
+
color: collections.abc.Sequence[float] | mathutils.Color
|
|
1960
1964
|
""" RGB components of the stroke color.
|
|
1961
1965
|
|
|
1962
|
-
:type:
|
|
1966
|
+
:type: collections.abc.Sequence[float] | mathutils.Color
|
|
1963
1967
|
"""
|
|
1964
1968
|
|
|
1965
|
-
thickness:
|
|
1969
|
+
thickness: collections.abc.Sequence[float] | mathutils.Vector
|
|
1966
1970
|
""" Right and left components of the stroke thickness.
|
|
1967
1971
|
The right (left) component is the thickness on the right (left) of the vertex
|
|
1968
1972
|
when following the stroke.
|
|
1969
1973
|
|
|
1970
|
-
:type:
|
|
1974
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
1971
1975
|
"""
|
|
1972
1976
|
|
|
1973
1977
|
visible: bool
|
|
@@ -2113,7 +2117,9 @@ when following the stroke.
|
|
|
2113
2117
|
...
|
|
2114
2118
|
|
|
2115
2119
|
def set_attribute_vec2(
|
|
2116
|
-
self,
|
|
2120
|
+
self,
|
|
2121
|
+
name: str,
|
|
2122
|
+
value: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
2117
2123
|
):
|
|
2118
2124
|
"""Adds a user-defined attribute of two-dimensional vector type. If
|
|
2119
2125
|
there is no attribute of the given name, it is added. Otherwise,
|
|
@@ -2122,12 +2128,14 @@ when following the stroke.
|
|
|
2122
2128
|
:param name: The name of the attribute.
|
|
2123
2129
|
:type name: str
|
|
2124
2130
|
:param value: The attribute value.
|
|
2125
|
-
:type value:
|
|
2131
|
+
:type value: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
2126
2132
|
"""
|
|
2127
2133
|
...
|
|
2128
2134
|
|
|
2129
2135
|
def set_attribute_vec3(
|
|
2130
|
-
self,
|
|
2136
|
+
self,
|
|
2137
|
+
name: str,
|
|
2138
|
+
value: collections.abc.Sequence[float] | mathutils.Vector | list,
|
|
2131
2139
|
):
|
|
2132
2140
|
"""Adds a user-defined attribute of three-dimensional vector type.
|
|
2133
2141
|
If there is no attribute of the given name, it is added.
|
|
@@ -2136,7 +2144,7 @@ when following the stroke.
|
|
|
2136
2144
|
:param name: The name of the attribute.
|
|
2137
2145
|
:type name: str
|
|
2138
2146
|
:param value: The attribute value.
|
|
2139
|
-
:type value:
|
|
2147
|
+
:type value: collections.abc.Sequence[float] | mathutils.Vector | list
|
|
2140
2148
|
"""
|
|
2141
2149
|
...
|
|
2142
2150
|
|
|
@@ -2183,10 +2191,10 @@ class StrokeVertex:
|
|
|
2183
2191
|
:type: float
|
|
2184
2192
|
"""
|
|
2185
2193
|
|
|
2186
|
-
point:
|
|
2194
|
+
point: collections.abc.Sequence[float] | mathutils.Vector
|
|
2187
2195
|
""" 2D point coordinates.
|
|
2188
2196
|
|
|
2189
|
-
:type:
|
|
2197
|
+
:type: collections.abc.Sequence[float] | mathutils.Vector
|
|
2190
2198
|
"""
|
|
2191
2199
|
|
|
2192
2200
|
stroke_length: float
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -42,29 +42,29 @@ def load_identity():
|
|
|
42
42
|
|
|
43
43
|
...
|
|
44
44
|
|
|
45
|
-
def load_matrix(matrix:
|
|
45
|
+
def load_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
|
|
46
46
|
"""Load a matrix into the stack.
|
|
47
47
|
|
|
48
48
|
:param matrix: A 4x4 matrix.
|
|
49
|
-
:type matrix:
|
|
49
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
...
|
|
53
53
|
|
|
54
|
-
def load_projection_matrix(matrix:
|
|
54
|
+
def load_projection_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
|
|
55
55
|
"""Load a projection matrix into the stack.
|
|
56
56
|
|
|
57
57
|
:param matrix: A 4x4 matrix.
|
|
58
|
-
:type matrix:
|
|
58
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
...
|
|
62
62
|
|
|
63
|
-
def multiply_matrix(matrix:
|
|
63
|
+
def multiply_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
|
|
64
64
|
"""Multiply the current stack matrix.
|
|
65
65
|
|
|
66
66
|
:param matrix: A 4x4 matrix.
|
|
67
|
-
:type matrix:
|
|
67
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
70
|
...
|
gpu/types/__init__.pyi
CHANGED
|
@@ -118,7 +118,7 @@ class GPUFrameBuffer:
|
|
|
118
118
|
channels: int,
|
|
119
119
|
slot: int,
|
|
120
120
|
format: str,
|
|
121
|
-
data: Buffer = None,
|
|
121
|
+
data: Buffer | None = None,
|
|
122
122
|
) -> Buffer:
|
|
123
123
|
"""Read a block of pixels from the frame buffer.
|
|
124
124
|
|
|
@@ -135,13 +135,15 @@ class GPUFrameBuffer:
|
|
|
135
135
|
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 and 10_11_11_REV.
|
|
136
136
|
:type format: str
|
|
137
137
|
:param data: Optional Buffer object to fill with the pixels values.
|
|
138
|
-
:type data: Buffer
|
|
138
|
+
:type data: Buffer | None
|
|
139
139
|
:return: The Buffer with the read pixels.
|
|
140
140
|
:rtype: Buffer
|
|
141
141
|
"""
|
|
142
142
|
...
|
|
143
143
|
|
|
144
|
-
def read_depth(
|
|
144
|
+
def read_depth(
|
|
145
|
+
self, x: int, y, xsize: int, ysize, data: Buffer | None = None
|
|
146
|
+
) -> Buffer:
|
|
145
147
|
"""Read a pixel depth block from the frame buffer.
|
|
146
148
|
|
|
147
149
|
:param x: Lower left corner of a rectangular block of pixels.
|
|
@@ -151,7 +153,7 @@ class GPUFrameBuffer:
|
|
|
151
153
|
:type xsize: int
|
|
152
154
|
:param ysize:
|
|
153
155
|
:param data: Optional Buffer object to fill with the pixels values.
|
|
154
|
-
:type data: Buffer
|
|
156
|
+
:type data: Buffer | None
|
|
155
157
|
:return: The Buffer with the read pixels.
|
|
156
158
|
:rtype: Buffer
|
|
157
159
|
"""
|
|
@@ -216,8 +218,8 @@ class GPUOffScreen:
|
|
|
216
218
|
view_layer: bpy.types.ViewLayer,
|
|
217
219
|
view3d: bpy.types.SpaceView3D,
|
|
218
220
|
region: bpy.types.Region,
|
|
219
|
-
view_matrix:
|
|
220
|
-
projection_matrix:
|
|
221
|
+
view_matrix: collections.abc.Sequence[float] | mathutils.Matrix,
|
|
222
|
+
projection_matrix: collections.abc.Sequence[float] | mathutils.Matrix,
|
|
221
223
|
do_color_management: bool = False,
|
|
222
224
|
draw_background: bool = True,
|
|
223
225
|
):
|
|
@@ -232,9 +234,9 @@ class GPUOffScreen:
|
|
|
232
234
|
:param region: Region of the 3D View (required as temporary draw target).
|
|
233
235
|
:type region: bpy.types.Region
|
|
234
236
|
:param view_matrix: View Matrix (e.g. camera.matrix_world.inverted()).
|
|
235
|
-
:type view_matrix:
|
|
237
|
+
:type view_matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
236
238
|
:param projection_matrix: Projection Matrix (e.g. camera.calc_matrix_camera(...)).
|
|
237
|
-
:type projection_matrix:
|
|
239
|
+
:type projection_matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
238
240
|
:param do_color_management: Color manage the output.
|
|
239
241
|
:type do_color_management: bool
|
|
240
242
|
:param draw_background: Draw background.
|
imbuf/__init__.pyi
CHANGED
|
@@ -41,13 +41,13 @@ def new(size) -> imbuf.types.ImBuf:
|
|
|
41
41
|
|
|
42
42
|
...
|
|
43
43
|
|
|
44
|
-
def write(image: imbuf.types.ImBuf, filepath: str | bytes = None):
|
|
44
|
+
def write(image: imbuf.types.ImBuf, filepath: str | bytes | None = None):
|
|
45
45
|
"""Write an image.
|
|
46
46
|
|
|
47
47
|
:param image: the image to write.
|
|
48
48
|
:type image: imbuf.types.ImBuf
|
|
49
49
|
:param filepath: Optional filepath of the image (fallback to the images file path).
|
|
50
|
-
:type filepath: str | bytes
|
|
50
|
+
:type filepath: str | bytes | None
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
...
|