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
bpy/utils/__init__.pyi
CHANGED
|
@@ -16,150 +16,165 @@ from . import units
|
|
|
16
16
|
|
|
17
17
|
GenericType = typing.TypeVar("GenericType")
|
|
18
18
|
|
|
19
|
-
def app_template_paths(path:
|
|
19
|
+
def app_template_paths(path: str | None = None):
|
|
20
20
|
"""Returns valid application template paths.
|
|
21
21
|
|
|
22
22
|
:param path: Optional subdir.
|
|
23
|
-
:type path:
|
|
23
|
+
:type path: str | None
|
|
24
24
|
:return: app template paths.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
...
|
|
28
28
|
|
|
29
|
-
def app_template_paths(path):
|
|
30
|
-
"""
|
|
29
|
+
def app_template_paths(path: str | None = None):
|
|
30
|
+
"""Returns valid application template paths.
|
|
31
|
+
|
|
32
|
+
:param path: Optional subdir.
|
|
33
|
+
:type path: str | None
|
|
34
|
+
:return: app template paths.
|
|
35
|
+
"""
|
|
31
36
|
|
|
32
37
|
...
|
|
33
38
|
|
|
34
39
|
def blend_paths(
|
|
35
|
-
absolute:
|
|
36
|
-
packed:
|
|
37
|
-
local:
|
|
38
|
-
) ->
|
|
40
|
+
absolute: bool | None = False,
|
|
41
|
+
packed: bool | None = False,
|
|
42
|
+
local: bool | None = False,
|
|
43
|
+
) -> list[str]:
|
|
39
44
|
"""Returns a list of paths to external files referenced by the loaded .blend file.
|
|
40
45
|
|
|
41
46
|
:param absolute: When true the paths returned are made absolute.
|
|
42
|
-
:type absolute:
|
|
47
|
+
:type absolute: bool | None
|
|
43
48
|
:param packed: When true skip file paths for packed data.
|
|
44
|
-
:type packed:
|
|
49
|
+
:type packed: bool | None
|
|
45
50
|
:param local: When true skip linked library paths.
|
|
46
|
-
:type local:
|
|
51
|
+
:type local: bool | None
|
|
47
52
|
:return: path list.
|
|
48
|
-
:rtype:
|
|
53
|
+
:rtype: list[str]
|
|
49
54
|
"""
|
|
50
55
|
|
|
51
56
|
...
|
|
52
57
|
|
|
53
|
-
def escape_identifier(string:
|
|
58
|
+
def escape_identifier(string: str | None) -> str:
|
|
54
59
|
"""Simple string escaping function used for animation paths.
|
|
55
60
|
|
|
56
61
|
:param string: text
|
|
57
|
-
:type string:
|
|
62
|
+
:type string: str | None
|
|
58
63
|
:return: The escaped string.
|
|
59
64
|
:rtype: str
|
|
60
65
|
"""
|
|
61
66
|
|
|
62
67
|
...
|
|
63
68
|
|
|
64
|
-
def execfile(filepath:
|
|
69
|
+
def execfile(filepath: str | None, mod=None):
|
|
65
70
|
"""Execute a file path as a Python script.
|
|
66
71
|
|
|
67
72
|
:param filepath: Path of the script to execute.
|
|
68
|
-
:type filepath:
|
|
73
|
+
:type filepath: str | None
|
|
69
74
|
:param mod: Optional cached module, the result of a previous execution.
|
|
70
75
|
:return: The module which can be passed back in as mod.
|
|
71
76
|
"""
|
|
72
77
|
|
|
73
78
|
...
|
|
74
79
|
|
|
75
|
-
def execfile(filepath, mod):
|
|
76
|
-
"""
|
|
80
|
+
def execfile(filepath: str | None, mod=None):
|
|
81
|
+
"""Execute a file path as a Python script.
|
|
82
|
+
|
|
83
|
+
:param filepath: Path of the script to execute.
|
|
84
|
+
:type filepath: str | None
|
|
85
|
+
:param mod: Optional cached module, the result of a previous execution.
|
|
86
|
+
:return: The module which can be passed back in as mod.
|
|
87
|
+
"""
|
|
77
88
|
|
|
78
89
|
...
|
|
79
90
|
|
|
80
|
-
def flip_name(
|
|
81
|
-
name: typing.Optional[str], strip_digits: typing.Optional[bool] = False
|
|
82
|
-
) -> str:
|
|
91
|
+
def flip_name(name: str | None, strip_digits: bool | None = False) -> str:
|
|
83
92
|
"""Flip a name between left/right sides, useful for
|
|
84
93
|
mirroring bone names.
|
|
85
94
|
|
|
86
95
|
:param name: Bone name to flip.
|
|
87
|
-
:type name:
|
|
96
|
+
:type name: str | None
|
|
88
97
|
:param strip_digits: Whether to remove .### suffix.
|
|
89
|
-
:type strip_digits:
|
|
98
|
+
:type strip_digits: bool | None
|
|
90
99
|
:return: The flipped name.
|
|
91
100
|
:rtype: str
|
|
92
101
|
"""
|
|
93
102
|
|
|
94
103
|
...
|
|
95
104
|
|
|
96
|
-
def is_path_builtin(path):
|
|
97
|
-
"""
|
|
98
|
-
|
|
99
|
-
...
|
|
100
|
-
|
|
101
|
-
def keyconfig_init():
|
|
102
|
-
""" """
|
|
105
|
+
def is_path_builtin(path: str | None) -> bool:
|
|
106
|
+
"""Returns True if the path is one of the built-in paths used by Blender.
|
|
103
107
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"""
|
|
108
|
+
:param path: Path you want to check if it is in the built-in settings directory
|
|
109
|
+
:type path: str | None
|
|
110
|
+
:rtype: bool
|
|
111
|
+
"""
|
|
108
112
|
|
|
109
113
|
...
|
|
110
114
|
|
|
111
|
-
def
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
def keyconfig_init(): ...
|
|
116
|
+
def keyconfig_init(): ...
|
|
117
|
+
def keyconfig_set(filepath, report=None): ...
|
|
118
|
+
def keyconfig_set(filepath, report=None): ...
|
|
119
|
+
def load_scripts(
|
|
120
|
+
reload_scripts: bool | None = False,
|
|
121
|
+
refresh_scripts: bool | None = False,
|
|
122
|
+
extensions: bool | None = True,
|
|
123
|
+
):
|
|
124
|
+
"""Load scripts and run each modules register function.
|
|
115
125
|
|
|
116
|
-
|
|
117
|
-
|
|
126
|
+
:param reload_scripts: Causes all scripts to have their unregister method
|
|
127
|
+
called before loading.
|
|
128
|
+
:type reload_scripts: bool | None
|
|
129
|
+
:param refresh_scripts: only load scripts which are not already loaded
|
|
130
|
+
as modules.
|
|
131
|
+
:type refresh_scripts: bool | None
|
|
132
|
+
:param extensions: Loads additional scripts (add-ons & app-templates).
|
|
133
|
+
:type extensions: bool | None
|
|
134
|
+
"""
|
|
118
135
|
|
|
119
136
|
...
|
|
120
137
|
|
|
121
138
|
def load_scripts(
|
|
122
|
-
reload_scripts:
|
|
123
|
-
refresh_scripts:
|
|
124
|
-
extensions:
|
|
139
|
+
reload_scripts: bool | None = False,
|
|
140
|
+
refresh_scripts: bool | None = False,
|
|
141
|
+
extensions: bool | None = True,
|
|
125
142
|
):
|
|
126
143
|
"""Load scripts and run each modules register function.
|
|
127
144
|
|
|
128
145
|
:param reload_scripts: Causes all scripts to have their unregister method
|
|
129
146
|
called before loading.
|
|
130
|
-
:type reload_scripts:
|
|
147
|
+
:type reload_scripts: bool | None
|
|
131
148
|
:param refresh_scripts: only load scripts which are not already loaded
|
|
132
149
|
as modules.
|
|
133
|
-
:type refresh_scripts:
|
|
150
|
+
:type refresh_scripts: bool | None
|
|
134
151
|
:param extensions: Loads additional scripts (add-ons & app-templates).
|
|
135
|
-
:type extensions:
|
|
152
|
+
:type extensions: bool | None
|
|
136
153
|
"""
|
|
137
154
|
|
|
138
155
|
...
|
|
139
156
|
|
|
140
|
-
def
|
|
141
|
-
"""
|
|
157
|
+
def load_scripts_extensions(reload_scripts: bool | None = False):
|
|
158
|
+
"""Load extensions scripts (add-ons and app-templates)
|
|
142
159
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"""
|
|
160
|
+
:param reload_scripts: Causes all scripts to have their unregister method
|
|
161
|
+
called before loading.
|
|
162
|
+
:type reload_scripts: bool | None
|
|
163
|
+
"""
|
|
147
164
|
|
|
148
165
|
...
|
|
149
166
|
|
|
150
167
|
def make_rna_paths(
|
|
151
|
-
struct_name:
|
|
152
|
-
prop_name: typing.Optional[str],
|
|
153
|
-
enum_name: typing.Optional[str],
|
|
168
|
+
struct_name: str | None, prop_name: str | None, enum_name: str | None
|
|
154
169
|
):
|
|
155
170
|
"""Create RNA "paths" from given names.
|
|
156
171
|
|
|
157
172
|
:param struct_name: Name of a RNA struct (like e.g. "Scene").
|
|
158
|
-
:type struct_name:
|
|
173
|
+
:type struct_name: str | None
|
|
159
174
|
:param prop_name: Name of a RNA struct's property.
|
|
160
|
-
:type prop_name:
|
|
175
|
+
:type prop_name: str | None
|
|
161
176
|
:param enum_name: Name of a RNA enum identifier.
|
|
162
|
-
:type enum_name:
|
|
177
|
+
:type enum_name: str | None
|
|
163
178
|
:return: A triple of three "RNA paths"
|
|
164
179
|
(most_complete_path, "struct.prop", "struct.prop:'enum'").
|
|
165
180
|
If no enum_name is given, the third element will always be void.
|
|
@@ -167,8 +182,21 @@ def make_rna_paths(
|
|
|
167
182
|
|
|
168
183
|
...
|
|
169
184
|
|
|
170
|
-
def make_rna_paths(
|
|
171
|
-
|
|
185
|
+
def make_rna_paths(
|
|
186
|
+
struct_name: str | None, prop_name: str | None, enum_name: str | None
|
|
187
|
+
):
|
|
188
|
+
"""Create RNA "paths" from given names.
|
|
189
|
+
|
|
190
|
+
:param struct_name: Name of a RNA struct (like e.g. "Scene").
|
|
191
|
+
:type struct_name: str | None
|
|
192
|
+
:param prop_name: Name of a RNA struct's property.
|
|
193
|
+
:type prop_name: str | None
|
|
194
|
+
:param enum_name: Name of a RNA enum identifier.
|
|
195
|
+
:type enum_name: str | None
|
|
196
|
+
:return: A triple of three "RNA paths"
|
|
197
|
+
(most_complete_path, "struct.prop", "struct.prop:'enum'").
|
|
198
|
+
If no enum_name is given, the third element will always be void.
|
|
199
|
+
"""
|
|
172
200
|
|
|
173
201
|
...
|
|
174
202
|
|
|
@@ -182,65 +210,67 @@ def manual_language_code(default="en") -> str:
|
|
|
182
210
|
|
|
183
211
|
...
|
|
184
212
|
|
|
185
|
-
def manual_language_code(default):
|
|
186
|
-
"""
|
|
187
|
-
|
|
188
|
-
...
|
|
189
|
-
|
|
190
|
-
def manual_map():
|
|
191
|
-
""" """
|
|
192
|
-
|
|
193
|
-
...
|
|
213
|
+
def manual_language_code(default="en") -> str:
|
|
214
|
+
"""
|
|
194
215
|
|
|
195
|
-
|
|
196
|
-
|
|
216
|
+
:return: The language code used for user manual URL component based on the current language user-preference,
|
|
217
|
+
falling back to the default when unavailable.
|
|
218
|
+
:rtype: str
|
|
219
|
+
"""
|
|
197
220
|
|
|
198
221
|
...
|
|
199
222
|
|
|
200
|
-
def
|
|
201
|
-
|
|
202
|
-
) -> list:
|
|
223
|
+
def manual_map(): ...
|
|
224
|
+
def manual_map(): ...
|
|
225
|
+
def modules_from_path(path: str | None, loaded_modules: set | None) -> list:
|
|
203
226
|
"""Load all modules in a path and return them as a list.
|
|
204
227
|
|
|
205
228
|
:param path: this path is scanned for scripts and packages.
|
|
206
|
-
:type path:
|
|
229
|
+
:type path: str | None
|
|
207
230
|
:param loaded_modules: already loaded module names, files matching these
|
|
208
231
|
names will be ignored.
|
|
209
|
-
:type loaded_modules:
|
|
232
|
+
:type loaded_modules: set | None
|
|
210
233
|
:return: all loaded modules.
|
|
211
234
|
:rtype: list
|
|
212
235
|
"""
|
|
213
236
|
|
|
214
237
|
...
|
|
215
238
|
|
|
216
|
-
def modules_from_path(path, loaded_modules):
|
|
217
|
-
"""
|
|
218
|
-
|
|
219
|
-
...
|
|
220
|
-
|
|
221
|
-
def preset_find(name, preset_path, display_name=False, ext=".py"):
|
|
222
|
-
""" """
|
|
223
|
-
|
|
224
|
-
...
|
|
239
|
+
def modules_from_path(path: str | None, loaded_modules: set | None) -> list:
|
|
240
|
+
"""Load all modules in a path and return them as a list.
|
|
225
241
|
|
|
226
|
-
|
|
227
|
-
|
|
242
|
+
:param path: this path is scanned for scripts and packages.
|
|
243
|
+
:type path: str | None
|
|
244
|
+
:param loaded_modules: already loaded module names, files matching these
|
|
245
|
+
names will be ignored.
|
|
246
|
+
:type loaded_modules: set | None
|
|
247
|
+
:return: all loaded modules.
|
|
248
|
+
:rtype: list
|
|
249
|
+
"""
|
|
228
250
|
|
|
229
251
|
...
|
|
230
252
|
|
|
231
|
-
def
|
|
253
|
+
def preset_find(name, preset_path, display_name=False, ext=".py"): ...
|
|
254
|
+
def preset_find(name, preset_path, display_name=False, ext=".py"): ...
|
|
255
|
+
def preset_paths(subdir: str | None) -> list:
|
|
232
256
|
"""Returns a list of paths for a specific preset.
|
|
233
257
|
|
|
234
258
|
:param subdir: preset subdirectory (must not be an absolute path).
|
|
235
|
-
:type subdir:
|
|
259
|
+
:type subdir: str | None
|
|
236
260
|
:return: script paths.
|
|
237
261
|
:rtype: list
|
|
238
262
|
"""
|
|
239
263
|
|
|
240
264
|
...
|
|
241
265
|
|
|
242
|
-
def preset_paths(subdir):
|
|
243
|
-
"""
|
|
266
|
+
def preset_paths(subdir: str | None) -> list:
|
|
267
|
+
"""Returns a list of paths for a specific preset.
|
|
268
|
+
|
|
269
|
+
:param subdir: preset subdirectory (must not be an absolute path).
|
|
270
|
+
:type subdir: str | None
|
|
271
|
+
:return: script paths.
|
|
272
|
+
:rtype: list
|
|
273
|
+
"""
|
|
244
274
|
|
|
245
275
|
...
|
|
246
276
|
|
|
@@ -250,7 +280,7 @@ def refresh_script_paths():
|
|
|
250
280
|
...
|
|
251
281
|
|
|
252
282
|
def refresh_script_paths():
|
|
253
|
-
""" """
|
|
283
|
+
"""Run this after creating new script paths to update sys.path"""
|
|
254
284
|
|
|
255
285
|
...
|
|
256
286
|
|
|
@@ -276,13 +306,14 @@ def register_classes_factory(classes):
|
|
|
276
306
|
...
|
|
277
307
|
|
|
278
308
|
def register_classes_factory(classes):
|
|
279
|
-
"""
|
|
309
|
+
"""Utility function to create register and unregister functions
|
|
310
|
+
which simply registers and unregisters a sequence of classes.
|
|
311
|
+
|
|
312
|
+
"""
|
|
280
313
|
|
|
281
314
|
...
|
|
282
315
|
|
|
283
|
-
def register_cli_command(
|
|
284
|
-
id: typing.Optional[str], execute: typing.Optional[typing.Callable]
|
|
285
|
-
):
|
|
316
|
+
def register_cli_command(id: str | None, execute: typing.Callable | None):
|
|
286
317
|
"""Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
|
|
287
318
|
functionality via commands passed to (-c / --command).Using Python Argument ParsingThis example shows how the Python argparse module can be used with a custom command.Using argparse is generally recommended as it has many useful utilities and
|
|
288
319
|
generates a --help message for your command.
|
|
@@ -290,83 +321,89 @@ def register_cli_command(
|
|
|
290
321
|
:param id: The command identifier (must pass an str.isidentifier check).
|
|
291
322
|
|
|
292
323
|
If the id is already registered, a warning is printed and the command is inaccessible to prevent accidents invoking the wrong command.
|
|
293
|
-
:type id:
|
|
324
|
+
:type id: str | None
|
|
294
325
|
:param execute: Callback, taking a single list of strings and returns an int.
|
|
295
326
|
The arguments are built from all command-line arguments following the command id.
|
|
296
327
|
The return value should be 0 for success, 1 on failure (specific error codes from the os module can also be used).
|
|
297
|
-
:type execute: typing.
|
|
328
|
+
:type execute: typing.Callable | None
|
|
298
329
|
:return: The command handle which can be passed to `unregister_cli_command`.
|
|
299
330
|
"""
|
|
300
331
|
|
|
301
332
|
...
|
|
302
333
|
|
|
303
|
-
def register_manual_map(manual_hook):
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
334
|
+
def register_manual_map(manual_hook): ...
|
|
335
|
+
def register_manual_map(manual_hook): ...
|
|
336
|
+
def register_submodule_factory(
|
|
337
|
+
module_name: str | None, submodule_names: list[str] | None
|
|
338
|
+
):
|
|
339
|
+
"""Utility function to create register and unregister functions
|
|
340
|
+
which simply load submodules,
|
|
341
|
+
calling their register & unregister functions.
|
|
307
342
|
|
|
308
|
-
|
|
309
|
-
|
|
343
|
+
:param module_name: The module name, typically __name__.
|
|
344
|
+
:type module_name: str | None
|
|
345
|
+
:param submodule_names: List of submodule names to load and unload.
|
|
346
|
+
:type submodule_names: list[str] | None
|
|
347
|
+
:return: register and unregister functions.
|
|
348
|
+
"""
|
|
310
349
|
|
|
311
350
|
...
|
|
312
351
|
|
|
313
352
|
def register_submodule_factory(
|
|
314
|
-
module_name:
|
|
315
|
-
submodule_names: typing.Optional[typing.List[str]],
|
|
353
|
+
module_name: str | None, submodule_names: list[str] | None
|
|
316
354
|
):
|
|
317
355
|
"""Utility function to create register and unregister functions
|
|
318
356
|
which simply load submodules,
|
|
319
357
|
calling their register & unregister functions.
|
|
320
358
|
|
|
321
359
|
:param module_name: The module name, typically __name__.
|
|
322
|
-
:type module_name:
|
|
360
|
+
:type module_name: str | None
|
|
323
361
|
:param submodule_names: List of submodule names to load and unload.
|
|
324
|
-
:type submodule_names:
|
|
362
|
+
:type submodule_names: list[str] | None
|
|
325
363
|
:return: register and unregister functions.
|
|
326
364
|
"""
|
|
327
365
|
|
|
328
366
|
...
|
|
329
367
|
|
|
330
|
-
def register_submodule_factory(module_name, submodule_names):
|
|
331
|
-
""" """
|
|
332
|
-
|
|
333
|
-
...
|
|
334
|
-
|
|
335
368
|
def register_tool(
|
|
336
|
-
tool_cls,
|
|
337
|
-
after=None,
|
|
338
|
-
separator: typing.Optional[bool] = False,
|
|
339
|
-
group: typing.Optional[bool] = False,
|
|
369
|
+
tool_cls, after=None, separator: bool | None = False, group: bool | None = False
|
|
340
370
|
):
|
|
341
371
|
"""Register a tool in the toolbar.
|
|
342
372
|
|
|
343
373
|
:param after: Optional identifiers this tool will be added after.
|
|
344
374
|
:param separator: When true, add a separator before this tool.
|
|
345
|
-
:type separator:
|
|
375
|
+
:type separator: bool | None
|
|
346
376
|
:param group: When true, add a new nested group of tools.
|
|
347
|
-
:type group:
|
|
377
|
+
:type group: bool | None
|
|
348
378
|
"""
|
|
349
379
|
|
|
350
380
|
...
|
|
351
381
|
|
|
352
|
-
def register_tool(
|
|
353
|
-
|
|
382
|
+
def register_tool(
|
|
383
|
+
tool_cls, after=None, separator: bool | None = False, group: bool | None = False
|
|
384
|
+
):
|
|
385
|
+
"""Register a tool in the toolbar.
|
|
386
|
+
|
|
387
|
+
:param after: Optional identifiers this tool will be added after.
|
|
388
|
+
:param separator: When true, add a separator before this tool.
|
|
389
|
+
:type separator: bool | None
|
|
390
|
+
:param group: When true, add a new nested group of tools.
|
|
391
|
+
:type group: bool | None
|
|
392
|
+
"""
|
|
354
393
|
|
|
355
394
|
...
|
|
356
395
|
|
|
357
396
|
def resource_path(
|
|
358
|
-
type:
|
|
359
|
-
major: typing.Optional[int] = None[0],
|
|
360
|
-
minor: typing.Optional[str] = None[1],
|
|
397
|
+
type: str | None, major: int | None = None[0], minor: str | None = None[1]
|
|
361
398
|
) -> str:
|
|
362
399
|
"""Return the base path for storing system files.
|
|
363
400
|
|
|
364
401
|
:param type: string in ['USER', 'LOCAL', 'SYSTEM'].
|
|
365
|
-
:type type:
|
|
402
|
+
:type type: str | None
|
|
366
403
|
:param major: major version, defaults to current.
|
|
367
|
-
:type major:
|
|
404
|
+
:type major: int | None
|
|
368
405
|
:param minor: minor version, defaults to current.
|
|
369
|
-
:type minor:
|
|
406
|
+
:type minor: str | None
|
|
370
407
|
:return: the resource path (not necessarily existing).
|
|
371
408
|
:rtype: str
|
|
372
409
|
"""
|
|
@@ -379,92 +416,130 @@ def script_path_user():
|
|
|
379
416
|
...
|
|
380
417
|
|
|
381
418
|
def script_path_user():
|
|
382
|
-
""" """
|
|
419
|
+
"""returns the env var and falls back to home dir or None"""
|
|
383
420
|
|
|
384
421
|
...
|
|
385
422
|
|
|
386
423
|
def script_paths(
|
|
387
|
-
subdir:
|
|
388
|
-
user_pref:
|
|
389
|
-
check_all:
|
|
424
|
+
subdir: str | None = None,
|
|
425
|
+
user_pref: bool | None = True,
|
|
426
|
+
check_all: bool | None = False,
|
|
390
427
|
use_user=True,
|
|
391
428
|
) -> list:
|
|
392
429
|
"""Returns a list of valid script paths.
|
|
393
430
|
|
|
394
431
|
:param subdir: Optional subdir.
|
|
395
|
-
:type subdir:
|
|
432
|
+
:type subdir: str | None
|
|
396
433
|
:param user_pref: Include the user preference script paths.
|
|
397
|
-
:type user_pref:
|
|
434
|
+
:type user_pref: bool | None
|
|
398
435
|
:param check_all: Include local, user and system paths rather just the paths Blender uses.
|
|
399
|
-
:type check_all:
|
|
436
|
+
:type check_all: bool | None
|
|
400
437
|
:return: script paths.
|
|
401
438
|
:rtype: list
|
|
402
439
|
"""
|
|
403
440
|
|
|
404
441
|
...
|
|
405
442
|
|
|
406
|
-
def script_paths(
|
|
407
|
-
|
|
443
|
+
def script_paths(
|
|
444
|
+
subdir: str | None = None,
|
|
445
|
+
user_pref: bool | None = True,
|
|
446
|
+
check_all: bool | None = False,
|
|
447
|
+
use_user=True,
|
|
448
|
+
) -> list:
|
|
449
|
+
"""Returns a list of valid script paths.
|
|
450
|
+
|
|
451
|
+
:param subdir: Optional subdir.
|
|
452
|
+
:type subdir: str | None
|
|
453
|
+
:param user_pref: Include the user preference script paths.
|
|
454
|
+
:type user_pref: bool | None
|
|
455
|
+
:param check_all: Include local, user and system paths rather just the paths Blender uses.
|
|
456
|
+
:type check_all: bool | None
|
|
457
|
+
:return: script paths.
|
|
458
|
+
:rtype: list
|
|
459
|
+
"""
|
|
408
460
|
|
|
409
461
|
...
|
|
410
462
|
|
|
411
463
|
def script_paths_pref():
|
|
412
|
-
""" """
|
|
464
|
+
"""Returns a list of user preference script directories."""
|
|
413
465
|
|
|
414
466
|
...
|
|
415
467
|
|
|
416
|
-
def smpte_from_frame(frame:
|
|
468
|
+
def smpte_from_frame(frame: int | None, fps=None, fps_base=None) -> str:
|
|
417
469
|
"""Returns an SMPTE formatted string from the frame:
|
|
418
470
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
419
471
|
|
|
420
472
|
:param frame: frame number.
|
|
421
|
-
:type frame:
|
|
473
|
+
:type frame: int | None
|
|
422
474
|
:return: the frame string.
|
|
423
475
|
:rtype: str
|
|
424
476
|
"""
|
|
425
477
|
|
|
426
478
|
...
|
|
427
479
|
|
|
428
|
-
def smpte_from_frame(frame, fps, fps_base):
|
|
429
|
-
"""
|
|
480
|
+
def smpte_from_frame(frame: int | None, fps=None, fps_base=None) -> str:
|
|
481
|
+
"""Returns an SMPTE formatted string from the frame:
|
|
482
|
+
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
483
|
+
|
|
484
|
+
:param frame: frame number.
|
|
485
|
+
:type frame: int | None
|
|
486
|
+
:return: the frame string.
|
|
487
|
+
:rtype: str
|
|
488
|
+
"""
|
|
430
489
|
|
|
431
490
|
...
|
|
432
491
|
|
|
433
|
-
def smpte_from_seconds(
|
|
434
|
-
time: typing.Optional[typing.Union[int, float]], fps=None, fps_base=None
|
|
435
|
-
) -> str:
|
|
492
|
+
def smpte_from_seconds(time: int | float | None, fps=None, fps_base=None) -> str:
|
|
436
493
|
"""Returns an SMPTE formatted string from the time:
|
|
437
494
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
438
495
|
|
|
439
496
|
:param time: time in seconds.
|
|
440
|
-
:type time:
|
|
497
|
+
:type time: int | float | None
|
|
441
498
|
:return: the frame string.
|
|
442
499
|
:rtype: str
|
|
443
500
|
"""
|
|
444
501
|
|
|
445
502
|
...
|
|
446
503
|
|
|
447
|
-
def smpte_from_seconds(time, fps, fps_base):
|
|
448
|
-
"""
|
|
504
|
+
def smpte_from_seconds(time: int | float | None, fps=None, fps_base=None) -> str:
|
|
505
|
+
"""Returns an SMPTE formatted string from the time:
|
|
506
|
+
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
507
|
+
|
|
508
|
+
:param time: time in seconds.
|
|
509
|
+
:type time: int | float | None
|
|
510
|
+
:return: the frame string.
|
|
511
|
+
:rtype: str
|
|
512
|
+
"""
|
|
449
513
|
|
|
450
514
|
...
|
|
451
515
|
|
|
452
|
-
def time_from_frame(frame, fps, fps_base):
|
|
453
|
-
"""
|
|
516
|
+
def time_from_frame(frame: int | None, fps=None, fps_base=None):
|
|
517
|
+
"""Returns the time from a frame number .If fps and fps_base are not given the current scene is used.
|
|
518
|
+
|
|
519
|
+
:param frame: number.
|
|
520
|
+
:type frame: int | None
|
|
521
|
+
:return: the time in seconds.
|
|
522
|
+
"""
|
|
454
523
|
|
|
455
524
|
...
|
|
456
525
|
|
|
457
|
-
def time_to_frame(time, fps, fps_base):
|
|
458
|
-
"""
|
|
526
|
+
def time_to_frame(time, fps=None, fps_base=None) -> float:
|
|
527
|
+
"""Returns a float frame number from a time given in seconds or
|
|
528
|
+
as a datetime.timedelta object.If fps and fps_base are not given the current scene is used.
|
|
529
|
+
|
|
530
|
+
:param time: time in seconds.
|
|
531
|
+
:return: the frame.
|
|
532
|
+
:rtype: float
|
|
533
|
+
"""
|
|
459
534
|
|
|
460
535
|
...
|
|
461
536
|
|
|
462
|
-
def unescape_identifier(string:
|
|
537
|
+
def unescape_identifier(string: str | None) -> str:
|
|
463
538
|
"""Simple string un-escape function used for animation paths.
|
|
464
539
|
This performs the reverse of escape_identifier.
|
|
465
540
|
|
|
466
541
|
:param string: text
|
|
467
|
-
:type string:
|
|
542
|
+
:type string: str | None
|
|
468
543
|
:return: The un-escaped string.
|
|
469
544
|
:rtype: str
|
|
470
545
|
"""
|
|
@@ -489,45 +564,38 @@ def unregister_cli_command(handle):
|
|
|
489
564
|
|
|
490
565
|
...
|
|
491
566
|
|
|
492
|
-
def unregister_manual_map(manual_hook):
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
...
|
|
501
|
-
|
|
502
|
-
def unregister_tool(tool_cls):
|
|
503
|
-
""" """
|
|
504
|
-
|
|
505
|
-
...
|
|
567
|
+
def unregister_manual_map(manual_hook): ...
|
|
568
|
+
def unregister_manual_map(manual_hook): ...
|
|
569
|
+
def unregister_tool(tool_cls): ...
|
|
570
|
+
def unregister_tool(tool_cls): ...
|
|
571
|
+
def user_resource(
|
|
572
|
+
resource_type, path: str | None = "", create: bool | None = False
|
|
573
|
+
) -> str:
|
|
574
|
+
"""Return a user resource path (normally from the users home directory).
|
|
506
575
|
|
|
507
|
-
|
|
508
|
-
|
|
576
|
+
:param path: Optional subdirectory.
|
|
577
|
+
:type path: str | None
|
|
578
|
+
:param create: Treat the path as a directory and create
|
|
579
|
+
it if its not existing.
|
|
580
|
+
:type create: bool | None
|
|
581
|
+
:return: a path.
|
|
582
|
+
:rtype: str
|
|
583
|
+
"""
|
|
509
584
|
|
|
510
585
|
...
|
|
511
586
|
|
|
512
587
|
def user_resource(
|
|
513
|
-
resource_type,
|
|
514
|
-
path: typing.Optional[str] = "",
|
|
515
|
-
create: typing.Optional[bool] = False,
|
|
588
|
+
resource_type, path: str | None = "", create: bool | None = False
|
|
516
589
|
) -> str:
|
|
517
590
|
"""Return a user resource path (normally from the users home directory).
|
|
518
591
|
|
|
519
592
|
:param path: Optional subdirectory.
|
|
520
|
-
:type path:
|
|
593
|
+
:type path: str | None
|
|
521
594
|
:param create: Treat the path as a directory and create
|
|
522
595
|
it if its not existing.
|
|
523
|
-
:type create:
|
|
596
|
+
:type create: bool | None
|
|
524
597
|
:return: a path.
|
|
525
598
|
:rtype: str
|
|
526
599
|
"""
|
|
527
600
|
|
|
528
601
|
...
|
|
529
|
-
|
|
530
|
-
def user_resource(resource_type, path, create):
|
|
531
|
-
""" """
|
|
532
|
-
|
|
533
|
-
...
|