fake-bpy-module 20240803__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 +78 -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 +28064 -2857
- {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240804.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240804.dist-info}/RECORD +72 -72
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/types/__init__.pyi +76 -63
- 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-20240803.dist-info → fake_bpy_module-20240804.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240804.dist-info}/top_level.txt +0 -0
bpy/ops/image/__init__.pyi
CHANGED
|
@@ -100,19 +100,21 @@ def convert_to_mesh_plane(
|
|
|
100
100
|
execution_context: int | str | None = None,
|
|
101
101
|
undo: bool | None = None,
|
|
102
102
|
*,
|
|
103
|
-
interpolation:
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
interpolation: typing.Literal["Linear", "Closest", "Cubic", "Smart"]
|
|
104
|
+
| None = "Linear",
|
|
105
|
+
extension: typing.Literal["CLIP", "EXTEND", "REPEAT"] | None = "CLIP",
|
|
106
|
+
alpha_mode: typing.Literal["STRAIGHT", "PREMUL", "CHANNEL_PACKED", "NONE"]
|
|
107
|
+
| None = "STRAIGHT",
|
|
106
108
|
use_auto_refresh: bool | None = True,
|
|
107
109
|
relative: bool | None = True,
|
|
108
|
-
shader:
|
|
110
|
+
shader: typing.Literal["PRINCIPLED", "SHADELESS", "EMISSION"] | None = "PRINCIPLED",
|
|
109
111
|
emit_strength: float | None = 1.0,
|
|
110
112
|
use_transparency: bool | None = True,
|
|
111
|
-
render_method:
|
|
113
|
+
render_method: typing.Literal["DITHERED", "BLENDED"] | None = "DITHERED",
|
|
112
114
|
use_backface_culling: bool | None = False,
|
|
113
115
|
show_transparent_back: bool | None = True,
|
|
114
116
|
overwrite_material: bool | None = True,
|
|
115
|
-
name_from:
|
|
117
|
+
name_from: typing.Literal["OBJECT", "IMAGE"] | None = "OBJECT",
|
|
116
118
|
delete_ref: bool | None = True,
|
|
117
119
|
):
|
|
118
120
|
"""Convert selected reference images to textured mesh plane
|
|
@@ -133,7 +135,7 @@ def convert_to_mesh_plane(
|
|
|
133
135
|
|
|
134
136
|
Smart
|
|
135
137
|
Smart -- Bicubic when magnifying, else bilinear (OSL only).
|
|
136
|
-
:type interpolation:
|
|
138
|
+
:type interpolation: typing.Literal['Linear','Closest','Cubic','Smart'] | None
|
|
137
139
|
:param extension: Extension, How the image is extrapolated past its original bounds
|
|
138
140
|
|
|
139
141
|
CLIP
|
|
@@ -144,7 +146,7 @@ def convert_to_mesh_plane(
|
|
|
144
146
|
|
|
145
147
|
REPEAT
|
|
146
148
|
Repeat -- Cause the image to repeat horizontally and vertically.
|
|
147
|
-
:type extension:
|
|
149
|
+
:type extension: typing.Literal['CLIP','EXTEND','REPEAT'] | None
|
|
148
150
|
:param alpha_mode: Alpha Mode, Representation of alpha in the image file, to convert to and from when saving and loading the image
|
|
149
151
|
|
|
150
152
|
STRAIGHT
|
|
@@ -158,7 +160,7 @@ def convert_to_mesh_plane(
|
|
|
158
160
|
|
|
159
161
|
NONE
|
|
160
162
|
None -- Ignore alpha channel from the file and make image fully opaque.
|
|
161
|
-
:type alpha_mode:
|
|
163
|
+
:type alpha_mode: typing.Literal['STRAIGHT','PREMUL','CHANNEL_PACKED','NONE'] | None
|
|
162
164
|
:param use_auto_refresh: Auto Refresh, Always refresh image on frame changes
|
|
163
165
|
:type use_auto_refresh: bool | None
|
|
164
166
|
:param relative: Relative Paths, Use relative file paths
|
|
@@ -173,7 +175,7 @@ def convert_to_mesh_plane(
|
|
|
173
175
|
|
|
174
176
|
EMISSION
|
|
175
177
|
Emission -- Emission shader.
|
|
176
|
-
:type shader:
|
|
178
|
+
:type shader: typing.Literal['PRINCIPLED','SHADELESS','EMISSION'] | None
|
|
177
179
|
:param emit_strength: Emission Strength, Strength of emission
|
|
178
180
|
:type emit_strength: float | None
|
|
179
181
|
:param use_transparency: Use Alpha, Use alpha channel for transparency
|
|
@@ -185,7 +187,7 @@ def convert_to_mesh_plane(
|
|
|
185
187
|
|
|
186
188
|
BLENDED
|
|
187
189
|
Blended -- Allows for colored transparency, but incompatible with render passes and raytracing. Also known as forward rendering..
|
|
188
|
-
:type render_method:
|
|
190
|
+
:type render_method: typing.Literal['DITHERED','BLENDED'] | None
|
|
189
191
|
:param use_backface_culling: Backface Culling, Use backface culling to hide the back side of faces
|
|
190
192
|
:type use_backface_culling: bool | None
|
|
191
193
|
:param show_transparent_back: Show Backface, Render multiple transparent layers (may introduce transparency sorting problems)
|
|
@@ -199,7 +201,7 @@ def convert_to_mesh_plane(
|
|
|
199
201
|
|
|
200
202
|
IMAGE
|
|
201
203
|
Source Image -- name from laoded image.
|
|
202
|
-
:type name_from:
|
|
204
|
+
:type name_from: typing.Literal['OBJECT','IMAGE'] | None
|
|
203
205
|
:param delete_ref: Delete Reference Object, Delete empty image object once mesh plane is created
|
|
204
206
|
:type delete_ref: bool | None
|
|
205
207
|
"""
|
|
@@ -211,7 +213,7 @@ def curves_point_set(
|
|
|
211
213
|
execution_context: int | str | None = None,
|
|
212
214
|
undo: bool | None = None,
|
|
213
215
|
*,
|
|
214
|
-
point:
|
|
216
|
+
point: typing.Literal["BLACK_POINT", "WHITE_POINT"] | None = "BLACK_POINT",
|
|
215
217
|
size: int | None = 1,
|
|
216
218
|
):
|
|
217
219
|
"""Set black point or white point for curves
|
|
@@ -220,7 +222,7 @@ def curves_point_set(
|
|
|
220
222
|
:type execution_context: int | str | None
|
|
221
223
|
:type undo: bool | None
|
|
222
224
|
:param point: Point, Set black point or white point for curves
|
|
223
|
-
:type point:
|
|
225
|
+
:type point: typing.Literal['BLACK_POINT','WHITE_POINT'] | None
|
|
224
226
|
:param size: Sample Size
|
|
225
227
|
:type size: int | None
|
|
226
228
|
"""
|
|
@@ -292,7 +294,10 @@ def file_browse(
|
|
|
292
294
|
relative_path: bool | None = True,
|
|
293
295
|
show_multiview: bool | None = False,
|
|
294
296
|
use_multiview: bool | None = False,
|
|
295
|
-
display_type:
|
|
297
|
+
display_type: typing.Literal[
|
|
298
|
+
"DEFAULT", "LIST_VERTICAL", "LIST_HORIZONTAL", "THUMBNAIL"
|
|
299
|
+
]
|
|
300
|
+
| None = "DEFAULT",
|
|
296
301
|
sort_method: str | None = "",
|
|
297
302
|
):
|
|
298
303
|
"""Open an image file browser, hold Shift to open the file, Alt to browse containing directory
|
|
@@ -361,7 +366,7 @@ def file_browse(
|
|
|
361
366
|
|
|
362
367
|
THUMBNAIL
|
|
363
368
|
Thumbnails -- Display files as thumbnails.
|
|
364
|
-
:type display_type:
|
|
369
|
+
:type display_type: typing.Literal['DEFAULT','LIST_VERTICAL','LIST_HORIZONTAL','THUMBNAIL'] | None
|
|
365
370
|
:param sort_method: File sorting mode
|
|
366
371
|
:type sort_method: str | None
|
|
367
372
|
"""
|
|
@@ -394,20 +399,22 @@ def import_as_mesh_planes(
|
|
|
394
399
|
execution_context: int | str | None = None,
|
|
395
400
|
undo: bool | None = None,
|
|
396
401
|
*,
|
|
397
|
-
interpolation:
|
|
398
|
-
|
|
399
|
-
|
|
402
|
+
interpolation: typing.Literal["Linear", "Closest", "Cubic", "Smart"]
|
|
403
|
+
| None = "Linear",
|
|
404
|
+
extension: typing.Literal["CLIP", "EXTEND", "REPEAT"] | None = "CLIP",
|
|
405
|
+
alpha_mode: typing.Literal["STRAIGHT", "PREMUL", "CHANNEL_PACKED", "NONE"]
|
|
406
|
+
| None = "STRAIGHT",
|
|
400
407
|
use_auto_refresh: bool | None = True,
|
|
401
408
|
relative: bool | None = True,
|
|
402
|
-
shader:
|
|
409
|
+
shader: typing.Literal["PRINCIPLED", "SHADELESS", "EMISSION"] | None = "PRINCIPLED",
|
|
403
410
|
emit_strength: float | None = 1.0,
|
|
404
411
|
use_transparency: bool | None = True,
|
|
405
|
-
render_method:
|
|
412
|
+
render_method: typing.Literal["DITHERED", "BLENDED"] | None = "DITHERED",
|
|
406
413
|
use_backface_culling: bool | None = False,
|
|
407
414
|
show_transparent_back: bool | None = True,
|
|
408
415
|
overwrite_material: bool | None = True,
|
|
409
416
|
filepath: str = "",
|
|
410
|
-
align:
|
|
417
|
+
align: typing.Literal["WORLD", "VIEW", "CURSOR"] | None = "WORLD",
|
|
411
418
|
location: collections.abc.Sequence[float] | mathutils.Vector | None = (
|
|
412
419
|
0.0,
|
|
413
420
|
0.0,
|
|
@@ -427,13 +434,17 @@ def import_as_mesh_planes(
|
|
|
427
434
|
force_reload: bool | None = False,
|
|
428
435
|
image_sequence: bool | None = False,
|
|
429
436
|
offset: bool | None = True,
|
|
430
|
-
offset_axis:
|
|
437
|
+
offset_axis: typing.Literal["+X", "+Y", "+Z", "-X", "-Y", "-Z"] | None = "+X",
|
|
431
438
|
offset_amount: float | None = 0.1,
|
|
432
|
-
align_axis:
|
|
433
|
-
|
|
439
|
+
align_axis: typing.Literal["+X", "+Y", "+Z", "-X", "-Y", "-Z", "CAM", "CAM_AX"]
|
|
440
|
+
| None = "CAM_AX",
|
|
441
|
+
prev_align_axis: typing.Literal[
|
|
442
|
+
"+X", "+Y", "+Z", "-X", "-Y", "-Z", "CAM", "CAM_AX", "NONE"
|
|
443
|
+
]
|
|
444
|
+
| None = "NONE",
|
|
434
445
|
align_track: bool | None = False,
|
|
435
|
-
size_mode:
|
|
436
|
-
fill_mode:
|
|
446
|
+
size_mode: typing.Literal["ABSOLUTE", "CAMERA", "DPI", "DPBU"] | None = "ABSOLUTE",
|
|
447
|
+
fill_mode: typing.Literal["FILL", "FIT"] | None = "FILL",
|
|
437
448
|
height: float | None = 1.0,
|
|
438
449
|
factor: float | None = 600.0,
|
|
439
450
|
):
|
|
@@ -455,7 +466,7 @@ def import_as_mesh_planes(
|
|
|
455
466
|
|
|
456
467
|
Smart
|
|
457
468
|
Smart -- Bicubic when magnifying, else bilinear (OSL only).
|
|
458
|
-
:type interpolation:
|
|
469
|
+
:type interpolation: typing.Literal['Linear','Closest','Cubic','Smart'] | None
|
|
459
470
|
:param extension: Extension, How the image is extrapolated past its original bounds
|
|
460
471
|
|
|
461
472
|
CLIP
|
|
@@ -466,7 +477,7 @@ def import_as_mesh_planes(
|
|
|
466
477
|
|
|
467
478
|
REPEAT
|
|
468
479
|
Repeat -- Cause the image to repeat horizontally and vertically.
|
|
469
|
-
:type extension:
|
|
480
|
+
:type extension: typing.Literal['CLIP','EXTEND','REPEAT'] | None
|
|
470
481
|
:param alpha_mode: Alpha Mode, Representation of alpha in the image file, to convert to and from when saving and loading the image
|
|
471
482
|
|
|
472
483
|
STRAIGHT
|
|
@@ -480,7 +491,7 @@ def import_as_mesh_planes(
|
|
|
480
491
|
|
|
481
492
|
NONE
|
|
482
493
|
None -- Ignore alpha channel from the file and make image fully opaque.
|
|
483
|
-
:type alpha_mode:
|
|
494
|
+
:type alpha_mode: typing.Literal['STRAIGHT','PREMUL','CHANNEL_PACKED','NONE'] | None
|
|
484
495
|
:param use_auto_refresh: Auto Refresh, Always refresh image on frame changes
|
|
485
496
|
:type use_auto_refresh: bool | None
|
|
486
497
|
:param relative: Relative Paths, Use relative file paths
|
|
@@ -495,7 +506,7 @@ def import_as_mesh_planes(
|
|
|
495
506
|
|
|
496
507
|
EMISSION
|
|
497
508
|
Emission -- Emission shader.
|
|
498
|
-
:type shader:
|
|
509
|
+
:type shader: typing.Literal['PRINCIPLED','SHADELESS','EMISSION'] | None
|
|
499
510
|
:param emit_strength: Emission Strength, Strength of emission
|
|
500
511
|
:type emit_strength: float | None
|
|
501
512
|
:param use_transparency: Use Alpha, Use alpha channel for transparency
|
|
@@ -507,7 +518,7 @@ def import_as_mesh_planes(
|
|
|
507
518
|
|
|
508
519
|
BLENDED
|
|
509
520
|
Blended -- Allows for colored transparency, but incompatible with render passes and raytracing. Also known as forward rendering..
|
|
510
|
-
:type render_method:
|
|
521
|
+
:type render_method: typing.Literal['DITHERED','BLENDED'] | None
|
|
511
522
|
:param use_backface_culling: Backface Culling, Use backface culling to hide the back side of faces
|
|
512
523
|
:type use_backface_culling: bool | None
|
|
513
524
|
:param show_transparent_back: Show Backface, Render multiple transparent layers (may introduce transparency sorting problems)
|
|
@@ -526,7 +537,7 @@ def import_as_mesh_planes(
|
|
|
526
537
|
|
|
527
538
|
CURSOR
|
|
528
539
|
3D Cursor -- Use the 3D cursor orientation for the new object.
|
|
529
|
-
:type align:
|
|
540
|
+
:type align: typing.Literal['WORLD','VIEW','CURSOR'] | None
|
|
530
541
|
:param location: Location
|
|
531
542
|
:type location: collections.abc.Sequence[float] | mathutils.Vector | None
|
|
532
543
|
:param rotation: Rotation
|
|
@@ -566,7 +577,7 @@ def import_as_mesh_planes(
|
|
|
566
577
|
|
|
567
578
|
-Z
|
|
568
579
|
-Z -- Stacked Below.
|
|
569
|
-
:type offset_axis:
|
|
580
|
+
:type offset_axis: typing.Literal['+X','+Y','+Z','-X','-Y','-Z'] | None
|
|
570
581
|
:param offset_amount: Offset Distance, Set distance between each plane
|
|
571
582
|
:type offset_amount: float | None
|
|
572
583
|
:param align_axis: Align, How to align the planes
|
|
@@ -594,7 +605,7 @@ def import_as_mesh_planes(
|
|
|
594
605
|
|
|
595
606
|
CAM_AX
|
|
596
607
|
Camera's Main Axis -- Facing the camera's dominant axis.
|
|
597
|
-
:type align_axis:
|
|
608
|
+
:type align_axis: typing.Literal['+X','+Y','+Z','-X','-Y','-Z','CAM','CAM_AX'] | None
|
|
598
609
|
:param prev_align_axis: prev_align_axis
|
|
599
610
|
|
|
600
611
|
+X
|
|
@@ -623,7 +634,7 @@ def import_as_mesh_planes(
|
|
|
623
634
|
|
|
624
635
|
NONE
|
|
625
636
|
Undocumented.
|
|
626
|
-
:type prev_align_axis:
|
|
637
|
+
:type prev_align_axis: typing.Literal['+X','+Y','+Z','-X','-Y','-Z','CAM','CAM_AX','NONE'] | None
|
|
627
638
|
:param align_track: Track Camera, Add a constraint to make the planes track the camera
|
|
628
639
|
:type align_track: bool | None
|
|
629
640
|
:param size_mode: Size Mode, Method for computing the plane size
|
|
@@ -639,7 +650,7 @@ def import_as_mesh_planes(
|
|
|
639
650
|
|
|
640
651
|
DPBU
|
|
641
652
|
Pixels per Blender Unit -- Scale based on pixels per Blender Unit.
|
|
642
|
-
:type size_mode:
|
|
653
|
+
:type size_mode: typing.Literal['ABSOLUTE','CAMERA','DPI','DPBU'] | None
|
|
643
654
|
:param fill_mode: Scale, Method to scale the plane with the camera frame
|
|
644
655
|
|
|
645
656
|
FILL
|
|
@@ -647,7 +658,7 @@ def import_as_mesh_planes(
|
|
|
647
658
|
|
|
648
659
|
FIT
|
|
649
660
|
Fit -- Fit entire image within the camera frame.
|
|
650
|
-
:type fill_mode:
|
|
661
|
+
:type fill_mode: typing.Literal['FILL','FIT'] | None
|
|
651
662
|
:param height: Height, Height of the created plane
|
|
652
663
|
:type height: float | None
|
|
653
664
|
:param factor: Definition, Number of pixels per inch or Blender Unit
|
|
@@ -707,7 +718,7 @@ def new(
|
|
|
707
718
|
height: int | None = 1024,
|
|
708
719
|
color: collections.abc.Iterable[float] | None = (0.0, 0.0, 0.0, 1.0),
|
|
709
720
|
alpha: bool | None = True,
|
|
710
|
-
generated_type:
|
|
721
|
+
generated_type: typing.Literal["BLANK", "UV_GRID", "COLOR_GRID"] | None = "BLANK",
|
|
711
722
|
float: bool | None = False,
|
|
712
723
|
use_stereo_3d: bool | None = False,
|
|
713
724
|
tiled: bool | None = False,
|
|
@@ -728,7 +739,7 @@ def new(
|
|
|
728
739
|
:param alpha: Alpha, Create an image with an alpha channel
|
|
729
740
|
:type alpha: bool | None
|
|
730
741
|
:param generated_type: Generated Type, Fill the image with a grid for UV map testing
|
|
731
|
-
:type generated_type:
|
|
742
|
+
:type generated_type: typing.Literal['BLANK', 'UV_GRID', 'COLOR_GRID'] | None
|
|
732
743
|
:param float: 32-bit Float, Create image with 32-bit floating-point bit depth
|
|
733
744
|
:type float: bool | None
|
|
734
745
|
:param use_stereo_3d: Stereo 3D, Create an image with left and right views
|
|
@@ -772,7 +783,10 @@ def open(
|
|
|
772
783
|
relative_path: bool | None = True,
|
|
773
784
|
show_multiview: bool | None = False,
|
|
774
785
|
use_multiview: bool | None = False,
|
|
775
|
-
display_type:
|
|
786
|
+
display_type: typing.Literal[
|
|
787
|
+
"DEFAULT", "LIST_VERTICAL", "LIST_HORIZONTAL", "THUMBNAIL"
|
|
788
|
+
]
|
|
789
|
+
| None = "DEFAULT",
|
|
776
790
|
sort_method: str | None = "",
|
|
777
791
|
use_sequence_detection: bool | None = True,
|
|
778
792
|
use_udim_detecting: bool | None = True,
|
|
@@ -849,7 +863,7 @@ def open(
|
|
|
849
863
|
|
|
850
864
|
THUMBNAIL
|
|
851
865
|
Thumbnails -- Display files as thumbnails.
|
|
852
|
-
:type display_type:
|
|
866
|
+
:type display_type: typing.Literal['DEFAULT','LIST_VERTICAL','LIST_HORIZONTAL','THUMBNAIL'] | None
|
|
853
867
|
:param sort_method: File sorting mode
|
|
854
868
|
:type sort_method: str | None
|
|
855
869
|
:param use_sequence_detection: Detect Sequences, Automatically detect animated sequences in selected images (based on file names)
|
|
@@ -1034,7 +1048,10 @@ def replace(
|
|
|
1034
1048
|
relative_path: bool | None = True,
|
|
1035
1049
|
show_multiview: bool | None = False,
|
|
1036
1050
|
use_multiview: bool | None = False,
|
|
1037
|
-
display_type:
|
|
1051
|
+
display_type: typing.Literal[
|
|
1052
|
+
"DEFAULT", "LIST_VERTICAL", "LIST_HORIZONTAL", "THUMBNAIL"
|
|
1053
|
+
]
|
|
1054
|
+
| None = "DEFAULT",
|
|
1038
1055
|
sort_method: str | None = "",
|
|
1039
1056
|
):
|
|
1040
1057
|
"""Replace current image by another one from disk
|
|
@@ -1103,7 +1120,7 @@ def replace(
|
|
|
1103
1120
|
|
|
1104
1121
|
THUMBNAIL
|
|
1105
1122
|
Thumbnails -- Display files as thumbnails.
|
|
1106
|
-
:type display_type:
|
|
1123
|
+
:type display_type: typing.Literal['DEFAULT','LIST_VERTICAL','LIST_HORIZONTAL','THUMBNAIL'] | None
|
|
1107
1124
|
:param sort_method: File sorting mode
|
|
1108
1125
|
:type sort_method: str | None
|
|
1109
1126
|
"""
|
|
@@ -1133,7 +1150,7 @@ def rotate_orthogonal(
|
|
|
1133
1150
|
execution_context: int | str | None = None,
|
|
1134
1151
|
undo: bool | None = None,
|
|
1135
1152
|
*,
|
|
1136
|
-
degrees:
|
|
1153
|
+
degrees: typing.Literal["90", "180", "270"] | None = "90",
|
|
1137
1154
|
):
|
|
1138
1155
|
"""Rotate the image
|
|
1139
1156
|
|
|
@@ -1150,7 +1167,7 @@ def rotate_orthogonal(
|
|
|
1150
1167
|
|
|
1151
1168
|
270
|
|
1152
1169
|
270 Degrees -- Rotate 270 degrees clockwise.
|
|
1153
|
-
:type degrees:
|
|
1170
|
+
:type degrees: typing.Literal['90','180','270'] | None
|
|
1154
1171
|
"""
|
|
1155
1172
|
|
|
1156
1173
|
...
|
|
@@ -1265,7 +1282,10 @@ def save_as(
|
|
|
1265
1282
|
relative_path: bool | None = True,
|
|
1266
1283
|
show_multiview: bool | None = False,
|
|
1267
1284
|
use_multiview: bool | None = False,
|
|
1268
|
-
display_type:
|
|
1285
|
+
display_type: typing.Literal[
|
|
1286
|
+
"DEFAULT", "LIST_VERTICAL", "LIST_HORIZONTAL", "THUMBNAIL"
|
|
1287
|
+
]
|
|
1288
|
+
| None = "DEFAULT",
|
|
1269
1289
|
sort_method: str | None = "",
|
|
1270
1290
|
):
|
|
1271
1291
|
"""Save the image with another name and/or settings
|
|
@@ -1338,7 +1358,7 @@ def save_as(
|
|
|
1338
1358
|
|
|
1339
1359
|
THUMBNAIL
|
|
1340
1360
|
Thumbnails -- Display files as thumbnails.
|
|
1341
|
-
:type display_type:
|
|
1361
|
+
:type display_type: typing.Literal['DEFAULT','LIST_VERTICAL','LIST_HORIZONTAL','THUMBNAIL'] | None
|
|
1342
1362
|
:param sort_method: File sorting mode
|
|
1343
1363
|
:type sort_method: str | None
|
|
1344
1364
|
"""
|
|
@@ -1369,7 +1389,7 @@ def tile_add(
|
|
|
1369
1389
|
label: str = "",
|
|
1370
1390
|
fill: bool | None = True,
|
|
1371
1391
|
color: collections.abc.Iterable[float] | None = (0.0, 0.0, 0.0, 1.0),
|
|
1372
|
-
generated_type:
|
|
1392
|
+
generated_type: typing.Literal["BLANK", "UV_GRID", "COLOR_GRID"] | None = "BLANK",
|
|
1373
1393
|
width: int | None = 1024,
|
|
1374
1394
|
height: int | None = 1024,
|
|
1375
1395
|
float: bool | None = False,
|
|
@@ -1391,7 +1411,7 @@ def tile_add(
|
|
|
1391
1411
|
:param color: Color, Default fill color
|
|
1392
1412
|
:type color: collections.abc.Iterable[float] | None
|
|
1393
1413
|
:param generated_type: Generated Type, Fill the image with a grid for UV map testing
|
|
1394
|
-
:type generated_type:
|
|
1414
|
+
:type generated_type: typing.Literal['BLANK', 'UV_GRID', 'COLOR_GRID'] | None
|
|
1395
1415
|
:param width: Width, Image width
|
|
1396
1416
|
:type width: int | None
|
|
1397
1417
|
:param height: Height, Image height
|
|
@@ -1410,7 +1430,7 @@ def tile_fill(
|
|
|
1410
1430
|
undo: bool | None = None,
|
|
1411
1431
|
*,
|
|
1412
1432
|
color: collections.abc.Iterable[float] | None = (0.0, 0.0, 0.0, 1.0),
|
|
1413
|
-
generated_type:
|
|
1433
|
+
generated_type: typing.Literal["BLANK", "UV_GRID", "COLOR_GRID"] | None = "BLANK",
|
|
1414
1434
|
width: int | None = 1024,
|
|
1415
1435
|
height: int | None = 1024,
|
|
1416
1436
|
float: bool | None = False,
|
|
@@ -1424,7 +1444,7 @@ def tile_fill(
|
|
|
1424
1444
|
:param color: Color, Default fill color
|
|
1425
1445
|
:type color: collections.abc.Iterable[float] | None
|
|
1426
1446
|
:param generated_type: Generated Type, Fill the image with a grid for UV map testing
|
|
1427
|
-
:type generated_type:
|
|
1447
|
+
:type generated_type: typing.Literal['BLANK', 'UV_GRID', 'COLOR_GRID'] | None
|
|
1428
1448
|
:param width: Width, Image width
|
|
1429
1449
|
:type width: int | None
|
|
1430
1450
|
:param height: Height, Image height
|
|
@@ -1456,7 +1476,10 @@ def unpack(
|
|
|
1456
1476
|
execution_context: int | str | None = None,
|
|
1457
1477
|
undo: bool | None = None,
|
|
1458
1478
|
*,
|
|
1459
|
-
method:
|
|
1479
|
+
method: typing.Literal[
|
|
1480
|
+
"REMOVE", "USE_LOCAL", "WRITE_LOCAL", "USE_ORIGINAL", "WRITE_ORIGINAL"
|
|
1481
|
+
]
|
|
1482
|
+
| None = "USE_LOCAL",
|
|
1460
1483
|
id: str = "",
|
|
1461
1484
|
):
|
|
1462
1485
|
"""Save an image packed in the .blend file to disk
|
|
@@ -1465,7 +1488,7 @@ def unpack(
|
|
|
1465
1488
|
:type execution_context: int | str | None
|
|
1466
1489
|
:type undo: bool | None
|
|
1467
1490
|
:param method: Method, How to unpack
|
|
1468
|
-
:type method:
|
|
1491
|
+
:type method: typing.Literal['REMOVE', 'USE_LOCAL', 'WRITE_LOCAL', 'USE_ORIGINAL', 'WRITE_ORIGINAL'] | None
|
|
1469
1492
|
:param id: Image Name, Image data-block name to unpack
|
|
1470
1493
|
:type id: str
|
|
1471
1494
|
"""
|
bpy/ops/import_anim/__init__.pyi
CHANGED
|
@@ -13,16 +13,19 @@ def bvh(
|
|
|
13
13
|
*,
|
|
14
14
|
filepath: str = "",
|
|
15
15
|
filter_glob: str = "*.bvh",
|
|
16
|
-
target:
|
|
16
|
+
target: typing.Literal["ARMATURE", "OBJECT"] | None = "ARMATURE",
|
|
17
17
|
global_scale: float | None = 1.0,
|
|
18
18
|
frame_start: int | None = 1,
|
|
19
19
|
use_fps_scale: bool | None = False,
|
|
20
20
|
update_scene_fps: bool | None = False,
|
|
21
21
|
update_scene_duration: bool | None = False,
|
|
22
22
|
use_cyclic: bool | None = False,
|
|
23
|
-
rotate_mode:
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
rotate_mode: typing.Literal[
|
|
24
|
+
"QUATERNION", "NATIVE", "XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX"
|
|
25
|
+
]
|
|
26
|
+
| None = "NATIVE",
|
|
27
|
+
axis_forward: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "-Z",
|
|
28
|
+
axis_up: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "Y",
|
|
26
29
|
):
|
|
27
30
|
"""Load a BVH motion capture file
|
|
28
31
|
|
|
@@ -34,7 +37,7 @@ def bvh(
|
|
|
34
37
|
:param filter_glob: filter_glob
|
|
35
38
|
:type filter_glob: str
|
|
36
39
|
:param target: Target, Import target type
|
|
37
|
-
:type target:
|
|
40
|
+
:type target: typing.Literal['ARMATURE','OBJECT'] | None
|
|
38
41
|
:param global_scale: Scale, Scale the BVH by this value
|
|
39
42
|
:type global_scale: float | None
|
|
40
43
|
:param frame_start: Start Frame, Starting frame for the animation
|
|
@@ -72,11 +75,11 @@ def bvh(
|
|
|
72
75
|
|
|
73
76
|
ZYX
|
|
74
77
|
Euler (ZYX) -- Convert rotations to euler ZYX.
|
|
75
|
-
:type rotate_mode:
|
|
78
|
+
:type rotate_mode: typing.Literal['QUATERNION','NATIVE','XYZ','XZY','YXZ','YZX','ZXY','ZYX'] | None
|
|
76
79
|
:param axis_forward: Forward
|
|
77
|
-
:type axis_forward:
|
|
80
|
+
:type axis_forward: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
78
81
|
:param axis_up: Up
|
|
79
|
-
:type axis_up:
|
|
82
|
+
:type axis_up: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
80
83
|
"""
|
|
81
84
|
|
|
82
85
|
...
|
|
@@ -16,12 +16,12 @@ def fbx(
|
|
|
16
16
|
filter_glob: str = "*.fbx",
|
|
17
17
|
files: bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
18
18
|
| None = None,
|
|
19
|
-
ui_tab:
|
|
19
|
+
ui_tab: typing.Literal["MAIN", "ARMATURE"] | None = "MAIN",
|
|
20
20
|
use_manual_orientation: bool | None = False,
|
|
21
21
|
global_scale: float | None = 1.0,
|
|
22
22
|
bake_space_transform: bool | None = False,
|
|
23
23
|
use_custom_normals: bool | None = True,
|
|
24
|
-
colors_type:
|
|
24
|
+
colors_type: typing.Literal["NONE", "SRGB", "LINEAR"] | None = "SRGB",
|
|
25
25
|
use_image_search: bool | None = True,
|
|
26
26
|
use_alpha_decals: bool | None = False,
|
|
27
27
|
decal_offset: float | None = 0.0,
|
|
@@ -33,11 +33,11 @@ def fbx(
|
|
|
33
33
|
ignore_leaf_bones: bool | None = False,
|
|
34
34
|
force_connect_children: bool | None = False,
|
|
35
35
|
automatic_bone_orientation: bool | None = False,
|
|
36
|
-
primary_bone_axis:
|
|
37
|
-
secondary_bone_axis:
|
|
36
|
+
primary_bone_axis: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "Y",
|
|
37
|
+
secondary_bone_axis: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "X",
|
|
38
38
|
use_prepost_rot: bool | None = True,
|
|
39
|
-
axis_forward:
|
|
40
|
-
axis_up:
|
|
39
|
+
axis_forward: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "-Z",
|
|
40
|
+
axis_up: typing.Literal["X", "Y", "Z", "-X", "-Y", "-Z"] | None = "Y",
|
|
41
41
|
):
|
|
42
42
|
"""Load a FBX file
|
|
43
43
|
|
|
@@ -59,7 +59,7 @@ def fbx(
|
|
|
59
59
|
|
|
60
60
|
ARMATURE
|
|
61
61
|
Armatures -- Armature-related settings.
|
|
62
|
-
:type ui_tab:
|
|
62
|
+
:type ui_tab: typing.Literal['MAIN','ARMATURE'] | None
|
|
63
63
|
:param use_manual_orientation: Manual Orientation, Specify orientation and scale, instead of using embedded data in FBX file
|
|
64
64
|
:type use_manual_orientation: bool | None
|
|
65
65
|
:param global_scale: Scale
|
|
@@ -78,7 +78,7 @@ def fbx(
|
|
|
78
78
|
|
|
79
79
|
LINEAR
|
|
80
80
|
Linear -- Expect file colors in linear color space.
|
|
81
|
-
:type colors_type:
|
|
81
|
+
:type colors_type: typing.Literal['NONE','SRGB','LINEAR'] | None
|
|
82
82
|
:param use_image_search: Image Search, Search subdirs for any associated images (WARNING: may be slow)
|
|
83
83
|
:type use_image_search: bool | None
|
|
84
84
|
:param use_alpha_decals: Alpha Decals, Treat materials with alpha as decals (no shadow casting)
|
|
@@ -102,15 +102,15 @@ def fbx(
|
|
|
102
102
|
:param automatic_bone_orientation: Automatic Bone Orientation, Try to align the major bone axis with the bone children
|
|
103
103
|
:type automatic_bone_orientation: bool | None
|
|
104
104
|
:param primary_bone_axis: Primary Bone Axis
|
|
105
|
-
:type primary_bone_axis:
|
|
105
|
+
:type primary_bone_axis: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
106
106
|
:param secondary_bone_axis: Secondary Bone Axis
|
|
107
|
-
:type secondary_bone_axis:
|
|
107
|
+
:type secondary_bone_axis: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
108
108
|
:param use_prepost_rot: Use Pre/Post Rotation, Use pre/post rotation from FBX transform (you may have to disable that in some cases)
|
|
109
109
|
:type use_prepost_rot: bool | None
|
|
110
110
|
:param axis_forward: Forward
|
|
111
|
-
:type axis_forward:
|
|
111
|
+
:type axis_forward: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
112
112
|
:param axis_up: Up
|
|
113
|
-
:type axis_up:
|
|
113
|
+
:type axis_up: typing.Literal['X','Y','Z','-X','-Y','-Z'] | None
|
|
114
114
|
"""
|
|
115
115
|
|
|
116
116
|
...
|
|
@@ -121,15 +121,17 @@ def gltf(
|
|
|
121
121
|
undo: bool | None = None,
|
|
122
122
|
*,
|
|
123
123
|
filepath: str = "",
|
|
124
|
-
export_import_convert_lighting_mode:
|
|
124
|
+
export_import_convert_lighting_mode: typing.Literal["SPEC", "COMPAT", "RAW"]
|
|
125
|
+
| None = "SPEC",
|
|
125
126
|
filter_glob: str = "*.glb;*.gltf",
|
|
126
127
|
files: bpy.types.bpy_prop_collection[bpy.types.OperatorFileListElement]
|
|
127
128
|
| None = None,
|
|
128
129
|
loglevel: int | None = 0,
|
|
129
130
|
import_pack_images: bool | None = True,
|
|
130
131
|
merge_vertices: bool | None = False,
|
|
131
|
-
import_shading:
|
|
132
|
-
bone_heuristic:
|
|
132
|
+
import_shading: typing.Literal["NORMALS", "FLAT", "SMOOTH"] | None = "NORMALS",
|
|
133
|
+
bone_heuristic: typing.Literal["BLENDER", "TEMPERANCE", "FORTUNE"]
|
|
134
|
+
| None = "BLENDER",
|
|
133
135
|
disable_bone_shape: bool | None = False,
|
|
134
136
|
bone_shape_scale_factor: float | None = 1.0,
|
|
135
137
|
guess_original_bind_pose: bool | None = True,
|
|
@@ -152,7 +154,7 @@ def gltf(
|
|
|
152
154
|
|
|
153
155
|
RAW
|
|
154
156
|
Raw (Deprecated) -- Blender lighting strengths with no conversion.
|
|
155
|
-
:type export_import_convert_lighting_mode:
|
|
157
|
+
:type export_import_convert_lighting_mode: typing.Literal['SPEC','COMPAT','RAW'] | None
|
|
156
158
|
:param filter_glob: filter_glob
|
|
157
159
|
:type filter_glob: str
|
|
158
160
|
:param files: File Path
|
|
@@ -164,7 +166,7 @@ def gltf(
|
|
|
164
166
|
:param merge_vertices: Merge Vertices, The glTF format requires discontinuous normals, UVs, and other vertex attributes to be stored as separate vertices, as required for rendering on typical graphics hardware. This option attempts to combine co-located vertices where possible. Currently cannot combine verts with different normals
|
|
165
167
|
:type merge_vertices: bool | None
|
|
166
168
|
:param import_shading: Shading, How normals are computed during import
|
|
167
|
-
:type import_shading:
|
|
169
|
+
:type import_shading: typing.Literal['NORMALS','FLAT','SMOOTH'] | None
|
|
168
170
|
:param bone_heuristic: Bone Dir, Heuristic for placing bones. Tries to make bones pretty
|
|
169
171
|
|
|
170
172
|
BLENDER
|
|
@@ -175,7 +177,7 @@ def gltf(
|
|
|
175
177
|
|
|
176
178
|
FORTUNE
|
|
177
179
|
Fortune (may look better, less accurate) -- Might look better than Temperance, but also might have errors. A bone with one child has its tip placed at its child's root. Non-uniform scalings may get messed up though, so beware.
|
|
178
|
-
:type bone_heuristic:
|
|
180
|
+
:type bone_heuristic: typing.Literal['BLENDER','TEMPERANCE','FORTUNE'] | None
|
|
179
181
|
:param disable_bone_shape: Disable Bone Shape, Do not create bone shapes
|
|
180
182
|
:type disable_bone_shape: bool | None
|
|
181
183
|
:param bone_shape_scale_factor: Bone Shape Scale, Scale factor for bone shapes
|
bpy/ops/info/__init__.pyi
CHANGED
|
@@ -67,7 +67,7 @@ def select_all(
|
|
|
67
67
|
execution_context: int | str | None = None,
|
|
68
68
|
undo: bool | None = None,
|
|
69
69
|
*,
|
|
70
|
-
action:
|
|
70
|
+
action: typing.Literal["TOGGLE", "SELECT", "DESELECT", "INVERT"] | None = "SELECT",
|
|
71
71
|
):
|
|
72
72
|
"""Change selection of all visible reports
|
|
73
73
|
|
|
@@ -87,7 +87,7 @@ def select_all(
|
|
|
87
87
|
|
|
88
88
|
INVERT
|
|
89
89
|
Invert -- Invert selection of all elements.
|
|
90
|
-
:type action:
|
|
90
|
+
:type action: typing.Literal['TOGGLE','SELECT','DESELECT','INVERT'] | None
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
...
|
|
@@ -102,7 +102,7 @@ def select_box(
|
|
|
102
102
|
ymin: int | None = 0,
|
|
103
103
|
ymax: int | None = 0,
|
|
104
104
|
wait_for_input: bool | None = True,
|
|
105
|
-
mode:
|
|
105
|
+
mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
|
|
106
106
|
):
|
|
107
107
|
"""Toggle box selection
|
|
108
108
|
|
|
@@ -129,7 +129,7 @@ def select_box(
|
|
|
129
129
|
|
|
130
130
|
SUB
|
|
131
131
|
Subtract -- Subtract existing selection.
|
|
132
|
-
:type mode:
|
|
132
|
+
:type mode: typing.Literal['SET','ADD','SUB'] | None
|
|
133
133
|
"""
|
|
134
134
|
|
|
135
135
|
...
|