fake-bpy-module 20240531__py3-none-any.whl → 20240604__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_sequencer/__init__.pyi +14 -0
- bl_ui/space_userpref/__init__.pyi +234 -0
- bl_ui/space_view3d/__init__.pyi +810 -0
- blf/__init__.pyi +4 -4
- bmesh/ops/__init__.pyi +97 -82
- bmesh/types/__init__.pyi +43 -40
- bmesh/utils/__init__.pyi +2 -4
- 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 +130 -110
- 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 +450 -404
- bpy/ops/object/__init__.pyi +984 -987
- 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 +151 -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 +156 -156
- bpy/ops/screen/__init__.pyi +156 -156
- bpy/ops/script/__init__.pyi +12 -12
- bpy/ops/sculpt/__init__.pyi +144 -144
- 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 +475 -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 +2136 -1798
- bpy/utils/__init__.pyi +4 -4
- 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/view3d_utils/__init__.pyi +24 -20
- bpy_types/__init__.pyi +12 -7
- {fake_bpy_module-20240531.dist-info → fake_bpy_module-20240604.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240531.dist-info → fake_bpy_module-20240604.dist-info}/RECORD +107 -107
- 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-20240531.dist-info → fake_bpy_module-20240604.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240531.dist-info → fake_bpy_module-20240604.dist-info}/top_level.txt +0 -0
bpy/utils/__init__.pyi
CHANGED
|
@@ -493,24 +493,24 @@ def smpte_from_frame(frame: int | None, fps=None, fps_base=None) -> str:
|
|
|
493
493
|
|
|
494
494
|
...
|
|
495
495
|
|
|
496
|
-
def smpte_from_seconds(time:
|
|
496
|
+
def smpte_from_seconds(time: float | int | None, *, fps=None, fps_base=None) -> str:
|
|
497
497
|
"""Returns an SMPTE formatted string from the time:
|
|
498
498
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
499
499
|
|
|
500
500
|
:param time: time in seconds.
|
|
501
|
-
:type time:
|
|
501
|
+
:type time: float | int | None
|
|
502
502
|
:return: the frame string.
|
|
503
503
|
:rtype: str
|
|
504
504
|
"""
|
|
505
505
|
|
|
506
506
|
...
|
|
507
507
|
|
|
508
|
-
def smpte_from_seconds(time:
|
|
508
|
+
def smpte_from_seconds(time: float | int | None, fps=None, fps_base=None) -> str:
|
|
509
509
|
"""Returns an SMPTE formatted string from the time:
|
|
510
510
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
511
511
|
|
|
512
512
|
:param time: time in seconds.
|
|
513
|
-
:type time:
|
|
513
|
+
:type time: float | int | None
|
|
514
514
|
:return: the frame string.
|
|
515
515
|
:rtype: str
|
|
516
516
|
"""
|
|
@@ -143,24 +143,24 @@ def bake_action_iter(
|
|
|
143
143
|
|
|
144
144
|
def bake_action_objects(
|
|
145
145
|
object_action_pairs, *, frames, bake_options
|
|
146
|
-
) ->
|
|
146
|
+
) -> list[bpy.types.Action]:
|
|
147
147
|
"""A version of `bake_action_objects_iter` that takes frames and returns the output.
|
|
148
148
|
|
|
149
149
|
:param frames: Frames to bake.
|
|
150
150
|
:return: A sequence of Action or None types (aligned with object_action_pairs)
|
|
151
|
-
:rtype:
|
|
151
|
+
:rtype: list[bpy.types.Action]
|
|
152
152
|
"""
|
|
153
153
|
|
|
154
154
|
...
|
|
155
155
|
|
|
156
156
|
def bake_action_objects(
|
|
157
157
|
object_action_pairs, frames, bake_options
|
|
158
|
-
) ->
|
|
158
|
+
) -> list[bpy.types.Action]:
|
|
159
159
|
"""A version of `bake_action_objects_iter` that takes frames and returns the output.
|
|
160
160
|
|
|
161
161
|
:param frames: Frames to bake.
|
|
162
162
|
:return: A sequence of Action or None types (aligned with object_action_pairs)
|
|
163
|
-
:rtype:
|
|
163
|
+
:rtype: list[bpy.types.Action]
|
|
164
164
|
"""
|
|
165
165
|
|
|
166
166
|
...
|
bpy_extras/io_utils/__init__.pyi
CHANGED
|
@@ -100,14 +100,14 @@ def axis_conversion_ensure(
|
|
|
100
100
|
...
|
|
101
101
|
|
|
102
102
|
def create_derived_objects(
|
|
103
|
-
depsgraph: bpy.types.Depsgraph, objects:
|
|
103
|
+
depsgraph: bpy.types.Depsgraph, objects: list[bpy.types.Object]
|
|
104
104
|
) -> dict:
|
|
105
105
|
"""This function takes a sequence of objects, returning their instances.
|
|
106
106
|
|
|
107
107
|
:param depsgraph: The evaluated depsgraph.
|
|
108
108
|
:type depsgraph: bpy.types.Depsgraph
|
|
109
109
|
:param objects: A sequencer of objects.
|
|
110
|
-
:type objects:
|
|
110
|
+
:type objects: list[bpy.types.Object]
|
|
111
111
|
:return: A dictionary where each key is an object from objects,
|
|
112
112
|
values are lists of (`bpy.types.Object`, `mathutils.Matrix`) tuples representing instances.
|
|
113
113
|
:rtype: dict
|
|
@@ -116,14 +116,14 @@ def create_derived_objects(
|
|
|
116
116
|
...
|
|
117
117
|
|
|
118
118
|
def create_derived_objects(
|
|
119
|
-
depsgraph: bpy.types.Depsgraph, objects:
|
|
119
|
+
depsgraph: bpy.types.Depsgraph, objects: list[bpy.types.Object]
|
|
120
120
|
) -> dict:
|
|
121
121
|
"""This function takes a sequence of objects, returning their instances.
|
|
122
122
|
|
|
123
123
|
:param depsgraph: The evaluated depsgraph.
|
|
124
124
|
:type depsgraph: bpy.types.Depsgraph
|
|
125
125
|
:param objects: A sequencer of objects.
|
|
126
|
-
:type objects:
|
|
126
|
+
:type objects: list[bpy.types.Object]
|
|
127
127
|
:return: A dictionary where each key is an object from objects,
|
|
128
128
|
values are lists of (`bpy.types.Object`, `mathutils.Matrix`) tuples representing instances.
|
|
129
129
|
:rtype: dict
|
|
@@ -106,7 +106,7 @@ def mesh_linked_uv_islands(mesh: bpy.types.Mesh) -> list:
|
|
|
106
106
|
...
|
|
107
107
|
|
|
108
108
|
def ngon_tessellate(
|
|
109
|
-
from_data:
|
|
109
|
+
from_data: bpy.types.Mesh | list,
|
|
110
110
|
indices: list,
|
|
111
111
|
fix_loops: bool = True,
|
|
112
112
|
debug_print=True,
|
|
@@ -116,7 +116,7 @@ def ngon_tessellate(
|
|
|
116
116
|
ngon to create from existing verts.
|
|
117
117
|
|
|
118
118
|
:param from_data: either a mesh, or a list/tuple of vectors.
|
|
119
|
-
:type from_data:
|
|
119
|
+
:type from_data: bpy.types.Mesh | list
|
|
120
120
|
:param indices: a list of indices to use this list
|
|
121
121
|
is the ordered closed poly-line
|
|
122
122
|
to fill, and can be a subset of the data given.
|
|
@@ -130,7 +130,7 @@ def ngon_tessellate(
|
|
|
130
130
|
...
|
|
131
131
|
|
|
132
132
|
def ngon_tessellate(
|
|
133
|
-
from_data:
|
|
133
|
+
from_data: bpy.types.Mesh | list,
|
|
134
134
|
indices: list,
|
|
135
135
|
fix_loops: bool = True,
|
|
136
136
|
debug_print=True,
|
|
@@ -140,7 +140,7 @@ def ngon_tessellate(
|
|
|
140
140
|
ngon to create from existing verts.
|
|
141
141
|
|
|
142
142
|
:param from_data: either a mesh, or a list/tuple of vectors.
|
|
143
|
-
:type from_data:
|
|
143
|
+
:type from_data: bpy.types.Mesh | list
|
|
144
144
|
:param indices: a list of indices to use this list
|
|
145
145
|
is the ordered closed poly-line
|
|
146
146
|
to fill, and can be a subset of the data given.
|
|
@@ -9,7 +9,7 @@ GenericType2 = typing.TypeVar("GenericType2")
|
|
|
9
9
|
def location_3d_to_region_2d(
|
|
10
10
|
region: bpy.types.Region,
|
|
11
11
|
rv3d: bpy.types.RegionView3D,
|
|
12
|
-
coord: mathutils.Vector,
|
|
12
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
13
13
|
*,
|
|
14
14
|
default=None,
|
|
15
15
|
) -> mathutils.Vector:
|
|
@@ -20,7 +20,7 @@ def location_3d_to_region_2d(
|
|
|
20
20
|
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
21
21
|
:type rv3d: bpy.types.RegionView3D
|
|
22
22
|
:param coord: 3d world-space location.
|
|
23
|
-
:type coord: mathutils.Vector
|
|
23
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
24
24
|
:param default: Return this value if coord
|
|
25
25
|
is behind the origin of a perspective view.
|
|
26
26
|
:return: 2d location
|
|
@@ -32,7 +32,7 @@ def location_3d_to_region_2d(
|
|
|
32
32
|
def location_3d_to_region_2d(
|
|
33
33
|
region: bpy.types.Region,
|
|
34
34
|
rv3d: bpy.types.RegionView3D,
|
|
35
|
-
coord: mathutils.Vector,
|
|
35
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
36
36
|
default=None,
|
|
37
37
|
) -> mathutils.Vector:
|
|
38
38
|
"""Return the region relative 2d location of a 3d position.
|
|
@@ -42,7 +42,7 @@ def location_3d_to_region_2d(
|
|
|
42
42
|
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
43
43
|
:type rv3d: bpy.types.RegionView3D
|
|
44
44
|
:param coord: 3d world-space location.
|
|
45
|
-
:type coord: mathutils.Vector
|
|
45
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
46
46
|
:param default: Return this value if coord
|
|
47
47
|
is behind the origin of a perspective view.
|
|
48
48
|
:return: 2d location
|
|
@@ -54,8 +54,8 @@ def location_3d_to_region_2d(
|
|
|
54
54
|
def region_2d_to_location_3d(
|
|
55
55
|
region: bpy.types.Region,
|
|
56
56
|
rv3d: bpy.types.RegionView3D,
|
|
57
|
-
coord: mathutils.Vector,
|
|
58
|
-
depth_location: mathutils.Vector,
|
|
57
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
58
|
+
depth_location: collections.abc.Sequence[float] | mathutils.Vector,
|
|
59
59
|
) -> mathutils.Vector:
|
|
60
60
|
"""Return a 3d location from the region relative 2d coords, aligned with
|
|
61
61
|
depth_location.
|
|
@@ -66,10 +66,10 @@ def region_2d_to_location_3d(
|
|
|
66
66
|
:type rv3d: bpy.types.RegionView3D
|
|
67
67
|
:param coord: 2d coordinates relative to the region;
|
|
68
68
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
69
|
-
:type coord: mathutils.Vector
|
|
69
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
70
70
|
:param depth_location: the returned vectors depth is aligned with this since
|
|
71
71
|
there is no defined depth with a 2d region input.
|
|
72
|
-
:type depth_location: mathutils.Vector
|
|
72
|
+
:type depth_location: collections.abc.Sequence[float] | mathutils.Vector
|
|
73
73
|
:return: normalized 3d vector.
|
|
74
74
|
:rtype: mathutils.Vector
|
|
75
75
|
"""
|
|
@@ -79,8 +79,8 @@ def region_2d_to_location_3d(
|
|
|
79
79
|
def region_2d_to_location_3d(
|
|
80
80
|
region: bpy.types.Region,
|
|
81
81
|
rv3d: bpy.types.RegionView3D,
|
|
82
|
-
coord: mathutils.Vector,
|
|
83
|
-
depth_location: mathutils.Vector,
|
|
82
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
83
|
+
depth_location: collections.abc.Sequence[float] | mathutils.Vector,
|
|
84
84
|
) -> mathutils.Vector:
|
|
85
85
|
"""Return a 3d location from the region relative 2d coords, aligned with
|
|
86
86
|
depth_location.
|
|
@@ -91,10 +91,10 @@ def region_2d_to_location_3d(
|
|
|
91
91
|
:type rv3d: bpy.types.RegionView3D
|
|
92
92
|
:param coord: 2d coordinates relative to the region;
|
|
93
93
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
94
|
-
:type coord: mathutils.Vector
|
|
94
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
95
95
|
:param depth_location: the returned vectors depth is aligned with this since
|
|
96
96
|
there is no defined depth with a 2d region input.
|
|
97
|
-
:type depth_location: mathutils.Vector
|
|
97
|
+
:type depth_location: collections.abc.Sequence[float] | mathutils.Vector
|
|
98
98
|
:return: normalized 3d vector.
|
|
99
99
|
:rtype: mathutils.Vector
|
|
100
100
|
"""
|
|
@@ -104,7 +104,7 @@ def region_2d_to_location_3d(
|
|
|
104
104
|
def region_2d_to_origin_3d(
|
|
105
105
|
region: bpy.types.Region,
|
|
106
106
|
rv3d: bpy.types.RegionView3D,
|
|
107
|
-
coord: mathutils.Vector,
|
|
107
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
108
108
|
*,
|
|
109
109
|
clamp: float | None = None,
|
|
110
110
|
) -> mathutils.Vector:
|
|
@@ -116,7 +116,7 @@ def region_2d_to_origin_3d(
|
|
|
116
116
|
:type rv3d: bpy.types.RegionView3D
|
|
117
117
|
:param coord: 2d coordinates relative to the region;
|
|
118
118
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
119
|
-
:type coord: mathutils.Vector
|
|
119
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
120
120
|
:param clamp: Clamp the maximum far-clip value used.
|
|
121
121
|
(negative value will move the offset away from the view_location)
|
|
122
122
|
:type clamp: float | None
|
|
@@ -129,7 +129,7 @@ def region_2d_to_origin_3d(
|
|
|
129
129
|
def region_2d_to_origin_3d(
|
|
130
130
|
region: bpy.types.Region,
|
|
131
131
|
rv3d: bpy.types.RegionView3D,
|
|
132
|
-
coord: mathutils.Vector,
|
|
132
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
133
133
|
clamp: float | None = None,
|
|
134
134
|
) -> mathutils.Vector:
|
|
135
135
|
"""Return the 3d view origin from the region relative 2d coords.
|
|
@@ -140,7 +140,7 @@ def region_2d_to_origin_3d(
|
|
|
140
140
|
:type rv3d: bpy.types.RegionView3D
|
|
141
141
|
:param coord: 2d coordinates relative to the region;
|
|
142
142
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
143
|
-
:type coord: mathutils.Vector
|
|
143
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
144
144
|
:param clamp: Clamp the maximum far-clip value used.
|
|
145
145
|
(negative value will move the offset away from the view_location)
|
|
146
146
|
:type clamp: float | None
|
|
@@ -151,7 +151,9 @@ def region_2d_to_origin_3d(
|
|
|
151
151
|
...
|
|
152
152
|
|
|
153
153
|
def region_2d_to_vector_3d(
|
|
154
|
-
region: bpy.types.Region,
|
|
154
|
+
region: bpy.types.Region,
|
|
155
|
+
rv3d: bpy.types.RegionView3D,
|
|
156
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
155
157
|
) -> mathutils.Vector:
|
|
156
158
|
"""Return a direction vector from the viewport at the specific 2d region
|
|
157
159
|
coordinate.
|
|
@@ -162,7 +164,7 @@ def region_2d_to_vector_3d(
|
|
|
162
164
|
:type rv3d: bpy.types.RegionView3D
|
|
163
165
|
:param coord: 2d coordinates relative to the region:
|
|
164
166
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
165
|
-
:type coord: mathutils.Vector
|
|
167
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
166
168
|
:return: normalized 3d vector.
|
|
167
169
|
:rtype: mathutils.Vector
|
|
168
170
|
"""
|
|
@@ -170,7 +172,9 @@ def region_2d_to_vector_3d(
|
|
|
170
172
|
...
|
|
171
173
|
|
|
172
174
|
def region_2d_to_vector_3d(
|
|
173
|
-
region: bpy.types.Region,
|
|
175
|
+
region: bpy.types.Region,
|
|
176
|
+
rv3d: bpy.types.RegionView3D,
|
|
177
|
+
coord: collections.abc.Sequence[float] | mathutils.Vector,
|
|
174
178
|
) -> mathutils.Vector:
|
|
175
179
|
"""Return a direction vector from the viewport at the specific 2d region
|
|
176
180
|
coordinate.
|
|
@@ -181,7 +185,7 @@ def region_2d_to_vector_3d(
|
|
|
181
185
|
:type rv3d: bpy.types.RegionView3D
|
|
182
186
|
:param coord: 2d coordinates relative to the region:
|
|
183
187
|
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
184
|
-
:type coord: mathutils.Vector
|
|
188
|
+
:type coord: collections.abc.Sequence[float] | mathutils.Vector
|
|
185
189
|
:return: normalized 3d vector.
|
|
186
190
|
:rtype: mathutils.Vector
|
|
187
191
|
"""
|
bpy_types/__init__.pyi
CHANGED
|
@@ -1191,14 +1191,15 @@ class Gizmo:
|
|
|
1191
1191
|
def draw_custom_shape(
|
|
1192
1192
|
self,
|
|
1193
1193
|
shape,
|
|
1194
|
-
matrix: collections.abc.Sequence[float]
|
|
1194
|
+
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
1195
|
+
| mathutils.Matrix = None,
|
|
1195
1196
|
select_id=None,
|
|
1196
1197
|
):
|
|
1197
1198
|
"""Draw a shape created form `Gizmo.draw_custom_shape`.
|
|
1198
1199
|
|
|
1199
1200
|
:param shape: The cached shape to draw.
|
|
1200
1201
|
:param matrix: 4x4 matrix, when not given `Gizmo.matrix_world` is used.
|
|
1201
|
-
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1202
|
+
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
1202
1203
|
:param select_id: The selection id.
|
|
1203
1204
|
Only use when drawing within `Gizmo.draw_select`.
|
|
1204
1205
|
"""
|
|
@@ -1995,10 +1996,13 @@ class Macro:
|
|
|
1995
1996
|
"""
|
|
1996
1997
|
...
|
|
1997
1998
|
|
|
1998
|
-
def define(self,
|
|
1999
|
-
"""
|
|
1999
|
+
def define(self, operator: str) -> bpy.types.OperatorMacro:
|
|
2000
|
+
"""Append an operator to a registered macro class.
|
|
2000
2001
|
|
|
2001
|
-
:param
|
|
2002
|
+
:param operator: Identifier of the operator. This does not have to be defined when this function is called.
|
|
2003
|
+
:type operator: str
|
|
2004
|
+
:return: The operator macro for property access.
|
|
2005
|
+
:rtype: bpy.types.OperatorMacro
|
|
2002
2006
|
"""
|
|
2003
2007
|
...
|
|
2004
2008
|
|
|
@@ -4074,7 +4078,8 @@ class EditBone(_GenericBone):
|
|
|
4074
4078
|
|
|
4075
4079
|
def transform(
|
|
4076
4080
|
self,
|
|
4077
|
-
matrix: collections.abc.Sequence[float]
|
|
4081
|
+
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
4082
|
+
| mathutils.Matrix,
|
|
4078
4083
|
scale: bool = True,
|
|
4079
4084
|
roll: bool = True,
|
|
4080
4085
|
):
|
|
@@ -4082,7 +4087,7 @@ class EditBone(_GenericBone):
|
|
|
4082
4087
|
(when the matrix has a scale component).
|
|
4083
4088
|
|
|
4084
4089
|
:param matrix: 3x3 or 4x4 transformation matrix.
|
|
4085
|
-
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
4090
|
+
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
4086
4091
|
:param scale: Scale the bone envelope by the matrix.
|
|
4087
4092
|
:type scale: bool
|
|
4088
4093
|
:param roll: Correct the roll to point in the same relative
|