fake-bpy-module 20240601__py3-none-any.whl → 20240605__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.
- aud/__init__.pyi +4 -4
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -4
- bl_ui/space_node/__init__.pyi +0 -1
- bl_ui/space_sequencer/__init__.pyi +14 -0
- bl_ui/space_userpref/__init__.pyi +234 -0
- bl_ui/space_view3d/__init__.pyi +810 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +949 -3
- blf/__init__.pyi +4 -4
- bmesh/ops/__init__.pyi +97 -82
- bmesh/types/__init__.pyi +37 -32
- bmesh/utils/__init__.pyi +2 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/ops/action/__init__.pyi +152 -152
- bpy/ops/anim/__init__.pyi +216 -216
- bpy/ops/armature/__init__.pyi +192 -192
- bpy/ops/asset/__init__.pyi +64 -64
- bpy/ops/boid/__init__.pyi +32 -32
- bpy/ops/brush/__init__.pyi +36 -36
- bpy/ops/buttons/__init__.pyi +24 -24
- bpy/ops/cachefile/__init__.pyi +20 -20
- bpy/ops/camera/__init__.pyi +8 -8
- bpy/ops/clip/__init__.pyi +368 -368
- bpy/ops/cloth/__init__.pyi +4 -4
- bpy/ops/collection/__init__.pyi +36 -36
- bpy/ops/console/__init__.pyi +84 -84
- bpy/ops/constraint/__init__.pyi +72 -72
- bpy/ops/curve/__init__.pyi +204 -204
- bpy/ops/curves/__init__.pyi +108 -108
- bpy/ops/cycles/__init__.pyi +12 -12
- bpy/ops/dpaint/__init__.pyi +20 -20
- bpy/ops/ed/__init__.pyi +48 -48
- bpy/ops/export_anim/__init__.pyi +4 -4
- bpy/ops/export_scene/__init__.pyi +8 -8
- bpy/ops/extensions/__init__.pyi +123 -109
- bpy/ops/file/__init__.pyi +160 -160
- bpy/ops/fluid/__init__.pyi +56 -56
- bpy/ops/font/__init__.pyi +92 -92
- bpy/ops/geometry/__init__.pyi +40 -40
- bpy/ops/gizmogroup/__init__.pyi +8 -8
- bpy/ops/gpencil/__init__.pyi +600 -600
- bpy/ops/graph/__init__.pyi +260 -260
- bpy/ops/grease_pencil/__init__.pyi +292 -292
- bpy/ops/image/__init__.pyi +192 -192
- bpy/ops/import_anim/__init__.pyi +4 -4
- bpy/ops/import_curve/__init__.pyi +4 -4
- bpy/ops/import_scene/__init__.pyi +8 -8
- bpy/ops/info/__init__.pyi +28 -28
- bpy/ops/lattice/__init__.pyi +32 -32
- bpy/ops/marker/__init__.pyi +44 -44
- bpy/ops/mask/__init__.pyi +156 -156
- bpy/ops/material/__init__.pyi +12 -12
- bpy/ops/mball/__init__.pyi +32 -32
- bpy/ops/mesh/__init__.pyi +652 -652
- bpy/ops/nla/__init__.pyi +156 -156
- bpy/ops/node/__init__.pyi +416 -416
- bpy/ops/object/__init__.pyi +984 -984
- bpy/ops/outliner/__init__.pyi +284 -284
- bpy/ops/paint/__init__.pyi +220 -220
- bpy/ops/paintcurve/__init__.pyi +32 -32
- bpy/ops/palette/__init__.pyi +28 -28
- bpy/ops/particle/__init__.pyi +144 -144
- bpy/ops/pose/__init__.pyi +156 -156
- bpy/ops/poselib/__init__.pyi +36 -36
- bpy/ops/preferences/__init__.pyi +148 -148
- bpy/ops/ptcache/__init__.pyi +28 -28
- bpy/ops/render/__init__.pyi +48 -48
- bpy/ops/rigidbody/__init__.pyi +52 -52
- bpy/ops/scene/__init__.pyi +148 -192
- bpy/ops/screen/__init__.pyi +156 -156
- bpy/ops/script/__init__.pyi +12 -12
- bpy/ops/sculpt/__init__.pyi +152 -152
- bpy/ops/sculpt_curves/__init__.pyi +16 -16
- bpy/ops/sequencer/__init__.pyi +364 -340
- bpy/ops/sound/__init__.pyi +28 -28
- bpy/ops/spreadsheet/__init__.pyi +16 -16
- bpy/ops/surface/__init__.pyi +24 -24
- bpy/ops/text/__init__.pyi +172 -172
- bpy/ops/text_editor/__init__.pyi +4 -4
- bpy/ops/texture/__init__.pyi +16 -16
- bpy/ops/transform/__init__.pyi +111 -108
- bpy/ops/ui/__init__.pyi +132 -132
- bpy/ops/uilist/__init__.pyi +12 -12
- bpy/ops/uv/__init__.pyi +196 -196
- bpy/ops/view2d/__init__.pyi +56 -56
- bpy/ops/view3d/__init__.pyi +268 -268
- bpy/ops/wm/__init__.pyi +448 -448
- bpy/ops/workspace/__init__.pyi +28 -28
- bpy/ops/world/__init__.pyi +8 -8
- bpy/path/__init__.pyi +18 -18
- bpy/props/__init__.pyi +11 -11
- bpy/types/__init__.pyi +2185 -1933
- bpy/utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/view3d_utils/__init__.pyi +24 -20
- bpy_types/__init__.pyi +12 -7
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240605.dist-info}/METADATA +5 -1
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240605.dist-info}/RECORD +108 -108
- freestyle/types/__init__.pyi +64 -64
- freestyle/utils/__init__.pyi +2 -2
- gpu/matrix/__init__.pyi +15 -6
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +6 -4
- gpu_extras/presets/__init__.pyi +8 -4
- imbuf/__init__.pyi +4 -4
- mathutils/__init__.pyi +292 -187
- mathutils/geometry/__init__.pyi +2 -5
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240605.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240605.dist-info}/top_level.txt +0 -0
freestyle/types/__init__.pyi
CHANGED
|
@@ -382,19 +382,19 @@ class Curve:
|
|
|
382
382
|
"""
|
|
383
383
|
...
|
|
384
384
|
|
|
385
|
-
def push_vertex_back(self, vertex:
|
|
385
|
+
def push_vertex_back(self, vertex: CurvePoint | SVertex):
|
|
386
386
|
"""Adds a single vertex at the end of the Curve.
|
|
387
387
|
|
|
388
388
|
:param vertex: A vertex object.
|
|
389
|
-
:type vertex:
|
|
389
|
+
:type vertex: CurvePoint | SVertex
|
|
390
390
|
"""
|
|
391
391
|
...
|
|
392
392
|
|
|
393
|
-
def push_vertex_front(self, vertex:
|
|
393
|
+
def push_vertex_front(self, vertex: CurvePoint | SVertex):
|
|
394
394
|
"""Adds a single vertex at the front of the Curve.
|
|
395
395
|
|
|
396
396
|
:param vertex: A vertex object.
|
|
397
|
-
:type vertex:
|
|
397
|
+
:type vertex: CurvePoint | SVertex
|
|
398
398
|
"""
|
|
399
399
|
...
|
|
400
400
|
|
|
@@ -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: mathutils.Vector
|
|
669
669
|
""" The normal to the face lying on the left of the FEdge.
|
|
670
670
|
|
|
671
|
-
:type:
|
|
671
|
+
:type: mathutils.Vector
|
|
672
672
|
"""
|
|
673
673
|
|
|
674
|
-
normal_right:
|
|
674
|
+
normal_right: 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: 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: mathutils.Vector
|
|
733
733
|
""" The normal of the face that this FEdge is running across.
|
|
734
734
|
|
|
735
|
-
:type:
|
|
735
|
+
:type: 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: mathutils.Vector
|
|
827
827
|
""" The 2D point of this 0D element.
|
|
828
828
|
|
|
829
|
-
:type:
|
|
829
|
+
:type: mathutils.Vector
|
|
830
830
|
"""
|
|
831
831
|
|
|
832
|
-
point_3d:
|
|
832
|
+
point_3d: mathutils.Vector
|
|
833
833
|
""" The 3D point of this 0D element.
|
|
834
834
|
|
|
835
|
-
:type:
|
|
835
|
+
:type: mathutils.Vector
|
|
836
836
|
"""
|
|
837
837
|
|
|
838
838
|
projected_x: float
|
|
@@ -910,12 +910,12 @@ class, the .object property refers to a `StrokeVertex` object.
|
|
|
910
910
|
"""
|
|
911
911
|
...
|
|
912
912
|
|
|
913
|
-
def __init__(self, it:
|
|
913
|
+
def __init__(self, it: CurvePointIterator | SVertexIterator):
|
|
914
914
|
"""Construct a nested Interface0DIterator using either the copy constructor
|
|
915
915
|
or the constructor that takes an he argument of a Function0D.
|
|
916
916
|
|
|
917
917
|
:param it: An iterator object to be nested.
|
|
918
|
-
:type it:
|
|
918
|
+
:type it: CurvePointIterator | SVertexIterator
|
|
919
919
|
"""
|
|
920
920
|
...
|
|
921
921
|
|
|
@@ -1038,28 +1038,28 @@ class Iterator:
|
|
|
1038
1038
|
class Material:
|
|
1039
1039
|
"""Class defining a material."""
|
|
1040
1040
|
|
|
1041
|
-
ambient:
|
|
1041
|
+
ambient: mathutils.Color
|
|
1042
1042
|
""" RGBA components of the ambient color of the material.
|
|
1043
1043
|
|
|
1044
|
-
:type:
|
|
1044
|
+
:type: mathutils.Color
|
|
1045
1045
|
"""
|
|
1046
1046
|
|
|
1047
|
-
diffuse:
|
|
1047
|
+
diffuse: mathutils.Vector
|
|
1048
1048
|
""" RGBA components of the diffuse color of the material.
|
|
1049
1049
|
|
|
1050
|
-
:type:
|
|
1050
|
+
:type: mathutils.Vector
|
|
1051
1051
|
"""
|
|
1052
1052
|
|
|
1053
|
-
emission:
|
|
1053
|
+
emission: mathutils.Color
|
|
1054
1054
|
""" RGBA components of the emissive color of the material.
|
|
1055
1055
|
|
|
1056
|
-
:type:
|
|
1056
|
+
:type: mathutils.Color
|
|
1057
1057
|
"""
|
|
1058
1058
|
|
|
1059
|
-
line:
|
|
1059
|
+
line: mathutils.Vector
|
|
1060
1060
|
""" RGBA components of the line color of the material.
|
|
1061
1061
|
|
|
1062
|
-
:type:
|
|
1062
|
+
:type: 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: mathutils.Vector
|
|
1078
1078
|
""" RGBA components of the specular color of the material.
|
|
1079
1079
|
|
|
1080
|
-
:type:
|
|
1080
|
+
:type: 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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1102
|
-
diffuse: collections.abc.Sequence[float] | mathutils.Vector
|
|
1103
|
-
ambient: collections.abc.Sequence[float] | mathutils.Vector
|
|
1104
|
-
specular: collections.abc.Sequence[float] | mathutils.Vector
|
|
1105
|
-
emission: collections.abc.Sequence[float] | mathutils.Vector
|
|
1101
|
+
line: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
1102
|
+
diffuse: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
1103
|
+
ambient: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
1104
|
+
specular: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
1105
|
+
emission: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1113
|
+
:type line: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1114
1114
|
:param diffuse: The diffuse color.
|
|
1115
|
-
:type diffuse: collections.abc.Sequence[float] | mathutils.Vector
|
|
1115
|
+
:type diffuse: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1116
1116
|
:param ambient: The ambient color.
|
|
1117
|
-
:type ambient: collections.abc.Sequence[float] | mathutils.Vector
|
|
1117
|
+
:type ambient: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1118
1118
|
:param specular: The specular color.
|
|
1119
|
-
:type specular: collections.abc.Sequence[float] | mathutils.Vector
|
|
1119
|
+
:type specular: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1120
1120
|
:param emission: The emissive color.
|
|
1121
|
-
:type emission: collections.abc.Sequence[float] | mathutils.Vector
|
|
1121
|
+
:type emission: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1165
|
+
self, v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1170
|
+
:type v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1171
1171
|
:return: A smooth noise value.
|
|
1172
1172
|
:rtype: float
|
|
1173
1173
|
"""
|
|
1174
1174
|
...
|
|
1175
1175
|
|
|
1176
1176
|
def smoothNoise3(
|
|
1177
|
-
self, v: collections.abc.Sequence[float] | mathutils.Vector
|
|
1177
|
+
self, v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1182
|
+
:type v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1206
|
+
v: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1214
|
+
:type v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1228
|
+
v: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
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: collections.abc.Sequence[float] | mathutils.Vector
|
|
1236
|
+
:type v: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
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: mathutils.Vector
|
|
1681
1681
|
""" The projected 3D coordinates of the SVertex.
|
|
1682
1682
|
|
|
1683
|
-
:type:
|
|
1683
|
+
:type: mathutils.Vector
|
|
1684
1684
|
"""
|
|
1685
1685
|
|
|
1686
|
-
point_3d:
|
|
1686
|
+
point_3d: mathutils.Vector
|
|
1687
1687
|
""" The 3D coordinates of the SVertex.
|
|
1688
1688
|
|
|
1689
|
-
:type:
|
|
1689
|
+
:type: mathutils.Vector
|
|
1690
1690
|
"""
|
|
1691
1691
|
|
|
1692
1692
|
viewvertex: ViewVertex
|
|
@@ -1734,13 +1734,13 @@ ViewVertex, and None otherwise.
|
|
|
1734
1734
|
...
|
|
1735
1735
|
|
|
1736
1736
|
def add_normal(
|
|
1737
|
-
self, normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
1737
|
+
self, normal: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1738
1738
|
):
|
|
1739
1739
|
"""Adds a normal to the SVertex's set of normals. If the same normal
|
|
1740
1740
|
is already in the set, nothing changes.
|
|
1741
1741
|
|
|
1742
1742
|
:param normal: A three-dimensional vector.
|
|
1743
|
-
:type normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
1743
|
+
:type normal: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
1744
1744
|
"""
|
|
1745
1745
|
...
|
|
1746
1746
|
|
|
@@ -1960,18 +1960,18 @@ class StrokeAttribute:
|
|
|
1960
1960
|
:type: float
|
|
1961
1961
|
"""
|
|
1962
1962
|
|
|
1963
|
-
color:
|
|
1963
|
+
color: mathutils.Color
|
|
1964
1964
|
""" RGB components of the stroke color.
|
|
1965
1965
|
|
|
1966
|
-
:type:
|
|
1966
|
+
:type: mathutils.Color
|
|
1967
1967
|
"""
|
|
1968
1968
|
|
|
1969
|
-
thickness:
|
|
1969
|
+
thickness: mathutils.Vector
|
|
1970
1970
|
""" Right and left components of the stroke thickness.
|
|
1971
1971
|
The right (left) component is the thickness on the right (left) of the vertex
|
|
1972
1972
|
when following the stroke.
|
|
1973
1973
|
|
|
1974
|
-
:type:
|
|
1974
|
+
:type: mathutils.Vector
|
|
1975
1975
|
"""
|
|
1976
1976
|
|
|
1977
1977
|
visible: bool
|
|
@@ -2119,7 +2119,7 @@ when following the stroke.
|
|
|
2119
2119
|
def set_attribute_vec2(
|
|
2120
2120
|
self,
|
|
2121
2121
|
name: str,
|
|
2122
|
-
value: collections.abc.Sequence[float] | mathutils.Vector
|
|
2122
|
+
value: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
2123
2123
|
):
|
|
2124
2124
|
"""Adds a user-defined attribute of two-dimensional vector type. If
|
|
2125
2125
|
there is no attribute of the given name, it is added. Otherwise,
|
|
@@ -2128,14 +2128,14 @@ when following the stroke.
|
|
|
2128
2128
|
:param name: The name of the attribute.
|
|
2129
2129
|
:type name: str
|
|
2130
2130
|
:param value: The attribute value.
|
|
2131
|
-
:type value: collections.abc.Sequence[float] | mathutils.Vector
|
|
2131
|
+
:type value: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
2132
2132
|
"""
|
|
2133
2133
|
...
|
|
2134
2134
|
|
|
2135
2135
|
def set_attribute_vec3(
|
|
2136
2136
|
self,
|
|
2137
2137
|
name: str,
|
|
2138
|
-
value: collections.abc.Sequence[float] | mathutils.Vector
|
|
2138
|
+
value: collections.abc.Sequence[float] | list | mathutils.Vector,
|
|
2139
2139
|
):
|
|
2140
2140
|
"""Adds a user-defined attribute of three-dimensional vector type.
|
|
2141
2141
|
If there is no attribute of the given name, it is added.
|
|
@@ -2144,7 +2144,7 @@ when following the stroke.
|
|
|
2144
2144
|
:param name: The name of the attribute.
|
|
2145
2145
|
:type name: str
|
|
2146
2146
|
:param value: The attribute value.
|
|
2147
|
-
:type value: collections.abc.Sequence[float] | mathutils.Vector
|
|
2147
|
+
:type value: collections.abc.Sequence[float] | list | mathutils.Vector
|
|
2148
2148
|
"""
|
|
2149
2149
|
...
|
|
2150
2150
|
|
|
@@ -2191,10 +2191,10 @@ class StrokeVertex:
|
|
|
2191
2191
|
:type: float
|
|
2192
2192
|
"""
|
|
2193
2193
|
|
|
2194
|
-
point:
|
|
2194
|
+
point: mathutils.Vector
|
|
2195
2195
|
""" 2D point coordinates.
|
|
2196
2196
|
|
|
2197
|
-
:type:
|
|
2197
|
+
:type: mathutils.Vector
|
|
2198
2198
|
"""
|
|
2199
2199
|
|
|
2200
2200
|
stroke_length: float
|
|
@@ -2254,23 +2254,23 @@ and it won't change the real stroke length).
|
|
|
2254
2254
|
"""
|
|
2255
2255
|
...
|
|
2256
2256
|
|
|
2257
|
-
def __init__(self, svertex: SVertex
|
|
2257
|
+
def __init__(self, svertex: SVertex):
|
|
2258
2258
|
"""Builds a `StrokeVertex` using the default constructor,
|
|
2259
2259
|
copy constructor, from 2 `StrokeVertex` and an interpolation parameter,
|
|
2260
2260
|
from a CurvePoint, from a SVertex, or a `SVertex` and a `StrokeAttribute` object.
|
|
2261
2261
|
|
|
2262
2262
|
:param svertex: An SVertex object.An SVertex object.
|
|
2263
|
-
:type svertex: SVertex
|
|
2263
|
+
:type svertex: SVertex
|
|
2264
2264
|
"""
|
|
2265
2265
|
...
|
|
2266
2266
|
|
|
2267
|
-
def __init__(self, svertex: SVertex
|
|
2267
|
+
def __init__(self, svertex: SVertex, attribute: StrokeAttribute):
|
|
2268
2268
|
"""Builds a `StrokeVertex` using the default constructor,
|
|
2269
2269
|
copy constructor, from 2 `StrokeVertex` and an interpolation parameter,
|
|
2270
2270
|
from a CurvePoint, from a SVertex, or a `SVertex` and a `StrokeAttribute` object.
|
|
2271
2271
|
|
|
2272
2272
|
:param svertex: An SVertex object.An SVertex object.
|
|
2273
|
-
:type svertex: SVertex
|
|
2273
|
+
:type svertex: SVertex
|
|
2274
2274
|
:param attribute: A StrokeAttribute object.
|
|
2275
2275
|
:type attribute: StrokeAttribute
|
|
2276
2276
|
"""
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -90,7 +90,7 @@ def integrate(
|
|
|
90
90
|
it: freestyle.types.Interface0DIterator,
|
|
91
91
|
it_end: freestyle.types.Interface0DIterator,
|
|
92
92
|
integration_type: freestyle.types.IntegrationType,
|
|
93
|
-
) ->
|
|
93
|
+
) -> float | int:
|
|
94
94
|
"""Returns a single value from a set of values evaluated at each 0D
|
|
95
95
|
element of this 1D element.
|
|
96
96
|
|
|
@@ -111,7 +111,7 @@ def integrate(
|
|
|
111
111
|
value type is float if func is of the `UnaryFunction0DDouble`
|
|
112
112
|
or `UnaryFunction0DFloat` type, and int if func is of the
|
|
113
113
|
`UnaryFunction0DUnsigned` type.
|
|
114
|
-
:rtype:
|
|
114
|
+
:rtype: float | int
|
|
115
115
|
"""
|
|
116
116
|
|
|
117
117
|
...
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -42,29 +42,38 @@ def load_identity():
|
|
|
42
42
|
|
|
43
43
|
...
|
|
44
44
|
|
|
45
|
-
def load_matrix(
|
|
45
|
+
def load_matrix(
|
|
46
|
+
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
47
|
+
| mathutils.Matrix,
|
|
48
|
+
):
|
|
46
49
|
"""Load a matrix into the stack.
|
|
47
50
|
|
|
48
51
|
:param matrix: A 4x4 matrix.
|
|
49
|
-
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
52
|
+
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
50
53
|
"""
|
|
51
54
|
|
|
52
55
|
...
|
|
53
56
|
|
|
54
|
-
def load_projection_matrix(
|
|
57
|
+
def load_projection_matrix(
|
|
58
|
+
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
59
|
+
| mathutils.Matrix,
|
|
60
|
+
):
|
|
55
61
|
"""Load a projection matrix into the stack.
|
|
56
62
|
|
|
57
63
|
:param matrix: A 4x4 matrix.
|
|
58
|
-
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
64
|
+
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
59
65
|
"""
|
|
60
66
|
|
|
61
67
|
...
|
|
62
68
|
|
|
63
|
-
def multiply_matrix(
|
|
69
|
+
def multiply_matrix(
|
|
70
|
+
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
71
|
+
| mathutils.Matrix,
|
|
72
|
+
):
|
|
64
73
|
"""Multiply the current stack matrix.
|
|
65
74
|
|
|
66
75
|
:param matrix: A 4x4 matrix.
|
|
67
|
-
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
76
|
+
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
68
77
|
"""
|
|
69
78
|
|
|
70
79
|
...
|
gpu/state/__init__.pyi
CHANGED
|
@@ -122,7 +122,7 @@ def program_point_size_set(enable: bool):
|
|
|
122
122
|
|
|
123
123
|
...
|
|
124
124
|
|
|
125
|
-
def scissor_get() -> int
|
|
125
|
+
def scissor_get() -> int:
|
|
126
126
|
"""Retrieve the scissors of the active framebuffer.
|
|
127
127
|
Note: Only valid between 'scissor_set' and a framebuffer rebind.
|
|
128
128
|
|
|
@@ -130,7 +130,7 @@ def scissor_get() -> int | int:
|
|
|
130
130
|
(x, y, xsize, ysize).
|
|
131
131
|
x, y: lower left corner of the scissor rectangle, in pixels.
|
|
132
132
|
xsize, ysize: width and height of the scissor rectangle.
|
|
133
|
-
:rtype: int
|
|
133
|
+
:rtype: int
|
|
134
134
|
"""
|
|
135
135
|
|
|
136
136
|
...
|
gpu/types/__init__.pyi
CHANGED
|
@@ -218,8 +218,10 @@ class GPUOffScreen:
|
|
|
218
218
|
view_layer: bpy.types.ViewLayer,
|
|
219
219
|
view3d: bpy.types.SpaceView3D,
|
|
220
220
|
region: bpy.types.Region,
|
|
221
|
-
view_matrix: collections.abc.Sequence[float]
|
|
222
|
-
|
|
221
|
+
view_matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
222
|
+
| mathutils.Matrix,
|
|
223
|
+
projection_matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
224
|
+
| mathutils.Matrix,
|
|
223
225
|
do_color_management: bool = False,
|
|
224
226
|
draw_background: bool = True,
|
|
225
227
|
):
|
|
@@ -234,9 +236,9 @@ class GPUOffScreen:
|
|
|
234
236
|
:param region: Region of the 3D View (required as temporary draw target).
|
|
235
237
|
:type region: bpy.types.Region
|
|
236
238
|
:param view_matrix: View Matrix (e.g. camera.matrix_world.inverted()).
|
|
237
|
-
:type view_matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
239
|
+
:type view_matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
238
240
|
:param projection_matrix: Projection Matrix (e.g. camera.calc_matrix_camera(...)).
|
|
239
|
-
:type projection_matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
241
|
+
:type projection_matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
240
242
|
:param do_color_management: Color manage the output.
|
|
241
243
|
:type do_color_management: bool
|
|
242
244
|
:param draw_background: Draw background.
|
gpu_extras/presets/__init__.pyi
CHANGED
|
@@ -7,12 +7,16 @@ GenericType1 = typing.TypeVar("GenericType1")
|
|
|
7
7
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
8
8
|
|
|
9
9
|
def draw_circle_2d(
|
|
10
|
-
position:
|
|
10
|
+
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
11
|
+
color,
|
|
12
|
+
radius: float,
|
|
13
|
+
*,
|
|
14
|
+
segments: int | None = None,
|
|
11
15
|
):
|
|
12
16
|
"""Draw a circle.
|
|
13
17
|
|
|
14
18
|
:param position: Position where the circle will be drawn.
|
|
15
|
-
:type position: mathutils.Vector
|
|
19
|
+
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
16
20
|
:param color: Color of the circle. To use transparency GL_BLEND has to be enabled.
|
|
17
21
|
:param radius: Radius of the circle.
|
|
18
22
|
:type radius: float
|
|
@@ -26,7 +30,7 @@ def draw_circle_2d(
|
|
|
26
30
|
|
|
27
31
|
def draw_texture_2d(
|
|
28
32
|
texture: gpu.types.GPUTexture,
|
|
29
|
-
position: mathutils.Vector,
|
|
33
|
+
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
30
34
|
width: float,
|
|
31
35
|
height: float,
|
|
32
36
|
):
|
|
@@ -35,7 +39,7 @@ def draw_texture_2d(
|
|
|
35
39
|
:param texture: GPUTexture to draw (e.g. gpu.texture.from_image(image) for `bpy.types.Image`).
|
|
36
40
|
:type texture: gpu.types.GPUTexture
|
|
37
41
|
:param position: Position of the lower left corner.
|
|
38
|
-
:type position: mathutils.Vector
|
|
42
|
+
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
39
43
|
:param width: Width of the image when drawn (not necessarily
|
|
40
44
|
the original width of the texture).
|
|
41
45
|
:type width: float
|
imbuf/__init__.pyi
CHANGED
|
@@ -20,11 +20,11 @@ from . import types
|
|
|
20
20
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
21
21
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
22
22
|
|
|
23
|
-
def load(filepath:
|
|
23
|
+
def load(filepath: bytes | str) -> imbuf.types.ImBuf:
|
|
24
24
|
"""Load an image from a file.
|
|
25
25
|
|
|
26
26
|
:param filepath: the filepath of the image.
|
|
27
|
-
:type filepath:
|
|
27
|
+
:type filepath: bytes | str
|
|
28
28
|
:return: the newly loaded image.
|
|
29
29
|
:rtype: imbuf.types.ImBuf
|
|
30
30
|
"""
|
|
@@ -41,13 +41,13 @@ def new(size) -> imbuf.types.ImBuf:
|
|
|
41
41
|
|
|
42
42
|
...
|
|
43
43
|
|
|
44
|
-
def write(image: imbuf.types.ImBuf, filepath:
|
|
44
|
+
def write(image: imbuf.types.ImBuf, filepath: bytes | str | 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:
|
|
50
|
+
:type filepath: bytes | str | None
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
...
|