fake-bpy-module 20240516__py3-none-any.whl → 20240517__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 +2 -2
- addon_utils/__init__.pyi +43 -12
- animsys_refactor/__init__.pyi +4 -4
- aud/__init__.pyi +7 -7
- bgl/__init__.pyi +121 -183
- bl_app_override/__init__.pyi +5 -5
- bl_app_override/helpers/__init__.pyi +3 -1
- bl_app_template_utils/__init__.pyi +5 -5
- 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 +5 -5
- bl_i18n_utils/settings/__init__.pyi +4 -2
- bl_i18n_utils/utils/__init__.pyi +86 -58
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +4 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +126 -41
- bl_operators/anim/__init__.pyi +1001 -328
- bl_operators/assets/__init__.pyi +376 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +3 -3
- bl_operators/clip/__init__.pyi +1250 -409
- bl_operators/console/__init__.pyi +626 -205
- bl_operators/constraint/__init__.pyi +502 -165
- bl_operators/file/__init__.pyi +376 -123
- bl_operators/freestyle/__init__.pyi +501 -164
- bl_operators/geometry_nodes/__init__.pyi +501 -164
- bl_operators/image/__init__.pyi +621 -200
- bl_operators/mesh/__init__.pyi +376 -123
- bl_operators/node/__init__.pyi +1243 -402
- bl_operators/object/__init__.pyi +1876 -615
- bl_operators/object_align/__init__.pyi +126 -41
- bl_operators/object_quick_effects/__init__.pyi +502 -165
- bl_operators/object_randomize_transform/__init__.pyi +126 -41
- bl_operators/presets/__init__.pyi +3069 -1027
- bl_operators/rigidbody/__init__.pyi +376 -123
- bl_operators/screen_play_rendered_anim/__init__.pyi +126 -41
- bl_operators/sequencer/__init__.pyi +1009 -331
- bl_operators/spreadsheet/__init__.pyi +126 -41
- bl_operators/userpref/__init__.pyi +3263 -1078
- bl_operators/uvcalc_follow_active/__init__.pyi +126 -41
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -47
- bl_operators/uvcalc_transform/__init__.pyi +289 -90
- bl_operators/vertexpaint_dirt/__init__.pyi +126 -41
- bl_operators/view3d/__init__.pyi +868 -279
- bl_operators/wm/__init__.pyi +5777 -1934
- bl_operators/world/__init__.pyi +126 -41
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -1
- bl_rna_utils/data_path/__init__.pyi +8 -3
- bl_ui/__init__.pyi +338 -131
- bl_ui/anim/__init__.pyi +164 -64
- bl_ui/asset_shelf/__init__.pyi +129 -42
- bl_ui/generic_ui_list/__init__.pyi +412 -135
- bl_ui/node_add_menu/__init__.pyi +168 -68
- bl_ui/node_add_menu_compositor/__init__.pyi +2921 -1138
- bl_ui/node_add_menu_geometry/__init__.pyi +7785 -3032
- bl_ui/node_add_menu_shader/__init__.pyi +1621 -630
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -567
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +806 -274
- bl_ui/properties_constraint/__init__.pyi +10253 -3458
- bl_ui/properties_data_armature/__init__.pyi +1615 -552
- bl_ui/properties_data_bone/__init__.pyi +1288 -425
- bl_ui/properties_data_camera/__init__.pyi +1854 -631
- bl_ui/properties_data_curve/__init__.pyi +1929 -636
- bl_ui/properties_data_curves/__init__.pyi +806 -274
- bl_ui/properties_data_empty/__init__.pyi +257 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2380 -803
- bl_ui/properties_data_grease_pencil/__init__.pyi +1902 -656
- bl_ui/properties_data_lattice/__init__.pyi +388 -127
- bl_ui/properties_data_light/__init__.pyi +1541 -506
- bl_ui/properties_data_lightprobe/__init__.pyi +1667 -548
- bl_ui/properties_data_mesh/__init__.pyi +2704 -929
- bl_ui/properties_data_metaball/__init__.pyi +644 -211
- bl_ui/properties_data_modifier/__init__.pyi +1353 -502
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -233
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -42
- bl_ui/properties_data_speaker/__init__.pyi +644 -211
- bl_ui/properties_data_volume/__init__.pyi +1030 -339
- bl_ui/properties_freestyle/__init__.pyi +3113 -1035
- bl_ui/properties_grease_pencil_common/__init__.pyi +2464 -933
- bl_ui/properties_mask_common/__init__.pyi +1101 -420
- bl_ui/properties_material/__init__.pyi +2091 -699
- bl_ui/properties_material_gpencil/__init__.pyi +1350 -466
- bl_ui/properties_object/__init__.pyi +1838 -618
- bl_ui/properties_output/__init__.pyi +2414 -831
- bl_ui/properties_paint_common/__init__.pyi +412 -289
- bl_ui/properties_particle/__init__.pyi +6737 -2241
- bl_ui/properties_physics_cloth/__init__.pyi +1825 -612
- bl_ui/properties_physics_common/__init__.pyi +129 -42
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2821 -928
- bl_ui/properties_physics_field/__init__.pyi +1283 -422
- bl_ui/properties_physics_fluid/__init__.pyi +3620 -1203
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -42
- bl_ui/properties_physics_rigidbody/__init__.pyi +1027 -338
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1667 -548
- bl_ui/properties_physics_softbody/__init__.pyi +1924 -633
- bl_ui/properties_render/__init__.pyi +6830 -2263
- bl_ui/properties_scene/__init__.pyi +1929 -636
- bl_ui/properties_texture/__init__.pyi +3370 -1118
- bl_ui/properties_view_layer/__init__.pyi +2346 -782
- bl_ui/properties_workspace/__init__.pyi +516 -169
- bl_ui/properties_world/__init__.pyi +1284 -421
- bl_ui/space_clip/__init__.pyi +10134 -3639
- bl_ui/space_console/__init__.pyi +939 -357
- bl_ui/space_dopesheet/__init__.pyi +4327 -1562
- bl_ui/space_filebrowser/__init__.pyi +4164 -1499
- bl_ui/space_graph/__init__.pyi +3108 -1179
- bl_ui/space_image/__init__.pyi +9766 -3596
- bl_ui/space_info/__init__.pyi +939 -357
- bl_ui/space_nla/__init__.pyi +2620 -988
- bl_ui/space_node/__init__.pyi +3994 -1434
- bl_ui/space_outliner/__init__.pyi +2203 -842
- bl_ui/space_properties/__init__.pyi +386 -127
- bl_ui/space_sequencer/__init__.pyi +10773 -3878
- bl_ui/space_spreadsheet/__init__.pyi +130 -43
- bl_ui/space_statusbar/__init__.pyi +129 -42
- bl_ui/space_text/__init__.pyi +2458 -925
- bl_ui/space_time/__init__.pyi +1033 -378
- bl_ui/space_toolsystem_common/__init__.pyi +20 -16
- bl_ui/space_toolsystem_toolbar/__init__.pyi +37 -21
- bl_ui/space_topbar/__init__.pyi +3980 -1496
- bl_ui/space_userpref/__init__.pyi +11373 -3797
- bl_ui/space_view3d/__init__.pyi +40865 -15356
- bl_ui/space_view3d_toolbar/__init__.pyi +12520 -4647
- bl_ui/temp_anim_layers/__init__.pyi +129 -42
- bl_ui/utils/__init__.pyi +28 -20
- bl_ui_utils/bug_report_url/__init__.pyi +1 -1
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +1 -1
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +38 -38
- 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 +2680 -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 +17056 -21951
- bpy/utils/__init__.pyi +242 -118
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -28
- bpy_extras/bmesh_utils/__init__.pyi +8 -2
- bpy_extras/extensions/junction_module/__init__.pyi +5 -2
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +113 -18
- bpy_extras/keyconfig_utils/__init__.pyi +2 -2
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +9 -4
- bpy_extras/node_utils/__init__.pyi +9 -2
- bpy_extras/object_utils/__init__.pyi +71 -12
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +13 -10
- bpy_types/__init__.pyi +4197 -1333
- console_python/__init__.pyi +6 -1
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/METADATA +1 -1
- fake_bpy_module-20240517.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +3 -3
- 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 -2
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +4 -4
- keyingsets_builtins/__init__.pyi +2688 -839
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_utils/__init__.pyi +1 -1
- rna_info/__init__.pyi +17 -15
- rna_keymap_ui/__init__.pyi +1 -1
- rna_prop_ui/__init__.pyi +16 -14
- rna_xml/__init__.pyi +12 -12
- _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-20240517.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/top_level.txt +0 -0
bl_ui/__init__.pyi
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import bpy.types
|
|
2
3
|
import bpy_types
|
|
3
4
|
|
|
4
5
|
from . import anim
|
|
@@ -82,7 +83,10 @@ from . import utils
|
|
|
82
83
|
GenericType = typing.TypeVar("GenericType")
|
|
83
84
|
|
|
84
85
|
class UI_MT_button_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
85
|
-
"""
|
|
86
|
+
"""UI button context menu definition. Scripts can append/prepend this to
|
|
87
|
+
add own operators to the context menu. They must check context though, so
|
|
88
|
+
their items only draw in a valid context and for the correct buttons.
|
|
89
|
+
"""
|
|
86
90
|
|
|
87
91
|
bl_idname: typing.Any
|
|
88
92
|
""" """
|
|
@@ -97,22 +101,35 @@ class UI_MT_button_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
97
101
|
""" """
|
|
98
102
|
|
|
99
103
|
def append(self, draw_func):
|
|
100
|
-
"""
|
|
104
|
+
"""Append a draw function to this menu,
|
|
105
|
+
takes the same arguments as the menus draw function
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
:param draw_func:
|
|
103
108
|
"""
|
|
104
109
|
...
|
|
105
110
|
|
|
106
|
-
def as_pointer(self):
|
|
107
|
-
"""
|
|
111
|
+
def as_pointer(self) -> int:
|
|
112
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
113
|
+
|
|
114
|
+
:return: int (memory address).
|
|
115
|
+
:rtype: int
|
|
116
|
+
"""
|
|
108
117
|
...
|
|
109
118
|
|
|
110
|
-
def bl_rna_get_subclass(self):
|
|
111
|
-
"""
|
|
119
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
:return: The RNA type or default when not found.
|
|
123
|
+
:rtype: bpy.types.Struct
|
|
124
|
+
"""
|
|
112
125
|
...
|
|
113
126
|
|
|
114
|
-
def bl_rna_get_subclass_py(self):
|
|
115
|
-
"""
|
|
127
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
:return: The class or default when not found.
|
|
131
|
+
:rtype: typing.Any
|
|
132
|
+
"""
|
|
116
133
|
...
|
|
117
134
|
|
|
118
135
|
def draw(self, context):
|
|
@@ -131,142 +148,231 @@ class UI_MT_button_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
131
148
|
...
|
|
132
149
|
|
|
133
150
|
def draw_preset(self, _context):
|
|
134
|
-
"""
|
|
151
|
+
"""Define these on the subclass:
|
|
152
|
+
- preset_operator (string)
|
|
153
|
+
- preset_subdir (string)Optionally:
|
|
154
|
+
- preset_add_operator (string)
|
|
155
|
+
- preset_extensions (set of strings)
|
|
156
|
+
- preset_operator_defaults (dict of keyword args)
|
|
135
157
|
|
|
136
|
-
|
|
158
|
+
:param _context:
|
|
137
159
|
"""
|
|
138
160
|
...
|
|
139
161
|
|
|
140
|
-
def driver_add(self):
|
|
141
|
-
"""
|
|
162
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
163
|
+
"""Adds driver(s) to the given property
|
|
164
|
+
|
|
165
|
+
:return: The driver(s) added.
|
|
166
|
+
:rtype: bpy.types.FCurve
|
|
167
|
+
"""
|
|
142
168
|
...
|
|
143
169
|
|
|
144
|
-
def driver_remove(self):
|
|
145
|
-
"""
|
|
170
|
+
def driver_remove(self) -> bool:
|
|
171
|
+
"""Remove driver(s) from the given property
|
|
172
|
+
|
|
173
|
+
:return: Success of driver removal.
|
|
174
|
+
:rtype: bool
|
|
175
|
+
"""
|
|
146
176
|
...
|
|
147
177
|
|
|
148
178
|
def get(self):
|
|
149
|
-
"""
|
|
179
|
+
"""Returns the value of the custom property assigned to key or default
|
|
180
|
+
when not found (matches Python's dictionary function of the same name).
|
|
181
|
+
|
|
182
|
+
"""
|
|
150
183
|
...
|
|
151
184
|
|
|
152
185
|
def id_properties_clear(self):
|
|
153
|
-
"""
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
189
|
+
"""
|
|
154
190
|
...
|
|
155
191
|
|
|
156
192
|
def id_properties_ensure(self):
|
|
157
|
-
"""
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
196
|
+
"""
|
|
158
197
|
...
|
|
159
198
|
|
|
160
199
|
def id_properties_ui(self):
|
|
161
|
-
"""
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
203
|
+
"""
|
|
162
204
|
...
|
|
163
205
|
|
|
164
206
|
def is_extended(self):
|
|
165
207
|
""" """
|
|
166
208
|
...
|
|
167
209
|
|
|
168
|
-
def is_property_hidden(self):
|
|
169
|
-
"""
|
|
210
|
+
def is_property_hidden(self) -> bool:
|
|
211
|
+
"""Check if a property is hidden.
|
|
212
|
+
|
|
213
|
+
:return: True when the property is hidden.
|
|
214
|
+
:rtype: bool
|
|
215
|
+
"""
|
|
170
216
|
...
|
|
171
217
|
|
|
172
|
-
def is_property_overridable_library(self):
|
|
173
|
-
"""
|
|
218
|
+
def is_property_overridable_library(self) -> bool:
|
|
219
|
+
"""Check if a property is overridable.
|
|
220
|
+
|
|
221
|
+
:return: True when the property is overridable.
|
|
222
|
+
:rtype: bool
|
|
223
|
+
"""
|
|
174
224
|
...
|
|
175
225
|
|
|
176
|
-
def is_property_readonly(self):
|
|
177
|
-
"""
|
|
226
|
+
def is_property_readonly(self) -> bool:
|
|
227
|
+
"""Check if a property is readonly.
|
|
228
|
+
|
|
229
|
+
:return: True when the property is readonly (not writable).
|
|
230
|
+
:rtype: bool
|
|
231
|
+
"""
|
|
178
232
|
...
|
|
179
233
|
|
|
180
|
-
def is_property_set(self):
|
|
181
|
-
"""
|
|
234
|
+
def is_property_set(self) -> bool:
|
|
235
|
+
"""Check if a property is set, use for testing operator properties.
|
|
236
|
+
|
|
237
|
+
:return: True when the property has been set.
|
|
238
|
+
:rtype: bool
|
|
239
|
+
"""
|
|
182
240
|
...
|
|
183
241
|
|
|
184
242
|
def items(self):
|
|
185
|
-
"""
|
|
243
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
244
|
+
dictionary function of the same name).
|
|
245
|
+
|
|
246
|
+
:return: custom property key, value pairs.
|
|
247
|
+
"""
|
|
186
248
|
...
|
|
187
249
|
|
|
188
|
-
def keyframe_delete(self):
|
|
189
|
-
"""
|
|
250
|
+
def keyframe_delete(self) -> bool:
|
|
251
|
+
"""Remove a keyframe from this properties fcurve.
|
|
252
|
+
|
|
253
|
+
:return: Success of keyframe deletion.
|
|
254
|
+
:rtype: bool
|
|
255
|
+
"""
|
|
190
256
|
...
|
|
191
257
|
|
|
192
|
-
def keyframe_insert(self):
|
|
193
|
-
"""
|
|
258
|
+
def keyframe_insert(self) -> bool:
|
|
259
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
260
|
+
|
|
261
|
+
:return: Success of keyframe insertion.
|
|
262
|
+
:rtype: bool
|
|
263
|
+
"""
|
|
194
264
|
...
|
|
195
265
|
|
|
196
266
|
def keys(self):
|
|
197
|
-
"""
|
|
267
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
268
|
+
dictionary function of the same name).
|
|
269
|
+
|
|
270
|
+
:return: custom property keys.
|
|
271
|
+
"""
|
|
198
272
|
...
|
|
199
273
|
|
|
200
|
-
def path_from_id(self):
|
|
201
|
-
"""
|
|
274
|
+
def path_from_id(self) -> str:
|
|
275
|
+
"""Returns the data path from the ID to this object (string).
|
|
276
|
+
|
|
277
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
278
|
+
to this struct and property (when given).
|
|
279
|
+
:rtype: str
|
|
280
|
+
"""
|
|
202
281
|
...
|
|
203
282
|
|
|
204
283
|
def path_menu(
|
|
205
284
|
self,
|
|
206
|
-
searchpaths,
|
|
207
|
-
operator,
|
|
208
|
-
props_default,
|
|
209
|
-
prop_filepath,
|
|
210
|
-
filter_ext,
|
|
211
|
-
filter_path,
|
|
212
|
-
display_name,
|
|
213
|
-
add_operator,
|
|
214
|
-
add_operator_props,
|
|
285
|
+
searchpaths: list[str],
|
|
286
|
+
operator: str,
|
|
287
|
+
props_default: dict = None,
|
|
288
|
+
prop_filepath: str = "filepath",
|
|
289
|
+
filter_ext: typing.Callable = None,
|
|
290
|
+
filter_path=None,
|
|
291
|
+
display_name: typing.Callable = None,
|
|
292
|
+
add_operator=None,
|
|
293
|
+
add_operator_props=None,
|
|
215
294
|
):
|
|
216
|
-
"""
|
|
295
|
+
"""Populate a menu from a list of paths.
|
|
296
|
+
|
|
297
|
+
:param searchpaths: Paths to scan.
|
|
298
|
+
:type searchpaths: list[str]
|
|
299
|
+
:param operator: The operator id to use with each file.
|
|
300
|
+
:type operator: str
|
|
301
|
+
:param props_default: Properties to assign to each operator.
|
|
302
|
+
:type props_default: dict
|
|
303
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
304
|
+
:type prop_filepath: str
|
|
305
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
217
306
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
:param add_operator:
|
|
226
|
-
:param add_operator_props:
|
|
307
|
+
Returning false excludes the file from the list.
|
|
308
|
+
:type filter_ext: typing.Callable
|
|
309
|
+
:param filter_path:
|
|
310
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
311
|
+
:type display_name: typing.Callable
|
|
312
|
+
:param add_operator:
|
|
313
|
+
:param add_operator_props:
|
|
227
314
|
"""
|
|
228
315
|
...
|
|
229
316
|
|
|
230
317
|
def path_resolve(self):
|
|
231
|
-
""" """
|
|
318
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
232
319
|
...
|
|
233
320
|
|
|
234
321
|
def pop(self):
|
|
235
|
-
"""
|
|
322
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
323
|
+
when not found (matches Python's dictionary function of the same name).
|
|
324
|
+
|
|
325
|
+
"""
|
|
236
326
|
...
|
|
237
327
|
|
|
238
328
|
def prepend(self, draw_func):
|
|
239
|
-
"""
|
|
329
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
330
|
+
the menus draw function
|
|
240
331
|
|
|
241
|
-
|
|
332
|
+
:param draw_func:
|
|
242
333
|
"""
|
|
243
334
|
...
|
|
244
335
|
|
|
245
|
-
def property_overridable_library_set(self):
|
|
246
|
-
"""
|
|
336
|
+
def property_overridable_library_set(self) -> bool:
|
|
337
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
338
|
+
|
|
339
|
+
:return: True when the overridable status of the property was successfully set.
|
|
340
|
+
:rtype: bool
|
|
341
|
+
"""
|
|
247
342
|
...
|
|
248
343
|
|
|
249
344
|
def property_unset(self):
|
|
250
|
-
""" """
|
|
345
|
+
"""Unset a property, will use default value afterward."""
|
|
251
346
|
...
|
|
252
347
|
|
|
253
348
|
def remove(self, draw_func):
|
|
254
|
-
"""
|
|
349
|
+
"""Remove a draw function that has been added to this menu
|
|
255
350
|
|
|
256
351
|
:param draw_func:
|
|
257
352
|
"""
|
|
258
353
|
...
|
|
259
354
|
|
|
260
355
|
def type_recast(self):
|
|
261
|
-
"""
|
|
356
|
+
"""Return a new instance, this is needed because types
|
|
357
|
+
such as textures can be changed at runtime.
|
|
358
|
+
|
|
359
|
+
:return: a new instance of this object with the type initialized again.
|
|
360
|
+
"""
|
|
262
361
|
...
|
|
263
362
|
|
|
264
363
|
def values(self):
|
|
265
|
-
"""
|
|
364
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
365
|
+
dictionary function of the same name).
|
|
366
|
+
|
|
367
|
+
:return: custom property values.
|
|
368
|
+
"""
|
|
266
369
|
...
|
|
267
370
|
|
|
268
371
|
class UI_MT_list_item_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
269
|
-
"""
|
|
372
|
+
"""UI List item context menu definition. Scripts can append/prepend this to
|
|
373
|
+
add own operators to the context menu. They must check context though, so
|
|
374
|
+
their items only draw in a valid context and for the correct UI list.
|
|
375
|
+
"""
|
|
270
376
|
|
|
271
377
|
bl_idname: typing.Any
|
|
272
378
|
""" """
|
|
@@ -281,22 +387,35 @@ class UI_MT_list_item_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
281
387
|
""" """
|
|
282
388
|
|
|
283
389
|
def append(self, draw_func):
|
|
284
|
-
"""
|
|
390
|
+
"""Append a draw function to this menu,
|
|
391
|
+
takes the same arguments as the menus draw function
|
|
285
392
|
|
|
286
|
-
|
|
393
|
+
:param draw_func:
|
|
287
394
|
"""
|
|
288
395
|
...
|
|
289
396
|
|
|
290
|
-
def as_pointer(self):
|
|
291
|
-
"""
|
|
397
|
+
def as_pointer(self) -> int:
|
|
398
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
399
|
+
|
|
400
|
+
:return: int (memory address).
|
|
401
|
+
:rtype: int
|
|
402
|
+
"""
|
|
292
403
|
...
|
|
293
404
|
|
|
294
|
-
def bl_rna_get_subclass(self):
|
|
295
|
-
"""
|
|
405
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
406
|
+
"""
|
|
407
|
+
|
|
408
|
+
:return: The RNA type or default when not found.
|
|
409
|
+
:rtype: bpy.types.Struct
|
|
410
|
+
"""
|
|
296
411
|
...
|
|
297
412
|
|
|
298
|
-
def bl_rna_get_subclass_py(self):
|
|
299
|
-
"""
|
|
413
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
414
|
+
"""
|
|
415
|
+
|
|
416
|
+
:return: The class or default when not found.
|
|
417
|
+
:rtype: typing.Any
|
|
418
|
+
"""
|
|
300
419
|
...
|
|
301
420
|
|
|
302
421
|
def draw(self, context):
|
|
@@ -315,138 +434,224 @@ class UI_MT_list_item_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
315
434
|
...
|
|
316
435
|
|
|
317
436
|
def draw_preset(self, _context):
|
|
318
|
-
"""
|
|
437
|
+
"""Define these on the subclass:
|
|
438
|
+
- preset_operator (string)
|
|
439
|
+
- preset_subdir (string)Optionally:
|
|
440
|
+
- preset_add_operator (string)
|
|
441
|
+
- preset_extensions (set of strings)
|
|
442
|
+
- preset_operator_defaults (dict of keyword args)
|
|
319
443
|
|
|
320
|
-
|
|
444
|
+
:param _context:
|
|
321
445
|
"""
|
|
322
446
|
...
|
|
323
447
|
|
|
324
|
-
def driver_add(self):
|
|
325
|
-
"""
|
|
448
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
449
|
+
"""Adds driver(s) to the given property
|
|
450
|
+
|
|
451
|
+
:return: The driver(s) added.
|
|
452
|
+
:rtype: bpy.types.FCurve
|
|
453
|
+
"""
|
|
326
454
|
...
|
|
327
455
|
|
|
328
|
-
def driver_remove(self):
|
|
329
|
-
"""
|
|
456
|
+
def driver_remove(self) -> bool:
|
|
457
|
+
"""Remove driver(s) from the given property
|
|
458
|
+
|
|
459
|
+
:return: Success of driver removal.
|
|
460
|
+
:rtype: bool
|
|
461
|
+
"""
|
|
330
462
|
...
|
|
331
463
|
|
|
332
464
|
def get(self):
|
|
333
|
-
"""
|
|
465
|
+
"""Returns the value of the custom property assigned to key or default
|
|
466
|
+
when not found (matches Python's dictionary function of the same name).
|
|
467
|
+
|
|
468
|
+
"""
|
|
334
469
|
...
|
|
335
470
|
|
|
336
471
|
def id_properties_clear(self):
|
|
337
|
-
"""
|
|
472
|
+
"""
|
|
473
|
+
|
|
474
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
475
|
+
"""
|
|
338
476
|
...
|
|
339
477
|
|
|
340
478
|
def id_properties_ensure(self):
|
|
341
|
-
"""
|
|
479
|
+
"""
|
|
480
|
+
|
|
481
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
482
|
+
"""
|
|
342
483
|
...
|
|
343
484
|
|
|
344
485
|
def id_properties_ui(self):
|
|
345
|
-
"""
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
489
|
+
"""
|
|
346
490
|
...
|
|
347
491
|
|
|
348
492
|
def is_extended(self):
|
|
349
493
|
""" """
|
|
350
494
|
...
|
|
351
495
|
|
|
352
|
-
def is_property_hidden(self):
|
|
353
|
-
"""
|
|
496
|
+
def is_property_hidden(self) -> bool:
|
|
497
|
+
"""Check if a property is hidden.
|
|
498
|
+
|
|
499
|
+
:return: True when the property is hidden.
|
|
500
|
+
:rtype: bool
|
|
501
|
+
"""
|
|
354
502
|
...
|
|
355
503
|
|
|
356
|
-
def is_property_overridable_library(self):
|
|
357
|
-
"""
|
|
504
|
+
def is_property_overridable_library(self) -> bool:
|
|
505
|
+
"""Check if a property is overridable.
|
|
506
|
+
|
|
507
|
+
:return: True when the property is overridable.
|
|
508
|
+
:rtype: bool
|
|
509
|
+
"""
|
|
358
510
|
...
|
|
359
511
|
|
|
360
|
-
def is_property_readonly(self):
|
|
361
|
-
"""
|
|
512
|
+
def is_property_readonly(self) -> bool:
|
|
513
|
+
"""Check if a property is readonly.
|
|
514
|
+
|
|
515
|
+
:return: True when the property is readonly (not writable).
|
|
516
|
+
:rtype: bool
|
|
517
|
+
"""
|
|
362
518
|
...
|
|
363
519
|
|
|
364
|
-
def is_property_set(self):
|
|
365
|
-
"""
|
|
520
|
+
def is_property_set(self) -> bool:
|
|
521
|
+
"""Check if a property is set, use for testing operator properties.
|
|
522
|
+
|
|
523
|
+
:return: True when the property has been set.
|
|
524
|
+
:rtype: bool
|
|
525
|
+
"""
|
|
366
526
|
...
|
|
367
527
|
|
|
368
528
|
def items(self):
|
|
369
|
-
"""
|
|
529
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
530
|
+
dictionary function of the same name).
|
|
531
|
+
|
|
532
|
+
:return: custom property key, value pairs.
|
|
533
|
+
"""
|
|
370
534
|
...
|
|
371
535
|
|
|
372
|
-
def keyframe_delete(self):
|
|
373
|
-
"""
|
|
536
|
+
def keyframe_delete(self) -> bool:
|
|
537
|
+
"""Remove a keyframe from this properties fcurve.
|
|
538
|
+
|
|
539
|
+
:return: Success of keyframe deletion.
|
|
540
|
+
:rtype: bool
|
|
541
|
+
"""
|
|
374
542
|
...
|
|
375
543
|
|
|
376
|
-
def keyframe_insert(self):
|
|
377
|
-
"""
|
|
544
|
+
def keyframe_insert(self) -> bool:
|
|
545
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
546
|
+
|
|
547
|
+
:return: Success of keyframe insertion.
|
|
548
|
+
:rtype: bool
|
|
549
|
+
"""
|
|
378
550
|
...
|
|
379
551
|
|
|
380
552
|
def keys(self):
|
|
381
|
-
"""
|
|
553
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
554
|
+
dictionary function of the same name).
|
|
555
|
+
|
|
556
|
+
:return: custom property keys.
|
|
557
|
+
"""
|
|
382
558
|
...
|
|
383
559
|
|
|
384
|
-
def path_from_id(self):
|
|
385
|
-
"""
|
|
560
|
+
def path_from_id(self) -> str:
|
|
561
|
+
"""Returns the data path from the ID to this object (string).
|
|
562
|
+
|
|
563
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
564
|
+
to this struct and property (when given).
|
|
565
|
+
:rtype: str
|
|
566
|
+
"""
|
|
386
567
|
...
|
|
387
568
|
|
|
388
569
|
def path_menu(
|
|
389
570
|
self,
|
|
390
|
-
searchpaths,
|
|
391
|
-
operator,
|
|
392
|
-
props_default,
|
|
393
|
-
prop_filepath,
|
|
394
|
-
filter_ext,
|
|
395
|
-
filter_path,
|
|
396
|
-
display_name,
|
|
397
|
-
add_operator,
|
|
398
|
-
add_operator_props,
|
|
571
|
+
searchpaths: list[str],
|
|
572
|
+
operator: str,
|
|
573
|
+
props_default: dict = None,
|
|
574
|
+
prop_filepath: str = "filepath",
|
|
575
|
+
filter_ext: typing.Callable = None,
|
|
576
|
+
filter_path=None,
|
|
577
|
+
display_name: typing.Callable = None,
|
|
578
|
+
add_operator=None,
|
|
579
|
+
add_operator_props=None,
|
|
399
580
|
):
|
|
400
|
-
"""
|
|
581
|
+
"""Populate a menu from a list of paths.
|
|
401
582
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
583
|
+
:param searchpaths: Paths to scan.
|
|
584
|
+
:type searchpaths: list[str]
|
|
585
|
+
:param operator: The operator id to use with each file.
|
|
586
|
+
:type operator: str
|
|
587
|
+
:param props_default: Properties to assign to each operator.
|
|
588
|
+
:type props_default: dict
|
|
589
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
590
|
+
:type prop_filepath: str
|
|
591
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
592
|
+
|
|
593
|
+
Returning false excludes the file from the list.
|
|
594
|
+
:type filter_ext: typing.Callable
|
|
595
|
+
:param filter_path:
|
|
596
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
597
|
+
:type display_name: typing.Callable
|
|
598
|
+
:param add_operator:
|
|
599
|
+
:param add_operator_props:
|
|
411
600
|
"""
|
|
412
601
|
...
|
|
413
602
|
|
|
414
603
|
def path_resolve(self):
|
|
415
|
-
""" """
|
|
604
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
416
605
|
...
|
|
417
606
|
|
|
418
607
|
def pop(self):
|
|
419
|
-
"""
|
|
608
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
609
|
+
when not found (matches Python's dictionary function of the same name).
|
|
610
|
+
|
|
611
|
+
"""
|
|
420
612
|
...
|
|
421
613
|
|
|
422
614
|
def prepend(self, draw_func):
|
|
423
|
-
"""
|
|
615
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
616
|
+
the menus draw function
|
|
424
617
|
|
|
425
|
-
|
|
618
|
+
:param draw_func:
|
|
426
619
|
"""
|
|
427
620
|
...
|
|
428
621
|
|
|
429
|
-
def property_overridable_library_set(self):
|
|
430
|
-
"""
|
|
622
|
+
def property_overridable_library_set(self) -> bool:
|
|
623
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
624
|
+
|
|
625
|
+
:return: True when the overridable status of the property was successfully set.
|
|
626
|
+
:rtype: bool
|
|
627
|
+
"""
|
|
431
628
|
...
|
|
432
629
|
|
|
433
630
|
def property_unset(self):
|
|
434
|
-
""" """
|
|
631
|
+
"""Unset a property, will use default value afterward."""
|
|
435
632
|
...
|
|
436
633
|
|
|
437
634
|
def remove(self, draw_func):
|
|
438
|
-
"""
|
|
635
|
+
"""Remove a draw function that has been added to this menu
|
|
439
636
|
|
|
440
637
|
:param draw_func:
|
|
441
638
|
"""
|
|
442
639
|
...
|
|
443
640
|
|
|
444
641
|
def type_recast(self):
|
|
445
|
-
"""
|
|
642
|
+
"""Return a new instance, this is needed because types
|
|
643
|
+
such as textures can be changed at runtime.
|
|
644
|
+
|
|
645
|
+
:return: a new instance of this object with the type initialized again.
|
|
646
|
+
"""
|
|
446
647
|
...
|
|
447
648
|
|
|
448
649
|
def values(self):
|
|
449
|
-
"""
|
|
650
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
651
|
+
dictionary function of the same name).
|
|
652
|
+
|
|
653
|
+
:return: custom property values.
|
|
654
|
+
"""
|
|
450
655
|
...
|
|
451
656
|
|
|
452
657
|
class UI_UL_list(bpy_types.UIList, bpy_types._GenericUI):
|
|
@@ -485,7 +690,9 @@ class UI_UL_list(bpy_types.UIList, bpy_types._GenericUI):
|
|
|
485
690
|
""" """
|
|
486
691
|
...
|
|
487
692
|
|
|
488
|
-
def filter_items_by_name(
|
|
693
|
+
def filter_items_by_name(
|
|
694
|
+
self, pattern, bitflag, items, propname="name", flags=None, reverse=False
|
|
695
|
+
):
|
|
489
696
|
"""
|
|
490
697
|
|
|
491
698
|
:param pattern:
|
|
@@ -583,7 +790,7 @@ class UI_UL_list(bpy_types.UIList, bpy_types._GenericUI):
|
|
|
583
790
|
"""
|
|
584
791
|
...
|
|
585
792
|
|
|
586
|
-
def sort_items_by_name(self, items, propname):
|
|
793
|
+
def sort_items_by_name(self, items, propname="name"):
|
|
587
794
|
"""
|
|
588
795
|
|
|
589
796
|
:param items:
|
|
@@ -591,7 +798,7 @@ class UI_UL_list(bpy_types.UIList, bpy_types._GenericUI):
|
|
|
591
798
|
"""
|
|
592
799
|
...
|
|
593
800
|
|
|
594
|
-
def sort_items_helper(self, sort_data, key, reverse):
|
|
801
|
+
def sort_items_helper(self, sort_data, key, reverse=False):
|
|
595
802
|
"""
|
|
596
803
|
|
|
597
804
|
:param sort_data:
|