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