fake-bge-module 20250312__py3-none-any.whl → 20260203__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 +12 -26
- 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 -979
- 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 +6 -37
- 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 +93286 -103826
- 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-20250312.dist-info → fake_bge_module-20260203.dist-info}/METADATA +9 -3
- fake_bge_module-20260203.dist-info/RECORD +414 -0
- {fake_bge_module-20250312.dist-info → fake_bge_module-20260203.dist-info}/WHEEL +1 -1
- {fake_bge_module-20250312.dist-info → fake_bge_module-20260203.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 +24 -30
- 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-20250312.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/app/handlers/__init__.pyi
CHANGED
|
@@ -42,60 +42,65 @@ Below is an example of a mesh that is altered from a handler:
|
|
|
42
42
|
import typing
|
|
43
43
|
import collections.abc
|
|
44
44
|
import typing_extensions
|
|
45
|
+
import numpy.typing as npt
|
|
45
46
|
import bpy.types
|
|
46
47
|
|
|
47
48
|
animation_playback_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
48
|
-
""" on ending animation playback
|
|
49
|
+
""" on ending animation playback. Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
52
|
animation_playback_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
52
|
-
""" on starting animation playback
|
|
53
|
+
""" on starting animation playback. Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
53
54
|
"""
|
|
54
55
|
|
|
55
56
|
annotation_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
56
|
-
""" on drawing an annotation (after)
|
|
57
|
+
""" on drawing an annotation (after). Accepts two arguments: the annotation data-block and dependency graph
|
|
57
58
|
"""
|
|
58
59
|
|
|
59
60
|
annotation_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
60
|
-
""" on drawing an annotation (before)
|
|
61
|
+
""" on drawing an annotation (before). Accepts two arguments: the annotation data-block and dependency graph
|
|
61
62
|
"""
|
|
62
63
|
|
|
63
64
|
blend_import_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
64
|
-
""" on linking or appending data (after)
|
|
65
|
+
""" on linking or appending data (after). Accepts one argument: a BlendImportContext
|
|
65
66
|
"""
|
|
66
67
|
|
|
67
68
|
blend_import_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
68
|
-
""" on linking or appending data (before)
|
|
69
|
+
""" on linking or appending data (before). Accepts one argument: a BlendImportContext
|
|
69
70
|
"""
|
|
70
71
|
|
|
71
72
|
composite_cancel: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
72
|
-
""" on a compositing background job (cancel)
|
|
73
|
+
""" on a compositing background job (cancel). Accepts one argument: the scene data-block
|
|
73
74
|
"""
|
|
74
75
|
|
|
75
76
|
composite_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
76
|
-
""" on a compositing background job (after)
|
|
77
|
+
""" on a compositing background job (after). Accepts one argument: the scene data-block
|
|
77
78
|
"""
|
|
78
79
|
|
|
79
80
|
composite_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
80
|
-
""" on a compositing background job (before)
|
|
81
|
+
""" on a compositing background job (before). Accepts one argument: the scene data-block
|
|
81
82
|
"""
|
|
82
83
|
|
|
83
84
|
depsgraph_update_post: list[
|
|
84
85
|
collections.abc.Callable[[bpy.types.Scene, bpy.types.Depsgraph], None]
|
|
85
86
|
]
|
|
86
|
-
""" on depsgraph update (post)
|
|
87
|
+
""" on depsgraph update (post). Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
87
88
|
"""
|
|
88
89
|
|
|
89
90
|
depsgraph_update_pre: list[collections.abc.Callable[[bpy.types.Scene, None], None]]
|
|
90
|
-
""" on depsgraph update (pre)
|
|
91
|
+
""" on depsgraph update (pre). Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
exit_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
95
|
+
""" just before Blender shuts down, while all data is still valid. Accepts one boolean argument. True indicates either that a user has been using Blender and exited, or that Blender is exiting in a circumstance that should be treated as if that were the case. False indicates that Blender is running in background mode, or is exiting due to failed command line arguments, etc.
|
|
91
96
|
"""
|
|
92
97
|
|
|
93
98
|
frame_change_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
94
|
-
""" Called after frame change for playback and rendering, after the data has been evaluated for the new frame.
|
|
99
|
+
""" Called after frame change for playback and rendering, after the data has been evaluated for the new frame. Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
95
100
|
"""
|
|
96
101
|
|
|
97
102
|
frame_change_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
98
|
-
""" Called after frame change for playback and rendering, before any data is evaluated for the new frame. This makes it possible to change data and relations (for example swap an object to another mesh) for the new frame. Note that this handler is not to be used as
|
|
103
|
+
""" Called after frame change for playback and rendering, before any data is evaluated for the new frame. This makes it possible to change data and relations (for example swap an object to another mesh) for the new frame. Note that this handler is not to be used as before the frame changes event. The dependency graph is not available in this handler, as data and relations may have been altered and the dependency graph has not yet been updated for that. Accepts two arguments: The scene data-block and the dependency graph being updated
|
|
99
104
|
"""
|
|
100
105
|
|
|
101
106
|
game_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
@@ -127,15 +132,15 @@ load_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
|
127
132
|
"""
|
|
128
133
|
|
|
129
134
|
object_bake_cancel: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
130
|
-
""" on canceling a bake job; will be called in the main thread
|
|
135
|
+
""" on canceling a bake job; will be called in the main thread. Accepts one argument: the object data-block being baked
|
|
131
136
|
"""
|
|
132
137
|
|
|
133
138
|
object_bake_complete: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
134
|
-
""" on completing a bake job; will be called in the main thread
|
|
139
|
+
""" on completing a bake job; will be called in the main thread. Accepts one argument: the object data-block being baked
|
|
135
140
|
"""
|
|
136
141
|
|
|
137
142
|
object_bake_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
138
|
-
""" before starting a bake job
|
|
143
|
+
""" before starting a bake job. Accepts one argument: the object data-block being baked
|
|
139
144
|
"""
|
|
140
145
|
|
|
141
146
|
persistent: typing.Any
|
|
@@ -151,15 +156,15 @@ redo_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
|
151
156
|
"""
|
|
152
157
|
|
|
153
158
|
render_cancel: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
154
|
-
""" on canceling a render job
|
|
159
|
+
""" on canceling a render job. Accepts one argument: the scene data-block being rendered
|
|
155
160
|
"""
|
|
156
161
|
|
|
157
162
|
render_complete: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
158
|
-
""" on completion of render job
|
|
163
|
+
""" on completion of render job. Accepts one argument: the scene data-block being rendered
|
|
159
164
|
"""
|
|
160
165
|
|
|
161
166
|
render_init: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
|
162
|
-
""" on initialization of a render job
|
|
167
|
+
""" on initialization of a render job. Accepts one argument: the scene data-block being rendered
|
|
163
168
|
"""
|
|
164
169
|
|
|
165
170
|
render_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
|
bpy/app/icons/__init__.pyi
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
+
import numpy.typing as npt
|
|
4
5
|
|
|
5
6
|
def new_triangles(
|
|
6
7
|
range: tuple[int, int] | None, coords: bytes | None, colors: bytes | None
|
|
@@ -8,23 +9,17 @@ def new_triangles(
|
|
|
8
9
|
"""Create a new icon from triangle geometry.
|
|
9
10
|
|
|
10
11
|
:param range: Pair of ints.
|
|
11
|
-
:type range: tuple[int, int] | None
|
|
12
12
|
:param coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.
|
|
13
|
-
:type coords: bytes | None
|
|
14
13
|
:param colors: Sequence of bytes (12 for one triangles) for RGBA.
|
|
15
|
-
:type colors: bytes | None
|
|
16
14
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
17
|
-
:rtype: int
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
17
|
def new_triangles_from_file(filepath: str | None) -> int:
|
|
21
18
|
"""Create a new icon from triangle geometry.
|
|
22
19
|
|
|
23
20
|
:param filepath: File path.
|
|
24
|
-
:type filepath: str | None
|
|
25
21
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
26
|
-
:rtype: int
|
|
27
22
|
"""
|
|
28
23
|
|
|
29
|
-
def release(icon_id):
|
|
24
|
+
def release(icon_id) -> None:
|
|
30
25
|
"""Release the icon."""
|
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -19,35 +19,26 @@
|
|
|
19
19
|
|
|
20
20
|
```../examples/bpy.app.timers.4.py```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
--------------------
|
|
24
|
-
|
|
25
|
-
You should never modify Blender data at arbitrary points in time in separate threads.
|
|
26
|
-
However you can use a queue to collect all the actions that should be executed when Blender is in the right state again.
|
|
27
|
-
Pythons queue.Queue can be used here, because it implements the required locking semantics.
|
|
28
|
-
|
|
29
|
-
```../examples/bpy.app.timers.5.py```
|
|
30
|
-
|
|
31
22
|
"""
|
|
32
23
|
|
|
33
24
|
import typing
|
|
34
25
|
import collections.abc
|
|
35
26
|
import typing_extensions
|
|
27
|
+
import numpy.typing as npt
|
|
36
28
|
|
|
37
29
|
def is_registered(function: collections.abc.Callable[[], float | None]) -> bool:
|
|
38
30
|
"""Check if this function is registered as a timer.
|
|
39
31
|
|
|
40
32
|
:param function: Function to check.
|
|
41
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
42
33
|
:return: True when this function is registered, otherwise False.
|
|
43
|
-
:rtype: bool
|
|
44
34
|
"""
|
|
45
35
|
|
|
46
36
|
def register(
|
|
47
37
|
function: collections.abc.Callable[[], float | None],
|
|
38
|
+
*,
|
|
48
39
|
first_interval: float | None = 0,
|
|
49
40
|
persistent: bool | None = False,
|
|
50
|
-
):
|
|
41
|
+
) -> None:
|
|
51
42
|
"""Add a new function that will be called after the specified amount of seconds.
|
|
52
43
|
The function gets no arguments and is expected to return either None or a float.
|
|
53
44
|
If None is returned, the timer will be unregistered.
|
|
@@ -55,16 +46,12 @@ def register(
|
|
|
55
46
|
functools.partial can be used to assign some parameters.
|
|
56
47
|
|
|
57
48
|
:param function: The function that should called.
|
|
58
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
59
49
|
:param first_interval: Seconds until the callback should be called the first time.
|
|
60
|
-
:
|
|
61
|
-
:param persistent: Don't remove timer when a new file is loaded.
|
|
62
|
-
:type persistent: bool | None
|
|
50
|
+
:param persistent: Dont remove timer when a new file is loaded.
|
|
63
51
|
"""
|
|
64
52
|
|
|
65
|
-
def unregister(function: collections.abc.Callable[[], float | None]):
|
|
53
|
+
def unregister(function: collections.abc.Callable[[], float | None]) -> None:
|
|
66
54
|
"""Unregister timer.
|
|
67
55
|
|
|
68
56
|
:param function: Function to unregister.
|
|
69
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
70
57
|
"""
|
|
@@ -11,12 +11,12 @@ If you are a regular add-on, you should only bother about contexts member,
|
|
|
11
11
|
and the register/unregister functions! The pgettext family of functions
|
|
12
12
|
should only be used in rare, specific cases (like e.g. complex "composited" UI strings...).
|
|
13
13
|
|
|
14
|
-
To add translations to your
|
|
14
|
+
To add translations to your Python script, you must define a dictionary formatted like that:
|
|
15
15
|
{locale: {msg_key: msg_translation, ...}, ...}
|
|
16
16
|
|
|
17
17
|
where:
|
|
18
18
|
|
|
19
|
-
* locale is either a lang
|
|
19
|
+
* locale is either a lang ISO code (e.g. fr
|
|
20
20
|
|
|
21
21
|
), a lang+country code (e.g. pt_BR
|
|
22
22
|
|
|
@@ -43,7 +43,7 @@ bpy.app.translations.unregister(__name__)
|
|
|
43
43
|
The Manage UI translations
|
|
44
44
|
|
|
45
45
|
add-on has several functions to help you collect strings to translate, and
|
|
46
|
-
generate the needed
|
|
46
|
+
generate the needed Python code (the translation dictionary), as well as optional intermediary po files
|
|
47
47
|
if you want some... See
|
|
48
48
|
How to Translate Blender and
|
|
49
49
|
Using i18n in Blender Code
|
|
@@ -59,99 +59,85 @@ for more info.
|
|
|
59
59
|
import typing
|
|
60
60
|
import collections.abc
|
|
61
61
|
import typing_extensions
|
|
62
|
+
import numpy.typing as npt
|
|
62
63
|
|
|
63
|
-
def locale_explode(locale):
|
|
64
|
+
def locale_explode(locale) -> None:
|
|
64
65
|
"""Return all components and their combinations of the given ISO locale string.For non-complete locales, missing elements will be None.
|
|
65
66
|
|
|
66
67
|
:param locale: The ISO locale string to explode.
|
|
67
68
|
:return: A tuple (language, country, variant, language_country, language@variant).
|
|
68
69
|
"""
|
|
69
70
|
|
|
70
|
-
def pgettext(msgid: str | None, msgctxt: None | str | None = None):
|
|
71
|
+
def pgettext(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
71
72
|
"""Try to translate the given msgid (with optional msgctxt).
|
|
72
73
|
|
|
73
74
|
:param msgid: The string to translate.
|
|
74
|
-
:type msgid: str | None
|
|
75
75
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
76
|
-
:type msgctxt: None | str | None
|
|
77
76
|
:return: The translated string (or msgid if no translation was found).
|
|
78
77
|
"""
|
|
79
78
|
|
|
80
|
-
def pgettext_data(msgid: str | None, msgctxt: None | str | None = None):
|
|
81
|
-
"""Try to translate the given msgid (with optional msgctxt), if new data
|
|
79
|
+
def pgettext_data(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
80
|
+
"""Try to translate the given msgid (with optional msgctxt), if new data names translation is enabled.
|
|
82
81
|
|
|
83
82
|
:param msgid: The string to translate.
|
|
84
|
-
:type msgid: str | None
|
|
85
83
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
86
|
-
:type msgctxt: None | str | None
|
|
87
84
|
:return: The translated string (or msgid if no translation was found).
|
|
88
85
|
"""
|
|
89
86
|
|
|
90
|
-
def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None):
|
|
91
|
-
"""Try to translate the given msgid (with optional msgctxt), if labels
|
|
87
|
+
def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
88
|
+
"""Try to translate the given msgid (with optional msgctxt), if labels translation is enabled.
|
|
92
89
|
|
|
93
90
|
:param msgid: The string to translate.
|
|
94
|
-
:type msgid: str | None
|
|
95
91
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
96
|
-
:type msgctxt: None | str | None
|
|
97
92
|
:return: The translated string (or msgid if no translation was found).
|
|
98
93
|
"""
|
|
99
94
|
|
|
100
|
-
def pgettext_n(msgid: str | None, msgctxt: None | str | None = None):
|
|
95
|
+
def pgettext_n(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
101
96
|
"""Extract the given msgid to translation files. This is a no-op function that will only mark the string to extract, but not perform the actual translation.
|
|
102
97
|
|
|
103
98
|
:param msgid: The string to extract.
|
|
104
|
-
:type msgid: str | None
|
|
105
99
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
106
|
-
:type msgctxt: None | str | None
|
|
107
100
|
:return: The original string.
|
|
108
101
|
"""
|
|
109
102
|
|
|
110
|
-
def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None):
|
|
111
|
-
"""Try to translate the given msgid (with optional msgctxt), if reports
|
|
103
|
+
def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
104
|
+
"""Try to translate the given msgid (with optional msgctxt), if reports translation is enabled.
|
|
112
105
|
|
|
113
106
|
:param msgid: The string to translate.
|
|
114
|
-
:type msgid: str | None
|
|
115
107
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
116
|
-
:type msgctxt: None | str | None
|
|
117
108
|
:return: The translated string (or msgid if no translation was found).
|
|
118
109
|
"""
|
|
119
110
|
|
|
120
|
-
def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None):
|
|
121
|
-
"""Try to translate the given msgid (with optional msgctxt), if tooltips
|
|
111
|
+
def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
112
|
+
"""Try to translate the given msgid (with optional msgctxt), if tooltips translation is enabled.
|
|
122
113
|
|
|
123
114
|
:param msgid: The string to translate.
|
|
124
|
-
:type msgid: str | None
|
|
125
115
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
126
|
-
:type msgctxt: None | str | None
|
|
127
116
|
:return: The translated string (or msgid if no translation was found).
|
|
128
117
|
"""
|
|
129
118
|
|
|
130
119
|
def register(
|
|
131
120
|
module_name: str | None, translations_dict: dict[str, dict[str, str]] | None
|
|
132
|
-
):
|
|
133
|
-
"""Registers an
|
|
121
|
+
) -> None:
|
|
122
|
+
"""Registers an addons UI translations.
|
|
134
123
|
|
|
135
124
|
:param module_name: The name identifying the addon.
|
|
136
|
-
:type module_name: str | None
|
|
137
125
|
:param translations_dict: A dictionary built like that:
|
|
138
126
|
{locale: {msg_key: msg_translation, ...}, ...}
|
|
139
|
-
:type translations_dict: dict[str, dict[str, str]] | None
|
|
140
127
|
"""
|
|
141
128
|
|
|
142
|
-
def unregister(module_name: str | None):
|
|
143
|
-
"""Unregisters an
|
|
129
|
+
def unregister(module_name: str | None) -> None:
|
|
130
|
+
"""Unregisters an addons UI translations.
|
|
144
131
|
|
|
145
132
|
:param module_name: The name identifying the addon.
|
|
146
|
-
:type module_name: str | None
|
|
147
133
|
"""
|
|
148
134
|
|
|
149
135
|
contexts: typing.Any
|
|
150
|
-
""" Constant value bpy.app.translations.contexts(default_real=None, default
|
|
136
|
+
""" Constant value bpy.app.translations.contexts(default_real=None, default=*, operator_default=Operator, ui_events_keymaps=UI_Events_KeyMaps, plural=Plural, countable=Countable, id_action=Action, id_armature=Armature, no_translation=Do not translate, id_brush=Brush, id_cachefile=CacheFile, id_camera=Camera, id_collection=Collection, id_curves=Curves, id_curve=Curve, id_fs_linestyle=FreestyleLineStyle, id_gpencil=GPencil, id_id=ID, id_image=Image, id_lattice=Lattice, id_library=Library, id_light=Light, id_lightprobe=LightProbe, id_mask=Mask, id_material=Material, id_mesh=Mesh, id_metaball=Metaball, id_movieclip=MovieClip, id_nodetree=NodeTree, id_object=Object, id_paintcurve=PaintCurve, id_palette=Palette, id_particlesettings=ParticleSettings, id_pointcloud=PointCloud, id_scene=Scene, id_screen=Screen, id_sequence=Sequence, id_shapekey=Key, id_simulation=Simulation, id_sound=Sound, id_speaker=Speaker, id_text=Text, id_texture=Texture, id_vfont=VFont, id_volume=Volume, id_windowmanager=WindowManager, id_workspace=WorkSpace, id_world=World, editor_filebrowser=File browser, editor_python_console=Python console, editor_preferences=Preferences, editor_view3d=View3D, amount=Amount, color=Color, constraint=Constraint, modifier=Modifier, navigation=Navigation, render_layer=Render Layer, time=Time, unit=Unit)
|
|
151
137
|
"""
|
|
152
138
|
|
|
153
139
|
contexts_C_to_py: typing.Any
|
|
154
|
-
""" A readonly dict mapping contexts
|
|
140
|
+
""" A readonly dict mapping contexts C-identifiers to their py-identifiers.
|
|
155
141
|
"""
|
|
156
142
|
|
|
157
143
|
locale: typing.Any
|
bpy/msgbus/__init__.pyi
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""
|
|
2
2
|
The message bus system can be used to receive notifications when properties of
|
|
3
|
-
Blender
|
|
3
|
+
Blender data-blocks are changed via the data API.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
--------------------
|
|
@@ -18,6 +18,18 @@ The following updates do not trigger message bus notifications:
|
|
|
18
18
|
* Moving objects in the 3D Viewport.
|
|
19
19
|
* Changes performed by the animation system.
|
|
20
20
|
|
|
21
|
+
Changes done from msgbus
|
|
22
|
+
|
|
23
|
+
callbacks are not included in related undo steps,
|
|
24
|
+
so users can easily skip their effects by using Undo followed by Redo.
|
|
25
|
+
|
|
26
|
+
Unlike properties update
|
|
27
|
+
|
|
28
|
+
callbacks, message bus update callbacks are postponed
|
|
29
|
+
until all operators have finished executing.
|
|
30
|
+
Additionally, for each property the callback is only triggered once per update cycle,
|
|
31
|
+
even if the property was changed multiple times during that period.
|
|
32
|
+
|
|
21
33
|
|
|
22
34
|
--------------------
|
|
23
35
|
|
|
@@ -47,16 +59,17 @@ see bpy.app.handlers.load_post.
|
|
|
47
59
|
import typing
|
|
48
60
|
import collections.abc
|
|
49
61
|
import typing_extensions
|
|
62
|
+
import numpy.typing as npt
|
|
50
63
|
import bpy.types
|
|
51
64
|
|
|
52
|
-
def clear_by_owner(owner):
|
|
65
|
+
def clear_by_owner(owner) -> None:
|
|
53
66
|
"""Clear all subscribers using this owner."""
|
|
54
67
|
|
|
55
68
|
def publish_rna(
|
|
56
69
|
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None,
|
|
57
|
-
):
|
|
70
|
+
) -> None:
|
|
58
71
|
"""Notify subscribers of changes to this property
|
|
59
|
-
(this typically
|
|
72
|
+
(this typically doesnt need to be called explicitly since changes will automatically publish updates).
|
|
60
73
|
In some cases it may be useful to publish changes explicitly using more general keys.
|
|
61
74
|
|
|
62
75
|
:param key: Represents the type of data being subscribed to
|
|
@@ -65,7 +78,6 @@ def publish_rna(
|
|
|
65
78
|
- A property instance.
|
|
66
79
|
- A struct type.
|
|
67
80
|
- A tuple representing a (struct, property name) pair.
|
|
68
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
69
81
|
"""
|
|
70
82
|
|
|
71
83
|
def subscribe_rna(
|
|
@@ -73,8 +85,9 @@ def subscribe_rna(
|
|
|
73
85
|
owner: typing.Any | None,
|
|
74
86
|
args,
|
|
75
87
|
notify,
|
|
76
|
-
|
|
77
|
-
)
|
|
88
|
+
*,
|
|
89
|
+
options: set[str] | None = set(),
|
|
90
|
+
) -> None:
|
|
78
91
|
"""Register a message bus subscription. It will be cleared when another blend file is
|
|
79
92
|
loaded, or can be cleared explicitly via `bpy.msgbus.clear_by_owner`.
|
|
80
93
|
|
|
@@ -84,9 +97,7 @@ def subscribe_rna(
|
|
|
84
97
|
- A property instance.
|
|
85
98
|
- A struct type.
|
|
86
99
|
- A tuple representing a (struct, property name) pair.
|
|
87
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
88
100
|
:param owner: Handle for this subscription (compared by identity).
|
|
89
|
-
:type owner: typing.Any | None
|
|
90
101
|
:param options: Change the behavior of the subscriber.
|
|
91
102
|
|
|
92
103
|
PERSISTENT when set, the subscriber will be kept when remapping ID data.
|
bpy/ops/__init__.pyi
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
--------------------
|
|
4
4
|
|
|
5
|
-
Provides
|
|
6
|
-
C
|
|
5
|
+
Provides Python access to calling operators, this includes operators written in
|
|
6
|
+
C++, Python or macros.
|
|
7
7
|
|
|
8
8
|
Only keyword arguments can be used to pass operator properties.
|
|
9
9
|
|
|
@@ -20,6 +20,20 @@ Common return values are {'FINISHED'}
|
|
|
20
20
|
meaning that the operator execution was aborted without making any changes or
|
|
21
21
|
saving an undo history entry.
|
|
22
22
|
|
|
23
|
+
If operator was cancelled but there wasn't any reports from it with {'ERROR'}
|
|
24
|
+
|
|
25
|
+
type,
|
|
26
|
+
it will just return {'CANCELLED'}
|
|
27
|
+
|
|
28
|
+
without raising any exceptions.
|
|
29
|
+
However, if there are error reports, a RuntimeError
|
|
30
|
+
|
|
31
|
+
will be raised
|
|
32
|
+
after the operator finishes execution, including all error report messages,
|
|
33
|
+
regardless of the return status (even if it was {'FINISHED'}
|
|
34
|
+
|
|
35
|
+
).
|
|
36
|
+
|
|
23
37
|
Calling an operator in the wrong context will raise a RuntimeError
|
|
24
38
|
|
|
25
39
|
,
|
|
@@ -30,7 +44,7 @@ Note that the operator ID (bl_idname) in this example is mesh.subdivide
|
|
|
30
44
|
,
|
|
31
45
|
bpy.ops
|
|
32
46
|
|
|
33
|
-
is just the access path for
|
|
47
|
+
is just the access path for Python.
|
|
34
48
|
|
|
35
49
|
|
|
36
50
|
--------------------
|
|
@@ -158,11 +172,14 @@ bpy.ops.*
|
|
|
158
172
|
import typing
|
|
159
173
|
import collections.abc
|
|
160
174
|
import typing_extensions
|
|
175
|
+
import numpy.typing as npt
|
|
161
176
|
from . import action as action
|
|
162
177
|
from . import anim as anim
|
|
163
178
|
from . import armature as armature
|
|
164
179
|
from . import asset as asset
|
|
180
|
+
from . import bge_bricknodes as bge_bricknodes
|
|
165
181
|
from . import boid as boid
|
|
182
|
+
from . import bricknodes as bricknodes
|
|
166
183
|
from . import brush as brush
|
|
167
184
|
from . import buttons as buttons
|
|
168
185
|
from . import cachefile as cachefile
|
|
@@ -195,6 +212,7 @@ from . import import_scene as import_scene
|
|
|
195
212
|
from . import info as info
|
|
196
213
|
from . import lattice as lattice
|
|
197
214
|
from . import logic as logic
|
|
215
|
+
from . import logic_nodes as logic_nodes
|
|
198
216
|
from . import marker as marker
|
|
199
217
|
from . import mask as mask
|
|
200
218
|
from . import material as material
|