fake-bpy-module 20240516__py3-none-any.whl → 20240518__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/freedesktop/__init__.pyi +17 -84
- addon_utils/__init__.pyi +44 -38
- animsys_refactor/__init__.pyi +7 -27
- aud/__init__.pyi +8 -11
- bgl/__init__.pyi +121 -1812
- bl_app_override/__init__.pyi +8 -19
- bl_app_override/helpers/__init__.pyi +5 -23
- bl_app_template_utils/__init__.pyi +5 -17
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +16 -67
- bl_i18n_utils/merge_po/__init__.pyi +1 -4
- bl_i18n_utils/settings/__init__.pyi +6 -24
- bl_i18n_utils/utils/__init__.pyi +93 -122
- bl_i18n_utils/utils_cli/__init__.pyi +6 -29
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -4
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +9 -40
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -4
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -6
- bl_keymap_utils/versioning/__init__.pyi +1 -4
- bl_operators/__init__.pyi +2 -9
- bl_operators/add_mesh_torus/__init__.pyi +128 -59
- bl_operators/anim/__init__.pyi +1001 -398
- bl_operators/assets/__init__.pyi +376 -152
- bl_operators/bmesh/find_adjacent/__init__.pyi +10 -37
- bl_operators/clip/__init__.pyi +1264 -532
- bl_operators/console/__init__.pyi +626 -242
- bl_operators/constraint/__init__.pyi +502 -201
- bl_operators/file/__init__.pyi +376 -150
- bl_operators/freestyle/__init__.pyi +501 -200
- bl_operators/geometry_nodes/__init__.pyi +514 -266
- bl_operators/image/__init__.pyi +621 -251
- bl_operators/mesh/__init__.pyi +376 -150
- bl_operators/node/__init__.pyi +1253 -516
- bl_operators/object/__init__.pyi +1879 -755
- bl_operators/object_align/__init__.pyi +129 -64
- bl_operators/object_quick_effects/__init__.pyi +504 -213
- bl_operators/object_randomize_transform/__init__.pyi +129 -54
- bl_operators/presets/__init__.pyi +3072 -1403
- bl_operators/rigidbody/__init__.pyi +376 -150
- bl_operators/screen_play_rendered_anim/__init__.pyi +127 -54
- bl_operators/sequencer/__init__.pyi +1010 -434
- bl_operators/spreadsheet/__init__.pyi +126 -50
- bl_operators/userpref/__init__.pyi +3253 -1267
- bl_operators/uvcalc_follow_active/__init__.pyi +128 -59
- bl_operators/uvcalc_lightmap/__init__.pyi +139 -80
- bl_operators/uvcalc_transform/__init__.pyi +297 -159
- bl_operators/vertexpaint_dirt/__init__.pyi +128 -59
- bl_operators/view3d/__init__.pyi +868 -342
- bl_operators/wm/__init__.pyi +5795 -2388
- bl_operators/world/__init__.pyi +126 -50
- bl_previews_utils/bl_previews_render/__init__.pyi +7 -34
- bl_rna_utils/data_path/__init__.pyi +8 -4
- bl_text_utils/external_editor/__init__.pyi +1 -4
- bl_ui/__init__.pyi +366 -269
- bl_ui/anim/__init__.pyi +164 -74
- bl_ui/asset_shelf/__init__.pyi +129 -56
- bl_ui/generic_ui_list/__init__.pyi +412 -163
- bl_ui/node_add_menu/__init__.pyi +171 -94
- bl_ui/node_add_menu_compositor/__init__.pyi +2918 -1353
- bl_ui/node_add_menu_geometry/__init__.pyi +7789 -3616
- bl_ui/node_add_menu_shader/__init__.pyi +1630 -790
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -675
- bl_ui/properties_animviz/__init__.pyi +2 -16
- bl_ui/properties_collection/__init__.pyi +807 -379
- bl_ui/properties_constraint/__init__.pyi +10292 -4941
- bl_ui/properties_data_armature/__init__.pyi +1615 -753
- bl_ui/properties_data_bone/__init__.pyi +1284 -608
- bl_ui/properties_data_camera/__init__.pyi +1854 -927
- bl_ui/properties_data_curve/__init__.pyi +1927 -937
- bl_ui/properties_data_curves/__init__.pyi +806 -375
- bl_ui/properties_data_empty/__init__.pyi +257 -125
- bl_ui/properties_data_gpencil/__init__.pyi +2376 -1130
- bl_ui/properties_data_grease_pencil/__init__.pyi +1898 -894
- bl_ui/properties_data_lattice/__init__.pyi +388 -188
- bl_ui/properties_data_light/__init__.pyi +1540 -756
- bl_ui/properties_data_lightprobe/__init__.pyi +1666 -810
- bl_ui/properties_data_mesh/__init__.pyi +2707 -1235
- bl_ui/properties_data_metaball/__init__.pyi +644 -308
- bl_ui/properties_data_modifier/__init__.pyi +1353 -671
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -316
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -67
- bl_ui/properties_data_speaker/__init__.pyi +644 -316
- bl_ui/properties_data_volume/__init__.pyi +1028 -484
- bl_ui/properties_freestyle/__init__.pyi +3112 -1619
- bl_ui/properties_grease_pencil_common/__init__.pyi +2454 -1123
- bl_ui/properties_mask_common/__init__.pyi +1102 -523
- bl_ui/properties_material/__init__.pyi +2089 -1009
- bl_ui/properties_material_gpencil/__init__.pyi +1348 -635
- bl_ui/properties_object/__init__.pyi +1832 -873
- bl_ui/properties_output/__init__.pyi +2405 -1173
- bl_ui/properties_paint_common/__init__.pyi +416 -386
- bl_ui/properties_particle/__init__.pyi +6740 -3346
- bl_ui/properties_physics_cloth/__init__.pyi +1822 -907
- bl_ui/properties_physics_common/__init__.pyi +135 -98
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2817 -1391
- bl_ui/properties_physics_field/__init__.pyi +1282 -627
- bl_ui/properties_physics_fluid/__init__.pyi +3614 -1794
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -60
- bl_ui/properties_physics_rigidbody/__init__.pyi +1026 -515
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1665 -811
- bl_ui/properties_physics_softbody/__init__.pyi +1922 -967
- bl_ui/properties_render/__init__.pyi +6843 -3367
- bl_ui/properties_scene/__init__.pyi +1924 -913
- bl_ui/properties_texture/__init__.pyi +3371 -1667
- bl_ui/properties_view_layer/__init__.pyi +2344 -1107
- bl_ui/properties_workspace/__init__.pyi +516 -244
- bl_ui/properties_world/__init__.pyi +1284 -630
- bl_ui/space_clip/__init__.pyi +10172 -4695
- bl_ui/space_console/__init__.pyi +940 -423
- bl_ui/space_dopesheet/__init__.pyi +4325 -2013
- bl_ui/space_filebrowser/__init__.pyi +4172 -1903
- bl_ui/space_graph/__init__.pyi +3107 -1394
- bl_ui/space_image/__init__.pyi +9764 -4614
- bl_ui/space_info/__init__.pyi +939 -421
- bl_ui/space_nla/__init__.pyi +2623 -1183
- bl_ui/space_node/__init__.pyi +3995 -1840
- bl_ui/space_outliner/__init__.pyi +2203 -991
- bl_ui/space_properties/__init__.pyi +386 -165
- bl_ui/space_sequencer/__init__.pyi +10809 -4978
- bl_ui/space_spreadsheet/__init__.pyi +130 -53
- bl_ui/space_statusbar/__init__.pyi +129 -52
- bl_ui/space_text/__init__.pyi +2457 -1100
- bl_ui/space_time/__init__.pyi +1034 -481
- bl_ui/space_toolsystem_common/__init__.pyi +56 -211
- bl_ui/space_toolsystem_toolbar/__init__.pyi +153 -882
- bl_ui/space_topbar/__init__.pyi +3982 -1805
- bl_ui/space_userpref/__init__.pyi +11383 -5290
- bl_ui/space_view3d/__init__.pyi +40873 -18532
- bl_ui/space_view3d_toolbar/__init__.pyi +12570 -6502
- bl_ui/temp_anim_layers/__init__.pyi +130 -62
- bl_ui/utils/__init__.pyi +28 -27
- bl_ui_utils/bug_report_url/__init__.pyi +1 -4
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +3 -10
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +39 -56
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2683 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17058 -26311
- bpy/utils/__init__.pyi +247 -179
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -29
- bpy_extras/asset_utils/__init__.pyi +0 -10
- bpy_extras/bmesh_utils/__init__.pyi +9 -6
- bpy_extras/extensions/junction_module/__init__.pyi +6 -8
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +116 -41
- bpy_extras/keyconfig_utils/__init__.pyi +4 -11
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +52 -288
- bpy_extras/node_utils/__init__.pyi +10 -10
- bpy_extras/object_utils/__init__.pyi +71 -14
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +15 -38
- bpy_restrict_state/__init__.pyi +1 -14
- bpy_types/__init__.pyi +4203 -1605
- console_python/__init__.pyi +12 -37
- console_shell/__init__.pyi +5 -24
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/METADATA +1 -1
- fake_bpy_module-20240518.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +14 -44
- freestyle/functions/__init__.pyi +7 -33
- freestyle/predicates/__init__.pyi +44 -217
- freestyle/shaders/__init__.pyi +2 -12
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +6 -18
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -9
- idprop/types/__init__.pyi +8 -35
- imbuf/__init__.pyi +4 -4
- imbuf/types/__init__.pyi +0 -2
- keyingsets_builtins/__init__.pyi +2692 -997
- keyingsets_utils/__init__.pyi +14 -69
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -6
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_builtins/__init__.pyi +5 -30
- nodeitems_utils/__init__.pyi +8 -45
- rna_info/__init__.pyi +39 -215
- rna_keymap_ui/__init__.pyi +6 -29
- rna_prop_ui/__init__.pyi +24 -62
- rna_xml/__init__.pyi +16 -39
- sys_info/__init__.pyi +1 -4
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/top_level.txt +0 -0
|
@@ -5,8 +5,6 @@ import mathutils
|
|
|
5
5
|
GenericType = typing.TypeVar("GenericType")
|
|
6
6
|
|
|
7
7
|
class AddObjectHelper:
|
|
8
|
-
""" """
|
|
9
|
-
|
|
10
8
|
def align_update_callback(self, _context):
|
|
11
9
|
"""
|
|
12
10
|
|
|
@@ -36,8 +34,18 @@ def add_object_align_init(
|
|
|
36
34
|
|
|
37
35
|
...
|
|
38
36
|
|
|
39
|
-
def add_object_align_init(
|
|
40
|
-
|
|
37
|
+
def add_object_align_init(
|
|
38
|
+
context: bpy.types.Context, operator: bpy.types.Operator
|
|
39
|
+
) -> mathutils.Matrix:
|
|
40
|
+
"""Return a matrix using the operator settings and view context.
|
|
41
|
+
|
|
42
|
+
:param context: The context to use.
|
|
43
|
+
:type context: bpy.types.Context
|
|
44
|
+
:param operator: The operator, checked for location and rotation properties.
|
|
45
|
+
:type operator: bpy.types.Operator
|
|
46
|
+
:return: the matrix from the context and settings.
|
|
47
|
+
:rtype: mathutils.Matrix
|
|
48
|
+
"""
|
|
41
49
|
|
|
42
50
|
...
|
|
43
51
|
|
|
@@ -50,7 +58,10 @@ def object_add_grid_scale(context):
|
|
|
50
58
|
...
|
|
51
59
|
|
|
52
60
|
def object_add_grid_scale(context):
|
|
53
|
-
"""
|
|
61
|
+
"""Return scale which should be applied on object
|
|
62
|
+
data to align it to grid scale
|
|
63
|
+
|
|
64
|
+
"""
|
|
54
65
|
|
|
55
66
|
...
|
|
56
67
|
|
|
@@ -60,7 +71,7 @@ def object_add_grid_scale_apply_operator(operator, context):
|
|
|
60
71
|
...
|
|
61
72
|
|
|
62
73
|
def object_add_grid_scale_apply_operator(operator, context):
|
|
63
|
-
""" """
|
|
74
|
+
"""Scale an operators distance values by the grid size."""
|
|
64
75
|
|
|
65
76
|
...
|
|
66
77
|
|
|
@@ -86,8 +97,25 @@ def object_data_add(
|
|
|
86
97
|
|
|
87
98
|
...
|
|
88
99
|
|
|
89
|
-
def object_data_add(
|
|
90
|
-
|
|
100
|
+
def object_data_add(
|
|
101
|
+
context: bpy.types.Context,
|
|
102
|
+
obdata,
|
|
103
|
+
operator: bpy.types.Operator = None,
|
|
104
|
+
name: str = None,
|
|
105
|
+
) -> bpy.types.Object:
|
|
106
|
+
"""Add an object using the view context and preference to initialize the
|
|
107
|
+
location, rotation and layer.
|
|
108
|
+
|
|
109
|
+
:param context: The context to use.
|
|
110
|
+
:type context: bpy.types.Context
|
|
111
|
+
:param obdata: the data used for the new object.
|
|
112
|
+
:param operator: The operator, checked for location and rotation properties.
|
|
113
|
+
:type operator: bpy.types.Operator
|
|
114
|
+
:param name: Optional name
|
|
115
|
+
:type name: str
|
|
116
|
+
:return: the newly created object in the scene.
|
|
117
|
+
:rtype: bpy.types.Object
|
|
118
|
+
"""
|
|
91
119
|
|
|
92
120
|
...
|
|
93
121
|
|
|
@@ -105,15 +133,24 @@ def object_report_if_active_shape_key_is_locked(
|
|
|
105
133
|
|
|
106
134
|
...
|
|
107
135
|
|
|
108
|
-
def object_report_if_active_shape_key_is_locked(
|
|
109
|
-
|
|
136
|
+
def object_report_if_active_shape_key_is_locked(
|
|
137
|
+
obj: bpy.types.Object, operator: bpy.types.Operator
|
|
138
|
+
):
|
|
139
|
+
"""Checks if the active shape key of the specified object is locked, and reports an error if so.If the object has no shape keys, there is nothing to lock, and the function returns False.
|
|
140
|
+
|
|
141
|
+
:param obj: Object to check.
|
|
142
|
+
:type obj: bpy.types.Object
|
|
143
|
+
:param operator: Currently running operator to report the error through. Use None to suppress emitting the message.
|
|
144
|
+
:type operator: bpy.types.Operator
|
|
145
|
+
:return: True if the shape key was locked.
|
|
146
|
+
"""
|
|
110
147
|
|
|
111
148
|
...
|
|
112
149
|
|
|
113
150
|
def world_to_camera_view(
|
|
114
151
|
scene: bpy.types.Scene,
|
|
115
152
|
obj: bpy.types.Object,
|
|
116
|
-
coord: typing.
|
|
153
|
+
coord: typing.Sequence[float] | mathutils.Vector,
|
|
117
154
|
) -> mathutils.Vector:
|
|
118
155
|
"""Returns the camera space coords for a 3d point.
|
|
119
156
|
(also known as: normalized device coordinates - NDC).Where (0, 0) is the bottom left and (1, 1)
|
|
@@ -127,7 +164,7 @@ def world_to_camera_view(
|
|
|
127
164
|
:param obj: Camera object.
|
|
128
165
|
:type obj: bpy.types.Object
|
|
129
166
|
:param coord: World space location.
|
|
130
|
-
:type coord: typing.
|
|
167
|
+
:type coord: typing.Sequence[float] | mathutils.Vector
|
|
131
168
|
:return: a vector where X and Y map to the view plane and
|
|
132
169
|
Z is the depth on the view axis.
|
|
133
170
|
:rtype: mathutils.Vector
|
|
@@ -135,7 +172,27 @@ def world_to_camera_view(
|
|
|
135
172
|
|
|
136
173
|
...
|
|
137
174
|
|
|
138
|
-
def world_to_camera_view(
|
|
139
|
-
|
|
175
|
+
def world_to_camera_view(
|
|
176
|
+
scene: bpy.types.Scene,
|
|
177
|
+
obj: bpy.types.Object,
|
|
178
|
+
coord: typing.Sequence[float] | mathutils.Vector,
|
|
179
|
+
) -> mathutils.Vector:
|
|
180
|
+
"""Returns the camera space coords for a 3d point.
|
|
181
|
+
(also known as: normalized device coordinates - NDC).Where (0, 0) is the bottom left and (1, 1)
|
|
182
|
+
is the top right of the camera frame.
|
|
183
|
+
values outside 0-1 are also supported.
|
|
184
|
+
A negative 'z' value means the point is behind the camera.Takes shift-x/y, lens angle and sensor size into account
|
|
185
|
+
as well as perspective/ortho projections.
|
|
186
|
+
|
|
187
|
+
:param scene: Scene to use for frame size.
|
|
188
|
+
:type scene: bpy.types.Scene
|
|
189
|
+
:param obj: Camera object.
|
|
190
|
+
:type obj: bpy.types.Object
|
|
191
|
+
:param coord: World space location.
|
|
192
|
+
:type coord: typing.Sequence[float] | mathutils.Vector
|
|
193
|
+
:return: a vector where X and Y map to the view plane and
|
|
194
|
+
Z is the depth on the view axis.
|
|
195
|
+
:rtype: mathutils.Vector
|
|
196
|
+
"""
|
|
140
197
|
|
|
141
198
|
...
|
|
@@ -26,8 +26,25 @@ def location_3d_to_region_2d(
|
|
|
26
26
|
|
|
27
27
|
...
|
|
28
28
|
|
|
29
|
-
def location_3d_to_region_2d(
|
|
30
|
-
|
|
29
|
+
def location_3d_to_region_2d(
|
|
30
|
+
region: bpy.types.Region,
|
|
31
|
+
rv3d: bpy.types.RegionView3D,
|
|
32
|
+
coord: mathutils.Vector,
|
|
33
|
+
default=None,
|
|
34
|
+
) -> mathutils.Vector:
|
|
35
|
+
"""Return the region relative 2d location of a 3d position.
|
|
36
|
+
|
|
37
|
+
:param region: region of the 3D viewport, typically bpy.context.region.
|
|
38
|
+
:type region: bpy.types.Region
|
|
39
|
+
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
40
|
+
:type rv3d: bpy.types.RegionView3D
|
|
41
|
+
:param coord: 3d world-space location.
|
|
42
|
+
:type coord: mathutils.Vector
|
|
43
|
+
:param default: Return this value if coord
|
|
44
|
+
is behind the origin of a perspective view.
|
|
45
|
+
:return: 2d location
|
|
46
|
+
:rtype: mathutils.Vector
|
|
47
|
+
"""
|
|
31
48
|
|
|
32
49
|
...
|
|
33
50
|
|
|
@@ -56,8 +73,28 @@ def region_2d_to_location_3d(
|
|
|
56
73
|
|
|
57
74
|
...
|
|
58
75
|
|
|
59
|
-
def region_2d_to_location_3d(
|
|
60
|
-
|
|
76
|
+
def region_2d_to_location_3d(
|
|
77
|
+
region: bpy.types.Region,
|
|
78
|
+
rv3d: bpy.types.RegionView3D,
|
|
79
|
+
coord: mathutils.Vector,
|
|
80
|
+
depth_location: mathutils.Vector,
|
|
81
|
+
) -> mathutils.Vector:
|
|
82
|
+
"""Return a 3d location from the region relative 2d coords, aligned with
|
|
83
|
+
depth_location.
|
|
84
|
+
|
|
85
|
+
:param region: region of the 3D viewport, typically bpy.context.region.
|
|
86
|
+
:type region: bpy.types.Region
|
|
87
|
+
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
88
|
+
:type rv3d: bpy.types.RegionView3D
|
|
89
|
+
:param coord: 2d coordinates relative to the region;
|
|
90
|
+
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
91
|
+
:type coord: mathutils.Vector
|
|
92
|
+
:param depth_location: the returned vectors depth is aligned with this since
|
|
93
|
+
there is no defined depth with a 2d region input.
|
|
94
|
+
:type depth_location: mathutils.Vector
|
|
95
|
+
:return: normalized 3d vector.
|
|
96
|
+
:rtype: mathutils.Vector
|
|
97
|
+
"""
|
|
61
98
|
|
|
62
99
|
...
|
|
63
100
|
|
|
@@ -65,7 +102,7 @@ def region_2d_to_origin_3d(
|
|
|
65
102
|
region: bpy.types.Region,
|
|
66
103
|
rv3d: bpy.types.RegionView3D,
|
|
67
104
|
coord: mathutils.Vector,
|
|
68
|
-
clamp:
|
|
105
|
+
clamp: float | None = None,
|
|
69
106
|
) -> mathutils.Vector:
|
|
70
107
|
"""Return the 3d view origin from the region relative 2d coords.
|
|
71
108
|
|
|
@@ -78,15 +115,34 @@ def region_2d_to_origin_3d(
|
|
|
78
115
|
:type coord: mathutils.Vector
|
|
79
116
|
:param clamp: Clamp the maximum far-clip value used.
|
|
80
117
|
(negative value will move the offset away from the view_location)
|
|
81
|
-
:type clamp:
|
|
118
|
+
:type clamp: float | None
|
|
82
119
|
:return: The origin of the viewpoint in 3d space.
|
|
83
120
|
:rtype: mathutils.Vector
|
|
84
121
|
"""
|
|
85
122
|
|
|
86
123
|
...
|
|
87
124
|
|
|
88
|
-
def region_2d_to_origin_3d(
|
|
89
|
-
|
|
125
|
+
def region_2d_to_origin_3d(
|
|
126
|
+
region: bpy.types.Region,
|
|
127
|
+
rv3d: bpy.types.RegionView3D,
|
|
128
|
+
coord: mathutils.Vector,
|
|
129
|
+
clamp: float | None = None,
|
|
130
|
+
) -> mathutils.Vector:
|
|
131
|
+
"""Return the 3d view origin from the region relative 2d coords.
|
|
132
|
+
|
|
133
|
+
:param region: region of the 3D viewport, typically bpy.context.region.
|
|
134
|
+
:type region: bpy.types.Region
|
|
135
|
+
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
136
|
+
:type rv3d: bpy.types.RegionView3D
|
|
137
|
+
:param coord: 2d coordinates relative to the region;
|
|
138
|
+
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
139
|
+
:type coord: mathutils.Vector
|
|
140
|
+
:param clamp: Clamp the maximum far-clip value used.
|
|
141
|
+
(negative value will move the offset away from the view_location)
|
|
142
|
+
:type clamp: float | None
|
|
143
|
+
:return: The origin of the viewpoint in 3d space.
|
|
144
|
+
:rtype: mathutils.Vector
|
|
145
|
+
"""
|
|
90
146
|
|
|
91
147
|
...
|
|
92
148
|
|
|
@@ -109,7 +165,21 @@ def region_2d_to_vector_3d(
|
|
|
109
165
|
|
|
110
166
|
...
|
|
111
167
|
|
|
112
|
-
def region_2d_to_vector_3d(
|
|
113
|
-
|
|
168
|
+
def region_2d_to_vector_3d(
|
|
169
|
+
region: bpy.types.Region, rv3d: bpy.types.RegionView3D, coord: mathutils.Vector
|
|
170
|
+
) -> mathutils.Vector:
|
|
171
|
+
"""Return a direction vector from the viewport at the specific 2d region
|
|
172
|
+
coordinate.
|
|
173
|
+
|
|
174
|
+
:param region: region of the 3D viewport, typically bpy.context.region.
|
|
175
|
+
:type region: bpy.types.Region
|
|
176
|
+
:param rv3d: 3D region data, typically bpy.context.space_data.region_3d.
|
|
177
|
+
:type rv3d: bpy.types.RegionView3D
|
|
178
|
+
:param coord: 2d coordinates relative to the region:
|
|
179
|
+
(event.mouse_region_x, event.mouse_region_y) for example.
|
|
180
|
+
:type coord: mathutils.Vector
|
|
181
|
+
:return: normalized 3d vector.
|
|
182
|
+
:rtype: mathutils.Vector
|
|
183
|
+
"""
|
|
114
184
|
|
|
115
185
|
...
|
|
@@ -3,24 +3,13 @@ import typing
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
5
|
class ProgressReport:
|
|
6
|
-
""" """
|
|
7
|
-
|
|
8
6
|
curr_step: typing.Any
|
|
9
|
-
""" """
|
|
10
|
-
|
|
11
7
|
running: typing.Any
|
|
12
|
-
""" """
|
|
13
|
-
|
|
14
8
|
start_time: typing.Any
|
|
15
|
-
""" """
|
|
16
|
-
|
|
17
9
|
steps: typing.Any
|
|
18
|
-
""" """
|
|
19
|
-
|
|
20
10
|
wm: typing.Any
|
|
21
|
-
""" """
|
|
22
11
|
|
|
23
|
-
def enter_substeps(self, nbr, msg):
|
|
12
|
+
def enter_substeps(self, nbr, msg=""):
|
|
24
13
|
"""
|
|
25
14
|
|
|
26
15
|
:param nbr:
|
|
@@ -28,29 +17,23 @@ class ProgressReport:
|
|
|
28
17
|
"""
|
|
29
18
|
...
|
|
30
19
|
|
|
31
|
-
def finalize(self):
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def initialize(self, wm):
|
|
36
|
-
"""
|
|
20
|
+
def finalize(self): ...
|
|
21
|
+
def initialize(self, wm=None):
|
|
22
|
+
"""Initialize self. See help(type(self)) for accurate signature.
|
|
37
23
|
|
|
38
24
|
:param wm:
|
|
39
25
|
"""
|
|
40
26
|
...
|
|
41
27
|
|
|
42
|
-
def leave_substeps(self, msg):
|
|
28
|
+
def leave_substeps(self, msg=""):
|
|
43
29
|
"""
|
|
44
30
|
|
|
45
31
|
:param msg:
|
|
46
32
|
"""
|
|
47
33
|
...
|
|
48
34
|
|
|
49
|
-
def start(self):
|
|
50
|
-
|
|
51
|
-
...
|
|
52
|
-
|
|
53
|
-
def step(self, msg, nbr):
|
|
35
|
+
def start(self): ...
|
|
36
|
+
def step(self, msg="", nbr=1):
|
|
54
37
|
"""
|
|
55
38
|
|
|
56
39
|
:param msg:
|
|
@@ -58,7 +41,7 @@ class ProgressReport:
|
|
|
58
41
|
"""
|
|
59
42
|
...
|
|
60
43
|
|
|
61
|
-
def update(self, msg):
|
|
44
|
+
def update(self, msg=""):
|
|
62
45
|
"""
|
|
63
46
|
|
|
64
47
|
:param msg:
|
|
@@ -66,24 +49,18 @@ class ProgressReport:
|
|
|
66
49
|
...
|
|
67
50
|
|
|
68
51
|
class ProgressReportSubstep:
|
|
69
|
-
"""
|
|
52
|
+
"""A sub-step context manager for ProgressReport.It can be used to generate other sub-step contexts too, and can act as a (limited) proxy of its real ProgressReport.Its exit method always ensure ProgressReport is back on 'level' it was before entering this context.
|
|
53
|
+
This means it is especially useful to ensure a coherent behavior around code that could return/continue/break
|
|
54
|
+
from many places, without having to bother to explicitly leave sub-step in each and every possible place!
|
|
55
|
+
"""
|
|
70
56
|
|
|
71
57
|
final_msg: typing.Any
|
|
72
|
-
""" """
|
|
73
|
-
|
|
74
58
|
level: typing.Any
|
|
75
|
-
""" """
|
|
76
|
-
|
|
77
59
|
msg: typing.Any
|
|
78
|
-
""" """
|
|
79
|
-
|
|
80
60
|
nbr: typing.Any
|
|
81
|
-
""" """
|
|
82
|
-
|
|
83
61
|
progress: typing.Any
|
|
84
|
-
""" """
|
|
85
62
|
|
|
86
|
-
def enter_substeps(self, nbr, msg):
|
|
63
|
+
def enter_substeps(self, nbr, msg=""):
|
|
87
64
|
"""
|
|
88
65
|
|
|
89
66
|
:param nbr:
|
|
@@ -91,14 +68,14 @@ class ProgressReportSubstep:
|
|
|
91
68
|
"""
|
|
92
69
|
...
|
|
93
70
|
|
|
94
|
-
def leave_substeps(self, msg):
|
|
71
|
+
def leave_substeps(self, msg=""):
|
|
95
72
|
"""
|
|
96
73
|
|
|
97
74
|
:param msg:
|
|
98
75
|
"""
|
|
99
76
|
...
|
|
100
77
|
|
|
101
|
-
def step(self, msg, nbr):
|
|
78
|
+
def step(self, msg="", nbr=1):
|
|
102
79
|
"""
|
|
103
80
|
|
|
104
81
|
:param msg:
|
bpy_restrict_state/__init__.pyi
CHANGED
|
@@ -3,24 +3,11 @@ import typing
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
5
|
class RestrictBlend:
|
|
6
|
-
""" """
|
|
7
|
-
|
|
8
6
|
context: typing.Any
|
|
9
|
-
""" """
|
|
10
|
-
|
|
11
7
|
data: typing.Any
|
|
12
|
-
""" """
|
|
13
8
|
|
|
14
9
|
class _RestrictContext:
|
|
15
|
-
""" """
|
|
16
|
-
|
|
17
10
|
preferences: typing.Any
|
|
18
|
-
""" """
|
|
19
|
-
|
|
20
11
|
window_manager: typing.Any
|
|
21
|
-
""" """
|
|
22
|
-
|
|
23
|
-
class _RestrictData:
|
|
24
|
-
""" """
|
|
25
12
|
|
|
26
|
-
|
|
13
|
+
class _RestrictData: ...
|