fake-bge-module 20250317__py3-none-any.whl → 20260201__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.
- {animsys_refactor → _animsys_refactor}/__init__.pyi +7 -6
- {bl_console_utils → _bl_console_utils}/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +1 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +1 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +3 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +1 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +2 -0
- _bl_i18n_utils/bl_extract_messages/__init__.pyi +28 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +2 -1
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +10 -7
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +53 -50
- _bl_i18n_utils/utils_cli/__init__.pyi +11 -0
- _bl_i18n_utils/utils_languages_menu/__init__.pyi +6 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +3 -2
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +1 -0
- _bl_previews_utils/bl_previews_render/__init__.pyi +14 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +1 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +3 -2
- {bl_text_utils → _bl_text_utils}/__init__.pyi +1 -0
- _bl_text_utils/external_editor/__init__.pyi +6 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +2 -1
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +5 -1
- _bpy_internal/addons/__init__.pyi +1 -0
- _bpy_internal/addons/cli/__init__.pyi +2 -1
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/extensions/__init__.pyi +1 -0
- _bpy_internal/extensions/junction_module/__init__.pyi +8 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +9 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +6 -5
- {bl_i18n_utils/utils_languages_menu → _bpy_internal/filesystem}/__init__.pyi +2 -2
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/__init__.pyi +1 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +22 -6
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_internal/platform/freedesktop/__init__.pyi +21 -0
- _bpy_internal/system_info/__init__.pyi +1 -0
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +3 -2
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +1 -0
- _bpy_types/__init__.pyi +1635 -0
- {console_python → _console_python}/__init__.pyi +8 -7
- _console_shell/__init__.pyi +10 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +3 -2
- _keyingsets_utils/__init__.pyi +21 -0
- {rna_info → _rna_info}/__init__.pyi +32 -27
- {rna_xml → _rna_xml}/__init__.pyi +7 -6
- addon_utils/__init__.pyi +13 -25
- aud/__init__.pyi +133 -155
- bge/__init__.pyi +1 -0
- bge/app/__init__.pyi +1 -0
- bge/constraints/__init__.pyi +22 -51
- bge/types/__init__.pyi +618 -1913
- bge_extras/__init__.pyi +1 -0
- bge_extras/logger/__init__.pyi +4 -3
- bgui/__init__.pyi +1 -0
- bgui/frame/__init__.pyi +1 -0
- bgui/frame_button/__init__.pyi +1 -0
- bgui/image/__init__.pyi +1 -1
- bgui/image_button/__init__.pyi +1 -0
- bgui/label/__init__.pyi +1 -0
- bgui/list_box/__init__.pyi +1 -1
- bgui/progress_bar/__init__.pyi +2 -1
- bgui/system/__init__.pyi +3 -5
- bgui/text_block/__init__.pyi +1 -0
- bgui/text_input/__init__.pyi +9 -8
- bgui/theme/__init__.pyi +4 -3
- bgui/widget/__init__.pyi +5 -4
- bl_app_override/__init__.pyi +4 -3
- bl_app_override/helpers/__init__.pyi +3 -2
- bl_app_template_utils/__init__.pyi +5 -4
- bl_app_templates_system/Game_Engine/__init__.pyi +5 -4
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +2 -0
- bl_keymap_utils/__init__.pyi +1 -0
- bl_keymap_utils/io/__init__.pyi +10 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +3 -2
- bl_keymap_utils/versioning/__init__.pyi +2 -1
- bl_math/__init__.pyi +4 -13
- bl_operators/__init__.pyi +4 -2
- bl_operators/add_mesh_torus/__init__.pyi +9 -9
- bl_operators/anim/__init__.pyi +90 -62
- bl_operators/assets/__init__.pyi +14 -18
- bl_operators/bmesh/__init__.pyi +1 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +12 -9
- bl_operators/bone_selection_sets/__init__.pyi +34 -60
- bl_operators/clip/__init__.pyi +39 -57
- bl_operators/connect_to_output/__init__.pyi +20 -18
- bl_operators/console/__init__.pyi +17 -25
- bl_operators/constraint/__init__.pyi +15 -21
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +13 -17
- bl_operators/freestyle/__init__.pyi +15 -21
- bl_operators/geometry_nodes/__init__.pyi +30 -36
- bl_operators/grease_pencil/__init__.pyi +5 -5
- bl_operators/image/__init__.pyi +14 -22
- bl_operators/image_as_planes/__init__.pyi +36 -42
- bl_operators/mesh/__init__.pyi +8 -53
- bl_operators/node/__init__.pyi +375 -92
- bl_operators/node_editor/__init__.pyi +1 -0
- bl_operators/node_editor/node_functions/__init__.pyi +10 -9
- bl_operators/object/__init__.pyi +57 -98
- bl_operators/object_align/__init__.pyi +8 -8
- bl_operators/object_quick_effects/__init__.pyi +15 -21
- bl_operators/object_randomize_transform/__init__.pyi +6 -6
- bl_operators/presets/__init__.pyi +46 -94
- bl_operators/rigidbody/__init__.pyi +12 -16
- bl_operators/screen_play_rendered_anim/__init__.pyi +5 -5
- bl_operators/sequencer/__init__.pyi +40 -54
- bl_operators/spreadsheet/__init__.pyi +7 -7
- bl_operators/userpref/__init__.pyi +69 -117
- bl_operators/uvcalc_follow_active/__init__.pyi +8 -8
- bl_operators/uvcalc_lightmap/__init__.pyi +12 -12
- bl_operators/uvcalc_transform/__init__.pyi +39 -28
- bl_operators/vertexpaint_dirt/__init__.pyi +7 -7
- bl_operators/view3d/__init__.pyi +31 -43
- bl_operators/wm/__init__.pyi +139 -231
- bl_operators/world/__init__.pyi +6 -6
- bl_ui/__init__.pyi +18 -17
- bl_ui/anim/__init__.pyi +5 -5
- bl_ui/asset_shelf/__init__.pyi +5 -5
- bl_ui/generic_ui_list/__init__.pyi +11 -25
- bl_ui/node_add_menu/__init__.pyi +281 -12
- bl_ui/node_add_menu_compositor/__init__.pyi +135 -91
- bl_ui/node_add_menu_geometry/__init__.pyi +407 -263
- bl_ui/node_add_menu_shader/__init__.pyi +67 -67
- bl_ui/node_add_menu_texture/__init__.pyi +25 -69
- bl_ui/properties_animviz/__init__.pyi +3 -2
- bl_ui/properties_collection/__init__.pyi +20 -30
- bl_ui/properties_constraint/__init__.pyi +228 -450
- bl_ui/properties_data_armature/__init__.pyi +45 -79
- bl_ui/properties_data_bone/__init__.pyi +33 -51
- bl_ui/properties_data_camera/__init__.pyi +43 -75
- bl_ui/properties_data_curve/__init__.pyi +42 -101
- bl_ui/properties_data_curves/__init__.pyi +21 -35
- bl_ui/properties_data_empty/__init__.pyi +8 -10
- bl_ui/properties_data_grease_pencil/__init__.pyi +49 -87
- bl_ui/properties_data_lattice/__init__.pyi +12 -18
- bl_ui/properties_data_light/__init__.pyi +28 -46
- bl_ui/properties_data_lightprobe/__init__.pyi +35 -61
- bl_ui/properties_data_mesh/__init__.pyi +73 -120
- bl_ui/properties_data_metaball/__init__.pyi +16 -26
- bl_ui/properties_data_modifier/__init__.pyi +34 -39
- bl_ui/properties_data_pointcloud/__init__.pyi +17 -27
- bl_ui/properties_data_shaderfx/__init__.pyi +4 -4
- bl_ui/properties_data_speaker/__init__.pyi +15 -25
- bl_ui/properties_data_volume/__init__.pyi +22 -38
- bl_ui/properties_freestyle/__init__.pyi +79 -127
- bl_ui/properties_game/__init__.pyi +88 -84
- bl_ui/properties_grease_pencil_common/__init__.pyi +33 -190
- bl_ui/properties_mask_common/__init__.pyi +33 -45
- bl_ui/properties_material/__init__.pyi +52 -111
- bl_ui/properties_material_gpencil/__init__.pyi +48 -68
- bl_ui/properties_object/__init__.pyi +123 -93
- bl_ui/properties_output/__init__.pyi +103 -81
- bl_ui/properties_paint_common/__init__.pyi +78 -59
- bl_ui/properties_particle/__init__.pyi +160 -262
- bl_ui/properties_physics_cloth/__init__.pyi +36 -62
- bl_ui/properties_physics_common/__init__.pyi +11 -11
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +81 -123
- bl_ui/properties_physics_field/__init__.pyi +35 -53
- bl_ui/properties_physics_fluid/__init__.pyi +106 -160
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +6 -6
- bl_ui/properties_physics_rigidbody/__init__.pyi +28 -42
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +44 -68
- bl_ui/properties_physics_softbody/__init__.pyi +38 -66
- bl_ui/properties_render/__init__.pyi +267 -259
- bl_ui/properties_scene/__init__.pyi +69 -72
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +69 -122
- bl_ui/properties_view_layer/__init__.pyi +97 -51
- bl_ui/properties_workspace/__init__.pyi +12 -18
- bl_ui/properties_world/__init__.pyi +33 -53
- bl_ui/space_clip/__init__.pyi +231 -311
- bl_ui/space_console/__init__.pyi +14 -24
- bl_ui/space_dopesheet/__init__.pyi +193 -125
- bl_ui/space_filebrowser/__init__.pyi +107 -131
- bl_ui/space_graph/__init__.pyi +93 -80
- bl_ui/space_image/__init__.pyi +207 -291
- bl_ui/space_info/__init__.pyi +14 -24
- bl_ui/space_logic/__init__.pyi +14 -22
- bl_ui/space_nla/__init__.pyi +63 -69
- bl_ui/space_node/__init__.pyi +215 -154
- bl_ui/space_outliner/__init__.pyi +65 -61
- bl_ui/space_properties/__init__.pyi +41 -16
- bl_ui/space_sequencer/__init__.pyi +276 -980
- bl_ui/space_spreadsheet/__init__.pyi +27 -23
- bl_ui/space_statusbar/__init__.pyi +4 -4
- bl_ui/space_text/__init__.pyi +39 -73
- bl_ui/space_time/__init__.pyi +33 -78
- bl_ui/space_toolsystem_common/__init__.pyi +31 -28
- bl_ui/space_toolsystem_toolbar/__init__.pyi +67 -43
- bl_ui/space_topbar/__init__.pyi +68 -111
- bl_ui/space_userpref/__init__.pyi +310 -445
- bl_ui/space_view3d/__init__.pyi +667 -1122
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +237 -966
- bl_ui/utils/__init__.pyi +4 -3
- blend_render_info/__init__.pyi +4 -2
- blf/__init__.pyi +92 -59
- bmesh/__init__.pyi +4 -10
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +442 -815
- bmesh/types/__init__.pyi +377 -720
- bmesh/utils/__init__.pyi +20 -45
- bpy/__init__.pyi +2 -1
- bpy/app/__init__.pyi +96 -90
- bpy/app/handlers/__init__.pyi +24 -19
- bpy/app/icons/__init__.pyi +2 -7
- bpy/app/timers/__init__.pyi +5 -18
- bpy/app/translations/__init__.pyi +21 -35
- bpy/msgbus/__init__.pyi +20 -9
- bpy/ops/__init__.pyi +21 -3
- bpy/ops/action/__init__.pyi +121 -226
- bpy/ops/anim/__init__.pyi +204 -358
- bpy/ops/armature/__init__.pyi +129 -249
- bpy/ops/asset/__init__.pyi +82 -111
- bpy/ops/bge_bricknodes/__init__.pyi +61 -0
- bpy/ops/boid/__init__.pyi +44 -50
- bpy/ops/bricknodes/__init__.pyi +37 -0
- bpy/ops/brush/__init__.pyi +33 -120
- bpy/ops/buttons/__init__.pyi +27 -83
- bpy/ops/cachefile/__init__.pyi +16 -74
- bpy/ops/camera/__init__.pyi +3 -13
- bpy/ops/clip/__init__.pyi +278 -558
- bpy/ops/cloth/__init__.pyi +2 -6
- bpy/ops/collection/__init__.pyi +34 -44
- bpy/ops/console/__init__.pyi +70 -111
- bpy/ops/constraint/__init__.pyi +34 -102
- bpy/ops/curve/__init__.pyi +163 -315
- bpy/ops/curves/__init__.pyi +163 -189
- bpy/ops/cycles/__init__.pyi +8 -18
- bpy/ops/dpaint/__init__.pyi +21 -30
- bpy/ops/ed/__init__.pyi +59 -103
- bpy/ops/export_anim/__init__.pyi +4 -11
- bpy/ops/export_scene/__init__.pyi +29 -174
- bpy/ops/extensions/__init__.pyi +102 -194
- bpy/ops/file/__init__.pyi +166 -272
- bpy/ops/fluid/__init__.pyi +78 -86
- bpy/ops/font/__init__.pyi +73 -164
- bpy/ops/geometry/__init__.pyi +33 -144
- bpy/ops/gizmogroup/__init__.pyi +8 -14
- bpy/ops/gpencil/__init__.pyi +31 -58
- bpy/ops/graph/__init__.pyi +176 -411
- bpy/ops/grease_pencil/__init__.pyi +416 -639
- bpy/ops/image/__init__.pyi +148 -492
- bpy/ops/import_anim/__init__.pyi +5 -18
- bpy/ops/import_curve/__init__.pyi +4 -6
- bpy/ops/import_scene/__init__.pyi +22 -49
- bpy/ops/info/__init__.pyi +27 -43
- bpy/ops/lattice/__init__.pyi +26 -43
- bpy/ops/logic/__init__.pyi +49 -122
- bpy/ops/logic_nodes/__init__.pyi +461 -0
- bpy/ops/marker/__init__.pyi +24 -60
- bpy/ops/mask/__init__.pyi +118 -222
- bpy/ops/material/__init__.pyi +19 -18
- bpy/ops/mball/__init__.pyi +13 -39
- bpy/ops/mesh/__init__.pyi +409 -1264
- bpy/ops/nla/__init__.pyi +140 -232
- bpy/ops/node/__init__.pyi +1189 -807
- bpy/ops/object/__init__.pyi +806 -1659
- bpy/ops/outliner/__init__.pyi +284 -432
- bpy/ops/paint/__init__.pyi +189 -381
- bpy/ops/paintcurve/__init__.pyi +29 -44
- bpy/ops/palette/__init__.pyi +23 -34
- bpy/ops/particle/__init__.pyi +135 -201
- bpy/ops/pointcloud/__init__.pyi +23 -42
- bpy/ops/pose/__init__.pyi +195 -310
- bpy/ops/poselib/__init__.pyi +45 -73
- bpy/ops/preferences/__init__.pyi +89 -221
- bpy/ops/ptcache/__init__.pyi +32 -39
- bpy/ops/render/__init__.pyi +36 -83
- bpy/ops/rigidbody/__init__.pyi +47 -78
- bpy/ops/scene/__init__.pyi +169 -222
- bpy/ops/screen/__init__.pyi +146 -259
- bpy/ops/script/__init__.pyi +9 -15
- bpy/ops/sculpt/__init__.pyi +194 -354
- bpy/ops/sculpt_curves/__init__.pyi +21 -29
- bpy/ops/sequencer/__init__.pyi +586 -836
- bpy/ops/sound/__init__.pyi +25 -131
- bpy/ops/spreadsheet/__init__.pyi +34 -21
- bpy/ops/surface/__init__.pyi +7 -54
- bpy/ops/text/__init__.pyi +166 -281
- bpy/ops/text_editor/__init__.pyi +2 -6
- bpy/ops/texture/__init__.pyi +20 -22
- bpy/ops/transform/__init__.pyi +108 -445
- bpy/ops/ui/__init__.pyi +157 -219
- bpy/ops/uilist/__init__.pyi +4 -16
- bpy/ops/uv/__init__.pyi +291 -347
- bpy/ops/view2d/__init__.pyi +29 -88
- bpy/ops/view3d/__init__.pyi +238 -438
- bpy/ops/wm/__init__.pyi +651 -1510
- bpy/ops/workspace/__init__.pyi +42 -44
- bpy/ops/world/__init__.pyi +12 -13
- bpy/path/__init__.pyi +5 -36
- bpy/props/__init__.pyi +395 -259
- bpy/{_typing → stub_internal}/__init__.pyi +1 -0
- bpy/{_typing → stub_internal}/rna_enums/__init__.pyi +214 -114
- bpy/types/__init__.pyi +93285 -103831
- bpy/utils/__init__.pyi +46 -104
- bpy/utils/previews/__init__.pyi +7 -15
- bpy/utils/units/__init__.pyi +6 -15
- bpy_extras/__init__.pyi +1 -0
- bpy_extras/anim_utils/__init__.pyi +32 -23
- bpy_extras/asset_utils/__init__.pyi +1 -0
- bpy_extras/bmesh_utils/__init__.pyi +2 -2
- bpy_extras/id_map_utils/__init__.pyi +15 -6
- bpy_extras/image_utils/__init__.pyi +3 -11
- bpy_extras/io_utils/__init__.pyi +22 -38
- bpy_extras/keyconfig_utils/__init__.pyi +5 -4
- bpy_extras/mesh_utils/__init__.pyi +3 -14
- bpy_extras/node_shader_utils/__init__.pyi +63 -70
- bpy_extras/node_utils/__init__.pyi +4 -3
- bpy_extras/object_utils/__init__.pyi +6 -19
- bpy_extras/view3d_utils/__init__.pyi +1 -18
- bpy_extras/wm_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +12 -11
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/METADATA +9 -3
- fake_bge_module-20260201.dist-info/RECORD +414 -0
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/WHEEL +1 -1
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/top_level.txt +16 -16
- freestyle/__init__.pyi +1 -0
- freestyle/chainingiterators/__init__.pyi +41 -60
- freestyle/functions/__init__.pyi +56 -194
- freestyle/predicates/__init__.pyi +11 -61
- freestyle/shaders/__init__.pyi +95 -156
- freestyle/types/__init__.pyi +306 -941
- freestyle/utils/ContextFunctions/__init__.pyi +4 -24
- freestyle/utils/__init__.pyi +46 -36
- gpu/__init__.pyi +84 -5
- gpu/capabilities/__init__.pyi +1 -21
- gpu/matrix/__init__.pyi +16 -24
- gpu/platform/__init__.pyi +3 -7
- gpu/select/__init__.pyi +2 -1
- gpu/shader/__init__.pyi +43 -9
- gpu/state/__init__.pyi +66 -44
- gpu/texture/__init__.pyi +4 -5
- gpu/types/__init__.pyi +216 -216
- gpu_extras/__init__.pyi +1 -0
- gpu_extras/batch/__init__.pyi +2 -5
- gpu_extras/presets/__init__.pyi +9 -10
- idprop/__init__.pyi +17 -0
- idprop/types/__init__.pyi +18 -17
- imbuf/__init__.pyi +13 -9
- imbuf/types/__init__.pyi +10 -23
- keyingsets_builtins/__init__.pyi +51 -93
- mathutils/__init__.pyi +296 -2255
- mathutils/bvhtree/__init__.pyi +22 -29
- mathutils/geometry/__init__.pyi +83 -132
- mathutils/interpolate/__init__.pyi +7 -5
- mathutils/kdtree/__init__.pyi +5 -14
- mathutils/noise/__init__.pyi +62 -106
- nodeitems_builtins/__init__.pyi +5 -4
- nodeitems_utils/__init__.pyi +10 -9
- rna_keymap_ui/__init__.pyi +7 -6
- rna_prop_ui/__init__.pyi +14 -13
- _bpy_internal/freedesktop/__init__.pyi +0 -20
- bgl/__init__.pyi +0 -4235
- bl_i18n_utils/bl_extract_messages/__init__.pyi +0 -24
- bl_i18n_utils/utils_cli/__init__.pyi +0 -10
- bl_previews_utils/bl_previews_render/__init__.pyi +0 -11
- bl_text_utils/external_editor/__init__.pyi +0 -5
- bpy_types/__init__.pyi +0 -29
- console_shell/__init__.pyi +0 -9
- fake_bge_module-20250317.dist-info/RECORD +0 -395
- keyingsets_utils/__init__.pyi +0 -18
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
bpy/utils/__init__.pyi
CHANGED
|
@@ -13,54 +13,46 @@ bpy.utils.units.rst
|
|
|
13
13
|
import typing
|
|
14
14
|
import collections.abc
|
|
15
15
|
import typing_extensions
|
|
16
|
+
import numpy.typing as npt
|
|
16
17
|
import bpy.types
|
|
17
18
|
|
|
18
19
|
from . import previews as previews
|
|
19
20
|
from . import units as units
|
|
20
21
|
|
|
21
|
-
def app_template_paths(*, path: str | None = None):
|
|
22
|
+
def app_template_paths(*, path: str | None = None) -> None:
|
|
22
23
|
"""Returns valid application template paths.
|
|
23
24
|
|
|
24
25
|
:param path: Optional subdir.
|
|
25
|
-
:type path: str | None
|
|
26
26
|
:return: App template paths.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
def blend_paths(
|
|
30
|
-
absolute: bool = False, packed: bool = False, local: bool = False
|
|
30
|
+
*, absolute: bool = False, packed: bool = False, local: bool = False
|
|
31
31
|
) -> list[str]:
|
|
32
32
|
"""Returns a list of paths to external files referenced by the loaded .blend file.
|
|
33
33
|
|
|
34
34
|
:param absolute: When true the paths returned are made absolute.
|
|
35
|
-
:
|
|
36
|
-
:param packed: When true skip file paths for packed data.
|
|
37
|
-
:type packed: bool
|
|
35
|
+
:param packed: When true include file paths for packed data.
|
|
38
36
|
:param local: When true skip linked library paths.
|
|
39
|
-
:type local: bool
|
|
40
37
|
:return: path list.
|
|
41
|
-
:rtype: list[str]
|
|
42
38
|
"""
|
|
43
39
|
|
|
44
40
|
def escape_identifier(string: str) -> str:
|
|
45
41
|
"""Simple string escaping function used for animation paths.
|
|
46
42
|
|
|
47
43
|
:param string: text
|
|
48
|
-
:type string: str
|
|
49
44
|
:return: The escaped string.
|
|
50
|
-
:rtype: str
|
|
51
45
|
"""
|
|
52
46
|
|
|
53
|
-
def execfile(filepath: str, *, mod: None | None = None):
|
|
47
|
+
def execfile(filepath: str, *, mod: None | None = None) -> None:
|
|
54
48
|
"""Execute a file path as a Python script.
|
|
55
49
|
|
|
56
50
|
:param filepath: Path of the script to execute.
|
|
57
|
-
:type filepath: str
|
|
58
51
|
:param mod: Optional cached module, the result of a previous execution.
|
|
59
|
-
:type mod: None | None
|
|
60
52
|
:return: The module which can be passed back in as mod.
|
|
61
53
|
"""
|
|
62
54
|
|
|
63
|
-
def expose_bundled_modules():
|
|
55
|
+
def expose_bundled_modules() -> None:
|
|
64
56
|
"""For Blender as a Python module, add bundled VFX library python bindings
|
|
65
57
|
to sys.path. These may be used instead of dedicated packages, to ensure
|
|
66
58
|
the libraries are compatible with Blender.
|
|
@@ -71,69 +63,54 @@ def extension_path_user(package: str, *, path: str = "", create: bool = False) -
|
|
|
71
63
|
"""Return a user writable directory associated with an extension.
|
|
72
64
|
|
|
73
65
|
:param package: The __package__ of the extension.
|
|
74
|
-
:type package: str
|
|
75
66
|
:param path: Optional subdirectory.
|
|
76
|
-
:type path: str
|
|
77
67
|
:param create: Treat the path as a directory and create it if its not existing.
|
|
78
|
-
:type create: bool
|
|
79
68
|
:return: a path.
|
|
80
|
-
:rtype: str
|
|
81
69
|
"""
|
|
82
70
|
|
|
83
|
-
def flip_name(name: str, strip_digits: bool = False) -> str:
|
|
71
|
+
def flip_name(name: str, *, strip_digits: bool = False) -> str:
|
|
84
72
|
"""Flip a name between left/right sides, useful for
|
|
85
73
|
mirroring bone names.
|
|
86
74
|
|
|
87
75
|
:param name: Bone name to flip.
|
|
88
|
-
:type name: str
|
|
89
76
|
:param strip_digits: Whether to remove .### suffix.
|
|
90
|
-
:type strip_digits: bool
|
|
91
77
|
:return: The flipped name.
|
|
92
|
-
:rtype: str
|
|
93
78
|
"""
|
|
94
79
|
|
|
95
80
|
def is_path_builtin(path: str) -> bool:
|
|
96
81
|
"""Returns True if the path is one of the built-in paths used by Blender.
|
|
97
82
|
|
|
98
83
|
:param path: Path you want to check if it is in the built-in settings directory
|
|
99
|
-
:type path: str
|
|
100
|
-
:rtype: bool
|
|
101
84
|
"""
|
|
102
85
|
|
|
103
86
|
def is_path_extension(path: str) -> bool:
|
|
104
87
|
"""Returns True if the path is from an extensions repository.
|
|
105
88
|
|
|
106
89
|
:param path: Path to check if it is within an extension repository.
|
|
107
|
-
:type path: str
|
|
108
|
-
:rtype: bool
|
|
109
90
|
"""
|
|
110
91
|
|
|
111
|
-
def keyconfig_init(): ...
|
|
112
|
-
def keyconfig_set(filepath, *, report=None): ...
|
|
92
|
+
def keyconfig_init() -> None: ...
|
|
93
|
+
def keyconfig_set(filepath, *, report=None) -> None: ...
|
|
113
94
|
def load_scripts(
|
|
114
95
|
*,
|
|
115
96
|
reload_scripts: bool = False,
|
|
116
97
|
refresh_scripts: bool = False,
|
|
117
98
|
extensions: bool = True,
|
|
118
|
-
):
|
|
99
|
+
) -> None:
|
|
119
100
|
"""Load scripts and run each modules register function.
|
|
120
101
|
|
|
121
102
|
:param reload_scripts: Causes all scripts to have their unregister method
|
|
122
103
|
called before loading.
|
|
123
|
-
:type reload_scripts: bool
|
|
124
104
|
:param refresh_scripts: only load scripts which are not already loaded
|
|
125
105
|
as modules.
|
|
126
|
-
:type refresh_scripts: bool
|
|
127
106
|
:param extensions: Loads additional scripts (add-ons & app-templates).
|
|
128
|
-
:type extensions: bool
|
|
129
107
|
"""
|
|
130
108
|
|
|
131
|
-
def load_scripts_extensions(*, reload_scripts: bool = False):
|
|
109
|
+
def load_scripts_extensions(*, reload_scripts: bool = False) -> None:
|
|
132
110
|
"""Load extensions scripts (add-ons and app-templates)
|
|
133
111
|
|
|
134
112
|
:param reload_scripts: Causes all scripts to have their unregister method
|
|
135
113
|
called before loading.
|
|
136
|
-
:type reload_scripts: bool
|
|
137
114
|
"""
|
|
138
115
|
|
|
139
116
|
def make_rna_paths(
|
|
@@ -142,15 +119,11 @@ def make_rna_paths(
|
|
|
142
119
|
"""Create RNA "paths" from given names.
|
|
143
120
|
|
|
144
121
|
:param struct_name: Name of a RNA struct (like e.g. "Scene").
|
|
145
|
-
:
|
|
146
|
-
:param prop_name: Name of a RNA struct's property.
|
|
147
|
-
:type prop_name: str
|
|
122
|
+
:param prop_name: Name of a RNA structs property.
|
|
148
123
|
:param enum_name: Name of a RNA enum identifier.
|
|
149
|
-
:type enum_name: str
|
|
150
124
|
:return: A triple of three "RNA paths"
|
|
151
|
-
(most_complete_path, "struct.prop", "struct.prop:
|
|
125
|
+
(most_complete_path, "struct.prop", "struct.prop:enum").
|
|
152
126
|
If no enum_name is given, the third element will always be void.
|
|
153
|
-
:rtype: tuple[str, str, str]
|
|
154
127
|
"""
|
|
155
128
|
|
|
156
129
|
def manual_language_code(default="en") -> str:
|
|
@@ -158,32 +131,27 @@ def manual_language_code(default="en") -> str:
|
|
|
158
131
|
|
|
159
132
|
:return: The language code used for user manual URL component based on the current language user-preference,
|
|
160
133
|
falling back to the default when unavailable.
|
|
161
|
-
:rtype: str
|
|
162
134
|
"""
|
|
163
135
|
|
|
164
|
-
def manual_map(): ...
|
|
165
|
-
def modules_from_path(path: str, loaded_modules) -> list:
|
|
136
|
+
def manual_map() -> None: ...
|
|
137
|
+
def modules_from_path(path: str, loaded_modules: set) -> list:
|
|
166
138
|
"""Load all modules in a path and return them as a list.
|
|
167
139
|
|
|
168
140
|
:param path: this path is scanned for scripts and packages.
|
|
169
|
-
:type path: str
|
|
170
141
|
:param loaded_modules: already loaded module names, files matching these
|
|
171
142
|
names will be ignored.
|
|
172
143
|
:return: all loaded modules.
|
|
173
|
-
:rtype: list
|
|
174
144
|
"""
|
|
175
145
|
|
|
176
|
-
def preset_find(name, preset_path, *, display_name=False, ext=".py"): ...
|
|
146
|
+
def preset_find(name, preset_path, *, display_name=False, ext=".py") -> None: ...
|
|
177
147
|
def preset_paths(subdir: str) -> list[str]:
|
|
178
148
|
"""Returns a list of paths for a specific preset.
|
|
179
149
|
|
|
180
150
|
:param subdir: preset subdirectory (must not be an absolute path).
|
|
181
|
-
:type subdir: str
|
|
182
151
|
:return: Script paths.
|
|
183
|
-
:rtype: list[str]
|
|
184
152
|
"""
|
|
185
153
|
|
|
186
|
-
def refresh_script_paths():
|
|
154
|
+
def refresh_script_paths() -> None:
|
|
187
155
|
"""Run this after creating new script paths to update sys.path"""
|
|
188
156
|
|
|
189
157
|
def register_class(
|
|
@@ -199,21 +167,27 @@ def register_class(
|
|
|
199
167
|
| bpy.types.FileHandler
|
|
200
168
|
| bpy.types.PropertyGroup
|
|
201
169
|
| bpy.types.AddonPreferences
|
|
170
|
+
| bpy.types.NodeTree
|
|
171
|
+
| bpy.types.Node
|
|
172
|
+
| bpy.types.NodeSocket
|
|
202
173
|
],
|
|
203
|
-
):
|
|
174
|
+
) -> None:
|
|
204
175
|
"""Register a subclass of a Blender type class.
|
|
205
176
|
|
|
206
177
|
:param cls: Registerable Blender class type.
|
|
207
|
-
:type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences]
|
|
208
178
|
"""
|
|
209
179
|
|
|
210
|
-
def register_classes_factory(
|
|
180
|
+
def register_classes_factory(
|
|
181
|
+
classes: collections.abc.Sequence[typing.Any],
|
|
182
|
+
) -> tuple[collections.abc.Callable[None], collections.abc.Callable[None]]:
|
|
211
183
|
"""Utility function to create register and unregister functions
|
|
212
184
|
which simply registers and unregisters a sequence of classes.
|
|
213
185
|
|
|
186
|
+
:param classes: Sequence of classes to register and unregister.
|
|
187
|
+
:return: register and unregister functions.
|
|
214
188
|
"""
|
|
215
189
|
|
|
216
|
-
def register_cli_command(id: str, execute: collections.abc.Callable):
|
|
190
|
+
def register_cli_command(id: str, execute: collections.abc.Callable) -> None:
|
|
217
191
|
"""Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
|
|
218
192
|
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
|
|
219
193
|
generates a --help message for your command.
|
|
@@ -221,15 +195,15 @@ def register_cli_command(id: str, execute: collections.abc.Callable):
|
|
|
221
195
|
:param id: The command identifier (must pass an str.isidentifier check).
|
|
222
196
|
|
|
223
197
|
If the id is already registered, a warning is printed and the command is inaccessible to prevent accidents invoking the wrong command.
|
|
224
|
-
:type id: str
|
|
225
198
|
:param execute: Callback, taking a single list of strings and returns an int.
|
|
226
199
|
The arguments are built from all command-line arguments following the command id.
|
|
227
200
|
The return value should be 0 for success, 1 on failure (specific error codes from the os module can also be used).
|
|
228
|
-
:type execute: collections.abc.Callable
|
|
229
201
|
:return: The command handle which can be passed to `unregister_cli_command`.
|
|
202
|
+
|
|
203
|
+
This uses Pythons capsule type however the result should be considered an opaque handle only used for unregistering.
|
|
230
204
|
"""
|
|
231
205
|
|
|
232
|
-
def register_manual_map(manual_hook): ...
|
|
206
|
+
def register_manual_map(manual_hook) -> None: ...
|
|
233
207
|
def register_preset_path(path: str) -> bool:
|
|
234
208
|
"""Register a preset search path.
|
|
235
209
|
|
|
@@ -241,9 +215,7 @@ def register_preset_path(path: str) -> bool:
|
|
|
241
215
|
When the __init__.py is in the same location as a presets directory.
|
|
242
216
|
For example an operators preset would be located under: presets/operator/{operator.id}/
|
|
243
217
|
where operator.id is the bl_idname of the operator.
|
|
244
|
-
:type path: str
|
|
245
218
|
:return: success
|
|
246
|
-
:rtype: bool
|
|
247
219
|
"""
|
|
248
220
|
|
|
249
221
|
def register_submodule_factory(
|
|
@@ -254,48 +226,37 @@ def register_submodule_factory(
|
|
|
254
226
|
calling their register & unregister functions.
|
|
255
227
|
|
|
256
228
|
:param module_name: The module name, typically __name__.
|
|
257
|
-
:type module_name: str
|
|
258
229
|
:param submodule_names: List of submodule names to load and unload.
|
|
259
|
-
:type submodule_names: list[str]
|
|
260
230
|
:return: register and unregister functions.
|
|
261
|
-
:rtype: tuple[collections.abc.Callable[None], collections.abc.Callable[None]]
|
|
262
231
|
"""
|
|
263
232
|
|
|
264
233
|
def register_tool(
|
|
265
234
|
tool_cls: type[bpy.types.WorkSpaceTool],
|
|
266
235
|
*,
|
|
267
|
-
after: None | collections.abc.Sequence[str] | None = None,
|
|
236
|
+
after: None | collections.abc.Sequence[str] | set[str] | None = None,
|
|
268
237
|
separator: bool = False,
|
|
269
238
|
group: bool = False,
|
|
270
|
-
):
|
|
239
|
+
) -> None:
|
|
271
240
|
"""Register a tool in the toolbar.
|
|
272
241
|
|
|
273
242
|
:param tool_cls: A tool subclass.
|
|
274
|
-
:type tool_cls: type[bpy.types.WorkSpaceTool]
|
|
275
243
|
:param after: Optional identifiers this tool will be added after.
|
|
276
|
-
:type after: None | collections.abc.Sequence[str] | None
|
|
277
244
|
:param separator: When true, add a separator before this tool.
|
|
278
|
-
:type separator: bool
|
|
279
245
|
:param group: When true, add a new nested group of tools.
|
|
280
|
-
:type group: bool
|
|
281
246
|
"""
|
|
282
247
|
|
|
283
248
|
def resource_path(
|
|
284
|
-
type: str, major: int = bpy.app.version[0], minor:
|
|
249
|
+
type: str, *, major: int = bpy.app.version[0], minor: int = bpy.app.version[1]
|
|
285
250
|
) -> str:
|
|
286
251
|
"""Return the base path for storing system files.
|
|
287
252
|
|
|
288
|
-
:param type: string in [
|
|
289
|
-
:type type: str
|
|
253
|
+
:param type: string in [USER, LOCAL, SYSTEM].
|
|
290
254
|
:param major: major version, defaults to current.
|
|
291
|
-
:type major: int
|
|
292
255
|
:param minor: minor version, defaults to current.
|
|
293
|
-
:type minor: str
|
|
294
256
|
:return: the resource path (not necessarily existing).
|
|
295
|
-
:rtype: str
|
|
296
257
|
"""
|
|
297
258
|
|
|
298
|
-
def script_path_user():
|
|
259
|
+
def script_path_user() -> None:
|
|
299
260
|
"""returns the env var and falls back to home dir or None"""
|
|
300
261
|
|
|
301
262
|
def script_paths(
|
|
@@ -309,23 +270,17 @@ def script_paths(
|
|
|
309
270
|
"""Returns a list of valid script paths.
|
|
310
271
|
|
|
311
272
|
:param subdir: Optional subdir.
|
|
312
|
-
:type subdir: str | None
|
|
313
273
|
:param user_pref: Include the user preference script paths.
|
|
314
|
-
:type user_pref: bool
|
|
315
274
|
:param check_all: Include local, user and system paths rather just the paths Blender uses.
|
|
316
|
-
:type check_all: bool
|
|
317
275
|
:param use_user: Include user paths
|
|
318
|
-
:type use_user: bool
|
|
319
276
|
:param use_system_environment: Include BLENDER_SYSTEM_SCRIPTS variable path
|
|
320
|
-
:type use_system_environment: bool
|
|
321
277
|
:return: script paths.
|
|
322
|
-
:rtype: list[str]
|
|
323
278
|
"""
|
|
324
279
|
|
|
325
|
-
def script_paths_pref():
|
|
280
|
+
def script_paths_pref() -> None:
|
|
326
281
|
"""Returns a list of user preference script directories."""
|
|
327
282
|
|
|
328
|
-
def script_paths_system_environment():
|
|
283
|
+
def script_paths_system_environment() -> None:
|
|
329
284
|
"""Returns a list of system script directories from environment variables."""
|
|
330
285
|
|
|
331
286
|
def smpte_from_frame(frame: float, *, fps=None, fps_base=None) -> str:
|
|
@@ -333,9 +288,7 @@ def smpte_from_frame(frame: float, *, fps=None, fps_base=None) -> str:
|
|
|
333
288
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
334
289
|
|
|
335
290
|
:param frame: frame number.
|
|
336
|
-
:type frame: float
|
|
337
291
|
:return: the frame string.
|
|
338
|
-
:rtype: str
|
|
339
292
|
"""
|
|
340
293
|
|
|
341
294
|
def smpte_from_seconds(time: float, *, fps=None, fps_base=None) -> str:
|
|
@@ -343,16 +296,13 @@ def smpte_from_seconds(time: float, *, fps=None, fps_base=None) -> str:
|
|
|
343
296
|
HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
|
|
344
297
|
|
|
345
298
|
:param time: time in seconds.
|
|
346
|
-
:type time: float
|
|
347
299
|
:return: the frame string.
|
|
348
|
-
:rtype: str
|
|
349
300
|
"""
|
|
350
301
|
|
|
351
|
-
def time_from_frame(frame: float, *, fps=None, fps_base=None):
|
|
302
|
+
def time_from_frame(frame: float, *, fps=None, fps_base=None) -> None:
|
|
352
303
|
"""Returns the time from a frame number .If fps and fps_base are not given the current scene is used.
|
|
353
304
|
|
|
354
305
|
:param frame: number.
|
|
355
|
-
:type frame: float
|
|
356
306
|
:return: the time in seconds.
|
|
357
307
|
"""
|
|
358
308
|
|
|
@@ -361,9 +311,7 @@ def time_to_frame(time: float, *, fps=None, fps_base=None) -> float:
|
|
|
361
311
|
as a datetime.timedelta object.If fps and fps_base are not given the current scene is used.
|
|
362
312
|
|
|
363
313
|
:param time: time in seconds.
|
|
364
|
-
:type time: float
|
|
365
314
|
:return: The frame.
|
|
366
|
-
:rtype: float
|
|
367
315
|
"""
|
|
368
316
|
|
|
369
317
|
def unescape_identifier(string: str) -> str:
|
|
@@ -371,9 +319,7 @@ def unescape_identifier(string: str) -> str:
|
|
|
371
319
|
This performs the reverse of `escape_identifier`.
|
|
372
320
|
|
|
373
321
|
:param string: text
|
|
374
|
-
:type string: str
|
|
375
322
|
:return: The un-escaped string.
|
|
376
|
-
:rtype: str
|
|
377
323
|
"""
|
|
378
324
|
|
|
379
325
|
def unregister_class(
|
|
@@ -389,44 +335,40 @@ def unregister_class(
|
|
|
389
335
|
| bpy.types.FileHandler
|
|
390
336
|
| bpy.types.PropertyGroup
|
|
391
337
|
| bpy.types.AddonPreferences
|
|
338
|
+
| bpy.types.NodeTree
|
|
339
|
+
| bpy.types.Node
|
|
340
|
+
| bpy.types.NodeSocket
|
|
392
341
|
],
|
|
393
|
-
):
|
|
342
|
+
) -> None:
|
|
394
343
|
"""Unload the Python class from blender.
|
|
395
344
|
|
|
396
345
|
:param cls: Blender type class,
|
|
397
346
|
see `bpy.utils.register_class` for classes which can
|
|
398
347
|
be registered.
|
|
399
|
-
:type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences]
|
|
400
348
|
"""
|
|
401
349
|
|
|
402
|
-
def unregister_cli_command(handle):
|
|
350
|
+
def unregister_cli_command(handle) -> None:
|
|
403
351
|
"""Unregister a CLI command.
|
|
404
352
|
|
|
405
353
|
:param handle: The return value of `register_cli_command`.
|
|
406
354
|
"""
|
|
407
355
|
|
|
408
|
-
def unregister_manual_map(manual_hook): ...
|
|
356
|
+
def unregister_manual_map(manual_hook) -> None: ...
|
|
409
357
|
def unregister_preset_path(path: str) -> bool:
|
|
410
358
|
"""Unregister a preset search path.
|
|
411
359
|
|
|
412
360
|
:param path: preset directory (must be an absolute path).
|
|
413
361
|
|
|
414
362
|
This must match the registered path exactly.
|
|
415
|
-
:type path: str
|
|
416
363
|
:return: success
|
|
417
|
-
:rtype: bool
|
|
418
364
|
"""
|
|
419
365
|
|
|
420
|
-
def unregister_tool(tool_cls): ...
|
|
366
|
+
def unregister_tool(tool_cls) -> None: ...
|
|
421
367
|
def user_resource(resource_type: str, *, path: str = "", create: bool = False) -> str:
|
|
422
368
|
"""Return a user resource path (normally from the users home directory).
|
|
423
369
|
|
|
424
|
-
:param resource_type: Resource type in [
|
|
425
|
-
:type resource_type: str
|
|
370
|
+
:param resource_type: Resource type in [DATAFILES, CONFIG, SCRIPTS, EXTENSIONS].
|
|
426
371
|
:param path: Optional subdirectory.
|
|
427
|
-
:type path: str
|
|
428
372
|
:param create: Treat the path as a directory and create it if its not existing.
|
|
429
|
-
:type create: bool
|
|
430
373
|
:return: a path.
|
|
431
|
-
:rtype: str
|
|
432
374
|
"""
|
bpy/utils/previews/__init__.pyi
CHANGED
|
@@ -16,17 +16,18 @@ This allows scripts to generate their own previews, and use them as icons in UI
|
|
|
16
16
|
import typing
|
|
17
17
|
import collections.abc
|
|
18
18
|
import typing_extensions
|
|
19
|
+
import numpy.typing as npt
|
|
19
20
|
import bpy.types
|
|
20
21
|
|
|
21
|
-
class ImagePreviewCollection:
|
|
22
|
-
"""Dictionary-like class of previews.This is a subclass of
|
|
22
|
+
class ImagePreviewCollection(dict[str, bpy.types.ImagePreview]):
|
|
23
|
+
"""Dictionary-like class of previews.This is a subclass of Pythons built-in dict type,
|
|
23
24
|
used to store multiple image previews.
|
|
24
25
|
"""
|
|
25
26
|
|
|
26
|
-
def clear(self):
|
|
27
|
+
def clear(self) -> None:
|
|
27
28
|
"""Clear all previews."""
|
|
28
29
|
|
|
29
|
-
def close(self):
|
|
30
|
+
def close(self) -> None:
|
|
30
31
|
"""Close the collection and clear all previews."""
|
|
31
32
|
|
|
32
33
|
def load(
|
|
@@ -39,36 +40,27 @@ class ImagePreviewCollection:
|
|
|
39
40
|
"""Generate a new preview from given file path.
|
|
40
41
|
|
|
41
42
|
:param name: The name (unique id) identifying the preview.
|
|
42
|
-
:type name: str | None
|
|
43
43
|
:param filepath: The file path to generate the preview from.
|
|
44
|
-
:
|
|
45
|
-
:param filetype: The type of file, needed to generate the preview in ['IMAGE', 'MOVIE', 'BLEND', 'FONT'].
|
|
46
|
-
:type filetype: str | None
|
|
44
|
+
:param filetype: The type of file, needed to generate the preview in [IMAGE, MOVIE, BLEND, FONT, OBJECT_IO].
|
|
47
45
|
:param force_reload: If True, force running thumbnail manager even if preview already exists in cache.
|
|
48
|
-
:type force_reload: bool | None
|
|
49
46
|
:return: The Preview matching given name, or a new empty one.
|
|
50
|
-
:rtype: bpy.types.ImagePreview
|
|
51
47
|
"""
|
|
52
48
|
|
|
53
49
|
def new(self, name: str | None) -> bpy.types.ImagePreview:
|
|
54
50
|
"""Generate a new empty preview.
|
|
55
51
|
|
|
56
52
|
:param name: The name (unique id) identifying the preview.
|
|
57
|
-
:type name: str | None
|
|
58
53
|
:return: The Preview matching given name, or a new empty one.
|
|
59
|
-
:rtype: bpy.types.ImagePreview
|
|
60
54
|
"""
|
|
61
55
|
|
|
62
56
|
def new() -> ImagePreviewCollection:
|
|
63
57
|
"""
|
|
64
58
|
|
|
65
59
|
:return: a new preview collection.
|
|
66
|
-
:rtype: ImagePreviewCollection
|
|
67
60
|
"""
|
|
68
61
|
|
|
69
|
-
def remove(pcoll: ImagePreviewCollection | None):
|
|
62
|
+
def remove(pcoll: ImagePreviewCollection | None) -> None:
|
|
70
63
|
"""Remove the specified previews collection.
|
|
71
64
|
|
|
72
65
|
:param pcoll: Preview collection to close.
|
|
73
|
-
:type pcoll: ImagePreviewCollection | None
|
|
74
66
|
"""
|
bpy/utils/units/__init__.pyi
CHANGED
|
@@ -6,11 +6,13 @@ This module contains some data/methods regarding units handling.
|
|
|
6
6
|
import typing
|
|
7
7
|
import collections.abc
|
|
8
8
|
import typing_extensions
|
|
9
|
+
import numpy.typing as npt
|
|
9
10
|
|
|
10
11
|
def to_string(
|
|
11
12
|
unit_system: str | None,
|
|
12
13
|
unit_category: str | None,
|
|
13
14
|
value: float | None,
|
|
15
|
+
*,
|
|
14
16
|
precision: int | None = 3,
|
|
15
17
|
split_unit: bool | None = False,
|
|
16
18
|
compatible_unit: bool | None = False,
|
|
@@ -18,47 +20,36 @@ def to_string(
|
|
|
18
20
|
"""Convert a given input float value into a string with units.
|
|
19
21
|
|
|
20
22
|
:param unit_system: The unit system, from `bpy.utils.units.systems`.
|
|
21
|
-
:type unit_system: str | None
|
|
22
23
|
:param unit_category: The category of data we are converting (length, area, rotation, etc.),
|
|
23
24
|
from `bpy.utils.units.categories`.
|
|
24
|
-
:type unit_category: str | None
|
|
25
25
|
:param value: The value to convert to a string.
|
|
26
|
-
:type value: float | None
|
|
27
26
|
:param precision: Number of digits after the comma.
|
|
28
|
-
:type precision: int | None
|
|
29
27
|
:param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
|
|
30
|
-
:
|
|
31
|
-
:param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
|
|
32
|
-
:type compatible_unit: bool | None
|
|
28
|
+
:param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer UTF8 ones (1m).
|
|
33
29
|
:return: The converted string.
|
|
34
|
-
:rtype: str
|
|
35
30
|
"""
|
|
36
31
|
|
|
37
32
|
def to_value(
|
|
38
33
|
unit_system: str | None,
|
|
39
34
|
unit_category: str | None,
|
|
40
35
|
str_input: str | None,
|
|
36
|
+
*,
|
|
41
37
|
str_ref_unit: None | str | None = None,
|
|
42
38
|
) -> float:
|
|
43
39
|
"""Convert a given input string into a float value.
|
|
44
40
|
|
|
45
41
|
:param unit_system: The unit system, from `bpy.utils.units.systems`.
|
|
46
|
-
:type unit_system: str | None
|
|
47
42
|
:param unit_category: The category of data we are converting (length, area, rotation, etc.),
|
|
48
43
|
from `bpy.utils.units.categories`.
|
|
49
|
-
:type unit_category: str | None
|
|
50
44
|
:param str_input: The string to convert to a float value.
|
|
51
|
-
:type str_input: str | None
|
|
52
45
|
:param str_ref_unit: A reference string from which to extract a default unit, if none is found in str_input.
|
|
53
|
-
:type str_ref_unit: None | str | None
|
|
54
46
|
:return: The converted/interpreted value.
|
|
55
|
-
:rtype: float
|
|
56
47
|
"""
|
|
57
48
|
|
|
58
49
|
categories: typing.Any
|
|
59
|
-
""" Constant value bpy.utils.units.categories(NONE=
|
|
50
|
+
""" Constant value bpy.utils.units.categories(NONE=NONE, LENGTH=LENGTH, AREA=AREA, VOLUME=VOLUME, MASS=MASS, ROTATION=ROTATION, TIME=TIME, TIME_ABSOLUTE=TIME_ABSOLUTE, VELOCITY=VELOCITY, ACCELERATION=ACCELERATION, CAMERA=CAMERA, POWER=POWER, TEMPERATURE=TEMPERATURE, WAVELENGTH=WAVELENGTH, COLOR_TEMPERATURE=COLOR_TEMPERATURE, FREQUENCY=FREQUENCY)
|
|
60
51
|
"""
|
|
61
52
|
|
|
62
53
|
systems: typing.Any
|
|
63
|
-
""" Constant value bpy.utils.units.systems(NONE=
|
|
54
|
+
""" Constant value bpy.utils.units.systems(NONE=NONE, METRIC=METRIC, IMPERIAL=IMPERIAL)
|
|
64
55
|
"""
|
bpy_extras/__init__.pyi
CHANGED