fake-bpy-module 20240210__py3-none-any.whl → 20240326__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.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
bpy/ops/workspace/__init__.pyi
CHANGED
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import bpy.types
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
6
|
def add(
|
|
8
|
-
override_context: typing.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
12
|
-
undo: typing.Optional[bool] = None,
|
|
7
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
+
execution_context: typing.Union[str, int] = None,
|
|
9
|
+
undo: bool = None,
|
|
13
10
|
):
|
|
14
11
|
"""Add a new workspace by duplicating the current one or appending one from the user configuration
|
|
15
12
|
|
|
16
|
-
:type override_context: typing.
|
|
17
|
-
:type execution_context: typing.
|
|
18
|
-
:type undo:
|
|
13
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
14
|
+
:type execution_context: typing.Union[str, int]
|
|
15
|
+
:type undo: bool
|
|
19
16
|
"""
|
|
20
17
|
|
|
21
18
|
...
|
|
22
19
|
|
|
23
20
|
def append_activate(
|
|
24
|
-
override_context: typing.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
28
|
-
undo: typing.Optional[bool] = None,
|
|
29
|
-
*,
|
|
21
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
22
|
+
execution_context: typing.Union[str, int] = None,
|
|
23
|
+
undo: bool = None,
|
|
30
24
|
idname: typing.Union[str, typing.Any] = "",
|
|
31
25
|
filepath: typing.Union[str, typing.Any] = "",
|
|
32
26
|
):
|
|
33
27
|
"""Append a workspace and make it the active one in the current window
|
|
34
28
|
|
|
35
|
-
:type override_context: typing.
|
|
36
|
-
:type execution_context: typing.
|
|
37
|
-
:type undo:
|
|
29
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
30
|
+
:type execution_context: typing.Union[str, int]
|
|
31
|
+
:type undo: bool
|
|
38
32
|
:param idname: Identifier, Name of the workspace to append and activate
|
|
39
33
|
:type idname: typing.Union[str, typing.Any]
|
|
40
34
|
:param filepath: Filepath, Path to the library
|
|
@@ -44,81 +38,71 @@ def append_activate(
|
|
|
44
38
|
...
|
|
45
39
|
|
|
46
40
|
def delete(
|
|
47
|
-
override_context: typing.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
51
|
-
undo: typing.Optional[bool] = None,
|
|
41
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
42
|
+
execution_context: typing.Union[str, int] = None,
|
|
43
|
+
undo: bool = None,
|
|
52
44
|
):
|
|
53
45
|
"""Delete the active workspace
|
|
54
46
|
|
|
55
|
-
:type override_context: typing.
|
|
56
|
-
:type execution_context: typing.
|
|
57
|
-
:type undo:
|
|
47
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
48
|
+
:type execution_context: typing.Union[str, int]
|
|
49
|
+
:type undo: bool
|
|
58
50
|
"""
|
|
59
51
|
|
|
60
52
|
...
|
|
61
53
|
|
|
62
54
|
def duplicate(
|
|
63
|
-
override_context: typing.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
67
|
-
undo: typing.Optional[bool] = None,
|
|
55
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
56
|
+
execution_context: typing.Union[str, int] = None,
|
|
57
|
+
undo: bool = None,
|
|
68
58
|
):
|
|
69
59
|
"""Add a new workspace
|
|
70
60
|
|
|
71
|
-
:type override_context: typing.
|
|
72
|
-
:type execution_context: typing.
|
|
73
|
-
:type undo:
|
|
61
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
62
|
+
:type execution_context: typing.Union[str, int]
|
|
63
|
+
:type undo: bool
|
|
74
64
|
"""
|
|
75
65
|
|
|
76
66
|
...
|
|
77
67
|
|
|
78
68
|
def reorder_to_back(
|
|
79
|
-
override_context: typing.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
83
|
-
undo: typing.Optional[bool] = None,
|
|
69
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
70
|
+
execution_context: typing.Union[str, int] = None,
|
|
71
|
+
undo: bool = None,
|
|
84
72
|
):
|
|
85
73
|
"""Reorder workspace to be last in the list
|
|
86
74
|
|
|
87
|
-
:type override_context: typing.
|
|
88
|
-
:type execution_context: typing.
|
|
89
|
-
:type undo:
|
|
75
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
76
|
+
:type execution_context: typing.Union[str, int]
|
|
77
|
+
:type undo: bool
|
|
90
78
|
"""
|
|
91
79
|
|
|
92
80
|
...
|
|
93
81
|
|
|
94
82
|
def reorder_to_front(
|
|
95
|
-
override_context: typing.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
99
|
-
undo: typing.Optional[bool] = None,
|
|
83
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
84
|
+
execution_context: typing.Union[str, int] = None,
|
|
85
|
+
undo: bool = None,
|
|
100
86
|
):
|
|
101
87
|
"""Reorder workspace to be first in the list
|
|
102
88
|
|
|
103
|
-
:type override_context: typing.
|
|
104
|
-
:type execution_context: typing.
|
|
105
|
-
:type undo:
|
|
89
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
90
|
+
:type execution_context: typing.Union[str, int]
|
|
91
|
+
:type undo: bool
|
|
106
92
|
"""
|
|
107
93
|
|
|
108
94
|
...
|
|
109
95
|
|
|
110
96
|
def scene_pin_toggle(
|
|
111
|
-
override_context: typing.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
115
|
-
undo: typing.Optional[bool] = None,
|
|
97
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
98
|
+
execution_context: typing.Union[str, int] = None,
|
|
99
|
+
undo: bool = None,
|
|
116
100
|
):
|
|
117
101
|
"""Remember the last used scene for the current workspace and switch to it whenever this workspace is activated again
|
|
118
102
|
|
|
119
|
-
:type override_context: typing.
|
|
120
|
-
:type execution_context: typing.
|
|
121
|
-
:type undo:
|
|
103
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
104
|
+
:type execution_context: typing.Union[str, int]
|
|
105
|
+
:type undo: bool
|
|
122
106
|
"""
|
|
123
107
|
|
|
124
108
|
...
|
bpy/ops/world/__init__.pyi
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import bpy.types
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
6
|
def new(
|
|
8
|
-
override_context: typing.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
12
|
-
undo: typing.Optional[bool] = None,
|
|
7
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
+
execution_context: typing.Union[str, int] = None,
|
|
9
|
+
undo: bool = None,
|
|
13
10
|
):
|
|
14
11
|
"""Create a new world Data-Block
|
|
15
12
|
|
|
16
|
-
:type override_context: typing.
|
|
17
|
-
:type execution_context: typing.
|
|
18
|
-
:type undo:
|
|
13
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
14
|
+
:type execution_context: typing.Union[str, int]
|
|
15
|
+
:type undo: bool
|
|
19
16
|
"""
|
|
20
17
|
|
|
21
18
|
...
|
bpy/path/__init__.pyi
CHANGED
|
@@ -1,192 +1,249 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import bpy.types
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
6
|
def abspath(
|
|
8
|
-
path,
|
|
9
|
-
*,
|
|
10
|
-
start: typing.Optional[typing.Union[str, bytes]] = None,
|
|
11
|
-
library: typing.Optional["bpy.types.Library"] = None,
|
|
7
|
+
path, start: typing.Union[str, bytes] = None, library: bpy.types.Library = None
|
|
12
8
|
) -> str:
|
|
13
|
-
"""Returns the absolute path relative to the current blend file
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
"""Returns the absolute path relative to the current blend file
|
|
10
|
+
using the "//" prefix.
|
|
11
|
+
|
|
12
|
+
:param start: Relative to this path,
|
|
13
|
+
when not set the current filename is used.
|
|
14
|
+
:type start: typing.Union[str, bytes]
|
|
15
|
+
:param library: The library this path is from. This is only included for
|
|
16
|
+
convenience, when the library is not None its path replaces start.
|
|
17
|
+
:type library: bpy.types.Library
|
|
18
|
+
:return: The absolute path.
|
|
19
|
+
:rtype: str
|
|
21
20
|
"""
|
|
22
21
|
|
|
23
22
|
...
|
|
24
23
|
|
|
24
|
+
def abspath(path, start, library):
|
|
25
|
+
""" """
|
|
26
|
+
|
|
27
|
+
...
|
|
28
|
+
|
|
25
29
|
def basename(path) -> str:
|
|
26
|
-
"""Equivalent to
|
|
30
|
+
"""Equivalent to os.path.basename, but skips a "//" prefix.Use for Windows compatibility.
|
|
27
31
|
|
|
28
|
-
:rtype: str
|
|
29
32
|
:return: The base name of the given path.
|
|
33
|
+
:rtype: str
|
|
30
34
|
"""
|
|
31
35
|
|
|
32
36
|
...
|
|
33
37
|
|
|
34
|
-
def
|
|
35
|
-
|
|
36
|
-
*,
|
|
37
|
-
replace: typing.Optional[str] = "_",
|
|
38
|
-
) -> str:
|
|
39
|
-
"""Returns a name with characters replaced that may cause problems under various circumstances, such as writing to a file. All characters besides A-Z/a-z, 0-9 are replaced with "_" or the *replace* argument if defined.
|
|
38
|
+
def basename(path):
|
|
39
|
+
""" """
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
...
|
|
42
|
+
|
|
43
|
+
def clean_name(name: typing.Union[str, bytes], replace: str = "_") -> str:
|
|
44
|
+
"""Returns a name with characters replaced that
|
|
45
|
+
may cause problems under various circumstances,
|
|
46
|
+
such as writing to a file.All characters besides A-Z/a-z, 0-9 are replaced with "_"
|
|
47
|
+
or the replace argument if defined.
|
|
48
|
+
|
|
49
|
+
:param name: The path name.
|
|
50
|
+
:type name: typing.Union[str, bytes]
|
|
51
|
+
:param replace: The replacement for non-valid characters.
|
|
52
|
+
:type replace: str
|
|
53
|
+
:return: The cleaned name.
|
|
54
|
+
:rtype: str
|
|
47
55
|
"""
|
|
48
56
|
|
|
49
57
|
...
|
|
50
58
|
|
|
51
|
-
def
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
) -> str:
|
|
57
|
-
"""Creates a display string from name to be used menus and the user interface.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
def clean_name(name, replace):
|
|
60
|
+
""" """
|
|
61
|
+
|
|
62
|
+
...
|
|
63
|
+
|
|
64
|
+
def display_name(name: str, has_ext: bool = True, title_case: bool = True) -> str:
|
|
65
|
+
"""Creates a display string from name to be used menus and the user interface.
|
|
66
|
+
Intended for use with filenames and module names.
|
|
67
|
+
|
|
68
|
+
:param name: The name to be used for displaying the user interface.
|
|
69
|
+
:type name: str
|
|
70
|
+
:param has_ext: Remove file extension from name.
|
|
71
|
+
:type has_ext: bool
|
|
72
|
+
:param title_case: Convert lowercase names to title case.
|
|
73
|
+
:type title_case: bool
|
|
74
|
+
:return: The display string.
|
|
75
|
+
:rtype: str
|
|
67
76
|
"""
|
|
68
77
|
|
|
69
78
|
...
|
|
70
79
|
|
|
71
|
-
def
|
|
72
|
-
"""
|
|
80
|
+
def display_name(name, has_ext, title_case):
|
|
81
|
+
""" """
|
|
73
82
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
...
|
|
84
|
+
|
|
85
|
+
def display_name_from_filepath(name: str) -> str:
|
|
86
|
+
"""Returns the path stripped of directory and extension,
|
|
87
|
+
ensured to be utf8 compatible.
|
|
88
|
+
|
|
89
|
+
:param name: The file path to convert.
|
|
90
|
+
:type name: str
|
|
91
|
+
:return: The display name.
|
|
92
|
+
:rtype: str
|
|
78
93
|
"""
|
|
79
94
|
|
|
80
95
|
...
|
|
81
96
|
|
|
82
|
-
def
|
|
83
|
-
"""
|
|
97
|
+
def display_name_from_filepath(name):
|
|
98
|
+
""" """
|
|
84
99
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
...
|
|
101
|
+
|
|
102
|
+
def display_name_to_filepath(name: str) -> str:
|
|
103
|
+
"""Performs the reverse of display_name using literal versions of characters
|
|
104
|
+
which aren't supported in a filepath.
|
|
105
|
+
|
|
106
|
+
:param name: The display name to convert.
|
|
107
|
+
:type name: str
|
|
108
|
+
:return: The file path.
|
|
109
|
+
:rtype: str
|
|
89
110
|
"""
|
|
90
111
|
|
|
91
112
|
...
|
|
92
113
|
|
|
93
|
-
def
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
) -> str:
|
|
114
|
+
def display_name_to_filepath(name):
|
|
115
|
+
""" """
|
|
116
|
+
|
|
117
|
+
...
|
|
118
|
+
|
|
119
|
+
def ensure_ext(filepath: str, ext: str, case_sensitive: bool = False) -> str:
|
|
99
120
|
"""Return the path with the extension added if it is not already set.
|
|
100
121
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
122
|
+
:param filepath: The file path.
|
|
123
|
+
:type filepath: str
|
|
124
|
+
:param ext: The extension to check for, can be a compound extension. Should
|
|
125
|
+
start with a dot, such as '.blend' or '.tar.gz'.
|
|
126
|
+
:type ext: str
|
|
127
|
+
:param case_sensitive: Check for matching case when comparing extensions.
|
|
128
|
+
:type case_sensitive: bool
|
|
129
|
+
:return: The file path with the given extension.
|
|
130
|
+
:rtype: str
|
|
109
131
|
"""
|
|
110
132
|
|
|
111
133
|
...
|
|
112
134
|
|
|
113
|
-
def
|
|
114
|
-
"""
|
|
135
|
+
def ensure_ext(filepath, ext, case_sensitive):
|
|
136
|
+
""" """
|
|
115
137
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
138
|
+
...
|
|
139
|
+
|
|
140
|
+
def is_subdir(path: typing.Union[str, bytes], directory) -> bool:
|
|
141
|
+
"""Returns true if path in a subdirectory of directory.
|
|
142
|
+
Both paths must be absolute.
|
|
143
|
+
|
|
144
|
+
:param path: An absolute path.
|
|
145
|
+
:type path: typing.Union[str, bytes]
|
|
146
|
+
:return: Whether or not the path is a subdirectory.
|
|
147
|
+
:rtype: bool
|
|
120
148
|
"""
|
|
121
149
|
|
|
122
150
|
...
|
|
123
151
|
|
|
152
|
+
def is_subdir(path, directory):
|
|
153
|
+
""" """
|
|
154
|
+
|
|
155
|
+
...
|
|
156
|
+
|
|
124
157
|
def module_names(
|
|
125
|
-
path:
|
|
126
|
-
*,
|
|
127
|
-
recursive: typing.Optional[bool] = False,
|
|
128
|
-
package: typing.Optional[str] = "",
|
|
158
|
+
path: str, recursive: bool = False, package: str = ""
|
|
129
159
|
) -> typing.List[str]:
|
|
130
|
-
"""Return a list of modules which can be imported from
|
|
160
|
+
"""Return a list of modules which can be imported from path.
|
|
131
161
|
|
|
132
162
|
:param path: a directory to scan.
|
|
133
|
-
:type path:
|
|
163
|
+
:type path: str
|
|
134
164
|
:param recursive: Also return submodule names for packages.
|
|
135
|
-
:type recursive:
|
|
165
|
+
:type recursive: bool
|
|
136
166
|
:param package: Optional string, used as the prefix for module names (without the trailing ".").
|
|
137
|
-
:type package:
|
|
138
|
-
:rtype: typing.List[str]
|
|
167
|
+
:type package: str
|
|
139
168
|
:return: a list of string pairs (module_name, module_file).
|
|
169
|
+
:rtype: typing.List[str]
|
|
140
170
|
"""
|
|
141
171
|
|
|
142
172
|
...
|
|
143
173
|
|
|
144
|
-
def
|
|
145
|
-
"""
|
|
174
|
+
def module_names(path, recursive, package):
|
|
175
|
+
""" """
|
|
176
|
+
|
|
177
|
+
...
|
|
178
|
+
|
|
179
|
+
def native_pathsep(path: str) -> str:
|
|
180
|
+
"""Replace the path separator with the systems native os.sep.
|
|
146
181
|
|
|
147
182
|
:param path: The path to replace.
|
|
148
|
-
:type path:
|
|
149
|
-
:rtype: str
|
|
183
|
+
:type path: str
|
|
150
184
|
:return: The path with system native separators.
|
|
185
|
+
:rtype: str
|
|
151
186
|
"""
|
|
152
187
|
|
|
153
188
|
...
|
|
154
189
|
|
|
155
|
-
def
|
|
156
|
-
"""
|
|
190
|
+
def native_pathsep(path):
|
|
191
|
+
""" """
|
|
157
192
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
193
|
+
...
|
|
194
|
+
|
|
195
|
+
def reduce_dirs(dirs: typing.List[str]) -> typing.List[str]:
|
|
196
|
+
"""Given a sequence of directories, remove duplicates and
|
|
197
|
+
any directories nested in one of the other paths.
|
|
198
|
+
(Useful for recursive path searching).
|
|
199
|
+
|
|
200
|
+
:param dirs: Sequence of directory paths.
|
|
201
|
+
:type dirs: typing.List[str]
|
|
202
|
+
:return: A unique list of paths.
|
|
203
|
+
:rtype: typing.List[str]
|
|
162
204
|
"""
|
|
163
205
|
|
|
164
206
|
...
|
|
165
207
|
|
|
208
|
+
def reduce_dirs(dirs):
|
|
209
|
+
""" """
|
|
210
|
+
|
|
211
|
+
...
|
|
212
|
+
|
|
166
213
|
def relpath(
|
|
167
|
-
path: typing.
|
|
168
|
-
*,
|
|
169
|
-
start: typing.Optional[typing.Union[str, bytes]] = None,
|
|
214
|
+
path: typing.Union[str, bytes], start: typing.Union[str, bytes] = None
|
|
170
215
|
) -> str:
|
|
171
216
|
"""Returns the path relative to the current blend file using the "//" prefix.
|
|
172
217
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
218
|
+
:param path: An absolute path.
|
|
219
|
+
:type path: typing.Union[str, bytes]
|
|
220
|
+
:param start: Relative to this path,
|
|
221
|
+
when not set the current filename is used.
|
|
222
|
+
:type start: typing.Union[str, bytes]
|
|
223
|
+
:return: The relative path.
|
|
224
|
+
:rtype: str
|
|
179
225
|
"""
|
|
180
226
|
|
|
181
227
|
...
|
|
182
228
|
|
|
183
|
-
def
|
|
184
|
-
"""
|
|
229
|
+
def relpath(path, start):
|
|
230
|
+
""" """
|
|
185
231
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
232
|
+
...
|
|
233
|
+
|
|
234
|
+
def resolve_ncase(path: str) -> str:
|
|
235
|
+
"""Resolve a case insensitive path on a case sensitive system,
|
|
236
|
+
returning a string with the path if found else return the original path.
|
|
237
|
+
|
|
238
|
+
:param path: The path name to resolve.
|
|
239
|
+
:type path: str
|
|
240
|
+
:return: The resolved path.
|
|
241
|
+
:rtype: str
|
|
190
242
|
"""
|
|
191
243
|
|
|
192
244
|
...
|
|
245
|
+
|
|
246
|
+
def resolve_ncase(path):
|
|
247
|
+
""" """
|
|
248
|
+
|
|
249
|
+
...
|