fake-bpy-module 20240507__py3-none-any.whl → 20240509__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bpy/ops/action/__init__.pyi +152 -76
- bpy/ops/anim/__init__.pyi +212 -106
- bpy/ops/armature/__init__.pyi +192 -96
- bpy/ops/asset/__init__.pyi +64 -32
- bpy/ops/boid/__init__.pyi +32 -16
- bpy/ops/brush/__init__.pyi +36 -18
- bpy/ops/buttons/__init__.pyi +24 -12
- bpy/ops/cachefile/__init__.pyi +20 -10
- bpy/ops/camera/__init__.pyi +8 -4
- bpy/ops/clip/__init__.pyi +368 -184
- bpy/ops/cloth/__init__.pyi +4 -2
- bpy/ops/collection/__init__.pyi +36 -18
- bpy/ops/console/__init__.pyi +84 -42
- bpy/ops/constraint/__init__.pyi +72 -36
- bpy/ops/curve/__init__.pyi +204 -102
- bpy/ops/curves/__init__.pyi +108 -54
- bpy/ops/cycles/__init__.pyi +12 -6
- bpy/ops/dpaint/__init__.pyi +20 -10
- bpy/ops/ed/__init__.pyi +48 -24
- bpy/ops/export_anim/__init__.pyi +4 -2
- bpy/ops/export_mesh/__init__.pyi +4 -2
- bpy/ops/export_scene/__init__.pyi +14 -8
- bpy/ops/file/__init__.pyi +160 -80
- bpy/ops/fluid/__init__.pyi +56 -28
- bpy/ops/font/__init__.pyi +92 -46
- bpy/ops/geometry/__init__.pyi +40 -20
- bpy/ops/gizmogroup/__init__.pyi +8 -4
- bpy/ops/gpencil/__init__.pyi +600 -300
- bpy/ops/graph/__init__.pyi +260 -130
- bpy/ops/grease_pencil/__init__.pyi +268 -134
- bpy/ops/image/__init__.pyi +188 -94
- bpy/ops/import_anim/__init__.pyi +4 -2
- bpy/ops/import_curve/__init__.pyi +4 -2
- bpy/ops/import_mesh/__init__.pyi +4 -2
- bpy/ops/import_scene/__init__.pyi +12 -6
- bpy/ops/info/__init__.pyi +28 -14
- bpy/ops/lattice/__init__.pyi +32 -16
- bpy/ops/marker/__init__.pyi +44 -22
- bpy/ops/mask/__init__.pyi +156 -78
- bpy/ops/material/__init__.pyi +12 -6
- bpy/ops/mball/__init__.pyi +32 -16
- bpy/ops/mesh/__init__.pyi +652 -326
- bpy/ops/nla/__init__.pyi +158 -80
- bpy/ops/node/__init__.pyi +404 -202
- bpy/ops/object/__init__.pyi +1002 -490
- bpy/ops/outliner/__init__.pyi +276 -138
- bpy/ops/paint/__init__.pyi +212 -106
- bpy/ops/paintcurve/__init__.pyi +32 -16
- bpy/ops/palette/__init__.pyi +28 -14
- bpy/ops/particle/__init__.pyi +144 -72
- bpy/ops/pose/__init__.pyi +156 -78
- bpy/ops/poselib/__init__.pyi +36 -18
- bpy/ops/preferences/__init__.pyi +152 -76
- bpy/ops/ptcache/__init__.pyi +28 -14
- bpy/ops/render/__init__.pyi +48 -24
- bpy/ops/rigidbody/__init__.pyi +52 -26
- bpy/ops/scene/__init__.pyi +156 -78
- bpy/ops/screen/__init__.pyi +156 -78
- bpy/ops/script/__init__.pyi +12 -6
- bpy/ops/sculpt/__init__.pyi +134 -68
- bpy/ops/sculpt_curves/__init__.pyi +16 -8
- bpy/ops/sequencer/__init__.pyi +340 -170
- bpy/ops/sound/__init__.pyi +28 -14
- bpy/ops/spreadsheet/__init__.pyi +16 -8
- bpy/ops/surface/__init__.pyi +24 -12
- bpy/ops/text/__init__.pyi +172 -86
- bpy/ops/text_editor/__init__.pyi +4 -2
- bpy/ops/texture/__init__.pyi +16 -8
- bpy/ops/transform/__init__.pyi +108 -54
- bpy/ops/ui/__init__.pyi +132 -66
- bpy/ops/uilist/__init__.pyi +12 -6
- bpy/ops/uv/__init__.pyi +196 -98
- bpy/ops/view2d/__init__.pyi +56 -28
- bpy/ops/view3d/__init__.pyi +268 -134
- bpy/ops/wm/__init__.pyi +493 -224
- bpy/ops/workspace/__init__.pyi +28 -14
- bpy/ops/world/__init__.pyi +4 -2
- bpy/types/__init__.pyi +1250 -631
- {fake_bpy_module-20240507.dist-info → fake_bpy_module-20240509.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240507.dist-info → fake_bpy_module-20240509.dist-info}/RECORD +83 -83
- mathutils/__init__.pyi +20 -0
- {fake_bpy_module-20240507.dist-info → fake_bpy_module-20240509.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240507.dist-info → fake_bpy_module-20240509.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,9 @@ import bpy.types
|
|
|
5
5
|
GenericType = typing.TypeVar("GenericType")
|
|
6
6
|
|
|
7
7
|
def brush_stroke(
|
|
8
|
-
override_context: typing.Optional[
|
|
8
|
+
override_context: typing.Optional[
|
|
9
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
10
|
+
] = None,
|
|
9
11
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
10
12
|
undo: typing.Optional[bool] = None,
|
|
11
13
|
stroke: typing.Optional[
|
|
@@ -15,7 +17,7 @@ def brush_stroke(
|
|
|
15
17
|
):
|
|
16
18
|
"""Draw a new stroke in the active Grease Pencil object
|
|
17
19
|
|
|
18
|
-
:type override_context: typing.Optional[typing.Union[
|
|
20
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
19
21
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
20
22
|
:type undo: typing.Optional[bool]
|
|
21
23
|
:param stroke: Stroke
|
|
@@ -36,14 +38,16 @@ def brush_stroke(
|
|
|
36
38
|
...
|
|
37
39
|
|
|
38
40
|
def caps_set(
|
|
39
|
-
override_context: typing.Optional[
|
|
41
|
+
override_context: typing.Optional[
|
|
42
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
43
|
+
] = None,
|
|
40
44
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
41
45
|
undo: typing.Optional[bool] = None,
|
|
42
46
|
type: typing.Optional[typing.Any] = "ROUND",
|
|
43
47
|
):
|
|
44
48
|
"""Change curve caps mode (rounded or flat)
|
|
45
49
|
|
|
46
|
-
:type override_context: typing.Optional[typing.Union[
|
|
50
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
47
51
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
48
52
|
:type undo: typing.Optional[bool]
|
|
49
53
|
:param type: Type
|
|
@@ -65,14 +69,16 @@ def caps_set(
|
|
|
65
69
|
...
|
|
66
70
|
|
|
67
71
|
def clean_loose(
|
|
68
|
-
override_context: typing.Optional[
|
|
72
|
+
override_context: typing.Optional[
|
|
73
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
74
|
+
] = None,
|
|
69
75
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
70
76
|
undo: typing.Optional[bool] = None,
|
|
71
77
|
limit: typing.Optional[typing.Any] = 1,
|
|
72
78
|
):
|
|
73
79
|
"""Remove loose points
|
|
74
80
|
|
|
75
|
-
:type override_context: typing.Optional[typing.Union[
|
|
81
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
76
82
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
77
83
|
:type undo: typing.Optional[bool]
|
|
78
84
|
:param limit: Limit, Number of points to consider stroke as loose
|
|
@@ -82,13 +88,15 @@ def clean_loose(
|
|
|
82
88
|
...
|
|
83
89
|
|
|
84
90
|
def copy(
|
|
85
|
-
override_context: typing.Optional[
|
|
91
|
+
override_context: typing.Optional[
|
|
92
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
93
|
+
] = None,
|
|
86
94
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
87
95
|
undo: typing.Optional[bool] = None,
|
|
88
96
|
):
|
|
89
97
|
"""Copy the selected Grease Pencil points or strokes to the internal clipboard
|
|
90
98
|
|
|
91
|
-
:type override_context: typing.Optional[typing.Union[
|
|
99
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
92
100
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
93
101
|
:type undo: typing.Optional[bool]
|
|
94
102
|
"""
|
|
@@ -96,14 +104,16 @@ def copy(
|
|
|
96
104
|
...
|
|
97
105
|
|
|
98
106
|
def cyclical_set(
|
|
99
|
-
override_context: typing.Optional[
|
|
107
|
+
override_context: typing.Optional[
|
|
108
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
109
|
+
] = None,
|
|
100
110
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
101
111
|
undo: typing.Optional[bool] = None,
|
|
102
112
|
type: typing.Optional[typing.Any] = "TOGGLE",
|
|
103
113
|
):
|
|
104
114
|
"""Close or open the selected stroke adding a segment from last to first point
|
|
105
115
|
|
|
106
|
-
:type override_context: typing.Optional[typing.Union[
|
|
116
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
107
117
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
108
118
|
:type undo: typing.Optional[bool]
|
|
109
119
|
:param type: Type
|
|
@@ -113,13 +123,15 @@ def cyclical_set(
|
|
|
113
123
|
...
|
|
114
124
|
|
|
115
125
|
def delete(
|
|
116
|
-
override_context: typing.Optional[
|
|
126
|
+
override_context: typing.Optional[
|
|
127
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
128
|
+
] = None,
|
|
117
129
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
118
130
|
undo: typing.Optional[bool] = None,
|
|
119
131
|
):
|
|
120
132
|
"""Delete selected strokes or points
|
|
121
133
|
|
|
122
|
-
:type override_context: typing.Optional[typing.Union[
|
|
134
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
123
135
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
124
136
|
:type undo: typing.Optional[bool]
|
|
125
137
|
"""
|
|
@@ -127,14 +139,16 @@ def delete(
|
|
|
127
139
|
...
|
|
128
140
|
|
|
129
141
|
def delete_frame(
|
|
130
|
-
override_context: typing.Optional[
|
|
142
|
+
override_context: typing.Optional[
|
|
143
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
144
|
+
] = None,
|
|
131
145
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
132
146
|
undo: typing.Optional[bool] = None,
|
|
133
147
|
type: typing.Optional[typing.Any] = "ACTIVE_FRAME",
|
|
134
148
|
):
|
|
135
149
|
"""Delete Grease Pencil Frame(s)
|
|
136
150
|
|
|
137
|
-
:type override_context: typing.Optional[typing.Union[
|
|
151
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
138
152
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
139
153
|
:type undo: typing.Optional[bool]
|
|
140
154
|
:param type: Type, Method used for deleting Grease Pencil frames
|
|
@@ -150,14 +164,16 @@ def delete_frame(
|
|
|
150
164
|
...
|
|
151
165
|
|
|
152
166
|
def dissolve(
|
|
153
|
-
override_context: typing.Optional[
|
|
167
|
+
override_context: typing.Optional[
|
|
168
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
169
|
+
] = None,
|
|
154
170
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
155
171
|
undo: typing.Optional[bool] = None,
|
|
156
172
|
type: typing.Optional[typing.Any] = "POINTS",
|
|
157
173
|
):
|
|
158
174
|
"""Delete selected points without splitting strokes
|
|
159
175
|
|
|
160
|
-
:type override_context: typing.Optional[typing.Union[
|
|
176
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
161
177
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
162
178
|
:type undo: typing.Optional[bool]
|
|
163
179
|
:param type: Type, Method used for dissolving stroke points
|
|
@@ -176,13 +192,15 @@ def dissolve(
|
|
|
176
192
|
...
|
|
177
193
|
|
|
178
194
|
def duplicate(
|
|
179
|
-
override_context: typing.Optional[
|
|
195
|
+
override_context: typing.Optional[
|
|
196
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
197
|
+
] = None,
|
|
180
198
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
181
199
|
undo: typing.Optional[bool] = None,
|
|
182
200
|
):
|
|
183
201
|
"""Duplicate the selected points
|
|
184
202
|
|
|
185
|
-
:type override_context: typing.Optional[typing.Union[
|
|
203
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
186
204
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
187
205
|
:type undo: typing.Optional[bool]
|
|
188
206
|
"""
|
|
@@ -190,7 +208,9 @@ def duplicate(
|
|
|
190
208
|
...
|
|
191
209
|
|
|
192
210
|
def duplicate_move(
|
|
193
|
-
override_context: typing.Optional[
|
|
211
|
+
override_context: typing.Optional[
|
|
212
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
213
|
+
] = None,
|
|
194
214
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
195
215
|
undo: typing.Optional[bool] = None,
|
|
196
216
|
GREASE_PENCIL_OT_duplicate: typing.Optional[typing.Any] = None,
|
|
@@ -198,7 +218,7 @@ def duplicate_move(
|
|
|
198
218
|
):
|
|
199
219
|
"""Make copies of the selected Grease Pencil strokes and move them
|
|
200
220
|
|
|
201
|
-
:type override_context: typing.Optional[typing.Union[
|
|
221
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
202
222
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
203
223
|
:type undo: typing.Optional[bool]
|
|
204
224
|
:param GREASE_PENCIL_OT_duplicate: Duplicate, Duplicate the selected points
|
|
@@ -210,13 +230,15 @@ def duplicate_move(
|
|
|
210
230
|
...
|
|
211
231
|
|
|
212
232
|
def extrude(
|
|
213
|
-
override_context: typing.Optional[
|
|
233
|
+
override_context: typing.Optional[
|
|
234
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
235
|
+
] = None,
|
|
214
236
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
215
237
|
undo: typing.Optional[bool] = None,
|
|
216
238
|
):
|
|
217
239
|
"""Extrude the selected points
|
|
218
240
|
|
|
219
|
-
:type override_context: typing.Optional[typing.Union[
|
|
241
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
220
242
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
221
243
|
:type undo: typing.Optional[bool]
|
|
222
244
|
"""
|
|
@@ -224,7 +246,9 @@ def extrude(
|
|
|
224
246
|
...
|
|
225
247
|
|
|
226
248
|
def extrude_move(
|
|
227
|
-
override_context: typing.Optional[
|
|
249
|
+
override_context: typing.Optional[
|
|
250
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
251
|
+
] = None,
|
|
228
252
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
229
253
|
undo: typing.Optional[bool] = None,
|
|
230
254
|
GREASE_PENCIL_OT_extrude: typing.Optional[typing.Any] = None,
|
|
@@ -232,7 +256,7 @@ def extrude_move(
|
|
|
232
256
|
):
|
|
233
257
|
"""Extrude selected points and move them
|
|
234
258
|
|
|
235
|
-
:type override_context: typing.Optional[typing.Union[
|
|
259
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
236
260
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
237
261
|
:type undo: typing.Optional[bool]
|
|
238
262
|
:param GREASE_PENCIL_OT_extrude: Extrude Stroke Points, Extrude the selected points
|
|
@@ -244,7 +268,9 @@ def extrude_move(
|
|
|
244
268
|
...
|
|
245
269
|
|
|
246
270
|
def insert_blank_frame(
|
|
247
|
-
override_context: typing.Optional[
|
|
271
|
+
override_context: typing.Optional[
|
|
272
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
273
|
+
] = None,
|
|
248
274
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
249
275
|
undo: typing.Optional[bool] = None,
|
|
250
276
|
all_layers: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
@@ -252,7 +278,7 @@ def insert_blank_frame(
|
|
|
252
278
|
):
|
|
253
279
|
"""Insert a blank frame on the current scene frame
|
|
254
280
|
|
|
255
|
-
:type override_context: typing.Optional[typing.Union[
|
|
281
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
256
282
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
257
283
|
:type undo: typing.Optional[bool]
|
|
258
284
|
:param all_layers: All Layers, Insert a blank frame in all editable layers
|
|
@@ -264,14 +290,16 @@ def insert_blank_frame(
|
|
|
264
290
|
...
|
|
265
291
|
|
|
266
292
|
def layer_active(
|
|
267
|
-
override_context: typing.Optional[
|
|
293
|
+
override_context: typing.Optional[
|
|
294
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
295
|
+
] = None,
|
|
268
296
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
269
297
|
undo: typing.Optional[bool] = None,
|
|
270
298
|
layer: typing.Optional[typing.Any] = 0,
|
|
271
299
|
):
|
|
272
300
|
"""Set the active Grease Pencil layer
|
|
273
301
|
|
|
274
|
-
:type override_context: typing.Optional[typing.Union[
|
|
302
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
275
303
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
276
304
|
:type undo: typing.Optional[bool]
|
|
277
305
|
:param layer: Grease Pencil Layer
|
|
@@ -281,14 +309,16 @@ def layer_active(
|
|
|
281
309
|
...
|
|
282
310
|
|
|
283
311
|
def layer_add(
|
|
284
|
-
override_context: typing.Optional[
|
|
312
|
+
override_context: typing.Optional[
|
|
313
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
314
|
+
] = None,
|
|
285
315
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
286
316
|
undo: typing.Optional[bool] = None,
|
|
287
317
|
new_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
288
318
|
):
|
|
289
319
|
"""Add a new Grease Pencil layer in the active object
|
|
290
320
|
|
|
291
|
-
:type override_context: typing.Optional[typing.Union[
|
|
321
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
292
322
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
293
323
|
:type undo: typing.Optional[bool]
|
|
294
324
|
:param new_layer_name: Name, Name of the new layer
|
|
@@ -298,14 +328,16 @@ def layer_add(
|
|
|
298
328
|
...
|
|
299
329
|
|
|
300
330
|
def layer_duplicate(
|
|
301
|
-
override_context: typing.Optional[
|
|
331
|
+
override_context: typing.Optional[
|
|
332
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
333
|
+
] = None,
|
|
302
334
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
303
335
|
undo: typing.Optional[bool] = None,
|
|
304
336
|
empty_keyframes: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
305
337
|
):
|
|
306
338
|
"""Make a copy of the active Grease Pencil layer
|
|
307
339
|
|
|
308
|
-
:type override_context: typing.Optional[typing.Union[
|
|
340
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
309
341
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
310
342
|
:type undo: typing.Optional[bool]
|
|
311
343
|
:param empty_keyframes: Empty Keyframes, Add Empty Keyframes
|
|
@@ -315,14 +347,16 @@ def layer_duplicate(
|
|
|
315
347
|
...
|
|
316
348
|
|
|
317
349
|
def layer_group_add(
|
|
318
|
-
override_context: typing.Optional[
|
|
350
|
+
override_context: typing.Optional[
|
|
351
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
352
|
+
] = None,
|
|
319
353
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
320
354
|
undo: typing.Optional[bool] = None,
|
|
321
355
|
new_layer_group_name: typing.Union[str, typing.Any] = "",
|
|
322
356
|
):
|
|
323
357
|
"""Add a new Grease Pencil layer group in the active object
|
|
324
358
|
|
|
325
|
-
:type override_context: typing.Optional[typing.Union[
|
|
359
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
326
360
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
327
361
|
:type undo: typing.Optional[bool]
|
|
328
362
|
:param new_layer_group_name: Name, Name of the new layer group
|
|
@@ -332,14 +366,16 @@ def layer_group_add(
|
|
|
332
366
|
...
|
|
333
367
|
|
|
334
368
|
def layer_hide(
|
|
335
|
-
override_context: typing.Optional[
|
|
369
|
+
override_context: typing.Optional[
|
|
370
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
371
|
+
] = None,
|
|
336
372
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
337
373
|
undo: typing.Optional[bool] = None,
|
|
338
374
|
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
339
375
|
):
|
|
340
376
|
"""Hide selected/unselected Grease Pencil layers
|
|
341
377
|
|
|
342
|
-
:type override_context: typing.Optional[typing.Union[
|
|
378
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
343
379
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
344
380
|
:type undo: typing.Optional[bool]
|
|
345
381
|
:param unselected: Unselected, Hide unselected rather than selected layers
|
|
@@ -349,14 +385,16 @@ def layer_hide(
|
|
|
349
385
|
...
|
|
350
386
|
|
|
351
387
|
def layer_isolate(
|
|
352
|
-
override_context: typing.Optional[
|
|
388
|
+
override_context: typing.Optional[
|
|
389
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
390
|
+
] = None,
|
|
353
391
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
354
392
|
undo: typing.Optional[bool] = None,
|
|
355
393
|
affect_visibility: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
356
394
|
):
|
|
357
395
|
"""Make only active layer visible/editable
|
|
358
396
|
|
|
359
|
-
:type override_context: typing.Optional[typing.Union[
|
|
397
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
360
398
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
361
399
|
:type undo: typing.Optional[bool]
|
|
362
400
|
:param affect_visibility: Affect Visibility, Also affect the visibility
|
|
@@ -366,14 +404,16 @@ def layer_isolate(
|
|
|
366
404
|
...
|
|
367
405
|
|
|
368
406
|
def layer_lock_all(
|
|
369
|
-
override_context: typing.Optional[
|
|
407
|
+
override_context: typing.Optional[
|
|
408
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
409
|
+
] = None,
|
|
370
410
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
371
411
|
undo: typing.Optional[bool] = None,
|
|
372
412
|
lock: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
373
413
|
):
|
|
374
414
|
"""Lock all Grease Pencil layers to prevent them from being accidentally modified
|
|
375
415
|
|
|
376
|
-
:type override_context: typing.Optional[typing.Union[
|
|
416
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
377
417
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
378
418
|
:type undo: typing.Optional[bool]
|
|
379
419
|
:param lock: Lock Value, Lock/Unlock all layers
|
|
@@ -383,14 +423,16 @@ def layer_lock_all(
|
|
|
383
423
|
...
|
|
384
424
|
|
|
385
425
|
def layer_mask_add(
|
|
386
|
-
override_context: typing.Optional[
|
|
426
|
+
override_context: typing.Optional[
|
|
427
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
428
|
+
] = None,
|
|
387
429
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
388
430
|
undo: typing.Optional[bool] = None,
|
|
389
431
|
name: typing.Union[str, typing.Any] = "",
|
|
390
432
|
):
|
|
391
433
|
"""Add new layer as masking
|
|
392
434
|
|
|
393
|
-
:type override_context: typing.Optional[typing.Union[
|
|
435
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
394
436
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
395
437
|
:type undo: typing.Optional[bool]
|
|
396
438
|
:param name: Layer, Name of the layer
|
|
@@ -400,13 +442,15 @@ def layer_mask_add(
|
|
|
400
442
|
...
|
|
401
443
|
|
|
402
444
|
def layer_mask_remove(
|
|
403
|
-
override_context: typing.Optional[
|
|
445
|
+
override_context: typing.Optional[
|
|
446
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
447
|
+
] = None,
|
|
404
448
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
405
449
|
undo: typing.Optional[bool] = None,
|
|
406
450
|
):
|
|
407
451
|
"""Remove Layer Mask
|
|
408
452
|
|
|
409
|
-
:type override_context: typing.Optional[typing.Union[
|
|
453
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
410
454
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
411
455
|
:type undo: typing.Optional[bool]
|
|
412
456
|
"""
|
|
@@ -414,14 +458,16 @@ def layer_mask_remove(
|
|
|
414
458
|
...
|
|
415
459
|
|
|
416
460
|
def layer_mask_reorder(
|
|
417
|
-
override_context: typing.Optional[
|
|
461
|
+
override_context: typing.Optional[
|
|
462
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
463
|
+
] = None,
|
|
418
464
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
419
465
|
undo: typing.Optional[bool] = None,
|
|
420
466
|
direction: typing.Optional[typing.Any] = "UP",
|
|
421
467
|
):
|
|
422
468
|
"""Reorder the active Grease Pencil mask layer up/down in the list
|
|
423
469
|
|
|
424
|
-
:type override_context: typing.Optional[typing.Union[
|
|
470
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
425
471
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
426
472
|
:type undo: typing.Optional[bool]
|
|
427
473
|
:param direction: Direction
|
|
@@ -431,13 +477,15 @@ def layer_mask_reorder(
|
|
|
431
477
|
...
|
|
432
478
|
|
|
433
479
|
def layer_remove(
|
|
434
|
-
override_context: typing.Optional[
|
|
480
|
+
override_context: typing.Optional[
|
|
481
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
482
|
+
] = None,
|
|
435
483
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
436
484
|
undo: typing.Optional[bool] = None,
|
|
437
485
|
):
|
|
438
486
|
"""Remove the active Grease Pencil layer
|
|
439
487
|
|
|
440
|
-
:type override_context: typing.Optional[typing.Union[
|
|
488
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
441
489
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
442
490
|
:type undo: typing.Optional[bool]
|
|
443
491
|
"""
|
|
@@ -445,7 +493,9 @@ def layer_remove(
|
|
|
445
493
|
...
|
|
446
494
|
|
|
447
495
|
def layer_reorder(
|
|
448
|
-
override_context: typing.Optional[
|
|
496
|
+
override_context: typing.Optional[
|
|
497
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
498
|
+
] = None,
|
|
449
499
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
450
500
|
undo: typing.Optional[bool] = None,
|
|
451
501
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
@@ -453,7 +503,7 @@ def layer_reorder(
|
|
|
453
503
|
):
|
|
454
504
|
"""Reorder the active Grease Pencil layer
|
|
455
505
|
|
|
456
|
-
:type override_context: typing.Optional[typing.Union[
|
|
506
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
457
507
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
458
508
|
:type undo: typing.Optional[bool]
|
|
459
509
|
:param target_layer_name: Target Name, Name of the target layer
|
|
@@ -465,13 +515,15 @@ def layer_reorder(
|
|
|
465
515
|
...
|
|
466
516
|
|
|
467
517
|
def layer_reveal(
|
|
468
|
-
override_context: typing.Optional[
|
|
518
|
+
override_context: typing.Optional[
|
|
519
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
520
|
+
] = None,
|
|
469
521
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
470
522
|
undo: typing.Optional[bool] = None,
|
|
471
523
|
):
|
|
472
524
|
"""Show all Grease Pencil layers
|
|
473
525
|
|
|
474
|
-
:type override_context: typing.Optional[typing.Union[
|
|
526
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
475
527
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
476
528
|
:type undo: typing.Optional[bool]
|
|
477
529
|
"""
|
|
@@ -479,14 +531,16 @@ def layer_reveal(
|
|
|
479
531
|
...
|
|
480
532
|
|
|
481
533
|
def material_copy_to_object(
|
|
482
|
-
override_context: typing.Optional[
|
|
534
|
+
override_context: typing.Optional[
|
|
535
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
536
|
+
] = None,
|
|
483
537
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
484
538
|
undo: typing.Optional[bool] = None,
|
|
485
539
|
only_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
486
540
|
):
|
|
487
541
|
"""Append Materials of the active Grease Pencil to other object
|
|
488
542
|
|
|
489
|
-
:type override_context: typing.Optional[typing.Union[
|
|
543
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
490
544
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
491
545
|
:type undo: typing.Optional[bool]
|
|
492
546
|
:param only_active: Only Active, Append only active material, uncheck to append all materials
|
|
@@ -496,14 +550,16 @@ def material_copy_to_object(
|
|
|
496
550
|
...
|
|
497
551
|
|
|
498
552
|
def material_hide(
|
|
499
|
-
override_context: typing.Optional[
|
|
553
|
+
override_context: typing.Optional[
|
|
554
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
555
|
+
] = None,
|
|
500
556
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
501
557
|
undo: typing.Optional[bool] = None,
|
|
502
558
|
invert: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
503
559
|
):
|
|
504
560
|
"""Hide active/inactive Grease Pencil material(s)
|
|
505
561
|
|
|
506
|
-
:type override_context: typing.Optional[typing.Union[
|
|
562
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
507
563
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
508
564
|
:type undo: typing.Optional[bool]
|
|
509
565
|
:param invert: Invert, Hide inactive materials instead of the active one
|
|
@@ -513,13 +569,15 @@ def material_hide(
|
|
|
513
569
|
...
|
|
514
570
|
|
|
515
571
|
def material_lock_all(
|
|
516
|
-
override_context: typing.Optional[
|
|
572
|
+
override_context: typing.Optional[
|
|
573
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
574
|
+
] = None,
|
|
517
575
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
518
576
|
undo: typing.Optional[bool] = None,
|
|
519
577
|
):
|
|
520
578
|
"""Lock all Grease Pencil materials to prevent them from being accidentally modified
|
|
521
579
|
|
|
522
|
-
:type override_context: typing.Optional[typing.Union[
|
|
580
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
523
581
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
524
582
|
:type undo: typing.Optional[bool]
|
|
525
583
|
"""
|
|
@@ -527,13 +585,15 @@ def material_lock_all(
|
|
|
527
585
|
...
|
|
528
586
|
|
|
529
587
|
def material_lock_unselected(
|
|
530
|
-
override_context: typing.Optional[
|
|
588
|
+
override_context: typing.Optional[
|
|
589
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
590
|
+
] = None,
|
|
531
591
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
532
592
|
undo: typing.Optional[bool] = None,
|
|
533
593
|
):
|
|
534
594
|
"""Lock any material not used in any selected stroke
|
|
535
595
|
|
|
536
|
-
:type override_context: typing.Optional[typing.Union[
|
|
596
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
537
597
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
538
598
|
:type undo: typing.Optional[bool]
|
|
539
599
|
"""
|
|
@@ -541,13 +601,15 @@ def material_lock_unselected(
|
|
|
541
601
|
...
|
|
542
602
|
|
|
543
603
|
def material_lock_unused(
|
|
544
|
-
override_context: typing.Optional[
|
|
604
|
+
override_context: typing.Optional[
|
|
605
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
606
|
+
] = None,
|
|
545
607
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
546
608
|
undo: typing.Optional[bool] = None,
|
|
547
609
|
):
|
|
548
610
|
"""Lock and hide any material not used
|
|
549
611
|
|
|
550
|
-
:type override_context: typing.Optional[typing.Union[
|
|
612
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
551
613
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
552
614
|
:type undo: typing.Optional[bool]
|
|
553
615
|
"""
|
|
@@ -555,13 +617,15 @@ def material_lock_unused(
|
|
|
555
617
|
...
|
|
556
618
|
|
|
557
619
|
def material_reveal(
|
|
558
|
-
override_context: typing.Optional[
|
|
620
|
+
override_context: typing.Optional[
|
|
621
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
622
|
+
] = None,
|
|
559
623
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
560
624
|
undo: typing.Optional[bool] = None,
|
|
561
625
|
):
|
|
562
626
|
"""Unhide all hidden Grease Pencil materials
|
|
563
627
|
|
|
564
|
-
:type override_context: typing.Optional[typing.Union[
|
|
628
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
565
629
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
566
630
|
:type undo: typing.Optional[bool]
|
|
567
631
|
"""
|
|
@@ -569,14 +633,16 @@ def material_reveal(
|
|
|
569
633
|
...
|
|
570
634
|
|
|
571
635
|
def material_select(
|
|
572
|
-
override_context: typing.Optional[
|
|
636
|
+
override_context: typing.Optional[
|
|
637
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
638
|
+
] = None,
|
|
573
639
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
574
640
|
undo: typing.Optional[bool] = None,
|
|
575
641
|
deselect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
576
642
|
):
|
|
577
643
|
"""Select/Deselect all Grease Pencil strokes using current material
|
|
578
644
|
|
|
579
|
-
:type override_context: typing.Optional[typing.Union[
|
|
645
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
580
646
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
581
647
|
:type undo: typing.Optional[bool]
|
|
582
648
|
:param deselect: Deselect, Unselect strokes
|
|
@@ -586,13 +652,15 @@ def material_select(
|
|
|
586
652
|
...
|
|
587
653
|
|
|
588
654
|
def material_unlock_all(
|
|
589
|
-
override_context: typing.Optional[
|
|
655
|
+
override_context: typing.Optional[
|
|
656
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
657
|
+
] = None,
|
|
590
658
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
591
659
|
undo: typing.Optional[bool] = None,
|
|
592
660
|
):
|
|
593
661
|
"""Unlock all Grease Pencil materials so that they can be edited
|
|
594
662
|
|
|
595
|
-
:type override_context: typing.Optional[typing.Union[
|
|
663
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
596
664
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
597
665
|
:type undo: typing.Optional[bool]
|
|
598
666
|
"""
|
|
@@ -600,7 +668,9 @@ def material_unlock_all(
|
|
|
600
668
|
...
|
|
601
669
|
|
|
602
670
|
def move_to_layer(
|
|
603
|
-
override_context: typing.Optional[
|
|
671
|
+
override_context: typing.Optional[
|
|
672
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
673
|
+
] = None,
|
|
604
674
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
605
675
|
undo: typing.Optional[bool] = None,
|
|
606
676
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
@@ -608,7 +678,7 @@ def move_to_layer(
|
|
|
608
678
|
):
|
|
609
679
|
"""Move selected strokes to another layer
|
|
610
680
|
|
|
611
|
-
:type override_context: typing.Optional[typing.Union[
|
|
681
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
612
682
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
613
683
|
:type undo: typing.Optional[bool]
|
|
614
684
|
:param target_layer_name: Name, Target Grease Pencil Layer
|
|
@@ -620,14 +690,16 @@ def move_to_layer(
|
|
|
620
690
|
...
|
|
621
691
|
|
|
622
692
|
def paste(
|
|
623
|
-
override_context: typing.Optional[
|
|
693
|
+
override_context: typing.Optional[
|
|
694
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
695
|
+
] = None,
|
|
624
696
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
625
697
|
undo: typing.Optional[bool] = None,
|
|
626
698
|
paste_back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
627
699
|
):
|
|
628
700
|
"""Paste Grease Pencil points or strokes from the internal clipboard to the active layer
|
|
629
701
|
|
|
630
|
-
:type override_context: typing.Optional[typing.Union[
|
|
702
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
631
703
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
632
704
|
:type undo: typing.Optional[bool]
|
|
633
705
|
:param paste_back: Paste on Back, Add pasted strokes behind all strokes
|
|
@@ -637,7 +709,9 @@ def paste(
|
|
|
637
709
|
...
|
|
638
710
|
|
|
639
711
|
def primitive_arc(
|
|
640
|
-
override_context: typing.Optional[
|
|
712
|
+
override_context: typing.Optional[
|
|
713
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
714
|
+
] = None,
|
|
641
715
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
642
716
|
undo: typing.Optional[bool] = None,
|
|
643
717
|
subdivision: typing.Optional[typing.Any] = 62,
|
|
@@ -645,7 +719,7 @@ def primitive_arc(
|
|
|
645
719
|
):
|
|
646
720
|
"""Create predefined grease pencil stroke arcs
|
|
647
721
|
|
|
648
|
-
:type override_context: typing.Optional[typing.Union[
|
|
722
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
649
723
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
650
724
|
:type undo: typing.Optional[bool]
|
|
651
725
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -657,7 +731,9 @@ def primitive_arc(
|
|
|
657
731
|
...
|
|
658
732
|
|
|
659
733
|
def primitive_box(
|
|
660
|
-
override_context: typing.Optional[
|
|
734
|
+
override_context: typing.Optional[
|
|
735
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
736
|
+
] = None,
|
|
661
737
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
662
738
|
undo: typing.Optional[bool] = None,
|
|
663
739
|
subdivision: typing.Optional[typing.Any] = 3,
|
|
@@ -665,7 +741,7 @@ def primitive_box(
|
|
|
665
741
|
):
|
|
666
742
|
"""Create predefined grease pencil stroke boxes
|
|
667
743
|
|
|
668
|
-
:type override_context: typing.Optional[typing.Union[
|
|
744
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
669
745
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
670
746
|
:type undo: typing.Optional[bool]
|
|
671
747
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -677,7 +753,9 @@ def primitive_box(
|
|
|
677
753
|
...
|
|
678
754
|
|
|
679
755
|
def primitive_circle(
|
|
680
|
-
override_context: typing.Optional[
|
|
756
|
+
override_context: typing.Optional[
|
|
757
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
758
|
+
] = None,
|
|
681
759
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
682
760
|
undo: typing.Optional[bool] = None,
|
|
683
761
|
subdivision: typing.Optional[typing.Any] = 94,
|
|
@@ -685,7 +763,7 @@ def primitive_circle(
|
|
|
685
763
|
):
|
|
686
764
|
"""Create predefined grease pencil stroke circles
|
|
687
765
|
|
|
688
|
-
:type override_context: typing.Optional[typing.Union[
|
|
766
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
689
767
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
690
768
|
:type undo: typing.Optional[bool]
|
|
691
769
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -697,7 +775,9 @@ def primitive_circle(
|
|
|
697
775
|
...
|
|
698
776
|
|
|
699
777
|
def primitive_curve(
|
|
700
|
-
override_context: typing.Optional[
|
|
778
|
+
override_context: typing.Optional[
|
|
779
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
780
|
+
] = None,
|
|
701
781
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
702
782
|
undo: typing.Optional[bool] = None,
|
|
703
783
|
subdivision: typing.Optional[typing.Any] = 62,
|
|
@@ -705,7 +785,7 @@ def primitive_curve(
|
|
|
705
785
|
):
|
|
706
786
|
"""Create predefined grease pencil stroke curve shapes
|
|
707
787
|
|
|
708
|
-
:type override_context: typing.Optional[typing.Union[
|
|
788
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
709
789
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
710
790
|
:type undo: typing.Optional[bool]
|
|
711
791
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -717,7 +797,9 @@ def primitive_curve(
|
|
|
717
797
|
...
|
|
718
798
|
|
|
719
799
|
def primitive_line(
|
|
720
|
-
override_context: typing.Optional[
|
|
800
|
+
override_context: typing.Optional[
|
|
801
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
802
|
+
] = None,
|
|
721
803
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
722
804
|
undo: typing.Optional[bool] = None,
|
|
723
805
|
subdivision: typing.Optional[typing.Any] = 6,
|
|
@@ -725,7 +807,7 @@ def primitive_line(
|
|
|
725
807
|
):
|
|
726
808
|
"""Create predefined grease pencil stroke lines
|
|
727
809
|
|
|
728
|
-
:type override_context: typing.Optional[typing.Union[
|
|
810
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
729
811
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
730
812
|
:type undo: typing.Optional[bool]
|
|
731
813
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -737,7 +819,9 @@ def primitive_line(
|
|
|
737
819
|
...
|
|
738
820
|
|
|
739
821
|
def primitive_polyline(
|
|
740
|
-
override_context: typing.Optional[
|
|
822
|
+
override_context: typing.Optional[
|
|
823
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
824
|
+
] = None,
|
|
741
825
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
742
826
|
undo: typing.Optional[bool] = None,
|
|
743
827
|
subdivision: typing.Optional[typing.Any] = 6,
|
|
@@ -745,7 +829,7 @@ def primitive_polyline(
|
|
|
745
829
|
):
|
|
746
830
|
"""Create predefined grease pencil stroke polylines
|
|
747
831
|
|
|
748
|
-
:type override_context: typing.Optional[typing.Union[
|
|
832
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
749
833
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
750
834
|
:type undo: typing.Optional[bool]
|
|
751
835
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
@@ -757,14 +841,16 @@ def primitive_polyline(
|
|
|
757
841
|
...
|
|
758
842
|
|
|
759
843
|
def reorder(
|
|
760
|
-
override_context: typing.Optional[
|
|
844
|
+
override_context: typing.Optional[
|
|
845
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
846
|
+
] = None,
|
|
761
847
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
762
848
|
undo: typing.Optional[bool] = None,
|
|
763
849
|
direction: typing.Optional[typing.Any] = "TOP",
|
|
764
850
|
):
|
|
765
851
|
"""Change the display order of the selected strokes
|
|
766
852
|
|
|
767
|
-
:type override_context: typing.Optional[typing.Union[
|
|
853
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
768
854
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
769
855
|
:type undo: typing.Optional[bool]
|
|
770
856
|
:param direction: Direction
|
|
@@ -774,7 +860,9 @@ def reorder(
|
|
|
774
860
|
...
|
|
775
861
|
|
|
776
862
|
def sculpt_paint(
|
|
777
|
-
override_context: typing.Optional[
|
|
863
|
+
override_context: typing.Optional[
|
|
864
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
865
|
+
] = None,
|
|
778
866
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
779
867
|
undo: typing.Optional[bool] = None,
|
|
780
868
|
stroke: typing.Optional[
|
|
@@ -784,7 +872,7 @@ def sculpt_paint(
|
|
|
784
872
|
):
|
|
785
873
|
"""Draw a new stroke in the active Grease Pencil object
|
|
786
874
|
|
|
787
|
-
:type override_context: typing.Optional[typing.Union[
|
|
875
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
788
876
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
789
877
|
:type undo: typing.Optional[bool]
|
|
790
878
|
:param stroke: Stroke
|
|
@@ -805,14 +893,16 @@ def sculpt_paint(
|
|
|
805
893
|
...
|
|
806
894
|
|
|
807
895
|
def select_all(
|
|
808
|
-
override_context: typing.Optional[
|
|
896
|
+
override_context: typing.Optional[
|
|
897
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
898
|
+
] = None,
|
|
809
899
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
810
900
|
undo: typing.Optional[bool] = None,
|
|
811
901
|
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
812
902
|
):
|
|
813
903
|
"""(De)select all visible strokes
|
|
814
904
|
|
|
815
|
-
:type override_context: typing.Optional[typing.Union[
|
|
905
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
816
906
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
817
907
|
:type undo: typing.Optional[bool]
|
|
818
908
|
:param action: Action, Selection action to execute
|
|
@@ -834,14 +924,16 @@ def select_all(
|
|
|
834
924
|
...
|
|
835
925
|
|
|
836
926
|
def select_alternate(
|
|
837
|
-
override_context: typing.Optional[
|
|
927
|
+
override_context: typing.Optional[
|
|
928
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
929
|
+
] = None,
|
|
838
930
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
839
931
|
undo: typing.Optional[bool] = None,
|
|
840
932
|
deselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
841
933
|
):
|
|
842
934
|
"""Select alternated points in strokes with already selected points
|
|
843
935
|
|
|
844
|
-
:type override_context: typing.Optional[typing.Union[
|
|
936
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
845
937
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
846
938
|
:type undo: typing.Optional[bool]
|
|
847
939
|
:param deselect_ends: Deselect Ends, (De)select the first and last point of each stroke
|
|
@@ -851,7 +943,9 @@ def select_alternate(
|
|
|
851
943
|
...
|
|
852
944
|
|
|
853
945
|
def select_ends(
|
|
854
|
-
override_context: typing.Optional[
|
|
946
|
+
override_context: typing.Optional[
|
|
947
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
948
|
+
] = None,
|
|
855
949
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
856
950
|
undo: typing.Optional[bool] = None,
|
|
857
951
|
amount_start: typing.Optional[typing.Any] = 0,
|
|
@@ -859,7 +953,7 @@ def select_ends(
|
|
|
859
953
|
):
|
|
860
954
|
"""Select end points of strokes
|
|
861
955
|
|
|
862
|
-
:type override_context: typing.Optional[typing.Union[
|
|
956
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
863
957
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
864
958
|
:type undo: typing.Optional[bool]
|
|
865
959
|
:param amount_start: Amount Start, Number of points to select from the start
|
|
@@ -871,13 +965,15 @@ def select_ends(
|
|
|
871
965
|
...
|
|
872
966
|
|
|
873
967
|
def select_less(
|
|
874
|
-
override_context: typing.Optional[
|
|
968
|
+
override_context: typing.Optional[
|
|
969
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
970
|
+
] = None,
|
|
875
971
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
876
972
|
undo: typing.Optional[bool] = None,
|
|
877
973
|
):
|
|
878
974
|
"""Shrink the selection by one point
|
|
879
975
|
|
|
880
|
-
:type override_context: typing.Optional[typing.Union[
|
|
976
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
881
977
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
882
978
|
:type undo: typing.Optional[bool]
|
|
883
979
|
"""
|
|
@@ -885,13 +981,15 @@ def select_less(
|
|
|
885
981
|
...
|
|
886
982
|
|
|
887
983
|
def select_linked(
|
|
888
|
-
override_context: typing.Optional[
|
|
984
|
+
override_context: typing.Optional[
|
|
985
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
986
|
+
] = None,
|
|
889
987
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
890
988
|
undo: typing.Optional[bool] = None,
|
|
891
989
|
):
|
|
892
990
|
"""Select all points in curves with any point selection
|
|
893
991
|
|
|
894
|
-
:type override_context: typing.Optional[typing.Union[
|
|
992
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
895
993
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
896
994
|
:type undo: typing.Optional[bool]
|
|
897
995
|
"""
|
|
@@ -899,13 +997,15 @@ def select_linked(
|
|
|
899
997
|
...
|
|
900
998
|
|
|
901
999
|
def select_more(
|
|
902
|
-
override_context: typing.Optional[
|
|
1000
|
+
override_context: typing.Optional[
|
|
1001
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1002
|
+
] = None,
|
|
903
1003
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
904
1004
|
undo: typing.Optional[bool] = None,
|
|
905
1005
|
):
|
|
906
1006
|
"""Grow the selection by one point
|
|
907
1007
|
|
|
908
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1008
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
909
1009
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
910
1010
|
:type undo: typing.Optional[bool]
|
|
911
1011
|
"""
|
|
@@ -913,7 +1013,9 @@ def select_more(
|
|
|
913
1013
|
...
|
|
914
1014
|
|
|
915
1015
|
def select_random(
|
|
916
|
-
override_context: typing.Optional[
|
|
1016
|
+
override_context: typing.Optional[
|
|
1017
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1018
|
+
] = None,
|
|
917
1019
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
918
1020
|
undo: typing.Optional[bool] = None,
|
|
919
1021
|
ratio: typing.Optional[typing.Any] = 0.5,
|
|
@@ -922,7 +1024,7 @@ def select_random(
|
|
|
922
1024
|
):
|
|
923
1025
|
"""Selects random points from the current strokes selection
|
|
924
1026
|
|
|
925
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1027
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
926
1028
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
927
1029
|
:type undo: typing.Optional[bool]
|
|
928
1030
|
:param ratio: Ratio, Portion of items to select randomly
|
|
@@ -942,14 +1044,16 @@ def select_random(
|
|
|
942
1044
|
...
|
|
943
1045
|
|
|
944
1046
|
def separate(
|
|
945
|
-
override_context: typing.Optional[
|
|
1047
|
+
override_context: typing.Optional[
|
|
1048
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1049
|
+
] = None,
|
|
946
1050
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
947
1051
|
undo: typing.Optional[bool] = None,
|
|
948
1052
|
mode: typing.Optional[typing.Any] = "SELECTED",
|
|
949
1053
|
):
|
|
950
1054
|
"""Separate the selected geometry into a new grease pencil object
|
|
951
1055
|
|
|
952
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1056
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
953
1057
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
954
1058
|
:type undo: typing.Optional[bool]
|
|
955
1059
|
:param mode: Mode
|
|
@@ -968,13 +1072,15 @@ def separate(
|
|
|
968
1072
|
...
|
|
969
1073
|
|
|
970
1074
|
def set_active_material(
|
|
971
|
-
override_context: typing.Optional[
|
|
1075
|
+
override_context: typing.Optional[
|
|
1076
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1077
|
+
] = None,
|
|
972
1078
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
973
1079
|
undo: typing.Optional[bool] = None,
|
|
974
1080
|
):
|
|
975
1081
|
"""Set the selected stroke material as the active material
|
|
976
1082
|
|
|
977
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1083
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
978
1084
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
979
1085
|
:type undo: typing.Optional[bool]
|
|
980
1086
|
"""
|
|
@@ -982,14 +1088,16 @@ def set_active_material(
|
|
|
982
1088
|
...
|
|
983
1089
|
|
|
984
1090
|
def set_material(
|
|
985
|
-
override_context: typing.Optional[
|
|
1091
|
+
override_context: typing.Optional[
|
|
1092
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1093
|
+
] = None,
|
|
986
1094
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
987
1095
|
undo: typing.Optional[bool] = None,
|
|
988
1096
|
slot: typing.Optional[typing.Union[str, int, typing.Any]] = "DEFAULT",
|
|
989
1097
|
):
|
|
990
1098
|
"""Set active material
|
|
991
1099
|
|
|
992
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1100
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
993
1101
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
994
1102
|
:type undo: typing.Optional[bool]
|
|
995
1103
|
:param slot: Material Slot
|
|
@@ -999,14 +1107,16 @@ def set_material(
|
|
|
999
1107
|
...
|
|
1000
1108
|
|
|
1001
1109
|
def set_selection_mode(
|
|
1002
|
-
override_context: typing.Optional[
|
|
1110
|
+
override_context: typing.Optional[
|
|
1111
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1112
|
+
] = None,
|
|
1003
1113
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1004
1114
|
undo: typing.Optional[bool] = None,
|
|
1005
1115
|
mode: typing.Optional[typing.Union[str, int]] = "POINT",
|
|
1006
1116
|
):
|
|
1007
1117
|
"""Change the selection mode for Grease Pencil strokes
|
|
1008
1118
|
|
|
1009
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1119
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1010
1120
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1011
1121
|
:type undo: typing.Optional[bool]
|
|
1012
1122
|
:param mode: Mode
|
|
@@ -1016,14 +1126,16 @@ def set_selection_mode(
|
|
|
1016
1126
|
...
|
|
1017
1127
|
|
|
1018
1128
|
def set_uniform_opacity(
|
|
1019
|
-
override_context: typing.Optional[
|
|
1129
|
+
override_context: typing.Optional[
|
|
1130
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1131
|
+
] = None,
|
|
1020
1132
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1021
1133
|
undo: typing.Optional[bool] = None,
|
|
1022
1134
|
opacity: typing.Optional[typing.Any] = 1.0,
|
|
1023
1135
|
):
|
|
1024
1136
|
"""Set all stroke points to same opacity
|
|
1025
1137
|
|
|
1026
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1138
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1027
1139
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1028
1140
|
:type undo: typing.Optional[bool]
|
|
1029
1141
|
:param opacity: Opacity
|
|
@@ -1033,14 +1145,16 @@ def set_uniform_opacity(
|
|
|
1033
1145
|
...
|
|
1034
1146
|
|
|
1035
1147
|
def set_uniform_thickness(
|
|
1036
|
-
override_context: typing.Optional[
|
|
1148
|
+
override_context: typing.Optional[
|
|
1149
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1150
|
+
] = None,
|
|
1037
1151
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1038
1152
|
undo: typing.Optional[bool] = None,
|
|
1039
1153
|
thickness: typing.Optional[typing.Any] = 0.1,
|
|
1040
1154
|
):
|
|
1041
1155
|
"""Set all stroke points to same thickness
|
|
1042
1156
|
|
|
1043
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1157
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1044
1158
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1045
1159
|
:type undo: typing.Optional[bool]
|
|
1046
1160
|
:param thickness: Thickness, Thickness
|
|
@@ -1050,7 +1164,9 @@ def set_uniform_thickness(
|
|
|
1050
1164
|
...
|
|
1051
1165
|
|
|
1052
1166
|
def stroke_cutter(
|
|
1053
|
-
override_context: typing.Optional[
|
|
1167
|
+
override_context: typing.Optional[
|
|
1168
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1169
|
+
] = None,
|
|
1054
1170
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1055
1171
|
undo: typing.Optional[bool] = None,
|
|
1056
1172
|
path: typing.Optional[
|
|
@@ -1059,7 +1175,7 @@ def stroke_cutter(
|
|
|
1059
1175
|
):
|
|
1060
1176
|
"""Delete stroke points in between intersecting strokes
|
|
1061
1177
|
|
|
1062
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1178
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1063
1179
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1064
1180
|
:type undo: typing.Optional[bool]
|
|
1065
1181
|
:param path: Path
|
|
@@ -1069,14 +1185,16 @@ def stroke_cutter(
|
|
|
1069
1185
|
...
|
|
1070
1186
|
|
|
1071
1187
|
def stroke_material_set(
|
|
1072
|
-
override_context: typing.Optional[
|
|
1188
|
+
override_context: typing.Optional[
|
|
1189
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1190
|
+
] = None,
|
|
1073
1191
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1074
1192
|
undo: typing.Optional[bool] = None,
|
|
1075
1193
|
material: typing.Union[str, typing.Any] = "",
|
|
1076
1194
|
):
|
|
1077
1195
|
"""Assign the active material slot to the selected strokes
|
|
1078
1196
|
|
|
1079
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1197
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1080
1198
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1081
1199
|
:type undo: typing.Optional[bool]
|
|
1082
1200
|
:param material: Material, Name of the material
|
|
@@ -1086,14 +1204,16 @@ def stroke_material_set(
|
|
|
1086
1204
|
...
|
|
1087
1205
|
|
|
1088
1206
|
def stroke_simplify(
|
|
1089
|
-
override_context: typing.Optional[
|
|
1207
|
+
override_context: typing.Optional[
|
|
1208
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1209
|
+
] = None,
|
|
1090
1210
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1091
1211
|
undo: typing.Optional[bool] = None,
|
|
1092
1212
|
factor: typing.Optional[typing.Any] = 0.01,
|
|
1093
1213
|
):
|
|
1094
1214
|
"""Simplify selected strokes
|
|
1095
1215
|
|
|
1096
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1216
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1097
1217
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1098
1218
|
:type undo: typing.Optional[bool]
|
|
1099
1219
|
:param factor: Factor
|
|
@@ -1103,7 +1223,9 @@ def stroke_simplify(
|
|
|
1103
1223
|
...
|
|
1104
1224
|
|
|
1105
1225
|
def stroke_smooth(
|
|
1106
|
-
override_context: typing.Optional[
|
|
1226
|
+
override_context: typing.Optional[
|
|
1227
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1228
|
+
] = None,
|
|
1107
1229
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1108
1230
|
undo: typing.Optional[bool] = None,
|
|
1109
1231
|
iterations: typing.Optional[typing.Any] = 10,
|
|
@@ -1116,7 +1238,7 @@ def stroke_smooth(
|
|
|
1116
1238
|
):
|
|
1117
1239
|
"""Smooth selected strokes
|
|
1118
1240
|
|
|
1119
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1241
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1120
1242
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1121
1243
|
:type undo: typing.Optional[bool]
|
|
1122
1244
|
:param iterations: Iterations
|
|
@@ -1138,7 +1260,9 @@ def stroke_smooth(
|
|
|
1138
1260
|
...
|
|
1139
1261
|
|
|
1140
1262
|
def stroke_subdivide(
|
|
1141
|
-
override_context: typing.Optional[
|
|
1263
|
+
override_context: typing.Optional[
|
|
1264
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1265
|
+
] = None,
|
|
1142
1266
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1143
1267
|
undo: typing.Optional[bool] = None,
|
|
1144
1268
|
number_cuts: typing.Optional[typing.Any] = 1,
|
|
@@ -1146,7 +1270,7 @@ def stroke_subdivide(
|
|
|
1146
1270
|
):
|
|
1147
1271
|
"""Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
1148
1272
|
|
|
1149
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1273
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1150
1274
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1151
1275
|
:type undo: typing.Optional[bool]
|
|
1152
1276
|
:param number_cuts: Number of Cuts
|
|
@@ -1158,7 +1282,9 @@ def stroke_subdivide(
|
|
|
1158
1282
|
...
|
|
1159
1283
|
|
|
1160
1284
|
def stroke_subdivide_smooth(
|
|
1161
|
-
override_context: typing.Optional[
|
|
1285
|
+
override_context: typing.Optional[
|
|
1286
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1287
|
+
] = None,
|
|
1162
1288
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1163
1289
|
undo: typing.Optional[bool] = None,
|
|
1164
1290
|
GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any] = None,
|
|
@@ -1166,7 +1292,7 @@ def stroke_subdivide_smooth(
|
|
|
1166
1292
|
):
|
|
1167
1293
|
"""Subdivide strokes and smooth them
|
|
1168
1294
|
|
|
1169
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1295
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1170
1296
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1171
1297
|
:type undo: typing.Optional[bool]
|
|
1172
1298
|
:param GREASE_PENCIL_OT_stroke_subdivide: Subdivide Stroke, Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
@@ -1178,13 +1304,15 @@ def stroke_subdivide_smooth(
|
|
|
1178
1304
|
...
|
|
1179
1305
|
|
|
1180
1306
|
def stroke_switch_direction(
|
|
1181
|
-
override_context: typing.Optional[
|
|
1307
|
+
override_context: typing.Optional[
|
|
1308
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1309
|
+
] = None,
|
|
1182
1310
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1183
1311
|
undo: typing.Optional[bool] = None,
|
|
1184
1312
|
):
|
|
1185
1313
|
"""Change direction of the points of the selected strokes
|
|
1186
1314
|
|
|
1187
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1315
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1188
1316
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1189
1317
|
:type undo: typing.Optional[bool]
|
|
1190
1318
|
"""
|
|
@@ -1192,7 +1320,9 @@ def stroke_switch_direction(
|
|
|
1192
1320
|
...
|
|
1193
1321
|
|
|
1194
1322
|
def weight_brush_stroke(
|
|
1195
|
-
override_context: typing.Optional[
|
|
1323
|
+
override_context: typing.Optional[
|
|
1324
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1325
|
+
] = None,
|
|
1196
1326
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1197
1327
|
undo: typing.Optional[bool] = None,
|
|
1198
1328
|
stroke: typing.Optional[
|
|
@@ -1202,7 +1332,7 @@ def weight_brush_stroke(
|
|
|
1202
1332
|
):
|
|
1203
1333
|
"""Draw weight on stroke points in the active Grease Pencil object
|
|
1204
1334
|
|
|
1205
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1335
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1206
1336
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1207
1337
|
:type undo: typing.Optional[bool]
|
|
1208
1338
|
:param stroke: Stroke
|
|
@@ -1223,13 +1353,15 @@ def weight_brush_stroke(
|
|
|
1223
1353
|
...
|
|
1224
1354
|
|
|
1225
1355
|
def weight_sample(
|
|
1226
|
-
override_context: typing.Optional[
|
|
1356
|
+
override_context: typing.Optional[
|
|
1357
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1358
|
+
] = None,
|
|
1227
1359
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1228
1360
|
undo: typing.Optional[bool] = None,
|
|
1229
1361
|
):
|
|
1230
1362
|
"""Set the weight of the Draw tool to the weight of the vertex under the mouse cursor
|
|
1231
1363
|
|
|
1232
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1364
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1233
1365
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1234
1366
|
:type undo: typing.Optional[bool]
|
|
1235
1367
|
"""
|
|
@@ -1237,13 +1369,15 @@ def weight_sample(
|
|
|
1237
1369
|
...
|
|
1238
1370
|
|
|
1239
1371
|
def weight_toggle_direction(
|
|
1240
|
-
override_context: typing.Optional[
|
|
1372
|
+
override_context: typing.Optional[
|
|
1373
|
+
typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]
|
|
1374
|
+
] = None,
|
|
1241
1375
|
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1242
1376
|
undo: typing.Optional[bool] = None,
|
|
1243
1377
|
):
|
|
1244
1378
|
"""Toggle Add/Subtract for the weight paint draw tool
|
|
1245
1379
|
|
|
1246
|
-
:type override_context: typing.Optional[typing.Union[
|
|
1380
|
+
:type override_context: typing.Optional[typing.Union[typing.Dict[str, typing.Any], bpy.types.Context]]
|
|
1247
1381
|
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1248
1382
|
:type undo: typing.Optional[bool]
|
|
1249
1383
|
"""
|