fake-bpy-module 20240802__py3-none-any.whl → 20240804__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 +77 -77
- bmesh/ops/__init__.pyi +54 -36
- bmesh/types/__init__.pyi +24 -24
- bpy/ops/action/__init__.pyi +55 -32
- bpy/ops/anim/__init__.pyi +22 -22
- bpy/ops/armature/__init__.pyi +47 -20
- bpy/ops/asset/__init__.pyi +5 -2
- bpy/ops/boid/__init__.pyi +12 -2
- bpy/ops/brush/__init__.pyi +18 -12
- bpy/ops/buttons/__init__.pyi +10 -4
- bpy/ops/cachefile/__init__.pyi +12 -6
- bpy/ops/clip/__init__.pyi +54 -38
- bpy/ops/console/__init__.pyi +17 -6
- bpy/ops/constraint/__init__.pyi +28 -28
- bpy/ops/curve/__init__.pyi +72 -34
- bpy/ops/curves/__init__.pyi +16 -16
- bpy/ops/dpaint/__init__.pyi +4 -4
- bpy/ops/ed/__init__.pyi +5 -2
- bpy/ops/export_anim/__init__.pyi +3 -2
- bpy/ops/export_scene/__init__.pyi +55 -45
- bpy/ops/file/__init__.pyi +40 -16
- bpy/ops/font/__init__.pyi +59 -16
- bpy/ops/geometry/__init__.pyi +55 -20
- bpy/ops/gpencil/__init__.pyi +155 -122
- bpy/ops/graph/__init__.pyi +131 -52
- bpy/ops/grease_pencil/__init__.pyi +96 -58
- bpy/ops/image/__init__.pyi +77 -54
- bpy/ops/import_anim/__init__.pyi +11 -8
- bpy/ops/import_scene/__init__.pyi +20 -18
- bpy/ops/info/__init__.pyi +4 -4
- bpy/ops/lattice/__init__.pyi +8 -8
- bpy/ops/marker/__init__.pyi +6 -6
- bpy/ops/mask/__init__.pyi +13 -12
- bpy/ops/mball/__init__.pyi +6 -6
- bpy/ops/mesh/__init__.pyi +290 -150
- bpy/ops/nla/__init__.pyi +28 -20
- bpy/ops/node/__init__.pyi +43 -32
- bpy/ops/object/__init__.pyi +651 -210
- bpy/ops/outliner/__init__.pyi +113 -32
- bpy/ops/paint/__init__.pyi +65 -56
- bpy/ops/palette/__init__.pyi +4 -4
- bpy/ops/particle/__init__.pyi +14 -14
- bpy/ops/pose/__init__.pyi +121 -44
- bpy/ops/preferences/__init__.pyi +9 -6
- bpy/ops/render/__init__.pyi +3 -2
- bpy/ops/rigidbody/__init__.pyi +45 -14
- bpy/ops/scene/__init__.pyi +69 -22
- bpy/ops/screen/__init__.pyi +78 -16
- bpy/ops/sculpt/__init__.pyi +131 -74
- bpy/ops/sculpt_curves/__init__.pyi +2 -2
- bpy/ops/sequencer/__init__.pyi +156 -60
- bpy/ops/sound/__init__.pyi +40 -16
- bpy/ops/surface/__init__.pyi +12 -12
- bpy/ops/text/__init__.pyi +65 -20
- bpy/ops/texture/__init__.pyi +2 -2
- bpy/ops/transform/__init__.pyi +344 -72
- bpy/ops/ui/__init__.pyi +9 -6
- bpy/ops/uilist/__init__.pyi +2 -2
- bpy/ops/uv/__init__.pyi +90 -66
- bpy/ops/view3d/__init__.pyi +36 -30
- bpy/ops/wm/__init__.pyi +443 -156
- bpy/types/__init__.pyi +56103 -30890
- {fake_bpy_module-20240802.dist-info → fake_bpy_module-20240804.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240802.dist-info → fake_bpy_module-20240804.dist-info}/RECORD +73 -73
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/types/__init__.pyi +76 -63
- freestyle/utils/__init__.pyi +1 -1
- idprop/types/__init__.pyi +2 -2
- imbuf/types/__init__.pyi +2 -2
- mathutils/__init__.pyi +1004 -970
- mathutils/bvhtree/__init__.pyi +2 -2
- {fake_bpy_module-20240802.dist-info → fake_bpy_module-20240804.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240802.dist-info → fake_bpy_module-20240804.dist-info}/top_level.txt +0 -0
bpy/ops/ui/__init__.pyi
CHANGED
|
@@ -275,7 +275,10 @@ def eyedropper_driver(
|
|
|
275
275
|
execution_context: int | str | None = None,
|
|
276
276
|
undo: bool | None = None,
|
|
277
277
|
*,
|
|
278
|
-
mapping_type:
|
|
278
|
+
mapping_type: typing.Literal[
|
|
279
|
+
"SINGLE_MANY", "DIRECT", "MATCH", "NONE_ALL", "NONE_SINGLE"
|
|
280
|
+
]
|
|
281
|
+
| None = "SINGLE_MANY",
|
|
279
282
|
):
|
|
280
283
|
"""Pick a property to use as a driver target
|
|
281
284
|
|
|
@@ -298,7 +301,7 @@ def eyedropper_driver(
|
|
|
298
301
|
|
|
299
302
|
NONE_SINGLE
|
|
300
303
|
Manually Create Later (Single) -- Create driver for this property only and without assigning any targets yet.
|
|
301
|
-
:type mapping_type:
|
|
304
|
+
:type mapping_type: typing.Literal['SINGLE_MANY','DIRECT','MATCH','NONE_ALL','NONE_SINGLE'] | None
|
|
302
305
|
"""
|
|
303
306
|
|
|
304
307
|
...
|
|
@@ -308,7 +311,7 @@ def eyedropper_gpencil_color(
|
|
|
308
311
|
execution_context: int | str | None = None,
|
|
309
312
|
undo: bool | None = None,
|
|
310
313
|
*,
|
|
311
|
-
mode:
|
|
314
|
+
mode: typing.Literal["MATERIAL", "PALETTE"] | None = "MATERIAL",
|
|
312
315
|
):
|
|
313
316
|
"""Sample a color from the Blender Window and create Grease Pencil material
|
|
314
317
|
|
|
@@ -316,7 +319,7 @@ def eyedropper_gpencil_color(
|
|
|
316
319
|
:type execution_context: int | str | None
|
|
317
320
|
:type undo: bool | None
|
|
318
321
|
:param mode: Mode
|
|
319
|
-
:type mode:
|
|
322
|
+
:type mode: typing.Literal['MATERIAL','PALETTE'] | None
|
|
320
323
|
"""
|
|
321
324
|
|
|
322
325
|
...
|
|
@@ -429,7 +432,7 @@ def override_type_set_button(
|
|
|
429
432
|
undo: bool | None = None,
|
|
430
433
|
*,
|
|
431
434
|
all: bool | None = True,
|
|
432
|
-
type:
|
|
435
|
+
type: typing.Literal["NOOP", "REPLACE", "DIFFERENCE", "FACTOR"] | None = "REPLACE",
|
|
433
436
|
):
|
|
434
437
|
"""Create an override operation, or set the type of an existing one
|
|
435
438
|
|
|
@@ -451,7 +454,7 @@ def override_type_set_button(
|
|
|
451
454
|
|
|
452
455
|
FACTOR
|
|
453
456
|
Factor -- Store factor to linked data value (useful e.g. for scale).
|
|
454
|
-
:type type:
|
|
457
|
+
:type type: typing.Literal['NOOP','REPLACE','DIFFERENCE','FACTOR'] | None
|
|
455
458
|
"""
|
|
456
459
|
|
|
457
460
|
...
|
bpy/ops/uilist/__init__.pyi
CHANGED
|
@@ -34,7 +34,7 @@ def entry_move(
|
|
|
34
34
|
*,
|
|
35
35
|
list_path: str = "",
|
|
36
36
|
active_index_path: str = "",
|
|
37
|
-
direction:
|
|
37
|
+
direction: typing.Literal["UP", "DOWN"] | None = "UP",
|
|
38
38
|
):
|
|
39
39
|
"""Move an entry in the list up or down
|
|
40
40
|
|
|
@@ -52,7 +52,7 @@ def entry_move(
|
|
|
52
52
|
|
|
53
53
|
DOWN
|
|
54
54
|
DOWN -- DOWN.
|
|
55
|
-
:type direction:
|
|
55
|
+
:type direction: typing.Literal['UP','DOWN'] | None
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
58
|
...
|
bpy/ops/uv/__init__.pyi
CHANGED
|
@@ -13,7 +13,10 @@ def align(
|
|
|
13
13
|
execution_context: int | str | None = None,
|
|
14
14
|
undo: bool | None = None,
|
|
15
15
|
*,
|
|
16
|
-
axis:
|
|
16
|
+
axis: typing.Literal[
|
|
17
|
+
"ALIGN_S", "ALIGN_T", "ALIGN_U", "ALIGN_AUTO", "ALIGN_X", "ALIGN_Y"
|
|
18
|
+
]
|
|
19
|
+
| None = "ALIGN_AUTO",
|
|
17
20
|
):
|
|
18
21
|
"""Aligns selected UV vertices on a line
|
|
19
22
|
|
|
@@ -39,7 +42,7 @@ def align(
|
|
|
39
42
|
|
|
40
43
|
ALIGN_Y
|
|
41
44
|
Align Horizontally -- Align UV vertices on a horizontal line.
|
|
42
|
-
:type axis:
|
|
45
|
+
:type axis: typing.Literal['ALIGN_S','ALIGN_T','ALIGN_U','ALIGN_AUTO','ALIGN_X','ALIGN_Y'] | None
|
|
43
46
|
"""
|
|
44
47
|
|
|
45
48
|
...
|
|
@@ -49,8 +52,8 @@ def align_rotation(
|
|
|
49
52
|
execution_context: int | str | None = None,
|
|
50
53
|
undo: bool | None = None,
|
|
51
54
|
*,
|
|
52
|
-
method:
|
|
53
|
-
axis:
|
|
55
|
+
method: typing.Literal["AUTO", "EDGE", "GEOMETRY"] | None = "AUTO",
|
|
56
|
+
axis: typing.Literal["X", "Y", "Z"] | None = "X",
|
|
54
57
|
correct_aspect: bool | None = False,
|
|
55
58
|
):
|
|
56
59
|
"""Align the UV island's rotation
|
|
@@ -68,7 +71,7 @@ def align_rotation(
|
|
|
68
71
|
|
|
69
72
|
GEOMETRY
|
|
70
73
|
Geometry -- Align to Geometry axis.
|
|
71
|
-
:type method:
|
|
74
|
+
:type method: typing.Literal['AUTO','EDGE','GEOMETRY'] | None
|
|
72
75
|
:param axis: Axis, Axis to align to
|
|
73
76
|
|
|
74
77
|
X
|
|
@@ -79,7 +82,7 @@ def align_rotation(
|
|
|
79
82
|
|
|
80
83
|
Z
|
|
81
84
|
Z -- Z axis.
|
|
82
|
-
:type axis:
|
|
85
|
+
:type axis: typing.Literal['X','Y','Z'] | None
|
|
83
86
|
:param correct_aspect: Correct Aspect, Take image aspect ratio into account
|
|
84
87
|
:type correct_aspect: bool | None
|
|
85
88
|
"""
|
|
@@ -171,9 +174,10 @@ def cylinder_project(
|
|
|
171
174
|
execution_context: int | str | None = None,
|
|
172
175
|
undo: bool | None = None,
|
|
173
176
|
*,
|
|
174
|
-
direction:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
direction: typing.Literal["VIEW_ON_EQUATOR", "VIEW_ON_POLES", "ALIGN_TO_OBJECT"]
|
|
178
|
+
| None = "VIEW_ON_EQUATOR",
|
|
179
|
+
align: typing.Literal["POLAR_ZX", "POLAR_ZY"] | None = "POLAR_ZX",
|
|
180
|
+
pole: typing.Literal["PINCH", "FAN"] | None = "PINCH",
|
|
177
181
|
seam: bool | None = False,
|
|
178
182
|
radius: float | None = 1.0,
|
|
179
183
|
correct_aspect: bool | None = True,
|
|
@@ -195,7 +199,7 @@ def cylinder_project(
|
|
|
195
199
|
|
|
196
200
|
ALIGN_TO_OBJECT
|
|
197
201
|
Align to Object -- Align according to object transform.
|
|
198
|
-
:type direction:
|
|
202
|
+
:type direction: typing.Literal['VIEW_ON_EQUATOR','VIEW_ON_POLES','ALIGN_TO_OBJECT'] | None
|
|
199
203
|
:param align: Align, How to determine rotation around the pole
|
|
200
204
|
|
|
201
205
|
POLAR_ZX
|
|
@@ -203,7 +207,7 @@ def cylinder_project(
|
|
|
203
207
|
|
|
204
208
|
POLAR_ZY
|
|
205
209
|
Polar ZY -- Polar 0 is Y.
|
|
206
|
-
:type align:
|
|
210
|
+
:type align: typing.Literal['POLAR_ZX','POLAR_ZY'] | None
|
|
207
211
|
:param pole: Pole, How to handle faces at the poles
|
|
208
212
|
|
|
209
213
|
PINCH
|
|
@@ -211,7 +215,7 @@ def cylinder_project(
|
|
|
211
215
|
|
|
212
216
|
FAN
|
|
213
217
|
Fan -- UVs are fanned at the poles.
|
|
214
|
-
:type pole:
|
|
218
|
+
:type pole: typing.Literal['PINCH','FAN'] | None
|
|
215
219
|
:param seam: Preserve Seams, Separate projections by islands isolated by seams
|
|
216
220
|
:type seam: bool | None
|
|
217
221
|
:param radius: Radius, Radius of the sphere or cylinder
|
|
@@ -233,9 +237,9 @@ def export_layout(
|
|
|
233
237
|
*,
|
|
234
238
|
filepath: str = "",
|
|
235
239
|
export_all: bool | None = False,
|
|
236
|
-
export_tiles:
|
|
240
|
+
export_tiles: typing.Literal["NONE", "UDIM", "UV"] | None = "NONE",
|
|
237
241
|
modified: bool | None = False,
|
|
238
|
-
mode:
|
|
242
|
+
mode: typing.Literal["SVG", "EPS", "PNG"] | None = "PNG",
|
|
239
243
|
size: collections.abc.Iterable[int] | None = (1024, 1024),
|
|
240
244
|
opacity: float | None = 0.25,
|
|
241
245
|
check_existing: bool | None = True,
|
|
@@ -259,7 +263,7 @@ def export_layout(
|
|
|
259
263
|
|
|
260
264
|
UV
|
|
261
265
|
UVTILE -- Export tiles in the UVTILE numbering scheme: u(u_tile + 1)_v(v_tile + 1).
|
|
262
|
-
:type export_tiles:
|
|
266
|
+
:type export_tiles: typing.Literal['NONE','UDIM','UV'] | None
|
|
263
267
|
:param modified: Modified, Exports UVs from the modified mesh
|
|
264
268
|
:type modified: bool | None
|
|
265
269
|
:param mode: Format, File format to export the UV layout to
|
|
@@ -272,7 +276,7 @@ def export_layout(
|
|
|
272
276
|
|
|
273
277
|
PNG
|
|
274
278
|
PNG Image (.png) -- Export the UV layout to a bitmap image.
|
|
275
|
-
:type mode:
|
|
279
|
+
:type mode: typing.Literal['SVG','EPS','PNG'] | None
|
|
276
280
|
:param size: Size, Dimensions of the exported file
|
|
277
281
|
:type size: collections.abc.Iterable[int] | None
|
|
278
282
|
:param opacity: Fill Opacity, Set amount of opacity for exported UV layout
|
|
@@ -288,7 +292,7 @@ def follow_active_quads(
|
|
|
288
292
|
execution_context: int | str | None = None,
|
|
289
293
|
undo: bool | None = None,
|
|
290
294
|
*,
|
|
291
|
-
mode:
|
|
295
|
+
mode: typing.Literal["EVEN", "LENGTH", "LENGTH_AVERAGE"] | None = "LENGTH_AVERAGE",
|
|
292
296
|
):
|
|
293
297
|
"""Follow UVs from active quads along continuous face loops
|
|
294
298
|
|
|
@@ -305,7 +309,7 @@ def follow_active_quads(
|
|
|
305
309
|
|
|
306
310
|
LENGTH_AVERAGE
|
|
307
311
|
Length Average -- Average space UVs edge length of each loop.
|
|
308
|
-
:type mode:
|
|
312
|
+
:type mode: typing.Literal['EVEN','LENGTH','LENGTH_AVERAGE'] | None
|
|
309
313
|
"""
|
|
310
314
|
|
|
311
315
|
...
|
|
@@ -333,7 +337,7 @@ def lightmap_pack(
|
|
|
333
337
|
execution_context: int | str | None = None,
|
|
334
338
|
undo: bool | None = None,
|
|
335
339
|
*,
|
|
336
|
-
PREF_CONTEXT:
|
|
340
|
+
PREF_CONTEXT: typing.Literal["SEL_FACES", "ALL_FACES"] | None = "SEL_FACES",
|
|
337
341
|
PREF_PACK_IN_ONE: bool | None = True,
|
|
338
342
|
PREF_NEW_UVLAYER: bool | None = False,
|
|
339
343
|
PREF_BOX_DIV: int | None = 12,
|
|
@@ -351,7 +355,7 @@ def lightmap_pack(
|
|
|
351
355
|
|
|
352
356
|
ALL_FACES
|
|
353
357
|
All Faces -- Average space UVs edge length of each loop.
|
|
354
|
-
:type PREF_CONTEXT:
|
|
358
|
+
:type PREF_CONTEXT: typing.Literal['SEL_FACES','ALL_FACES'] | None
|
|
355
359
|
:param PREF_PACK_IN_ONE: Share Texture Space, Objects share texture space, map all objects into a single UV map
|
|
356
360
|
:type PREF_PACK_IN_ONE: bool | None
|
|
357
361
|
:param PREF_NEW_UVLAYER: New UV Map, Create a new UV map for every mesh packed
|
|
@@ -411,16 +415,21 @@ def pack_islands(
|
|
|
411
415
|
execution_context: int | str | None = None,
|
|
412
416
|
undo: bool | None = None,
|
|
413
417
|
*,
|
|
414
|
-
udim_source:
|
|
418
|
+
udim_source: typing.Literal["CLOSEST_UDIM", "ACTIVE_UDIM", "ORIGINAL_AABB"]
|
|
419
|
+
| None = "CLOSEST_UDIM",
|
|
415
420
|
rotate: bool | None = True,
|
|
416
|
-
rotate_method:
|
|
421
|
+
rotate_method: typing.Literal[
|
|
422
|
+
"ANY", "CARDINAL", "AXIS_ALIGNED", "AXIS_ALIGNED_X", "AXIS_ALIGNED_Y"
|
|
423
|
+
]
|
|
424
|
+
| None = "ANY",
|
|
417
425
|
scale: bool | None = True,
|
|
418
426
|
merge_overlap: bool | None = False,
|
|
419
|
-
margin_method:
|
|
427
|
+
margin_method: typing.Literal["SCALED", "ADD", "FRACTION"] | None = "SCALED",
|
|
420
428
|
margin: float | None = 0.001,
|
|
421
429
|
pin: bool | None = False,
|
|
422
|
-
pin_method:
|
|
423
|
-
|
|
430
|
+
pin_method: typing.Literal["SCALE", "ROTATION", "ROTATION_SCALE", "LOCKED"]
|
|
431
|
+
| None = "LOCKED",
|
|
432
|
+
shape_method: typing.Literal["CONCAVE", "CONVEX", "AABB"] | None = "CONCAVE",
|
|
424
433
|
):
|
|
425
434
|
"""Transform all islands so that they fill up the UV/UDIM space as much as possible
|
|
426
435
|
|
|
@@ -437,7 +446,7 @@ def pack_islands(
|
|
|
437
446
|
|
|
438
447
|
ORIGINAL_AABB
|
|
439
448
|
Original bounding box -- Pack to starting bounding box of islands.
|
|
440
|
-
:type udim_source:
|
|
449
|
+
:type udim_source: typing.Literal['CLOSEST_UDIM','ACTIVE_UDIM','ORIGINAL_AABB'] | None
|
|
441
450
|
:param rotate: Rotate, Rotate islands to improve layout
|
|
442
451
|
:type rotate: bool | None
|
|
443
452
|
:param rotate_method: Rotation Method
|
|
@@ -456,7 +465,7 @@ def pack_islands(
|
|
|
456
465
|
|
|
457
466
|
AXIS_ALIGNED_Y
|
|
458
467
|
Axis-aligned (Vertical) -- Rotate islands to be aligned vertically.
|
|
459
|
-
:type rotate_method:
|
|
468
|
+
:type rotate_method: typing.Literal['ANY','CARDINAL','AXIS_ALIGNED','AXIS_ALIGNED_X','AXIS_ALIGNED_Y'] | None
|
|
460
469
|
:param scale: Scale, Scale islands to fill unit square
|
|
461
470
|
:type scale: bool | None
|
|
462
471
|
:param merge_overlap: Merge Overlapping, Overlapping islands stick together
|
|
@@ -471,7 +480,7 @@ def pack_islands(
|
|
|
471
480
|
|
|
472
481
|
FRACTION
|
|
473
482
|
Fraction -- Specify a precise fraction of final UV output.
|
|
474
|
-
:type margin_method:
|
|
483
|
+
:type margin_method: typing.Literal['SCALED','ADD','FRACTION'] | None
|
|
475
484
|
:param margin: Margin, Space between islands
|
|
476
485
|
:type margin: float | None
|
|
477
486
|
:param pin: Lock Pinned Islands, Constrain islands containing any pinned UV's
|
|
@@ -489,7 +498,7 @@ def pack_islands(
|
|
|
489
498
|
|
|
490
499
|
LOCKED
|
|
491
500
|
All -- Pinned islands are locked in place.
|
|
492
|
-
:type pin_method:
|
|
501
|
+
:type pin_method: typing.Literal['SCALE','ROTATION','ROTATION_SCALE','LOCKED'] | None
|
|
493
502
|
:param shape_method: Shape Method
|
|
494
503
|
|
|
495
504
|
CONCAVE
|
|
@@ -500,7 +509,7 @@ def pack_islands(
|
|
|
500
509
|
|
|
501
510
|
AABB
|
|
502
511
|
Bounding Box -- Uses bounding boxes.
|
|
503
|
-
:type shape_method:
|
|
512
|
+
:type shape_method: typing.Literal['CONCAVE','CONVEX','AABB'] | None
|
|
504
513
|
"""
|
|
505
514
|
|
|
506
515
|
...
|
|
@@ -769,7 +778,7 @@ def select_all(
|
|
|
769
778
|
execution_context: int | str | None = None,
|
|
770
779
|
undo: bool | None = None,
|
|
771
780
|
*,
|
|
772
|
-
action:
|
|
781
|
+
action: typing.Literal["TOGGLE", "SELECT", "DESELECT", "INVERT"] | None = "TOGGLE",
|
|
773
782
|
):
|
|
774
783
|
"""Change selection of all UV vertices
|
|
775
784
|
|
|
@@ -789,7 +798,7 @@ def select_all(
|
|
|
789
798
|
|
|
790
799
|
INVERT
|
|
791
800
|
Invert -- Invert selection of all elements.
|
|
792
|
-
:type action:
|
|
801
|
+
:type action: typing.Literal['TOGGLE','SELECT','DESELECT','INVERT'] | None
|
|
793
802
|
"""
|
|
794
803
|
|
|
795
804
|
...
|
|
@@ -805,7 +814,7 @@ def select_box(
|
|
|
805
814
|
ymin: int | None = 0,
|
|
806
815
|
ymax: int | None = 0,
|
|
807
816
|
wait_for_input: bool | None = True,
|
|
808
|
-
mode:
|
|
817
|
+
mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
|
|
809
818
|
):
|
|
810
819
|
"""Select UV vertices using box selection
|
|
811
820
|
|
|
@@ -834,7 +843,7 @@ def select_box(
|
|
|
834
843
|
|
|
835
844
|
SUB
|
|
836
845
|
Subtract -- Subtract existing selection.
|
|
837
|
-
:type mode:
|
|
846
|
+
:type mode: typing.Literal['SET','ADD','SUB'] | None
|
|
838
847
|
"""
|
|
839
848
|
|
|
840
849
|
...
|
|
@@ -848,7 +857,7 @@ def select_circle(
|
|
|
848
857
|
y: int | None = 0,
|
|
849
858
|
radius: int | None = 25,
|
|
850
859
|
wait_for_input: bool | None = True,
|
|
851
|
-
mode:
|
|
860
|
+
mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
|
|
852
861
|
):
|
|
853
862
|
"""Select UV vertices using circle selection
|
|
854
863
|
|
|
@@ -873,7 +882,7 @@ def select_circle(
|
|
|
873
882
|
|
|
874
883
|
SUB
|
|
875
884
|
Subtract -- Subtract existing selection.
|
|
876
|
-
:type mode:
|
|
885
|
+
:type mode: typing.Literal['SET','ADD','SUB'] | None
|
|
877
886
|
"""
|
|
878
887
|
|
|
879
888
|
...
|
|
@@ -908,7 +917,7 @@ def select_lasso(
|
|
|
908
917
|
use_smooth_stroke: bool | None = False,
|
|
909
918
|
smooth_stroke_factor: float | None = 0.75,
|
|
910
919
|
smooth_stroke_radius: int | None = 35,
|
|
911
|
-
mode:
|
|
920
|
+
mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
|
|
912
921
|
):
|
|
913
922
|
"""Select UVs using lasso selection
|
|
914
923
|
|
|
@@ -933,7 +942,7 @@ def select_lasso(
|
|
|
933
942
|
|
|
934
943
|
SUB
|
|
935
944
|
Subtract -- Subtract existing selection.
|
|
936
|
-
:type mode:
|
|
945
|
+
:type mode: typing.Literal['SET','ADD','SUB'] | None
|
|
937
946
|
"""
|
|
938
947
|
|
|
939
948
|
...
|
|
@@ -1016,7 +1025,7 @@ def select_mode(
|
|
|
1016
1025
|
execution_context: int | str | None = None,
|
|
1017
1026
|
undo: bool | None = None,
|
|
1018
1027
|
*,
|
|
1019
|
-
type:
|
|
1028
|
+
type: typing.Literal["VERTEX", "EDGE", "FACE", "ISLAND"] | None = "VERTEX",
|
|
1020
1029
|
):
|
|
1021
1030
|
"""Change UV selection mode
|
|
1022
1031
|
|
|
@@ -1024,7 +1033,7 @@ def select_mode(
|
|
|
1024
1033
|
:type execution_context: int | str | None
|
|
1025
1034
|
:type undo: bool | None
|
|
1026
1035
|
:param type: Type
|
|
1027
|
-
:type type:
|
|
1036
|
+
:type type: typing.Literal['VERTEX', 'EDGE', 'FACE', 'ISLAND'] | None
|
|
1028
1037
|
"""
|
|
1029
1038
|
|
|
1030
1039
|
...
|
|
@@ -1080,8 +1089,20 @@ def select_similar(
|
|
|
1080
1089
|
execution_context: int | str | None = None,
|
|
1081
1090
|
undo: bool | None = None,
|
|
1082
1091
|
*,
|
|
1083
|
-
type:
|
|
1084
|
-
|
|
1092
|
+
type: typing.Literal[
|
|
1093
|
+
"PIN",
|
|
1094
|
+
"LENGTH",
|
|
1095
|
+
"LENGTH_3D",
|
|
1096
|
+
"AREA",
|
|
1097
|
+
"AREA_3D",
|
|
1098
|
+
"MATERIAL",
|
|
1099
|
+
"OBJECT",
|
|
1100
|
+
"SIDES",
|
|
1101
|
+
"WINDING",
|
|
1102
|
+
"FACE",
|
|
1103
|
+
]
|
|
1104
|
+
| None = "PIN",
|
|
1105
|
+
compare: typing.Literal["EQUAL", "GREATER", "LESS"] | None = "EQUAL",
|
|
1085
1106
|
threshold: float | None = 0.0,
|
|
1086
1107
|
):
|
|
1087
1108
|
"""Select similar UVs by property types
|
|
@@ -1090,9 +1111,9 @@ def select_similar(
|
|
|
1090
1111
|
:type execution_context: int | str | None
|
|
1091
1112
|
:type undo: bool | None
|
|
1092
1113
|
:param type: Type
|
|
1093
|
-
:type type:
|
|
1114
|
+
:type type: typing.Literal['PIN','LENGTH','LENGTH_3D','AREA','AREA_3D','MATERIAL','OBJECT','SIDES','WINDING','FACE'] | None
|
|
1094
1115
|
:param compare: Compare
|
|
1095
|
-
:type compare:
|
|
1116
|
+
:type compare: typing.Literal['EQUAL','GREATER','LESS'] | None
|
|
1096
1117
|
:param threshold: Threshold
|
|
1097
1118
|
:type threshold: float | None
|
|
1098
1119
|
"""
|
|
@@ -1189,8 +1210,9 @@ def smart_project(
|
|
|
1189
1210
|
undo: bool | None = None,
|
|
1190
1211
|
*,
|
|
1191
1212
|
angle_limit: float | None = 1.15192,
|
|
1192
|
-
margin_method:
|
|
1193
|
-
rotate_method:
|
|
1213
|
+
margin_method: typing.Literal["SCALED", "ADD", "FRACTION"] | None = "SCALED",
|
|
1214
|
+
rotate_method: typing.Literal["AXIS_ALIGNED", "AXIS_ALIGNED_X", "AXIS_ALIGNED_Y"]
|
|
1215
|
+
| None = "AXIS_ALIGNED_Y",
|
|
1194
1216
|
island_margin: float | None = 0.0,
|
|
1195
1217
|
area_weight: float | None = 0.0,
|
|
1196
1218
|
correct_aspect: bool | None = True,
|
|
@@ -1213,7 +1235,7 @@ def smart_project(
|
|
|
1213
1235
|
|
|
1214
1236
|
FRACTION
|
|
1215
1237
|
Fraction -- Specify a precise fraction of final UV output.
|
|
1216
|
-
:type margin_method:
|
|
1238
|
+
:type margin_method: typing.Literal['SCALED','ADD','FRACTION'] | None
|
|
1217
1239
|
:param rotate_method: Rotation Method
|
|
1218
1240
|
|
|
1219
1241
|
AXIS_ALIGNED
|
|
@@ -1224,7 +1246,7 @@ def smart_project(
|
|
|
1224
1246
|
|
|
1225
1247
|
AXIS_ALIGNED_Y
|
|
1226
1248
|
Axis-aligned (Vertical) -- Rotate islands to be aligned vertically.
|
|
1227
|
-
:type rotate_method:
|
|
1249
|
+
:type rotate_method: typing.Literal['AXIS_ALIGNED','AXIS_ALIGNED_X','AXIS_ALIGNED_Y'] | None
|
|
1228
1250
|
:param island_margin: Island Margin, Margin to reduce bleed from adjacent islands
|
|
1229
1251
|
:type island_margin: float | None
|
|
1230
1252
|
:param area_weight: Area Weight, Weight projection's vector by faces with larger areas
|
|
@@ -1242,7 +1264,7 @@ def snap_cursor(
|
|
|
1242
1264
|
execution_context: int | str | None = None,
|
|
1243
1265
|
undo: bool | None = None,
|
|
1244
1266
|
*,
|
|
1245
|
-
target:
|
|
1267
|
+
target: typing.Literal["PIXELS", "SELECTED", "ORIGIN"] | None = "PIXELS",
|
|
1246
1268
|
):
|
|
1247
1269
|
"""Snap cursor to target type
|
|
1248
1270
|
|
|
@@ -1250,7 +1272,7 @@ def snap_cursor(
|
|
|
1250
1272
|
:type execution_context: int | str | None
|
|
1251
1273
|
:type undo: bool | None
|
|
1252
1274
|
:param target: Target, Target to snap the selected UVs to
|
|
1253
|
-
:type target:
|
|
1275
|
+
:type target: typing.Literal['PIXELS','SELECTED','ORIGIN'] | None
|
|
1254
1276
|
"""
|
|
1255
1277
|
|
|
1256
1278
|
...
|
|
@@ -1260,7 +1282,8 @@ def snap_selected(
|
|
|
1260
1282
|
execution_context: int | str | None = None,
|
|
1261
1283
|
undo: bool | None = None,
|
|
1262
1284
|
*,
|
|
1263
|
-
target:
|
|
1285
|
+
target: typing.Literal["PIXELS", "CURSOR", "CURSOR_OFFSET", "ADJACENT_UNSELECTED"]
|
|
1286
|
+
| None = "PIXELS",
|
|
1264
1287
|
):
|
|
1265
1288
|
"""Snap selected UV vertices to target type
|
|
1266
1289
|
|
|
@@ -1268,7 +1291,7 @@ def snap_selected(
|
|
|
1268
1291
|
:type execution_context: int | str | None
|
|
1269
1292
|
:type undo: bool | None
|
|
1270
1293
|
:param target: Target, Target to snap the selected UVs to
|
|
1271
|
-
:type target:
|
|
1294
|
+
:type target: typing.Literal['PIXELS','CURSOR','CURSOR_OFFSET','ADJACENT_UNSELECTED'] | None
|
|
1272
1295
|
"""
|
|
1273
1296
|
|
|
1274
1297
|
...
|
|
@@ -1278,9 +1301,10 @@ def sphere_project(
|
|
|
1278
1301
|
execution_context: int | str | None = None,
|
|
1279
1302
|
undo: bool | None = None,
|
|
1280
1303
|
*,
|
|
1281
|
-
direction:
|
|
1282
|
-
|
|
1283
|
-
|
|
1304
|
+
direction: typing.Literal["VIEW_ON_EQUATOR", "VIEW_ON_POLES", "ALIGN_TO_OBJECT"]
|
|
1305
|
+
| None = "VIEW_ON_EQUATOR",
|
|
1306
|
+
align: typing.Literal["POLAR_ZX", "POLAR_ZY"] | None = "POLAR_ZX",
|
|
1307
|
+
pole: typing.Literal["PINCH", "FAN"] | None = "PINCH",
|
|
1284
1308
|
seam: bool | None = False,
|
|
1285
1309
|
correct_aspect: bool | None = True,
|
|
1286
1310
|
clip_to_bounds: bool | None = False,
|
|
@@ -1301,7 +1325,7 @@ def sphere_project(
|
|
|
1301
1325
|
|
|
1302
1326
|
ALIGN_TO_OBJECT
|
|
1303
1327
|
Align to Object -- Align according to object transform.
|
|
1304
|
-
:type direction:
|
|
1328
|
+
:type direction: typing.Literal['VIEW_ON_EQUATOR','VIEW_ON_POLES','ALIGN_TO_OBJECT'] | None
|
|
1305
1329
|
:param align: Align, How to determine rotation around the pole
|
|
1306
1330
|
|
|
1307
1331
|
POLAR_ZX
|
|
@@ -1309,7 +1333,7 @@ def sphere_project(
|
|
|
1309
1333
|
|
|
1310
1334
|
POLAR_ZY
|
|
1311
1335
|
Polar ZY -- Polar 0 is Y.
|
|
1312
|
-
:type align:
|
|
1336
|
+
:type align: typing.Literal['POLAR_ZX','POLAR_ZY'] | None
|
|
1313
1337
|
:param pole: Pole, How to handle faces at the poles
|
|
1314
1338
|
|
|
1315
1339
|
PINCH
|
|
@@ -1317,7 +1341,7 @@ def sphere_project(
|
|
|
1317
1341
|
|
|
1318
1342
|
FAN
|
|
1319
1343
|
Fan -- UVs are fanned at the poles.
|
|
1320
|
-
:type pole:
|
|
1344
|
+
:type pole: typing.Literal['PINCH','FAN'] | None
|
|
1321
1345
|
:param seam: Preserve Seams, Separate projections by islands isolated by seams
|
|
1322
1346
|
:type seam: bool | None
|
|
1323
1347
|
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
@@ -1342,8 +1366,8 @@ def stitch(
|
|
|
1342
1366
|
active_object_index: int | None = 0,
|
|
1343
1367
|
midpoint_snap: bool | None = False,
|
|
1344
1368
|
clear_seams: bool | None = True,
|
|
1345
|
-
mode:
|
|
1346
|
-
stored_mode:
|
|
1369
|
+
mode: typing.Literal["VERTEX", "EDGE"] | None = "VERTEX",
|
|
1370
|
+
stored_mode: typing.Literal["VERTEX", "EDGE"] | None = "VERTEX",
|
|
1347
1371
|
selection: bpy.types.bpy_prop_collection[bpy.types.SelectedUvElement] | None = None,
|
|
1348
1372
|
objects_selection_count: collections.abc.Iterable[int] | None = (0, 0, 0, 0, 0, 0),
|
|
1349
1373
|
):
|
|
@@ -1367,9 +1391,9 @@ def stitch(
|
|
|
1367
1391
|
:param clear_seams: Clear Seams, Clear seams of stitched edges
|
|
1368
1392
|
:type clear_seams: bool | None
|
|
1369
1393
|
:param mode: Operation Mode, Use vertex or edge stitching
|
|
1370
|
-
:type mode:
|
|
1394
|
+
:type mode: typing.Literal['VERTEX','EDGE'] | None
|
|
1371
1395
|
:param stored_mode: Stored Operation Mode, Use vertex or edge stitching
|
|
1372
|
-
:type stored_mode:
|
|
1396
|
+
:type stored_mode: typing.Literal['VERTEX','EDGE'] | None
|
|
1373
1397
|
:param selection: Selection
|
|
1374
1398
|
:type selection: bpy.types.bpy_prop_collection[bpy.types.SelectedUvElement] | None
|
|
1375
1399
|
:param objects_selection_count: Objects Selection Count
|
|
@@ -1383,11 +1407,11 @@ def unwrap(
|
|
|
1383
1407
|
execution_context: int | str | None = None,
|
|
1384
1408
|
undo: bool | None = None,
|
|
1385
1409
|
*,
|
|
1386
|
-
method:
|
|
1410
|
+
method: typing.Literal["ANGLE_BASED", "CONFORMAL"] | None = "ANGLE_BASED",
|
|
1387
1411
|
fill_holes: bool | None = True,
|
|
1388
1412
|
correct_aspect: bool | None = True,
|
|
1389
1413
|
use_subsurf_data: bool | None = False,
|
|
1390
|
-
margin_method:
|
|
1414
|
+
margin_method: typing.Literal["SCALED", "ADD", "FRACTION"] | None = "SCALED",
|
|
1391
1415
|
margin: float | None = 0.001,
|
|
1392
1416
|
):
|
|
1393
1417
|
"""Unwrap the mesh of the object being edited
|
|
@@ -1396,7 +1420,7 @@ def unwrap(
|
|
|
1396
1420
|
:type execution_context: int | str | None
|
|
1397
1421
|
:type undo: bool | None
|
|
1398
1422
|
:param method: Method, Unwrapping method (Angle Based usually gives better results than Conformal, while being somewhat slower)
|
|
1399
|
-
:type method:
|
|
1423
|
+
:type method: typing.Literal['ANGLE_BASED','CONFORMAL'] | None
|
|
1400
1424
|
:param fill_holes: Fill Holes, Virtually fill holes in mesh before unwrapping, to better avoid overlaps and preserve symmetry
|
|
1401
1425
|
:type fill_holes: bool | None
|
|
1402
1426
|
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
@@ -1413,7 +1437,7 @@ def unwrap(
|
|
|
1413
1437
|
|
|
1414
1438
|
FRACTION
|
|
1415
1439
|
Fraction -- Specify a precise fraction of final UV output.
|
|
1416
|
-
:type margin_method:
|
|
1440
|
+
:type margin_method: typing.Literal['SCALED','ADD','FRACTION'] | None
|
|
1417
1441
|
:param margin: Margin, Space between islands
|
|
1418
1442
|
:type margin: float | None
|
|
1419
1443
|
"""
|