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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import bpy.types
|
|
2
3
|
import bpy_types
|
|
3
4
|
import rna_prop_ui
|
|
4
5
|
|
|
@@ -48,22 +49,35 @@ class DATA_PT_EEVEE_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericU
|
|
|
48
49
|
""" """
|
|
49
50
|
|
|
50
51
|
def append(self, draw_func):
|
|
51
|
-
"""
|
|
52
|
+
"""Append a draw function to this menu,
|
|
53
|
+
takes the same arguments as the menus draw function
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
:param draw_func:
|
|
54
56
|
"""
|
|
55
57
|
...
|
|
56
58
|
|
|
57
|
-
def as_pointer(self):
|
|
58
|
-
"""
|
|
59
|
+
def as_pointer(self) -> int:
|
|
60
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
61
|
+
|
|
62
|
+
:return: int (memory address).
|
|
63
|
+
:rtype: int
|
|
64
|
+
"""
|
|
59
65
|
...
|
|
60
66
|
|
|
61
|
-
def bl_rna_get_subclass(self):
|
|
62
|
-
"""
|
|
67
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
:return: The RNA type or default when not found.
|
|
71
|
+
:rtype: bpy.types.Struct
|
|
72
|
+
"""
|
|
63
73
|
...
|
|
64
74
|
|
|
65
|
-
def bl_rna_get_subclass_py(self):
|
|
66
|
-
"""
|
|
75
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
:return: The class or default when not found.
|
|
79
|
+
:rtype: typing.Any
|
|
80
|
+
"""
|
|
67
81
|
...
|
|
68
82
|
|
|
69
83
|
def draw(self, context):
|
|
@@ -73,72 +87,129 @@ class DATA_PT_EEVEE_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericU
|
|
|
73
87
|
"""
|
|
74
88
|
...
|
|
75
89
|
|
|
76
|
-
def driver_add(self):
|
|
77
|
-
"""
|
|
90
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
91
|
+
"""Adds driver(s) to the given property
|
|
92
|
+
|
|
93
|
+
:return: The driver(s) added.
|
|
94
|
+
:rtype: bpy.types.FCurve
|
|
95
|
+
"""
|
|
78
96
|
...
|
|
79
97
|
|
|
80
|
-
def driver_remove(self):
|
|
81
|
-
"""
|
|
98
|
+
def driver_remove(self) -> bool:
|
|
99
|
+
"""Remove driver(s) from the given property
|
|
100
|
+
|
|
101
|
+
:return: Success of driver removal.
|
|
102
|
+
:rtype: bool
|
|
103
|
+
"""
|
|
82
104
|
...
|
|
83
105
|
|
|
84
106
|
def get(self):
|
|
85
|
-
"""
|
|
107
|
+
"""Returns the value of the custom property assigned to key or default
|
|
108
|
+
when not found (matches Python's dictionary function of the same name).
|
|
109
|
+
|
|
110
|
+
"""
|
|
86
111
|
...
|
|
87
112
|
|
|
88
113
|
def id_properties_clear(self):
|
|
89
|
-
"""
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
117
|
+
"""
|
|
90
118
|
...
|
|
91
119
|
|
|
92
120
|
def id_properties_ensure(self):
|
|
93
|
-
"""
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
124
|
+
"""
|
|
94
125
|
...
|
|
95
126
|
|
|
96
127
|
def id_properties_ui(self):
|
|
97
|
-
"""
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
131
|
+
"""
|
|
98
132
|
...
|
|
99
133
|
|
|
100
134
|
def is_extended(self):
|
|
101
135
|
""" """
|
|
102
136
|
...
|
|
103
137
|
|
|
104
|
-
def is_property_hidden(self):
|
|
105
|
-
"""
|
|
138
|
+
def is_property_hidden(self) -> bool:
|
|
139
|
+
"""Check if a property is hidden.
|
|
140
|
+
|
|
141
|
+
:return: True when the property is hidden.
|
|
142
|
+
:rtype: bool
|
|
143
|
+
"""
|
|
106
144
|
...
|
|
107
145
|
|
|
108
|
-
def is_property_overridable_library(self):
|
|
109
|
-
"""
|
|
146
|
+
def is_property_overridable_library(self) -> bool:
|
|
147
|
+
"""Check if a property is overridable.
|
|
148
|
+
|
|
149
|
+
:return: True when the property is overridable.
|
|
150
|
+
:rtype: bool
|
|
151
|
+
"""
|
|
110
152
|
...
|
|
111
153
|
|
|
112
|
-
def is_property_readonly(self):
|
|
113
|
-
"""
|
|
154
|
+
def is_property_readonly(self) -> bool:
|
|
155
|
+
"""Check if a property is readonly.
|
|
156
|
+
|
|
157
|
+
:return: True when the property is readonly (not writable).
|
|
158
|
+
:rtype: bool
|
|
159
|
+
"""
|
|
114
160
|
...
|
|
115
161
|
|
|
116
|
-
def is_property_set(self):
|
|
117
|
-
"""
|
|
162
|
+
def is_property_set(self) -> bool:
|
|
163
|
+
"""Check if a property is set, use for testing operator properties.
|
|
164
|
+
|
|
165
|
+
:return: True when the property has been set.
|
|
166
|
+
:rtype: bool
|
|
167
|
+
"""
|
|
118
168
|
...
|
|
119
169
|
|
|
120
170
|
def items(self):
|
|
121
|
-
"""
|
|
171
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
172
|
+
dictionary function of the same name).
|
|
173
|
+
|
|
174
|
+
:return: custom property key, value pairs.
|
|
175
|
+
"""
|
|
122
176
|
...
|
|
123
177
|
|
|
124
|
-
def keyframe_delete(self):
|
|
125
|
-
"""
|
|
178
|
+
def keyframe_delete(self) -> bool:
|
|
179
|
+
"""Remove a keyframe from this properties fcurve.
|
|
180
|
+
|
|
181
|
+
:return: Success of keyframe deletion.
|
|
182
|
+
:rtype: bool
|
|
183
|
+
"""
|
|
126
184
|
...
|
|
127
185
|
|
|
128
|
-
def keyframe_insert(self):
|
|
129
|
-
"""
|
|
186
|
+
def keyframe_insert(self) -> bool:
|
|
187
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
188
|
+
|
|
189
|
+
:return: Success of keyframe insertion.
|
|
190
|
+
:rtype: bool
|
|
191
|
+
"""
|
|
130
192
|
...
|
|
131
193
|
|
|
132
194
|
def keys(self):
|
|
133
|
-
"""
|
|
195
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
196
|
+
dictionary function of the same name).
|
|
197
|
+
|
|
198
|
+
:return: custom property keys.
|
|
199
|
+
"""
|
|
134
200
|
...
|
|
135
201
|
|
|
136
|
-
def path_from_id(self):
|
|
137
|
-
"""
|
|
202
|
+
def path_from_id(self) -> str:
|
|
203
|
+
"""Returns the data path from the ID to this object (string).
|
|
204
|
+
|
|
205
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
206
|
+
to this struct and property (when given).
|
|
207
|
+
:rtype: str
|
|
208
|
+
"""
|
|
138
209
|
...
|
|
139
210
|
|
|
140
211
|
def path_resolve(self):
|
|
141
|
-
""" """
|
|
212
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
142
213
|
...
|
|
143
214
|
|
|
144
215
|
def poll(self, context):
|
|
@@ -149,37 +220,53 @@ class DATA_PT_EEVEE_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericU
|
|
|
149
220
|
...
|
|
150
221
|
|
|
151
222
|
def pop(self):
|
|
152
|
-
"""
|
|
223
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
224
|
+
when not found (matches Python's dictionary function of the same name).
|
|
225
|
+
|
|
226
|
+
"""
|
|
153
227
|
...
|
|
154
228
|
|
|
155
229
|
def prepend(self, draw_func):
|
|
156
|
-
"""
|
|
230
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
231
|
+
the menus draw function
|
|
157
232
|
|
|
158
|
-
|
|
233
|
+
:param draw_func:
|
|
159
234
|
"""
|
|
160
235
|
...
|
|
161
236
|
|
|
162
|
-
def property_overridable_library_set(self):
|
|
163
|
-
"""
|
|
237
|
+
def property_overridable_library_set(self) -> bool:
|
|
238
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
239
|
+
|
|
240
|
+
:return: True when the overridable status of the property was successfully set.
|
|
241
|
+
:rtype: bool
|
|
242
|
+
"""
|
|
164
243
|
...
|
|
165
244
|
|
|
166
245
|
def property_unset(self):
|
|
167
|
-
""" """
|
|
246
|
+
"""Unset a property, will use default value afterward."""
|
|
168
247
|
...
|
|
169
248
|
|
|
170
249
|
def remove(self, draw_func):
|
|
171
|
-
"""
|
|
250
|
+
"""Remove a draw function that has been added to this menu
|
|
172
251
|
|
|
173
252
|
:param draw_func:
|
|
174
253
|
"""
|
|
175
254
|
...
|
|
176
255
|
|
|
177
256
|
def type_recast(self):
|
|
178
|
-
"""
|
|
257
|
+
"""Return a new instance, this is needed because types
|
|
258
|
+
such as textures can be changed at runtime.
|
|
259
|
+
|
|
260
|
+
:return: a new instance of this object with the type initialized again.
|
|
261
|
+
"""
|
|
179
262
|
...
|
|
180
263
|
|
|
181
264
|
def values(self):
|
|
182
|
-
"""
|
|
265
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
266
|
+
dictionary function of the same name).
|
|
267
|
+
|
|
268
|
+
:return: custom property values.
|
|
269
|
+
"""
|
|
183
270
|
...
|
|
184
271
|
|
|
185
272
|
class DATA_PT_EEVEE_light_distance(
|
|
@@ -215,22 +302,35 @@ class DATA_PT_EEVEE_light_distance(
|
|
|
215
302
|
""" """
|
|
216
303
|
|
|
217
304
|
def append(self, draw_func):
|
|
218
|
-
"""
|
|
305
|
+
"""Append a draw function to this menu,
|
|
306
|
+
takes the same arguments as the menus draw function
|
|
219
307
|
|
|
220
|
-
|
|
308
|
+
:param draw_func:
|
|
221
309
|
"""
|
|
222
310
|
...
|
|
223
311
|
|
|
224
|
-
def as_pointer(self):
|
|
225
|
-
"""
|
|
312
|
+
def as_pointer(self) -> int:
|
|
313
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
314
|
+
|
|
315
|
+
:return: int (memory address).
|
|
316
|
+
:rtype: int
|
|
317
|
+
"""
|
|
226
318
|
...
|
|
227
319
|
|
|
228
|
-
def bl_rna_get_subclass(self):
|
|
229
|
-
"""
|
|
320
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
:return: The RNA type or default when not found.
|
|
324
|
+
:rtype: bpy.types.Struct
|
|
325
|
+
"""
|
|
230
326
|
...
|
|
231
327
|
|
|
232
|
-
def bl_rna_get_subclass_py(self):
|
|
233
|
-
"""
|
|
328
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
:return: The class or default when not found.
|
|
332
|
+
:rtype: typing.Any
|
|
333
|
+
"""
|
|
234
334
|
...
|
|
235
335
|
|
|
236
336
|
def draw(self, context):
|
|
@@ -247,72 +347,129 @@ class DATA_PT_EEVEE_light_distance(
|
|
|
247
347
|
"""
|
|
248
348
|
...
|
|
249
349
|
|
|
250
|
-
def driver_add(self):
|
|
251
|
-
"""
|
|
350
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
351
|
+
"""Adds driver(s) to the given property
|
|
352
|
+
|
|
353
|
+
:return: The driver(s) added.
|
|
354
|
+
:rtype: bpy.types.FCurve
|
|
355
|
+
"""
|
|
252
356
|
...
|
|
253
357
|
|
|
254
|
-
def driver_remove(self):
|
|
255
|
-
"""
|
|
358
|
+
def driver_remove(self) -> bool:
|
|
359
|
+
"""Remove driver(s) from the given property
|
|
360
|
+
|
|
361
|
+
:return: Success of driver removal.
|
|
362
|
+
:rtype: bool
|
|
363
|
+
"""
|
|
256
364
|
...
|
|
257
365
|
|
|
258
366
|
def get(self):
|
|
259
|
-
"""
|
|
367
|
+
"""Returns the value of the custom property assigned to key or default
|
|
368
|
+
when not found (matches Python's dictionary function of the same name).
|
|
369
|
+
|
|
370
|
+
"""
|
|
260
371
|
...
|
|
261
372
|
|
|
262
373
|
def id_properties_clear(self):
|
|
263
|
-
"""
|
|
374
|
+
"""
|
|
375
|
+
|
|
376
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
377
|
+
"""
|
|
264
378
|
...
|
|
265
379
|
|
|
266
380
|
def id_properties_ensure(self):
|
|
267
|
-
"""
|
|
381
|
+
"""
|
|
382
|
+
|
|
383
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
384
|
+
"""
|
|
268
385
|
...
|
|
269
386
|
|
|
270
387
|
def id_properties_ui(self):
|
|
271
|
-
"""
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
391
|
+
"""
|
|
272
392
|
...
|
|
273
393
|
|
|
274
394
|
def is_extended(self):
|
|
275
395
|
""" """
|
|
276
396
|
...
|
|
277
397
|
|
|
278
|
-
def is_property_hidden(self):
|
|
279
|
-
"""
|
|
398
|
+
def is_property_hidden(self) -> bool:
|
|
399
|
+
"""Check if a property is hidden.
|
|
400
|
+
|
|
401
|
+
:return: True when the property is hidden.
|
|
402
|
+
:rtype: bool
|
|
403
|
+
"""
|
|
280
404
|
...
|
|
281
405
|
|
|
282
|
-
def is_property_overridable_library(self):
|
|
283
|
-
"""
|
|
406
|
+
def is_property_overridable_library(self) -> bool:
|
|
407
|
+
"""Check if a property is overridable.
|
|
408
|
+
|
|
409
|
+
:return: True when the property is overridable.
|
|
410
|
+
:rtype: bool
|
|
411
|
+
"""
|
|
284
412
|
...
|
|
285
413
|
|
|
286
|
-
def is_property_readonly(self):
|
|
287
|
-
"""
|
|
414
|
+
def is_property_readonly(self) -> bool:
|
|
415
|
+
"""Check if a property is readonly.
|
|
416
|
+
|
|
417
|
+
:return: True when the property is readonly (not writable).
|
|
418
|
+
:rtype: bool
|
|
419
|
+
"""
|
|
288
420
|
...
|
|
289
421
|
|
|
290
|
-
def is_property_set(self):
|
|
291
|
-
"""
|
|
422
|
+
def is_property_set(self) -> bool:
|
|
423
|
+
"""Check if a property is set, use for testing operator properties.
|
|
424
|
+
|
|
425
|
+
:return: True when the property has been set.
|
|
426
|
+
:rtype: bool
|
|
427
|
+
"""
|
|
292
428
|
...
|
|
293
429
|
|
|
294
430
|
def items(self):
|
|
295
|
-
"""
|
|
431
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
432
|
+
dictionary function of the same name).
|
|
433
|
+
|
|
434
|
+
:return: custom property key, value pairs.
|
|
435
|
+
"""
|
|
296
436
|
...
|
|
297
437
|
|
|
298
|
-
def keyframe_delete(self):
|
|
299
|
-
"""
|
|
438
|
+
def keyframe_delete(self) -> bool:
|
|
439
|
+
"""Remove a keyframe from this properties fcurve.
|
|
440
|
+
|
|
441
|
+
:return: Success of keyframe deletion.
|
|
442
|
+
:rtype: bool
|
|
443
|
+
"""
|
|
300
444
|
...
|
|
301
445
|
|
|
302
|
-
def keyframe_insert(self):
|
|
303
|
-
"""
|
|
446
|
+
def keyframe_insert(self) -> bool:
|
|
447
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
448
|
+
|
|
449
|
+
:return: Success of keyframe insertion.
|
|
450
|
+
:rtype: bool
|
|
451
|
+
"""
|
|
304
452
|
...
|
|
305
453
|
|
|
306
454
|
def keys(self):
|
|
307
|
-
"""
|
|
455
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
456
|
+
dictionary function of the same name).
|
|
457
|
+
|
|
458
|
+
:return: custom property keys.
|
|
459
|
+
"""
|
|
308
460
|
...
|
|
309
461
|
|
|
310
|
-
def path_from_id(self):
|
|
311
|
-
"""
|
|
462
|
+
def path_from_id(self) -> str:
|
|
463
|
+
"""Returns the data path from the ID to this object (string).
|
|
464
|
+
|
|
465
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
466
|
+
to this struct and property (when given).
|
|
467
|
+
:rtype: str
|
|
468
|
+
"""
|
|
312
469
|
...
|
|
313
470
|
|
|
314
471
|
def path_resolve(self):
|
|
315
|
-
""" """
|
|
472
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
316
473
|
...
|
|
317
474
|
|
|
318
475
|
def poll(self, context):
|
|
@@ -323,37 +480,53 @@ class DATA_PT_EEVEE_light_distance(
|
|
|
323
480
|
...
|
|
324
481
|
|
|
325
482
|
def pop(self):
|
|
326
|
-
"""
|
|
483
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
484
|
+
when not found (matches Python's dictionary function of the same name).
|
|
485
|
+
|
|
486
|
+
"""
|
|
327
487
|
...
|
|
328
488
|
|
|
329
489
|
def prepend(self, draw_func):
|
|
330
|
-
"""
|
|
490
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
491
|
+
the menus draw function
|
|
331
492
|
|
|
332
|
-
|
|
493
|
+
:param draw_func:
|
|
333
494
|
"""
|
|
334
495
|
...
|
|
335
496
|
|
|
336
|
-
def property_overridable_library_set(self):
|
|
337
|
-
"""
|
|
497
|
+
def property_overridable_library_set(self) -> bool:
|
|
498
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
499
|
+
|
|
500
|
+
:return: True when the overridable status of the property was successfully set.
|
|
501
|
+
:rtype: bool
|
|
502
|
+
"""
|
|
338
503
|
...
|
|
339
504
|
|
|
340
505
|
def property_unset(self):
|
|
341
|
-
""" """
|
|
506
|
+
"""Unset a property, will use default value afterward."""
|
|
342
507
|
...
|
|
343
508
|
|
|
344
509
|
def remove(self, draw_func):
|
|
345
|
-
"""
|
|
510
|
+
"""Remove a draw function that has been added to this menu
|
|
346
511
|
|
|
347
512
|
:param draw_func:
|
|
348
513
|
"""
|
|
349
514
|
...
|
|
350
515
|
|
|
351
516
|
def type_recast(self):
|
|
352
|
-
"""
|
|
517
|
+
"""Return a new instance, this is needed because types
|
|
518
|
+
such as textures can be changed at runtime.
|
|
519
|
+
|
|
520
|
+
:return: a new instance of this object with the type initialized again.
|
|
521
|
+
"""
|
|
353
522
|
...
|
|
354
523
|
|
|
355
524
|
def values(self):
|
|
356
|
-
"""
|
|
525
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
526
|
+
dictionary function of the same name).
|
|
527
|
+
|
|
528
|
+
:return: custom property values.
|
|
529
|
+
"""
|
|
357
530
|
...
|
|
358
531
|
|
|
359
532
|
class DATA_PT_EEVEE_light_influence(
|
|
@@ -389,22 +562,35 @@ class DATA_PT_EEVEE_light_influence(
|
|
|
389
562
|
""" """
|
|
390
563
|
|
|
391
564
|
def append(self, draw_func):
|
|
392
|
-
"""
|
|
565
|
+
"""Append a draw function to this menu,
|
|
566
|
+
takes the same arguments as the menus draw function
|
|
393
567
|
|
|
394
|
-
|
|
568
|
+
:param draw_func:
|
|
395
569
|
"""
|
|
396
570
|
...
|
|
397
571
|
|
|
398
|
-
def as_pointer(self):
|
|
399
|
-
"""
|
|
572
|
+
def as_pointer(self) -> int:
|
|
573
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
574
|
+
|
|
575
|
+
:return: int (memory address).
|
|
576
|
+
:rtype: int
|
|
577
|
+
"""
|
|
400
578
|
...
|
|
401
579
|
|
|
402
|
-
def bl_rna_get_subclass(self):
|
|
403
|
-
"""
|
|
580
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
581
|
+
"""
|
|
582
|
+
|
|
583
|
+
:return: The RNA type or default when not found.
|
|
584
|
+
:rtype: bpy.types.Struct
|
|
585
|
+
"""
|
|
404
586
|
...
|
|
405
587
|
|
|
406
|
-
def bl_rna_get_subclass_py(self):
|
|
407
|
-
"""
|
|
588
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
589
|
+
"""
|
|
590
|
+
|
|
591
|
+
:return: The class or default when not found.
|
|
592
|
+
:rtype: typing.Any
|
|
593
|
+
"""
|
|
408
594
|
...
|
|
409
595
|
|
|
410
596
|
def draw(self, context):
|
|
@@ -414,72 +600,129 @@ class DATA_PT_EEVEE_light_influence(
|
|
|
414
600
|
"""
|
|
415
601
|
...
|
|
416
602
|
|
|
417
|
-
def driver_add(self):
|
|
418
|
-
"""
|
|
603
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
604
|
+
"""Adds driver(s) to the given property
|
|
605
|
+
|
|
606
|
+
:return: The driver(s) added.
|
|
607
|
+
:rtype: bpy.types.FCurve
|
|
608
|
+
"""
|
|
419
609
|
...
|
|
420
610
|
|
|
421
|
-
def driver_remove(self):
|
|
422
|
-
"""
|
|
611
|
+
def driver_remove(self) -> bool:
|
|
612
|
+
"""Remove driver(s) from the given property
|
|
613
|
+
|
|
614
|
+
:return: Success of driver removal.
|
|
615
|
+
:rtype: bool
|
|
616
|
+
"""
|
|
423
617
|
...
|
|
424
618
|
|
|
425
619
|
def get(self):
|
|
426
|
-
"""
|
|
620
|
+
"""Returns the value of the custom property assigned to key or default
|
|
621
|
+
when not found (matches Python's dictionary function of the same name).
|
|
622
|
+
|
|
623
|
+
"""
|
|
427
624
|
...
|
|
428
625
|
|
|
429
626
|
def id_properties_clear(self):
|
|
430
|
-
"""
|
|
627
|
+
"""
|
|
628
|
+
|
|
629
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
630
|
+
"""
|
|
431
631
|
...
|
|
432
632
|
|
|
433
633
|
def id_properties_ensure(self):
|
|
434
|
-
"""
|
|
634
|
+
"""
|
|
635
|
+
|
|
636
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
637
|
+
"""
|
|
435
638
|
...
|
|
436
639
|
|
|
437
640
|
def id_properties_ui(self):
|
|
438
|
-
"""
|
|
641
|
+
"""
|
|
642
|
+
|
|
643
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
644
|
+
"""
|
|
439
645
|
...
|
|
440
646
|
|
|
441
647
|
def is_extended(self):
|
|
442
648
|
""" """
|
|
443
649
|
...
|
|
444
650
|
|
|
445
|
-
def is_property_hidden(self):
|
|
446
|
-
"""
|
|
651
|
+
def is_property_hidden(self) -> bool:
|
|
652
|
+
"""Check if a property is hidden.
|
|
653
|
+
|
|
654
|
+
:return: True when the property is hidden.
|
|
655
|
+
:rtype: bool
|
|
656
|
+
"""
|
|
447
657
|
...
|
|
448
658
|
|
|
449
|
-
def is_property_overridable_library(self):
|
|
450
|
-
"""
|
|
659
|
+
def is_property_overridable_library(self) -> bool:
|
|
660
|
+
"""Check if a property is overridable.
|
|
661
|
+
|
|
662
|
+
:return: True when the property is overridable.
|
|
663
|
+
:rtype: bool
|
|
664
|
+
"""
|
|
451
665
|
...
|
|
452
666
|
|
|
453
|
-
def is_property_readonly(self):
|
|
454
|
-
"""
|
|
667
|
+
def is_property_readonly(self) -> bool:
|
|
668
|
+
"""Check if a property is readonly.
|
|
669
|
+
|
|
670
|
+
:return: True when the property is readonly (not writable).
|
|
671
|
+
:rtype: bool
|
|
672
|
+
"""
|
|
455
673
|
...
|
|
456
674
|
|
|
457
|
-
def is_property_set(self):
|
|
458
|
-
"""
|
|
675
|
+
def is_property_set(self) -> bool:
|
|
676
|
+
"""Check if a property is set, use for testing operator properties.
|
|
677
|
+
|
|
678
|
+
:return: True when the property has been set.
|
|
679
|
+
:rtype: bool
|
|
680
|
+
"""
|
|
459
681
|
...
|
|
460
682
|
|
|
461
683
|
def items(self):
|
|
462
|
-
"""
|
|
684
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
685
|
+
dictionary function of the same name).
|
|
686
|
+
|
|
687
|
+
:return: custom property key, value pairs.
|
|
688
|
+
"""
|
|
463
689
|
...
|
|
464
690
|
|
|
465
|
-
def keyframe_delete(self):
|
|
466
|
-
"""
|
|
691
|
+
def keyframe_delete(self) -> bool:
|
|
692
|
+
"""Remove a keyframe from this properties fcurve.
|
|
693
|
+
|
|
694
|
+
:return: Success of keyframe deletion.
|
|
695
|
+
:rtype: bool
|
|
696
|
+
"""
|
|
467
697
|
...
|
|
468
698
|
|
|
469
|
-
def keyframe_insert(self):
|
|
470
|
-
"""
|
|
699
|
+
def keyframe_insert(self) -> bool:
|
|
700
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
701
|
+
|
|
702
|
+
:return: Success of keyframe insertion.
|
|
703
|
+
:rtype: bool
|
|
704
|
+
"""
|
|
471
705
|
...
|
|
472
706
|
|
|
473
707
|
def keys(self):
|
|
474
|
-
"""
|
|
708
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
709
|
+
dictionary function of the same name).
|
|
710
|
+
|
|
711
|
+
:return: custom property keys.
|
|
712
|
+
"""
|
|
475
713
|
...
|
|
476
714
|
|
|
477
|
-
def path_from_id(self):
|
|
478
|
-
"""
|
|
715
|
+
def path_from_id(self) -> str:
|
|
716
|
+
"""Returns the data path from the ID to this object (string).
|
|
717
|
+
|
|
718
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
719
|
+
to this struct and property (when given).
|
|
720
|
+
:rtype: str
|
|
721
|
+
"""
|
|
479
722
|
...
|
|
480
723
|
|
|
481
724
|
def path_resolve(self):
|
|
482
|
-
""" """
|
|
725
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
483
726
|
...
|
|
484
727
|
|
|
485
728
|
def poll(self, context):
|
|
@@ -490,37 +733,53 @@ class DATA_PT_EEVEE_light_influence(
|
|
|
490
733
|
...
|
|
491
734
|
|
|
492
735
|
def pop(self):
|
|
493
|
-
"""
|
|
736
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
737
|
+
when not found (matches Python's dictionary function of the same name).
|
|
738
|
+
|
|
739
|
+
"""
|
|
494
740
|
...
|
|
495
741
|
|
|
496
742
|
def prepend(self, draw_func):
|
|
497
|
-
"""
|
|
743
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
744
|
+
the menus draw function
|
|
498
745
|
|
|
499
|
-
|
|
746
|
+
:param draw_func:
|
|
500
747
|
"""
|
|
501
748
|
...
|
|
502
749
|
|
|
503
|
-
def property_overridable_library_set(self):
|
|
504
|
-
"""
|
|
750
|
+
def property_overridable_library_set(self) -> bool:
|
|
751
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
752
|
+
|
|
753
|
+
:return: True when the overridable status of the property was successfully set.
|
|
754
|
+
:rtype: bool
|
|
755
|
+
"""
|
|
505
756
|
...
|
|
506
757
|
|
|
507
758
|
def property_unset(self):
|
|
508
|
-
""" """
|
|
759
|
+
"""Unset a property, will use default value afterward."""
|
|
509
760
|
...
|
|
510
761
|
|
|
511
762
|
def remove(self, draw_func):
|
|
512
|
-
"""
|
|
763
|
+
"""Remove a draw function that has been added to this menu
|
|
513
764
|
|
|
514
765
|
:param draw_func:
|
|
515
766
|
"""
|
|
516
767
|
...
|
|
517
768
|
|
|
518
769
|
def type_recast(self):
|
|
519
|
-
"""
|
|
770
|
+
"""Return a new instance, this is needed because types
|
|
771
|
+
such as textures can be changed at runtime.
|
|
772
|
+
|
|
773
|
+
:return: a new instance of this object with the type initialized again.
|
|
774
|
+
"""
|
|
520
775
|
...
|
|
521
776
|
|
|
522
777
|
def values(self):
|
|
523
|
-
"""
|
|
778
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
779
|
+
dictionary function of the same name).
|
|
780
|
+
|
|
781
|
+
:return: custom property values.
|
|
782
|
+
"""
|
|
524
783
|
...
|
|
525
784
|
|
|
526
785
|
class DATA_PT_EEVEE_light_shadow(
|
|
@@ -556,22 +815,35 @@ class DATA_PT_EEVEE_light_shadow(
|
|
|
556
815
|
""" """
|
|
557
816
|
|
|
558
817
|
def append(self, draw_func):
|
|
559
|
-
"""
|
|
818
|
+
"""Append a draw function to this menu,
|
|
819
|
+
takes the same arguments as the menus draw function
|
|
560
820
|
|
|
561
|
-
|
|
821
|
+
:param draw_func:
|
|
562
822
|
"""
|
|
563
823
|
...
|
|
564
824
|
|
|
565
|
-
def as_pointer(self):
|
|
566
|
-
"""
|
|
825
|
+
def as_pointer(self) -> int:
|
|
826
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
827
|
+
|
|
828
|
+
:return: int (memory address).
|
|
829
|
+
:rtype: int
|
|
830
|
+
"""
|
|
567
831
|
...
|
|
568
832
|
|
|
569
|
-
def bl_rna_get_subclass(self):
|
|
570
|
-
"""
|
|
833
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
834
|
+
"""
|
|
835
|
+
|
|
836
|
+
:return: The RNA type or default when not found.
|
|
837
|
+
:rtype: bpy.types.Struct
|
|
838
|
+
"""
|
|
571
839
|
...
|
|
572
840
|
|
|
573
|
-
def bl_rna_get_subclass_py(self):
|
|
574
|
-
"""
|
|
841
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
842
|
+
"""
|
|
843
|
+
|
|
844
|
+
:return: The class or default when not found.
|
|
845
|
+
:rtype: typing.Any
|
|
846
|
+
"""
|
|
575
847
|
...
|
|
576
848
|
|
|
577
849
|
def draw(self, context):
|
|
@@ -588,72 +860,129 @@ class DATA_PT_EEVEE_light_shadow(
|
|
|
588
860
|
"""
|
|
589
861
|
...
|
|
590
862
|
|
|
591
|
-
def driver_add(self):
|
|
592
|
-
"""
|
|
863
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
864
|
+
"""Adds driver(s) to the given property
|
|
865
|
+
|
|
866
|
+
:return: The driver(s) added.
|
|
867
|
+
:rtype: bpy.types.FCurve
|
|
868
|
+
"""
|
|
593
869
|
...
|
|
594
870
|
|
|
595
|
-
def driver_remove(self):
|
|
596
|
-
"""
|
|
871
|
+
def driver_remove(self) -> bool:
|
|
872
|
+
"""Remove driver(s) from the given property
|
|
873
|
+
|
|
874
|
+
:return: Success of driver removal.
|
|
875
|
+
:rtype: bool
|
|
876
|
+
"""
|
|
597
877
|
...
|
|
598
878
|
|
|
599
879
|
def get(self):
|
|
600
|
-
"""
|
|
880
|
+
"""Returns the value of the custom property assigned to key or default
|
|
881
|
+
when not found (matches Python's dictionary function of the same name).
|
|
882
|
+
|
|
883
|
+
"""
|
|
601
884
|
...
|
|
602
885
|
|
|
603
886
|
def id_properties_clear(self):
|
|
604
|
-
"""
|
|
887
|
+
"""
|
|
888
|
+
|
|
889
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
890
|
+
"""
|
|
605
891
|
...
|
|
606
892
|
|
|
607
893
|
def id_properties_ensure(self):
|
|
608
|
-
"""
|
|
894
|
+
"""
|
|
895
|
+
|
|
896
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
897
|
+
"""
|
|
609
898
|
...
|
|
610
899
|
|
|
611
900
|
def id_properties_ui(self):
|
|
612
|
-
"""
|
|
901
|
+
"""
|
|
902
|
+
|
|
903
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
904
|
+
"""
|
|
613
905
|
...
|
|
614
906
|
|
|
615
907
|
def is_extended(self):
|
|
616
908
|
""" """
|
|
617
909
|
...
|
|
618
910
|
|
|
619
|
-
def is_property_hidden(self):
|
|
620
|
-
"""
|
|
911
|
+
def is_property_hidden(self) -> bool:
|
|
912
|
+
"""Check if a property is hidden.
|
|
913
|
+
|
|
914
|
+
:return: True when the property is hidden.
|
|
915
|
+
:rtype: bool
|
|
916
|
+
"""
|
|
621
917
|
...
|
|
622
918
|
|
|
623
|
-
def is_property_overridable_library(self):
|
|
624
|
-
"""
|
|
919
|
+
def is_property_overridable_library(self) -> bool:
|
|
920
|
+
"""Check if a property is overridable.
|
|
921
|
+
|
|
922
|
+
:return: True when the property is overridable.
|
|
923
|
+
:rtype: bool
|
|
924
|
+
"""
|
|
625
925
|
...
|
|
626
926
|
|
|
627
|
-
def is_property_readonly(self):
|
|
628
|
-
"""
|
|
927
|
+
def is_property_readonly(self) -> bool:
|
|
928
|
+
"""Check if a property is readonly.
|
|
929
|
+
|
|
930
|
+
:return: True when the property is readonly (not writable).
|
|
931
|
+
:rtype: bool
|
|
932
|
+
"""
|
|
629
933
|
...
|
|
630
934
|
|
|
631
|
-
def is_property_set(self):
|
|
632
|
-
"""
|
|
935
|
+
def is_property_set(self) -> bool:
|
|
936
|
+
"""Check if a property is set, use for testing operator properties.
|
|
937
|
+
|
|
938
|
+
:return: True when the property has been set.
|
|
939
|
+
:rtype: bool
|
|
940
|
+
"""
|
|
633
941
|
...
|
|
634
942
|
|
|
635
943
|
def items(self):
|
|
636
|
-
"""
|
|
944
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
945
|
+
dictionary function of the same name).
|
|
946
|
+
|
|
947
|
+
:return: custom property key, value pairs.
|
|
948
|
+
"""
|
|
637
949
|
...
|
|
638
950
|
|
|
639
|
-
def keyframe_delete(self):
|
|
640
|
-
"""
|
|
951
|
+
def keyframe_delete(self) -> bool:
|
|
952
|
+
"""Remove a keyframe from this properties fcurve.
|
|
953
|
+
|
|
954
|
+
:return: Success of keyframe deletion.
|
|
955
|
+
:rtype: bool
|
|
956
|
+
"""
|
|
641
957
|
...
|
|
642
958
|
|
|
643
|
-
def keyframe_insert(self):
|
|
644
|
-
"""
|
|
959
|
+
def keyframe_insert(self) -> bool:
|
|
960
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
961
|
+
|
|
962
|
+
:return: Success of keyframe insertion.
|
|
963
|
+
:rtype: bool
|
|
964
|
+
"""
|
|
645
965
|
...
|
|
646
966
|
|
|
647
967
|
def keys(self):
|
|
648
|
-
"""
|
|
968
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
969
|
+
dictionary function of the same name).
|
|
970
|
+
|
|
971
|
+
:return: custom property keys.
|
|
972
|
+
"""
|
|
649
973
|
...
|
|
650
974
|
|
|
651
|
-
def path_from_id(self):
|
|
652
|
-
"""
|
|
975
|
+
def path_from_id(self) -> str:
|
|
976
|
+
"""Returns the data path from the ID to this object (string).
|
|
977
|
+
|
|
978
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
979
|
+
to this struct and property (when given).
|
|
980
|
+
:rtype: str
|
|
981
|
+
"""
|
|
653
982
|
...
|
|
654
983
|
|
|
655
984
|
def path_resolve(self):
|
|
656
|
-
""" """
|
|
985
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
657
986
|
...
|
|
658
987
|
|
|
659
988
|
def poll(self, context):
|
|
@@ -664,37 +993,53 @@ class DATA_PT_EEVEE_light_shadow(
|
|
|
664
993
|
...
|
|
665
994
|
|
|
666
995
|
def pop(self):
|
|
667
|
-
"""
|
|
996
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
997
|
+
when not found (matches Python's dictionary function of the same name).
|
|
998
|
+
|
|
999
|
+
"""
|
|
668
1000
|
...
|
|
669
1001
|
|
|
670
1002
|
def prepend(self, draw_func):
|
|
671
|
-
"""
|
|
1003
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1004
|
+
the menus draw function
|
|
672
1005
|
|
|
673
|
-
|
|
1006
|
+
:param draw_func:
|
|
674
1007
|
"""
|
|
675
1008
|
...
|
|
676
1009
|
|
|
677
|
-
def property_overridable_library_set(self):
|
|
678
|
-
"""
|
|
1010
|
+
def property_overridable_library_set(self) -> bool:
|
|
1011
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
1012
|
+
|
|
1013
|
+
:return: True when the overridable status of the property was successfully set.
|
|
1014
|
+
:rtype: bool
|
|
1015
|
+
"""
|
|
679
1016
|
...
|
|
680
1017
|
|
|
681
1018
|
def property_unset(self):
|
|
682
|
-
""" """
|
|
1019
|
+
"""Unset a property, will use default value afterward."""
|
|
683
1020
|
...
|
|
684
1021
|
|
|
685
1022
|
def remove(self, draw_func):
|
|
686
|
-
"""
|
|
1023
|
+
"""Remove a draw function that has been added to this menu
|
|
687
1024
|
|
|
688
1025
|
:param draw_func:
|
|
689
1026
|
"""
|
|
690
1027
|
...
|
|
691
1028
|
|
|
692
1029
|
def type_recast(self):
|
|
693
|
-
"""
|
|
1030
|
+
"""Return a new instance, this is needed because types
|
|
1031
|
+
such as textures can be changed at runtime.
|
|
1032
|
+
|
|
1033
|
+
:return: a new instance of this object with the type initialized again.
|
|
1034
|
+
"""
|
|
694
1035
|
...
|
|
695
1036
|
|
|
696
1037
|
def values(self):
|
|
697
|
-
"""
|
|
1038
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
1039
|
+
dictionary function of the same name).
|
|
1040
|
+
|
|
1041
|
+
:return: custom property values.
|
|
1042
|
+
"""
|
|
698
1043
|
...
|
|
699
1044
|
|
|
700
1045
|
class DATA_PT_EEVEE_shadow(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
@@ -725,22 +1070,35 @@ class DATA_PT_EEVEE_shadow(bpy_types.Panel, DataButtonsPanel, bpy_types._Generic
|
|
|
725
1070
|
""" """
|
|
726
1071
|
|
|
727
1072
|
def append(self, draw_func):
|
|
728
|
-
"""
|
|
1073
|
+
"""Append a draw function to this menu,
|
|
1074
|
+
takes the same arguments as the menus draw function
|
|
729
1075
|
|
|
730
|
-
|
|
1076
|
+
:param draw_func:
|
|
731
1077
|
"""
|
|
732
1078
|
...
|
|
733
1079
|
|
|
734
|
-
def as_pointer(self):
|
|
735
|
-
"""
|
|
1080
|
+
def as_pointer(self) -> int:
|
|
1081
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1082
|
+
|
|
1083
|
+
:return: int (memory address).
|
|
1084
|
+
:rtype: int
|
|
1085
|
+
"""
|
|
736
1086
|
...
|
|
737
1087
|
|
|
738
|
-
def bl_rna_get_subclass(self):
|
|
739
|
-
"""
|
|
1088
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1089
|
+
"""
|
|
1090
|
+
|
|
1091
|
+
:return: The RNA type or default when not found.
|
|
1092
|
+
:rtype: bpy.types.Struct
|
|
1093
|
+
"""
|
|
740
1094
|
...
|
|
741
1095
|
|
|
742
|
-
def bl_rna_get_subclass_py(self):
|
|
743
|
-
"""
|
|
1096
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1097
|
+
"""
|
|
1098
|
+
|
|
1099
|
+
:return: The class or default when not found.
|
|
1100
|
+
:rtype: typing.Any
|
|
1101
|
+
"""
|
|
744
1102
|
...
|
|
745
1103
|
|
|
746
1104
|
def draw(self, context):
|
|
@@ -757,72 +1115,129 @@ class DATA_PT_EEVEE_shadow(bpy_types.Panel, DataButtonsPanel, bpy_types._Generic
|
|
|
757
1115
|
"""
|
|
758
1116
|
...
|
|
759
1117
|
|
|
760
|
-
def driver_add(self):
|
|
761
|
-
"""
|
|
1118
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
1119
|
+
"""Adds driver(s) to the given property
|
|
1120
|
+
|
|
1121
|
+
:return: The driver(s) added.
|
|
1122
|
+
:rtype: bpy.types.FCurve
|
|
1123
|
+
"""
|
|
762
1124
|
...
|
|
763
1125
|
|
|
764
|
-
def driver_remove(self):
|
|
765
|
-
"""
|
|
1126
|
+
def driver_remove(self) -> bool:
|
|
1127
|
+
"""Remove driver(s) from the given property
|
|
1128
|
+
|
|
1129
|
+
:return: Success of driver removal.
|
|
1130
|
+
:rtype: bool
|
|
1131
|
+
"""
|
|
766
1132
|
...
|
|
767
1133
|
|
|
768
1134
|
def get(self):
|
|
769
|
-
"""
|
|
1135
|
+
"""Returns the value of the custom property assigned to key or default
|
|
1136
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1137
|
+
|
|
1138
|
+
"""
|
|
770
1139
|
...
|
|
771
1140
|
|
|
772
1141
|
def id_properties_clear(self):
|
|
773
|
-
"""
|
|
1142
|
+
"""
|
|
1143
|
+
|
|
1144
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1145
|
+
"""
|
|
774
1146
|
...
|
|
775
1147
|
|
|
776
1148
|
def id_properties_ensure(self):
|
|
777
|
-
"""
|
|
1149
|
+
"""
|
|
1150
|
+
|
|
1151
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1152
|
+
"""
|
|
778
1153
|
...
|
|
779
1154
|
|
|
780
1155
|
def id_properties_ui(self):
|
|
781
|
-
"""
|
|
1156
|
+
"""
|
|
1157
|
+
|
|
1158
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
1159
|
+
"""
|
|
782
1160
|
...
|
|
783
1161
|
|
|
784
1162
|
def is_extended(self):
|
|
785
1163
|
""" """
|
|
786
1164
|
...
|
|
787
1165
|
|
|
788
|
-
def is_property_hidden(self):
|
|
789
|
-
"""
|
|
1166
|
+
def is_property_hidden(self) -> bool:
|
|
1167
|
+
"""Check if a property is hidden.
|
|
1168
|
+
|
|
1169
|
+
:return: True when the property is hidden.
|
|
1170
|
+
:rtype: bool
|
|
1171
|
+
"""
|
|
790
1172
|
...
|
|
791
1173
|
|
|
792
|
-
def is_property_overridable_library(self):
|
|
793
|
-
"""
|
|
1174
|
+
def is_property_overridable_library(self) -> bool:
|
|
1175
|
+
"""Check if a property is overridable.
|
|
1176
|
+
|
|
1177
|
+
:return: True when the property is overridable.
|
|
1178
|
+
:rtype: bool
|
|
1179
|
+
"""
|
|
794
1180
|
...
|
|
795
1181
|
|
|
796
|
-
def is_property_readonly(self):
|
|
797
|
-
"""
|
|
1182
|
+
def is_property_readonly(self) -> bool:
|
|
1183
|
+
"""Check if a property is readonly.
|
|
1184
|
+
|
|
1185
|
+
:return: True when the property is readonly (not writable).
|
|
1186
|
+
:rtype: bool
|
|
1187
|
+
"""
|
|
798
1188
|
...
|
|
799
1189
|
|
|
800
|
-
def is_property_set(self):
|
|
801
|
-
"""
|
|
1190
|
+
def is_property_set(self) -> bool:
|
|
1191
|
+
"""Check if a property is set, use for testing operator properties.
|
|
1192
|
+
|
|
1193
|
+
:return: True when the property has been set.
|
|
1194
|
+
:rtype: bool
|
|
1195
|
+
"""
|
|
802
1196
|
...
|
|
803
1197
|
|
|
804
1198
|
def items(self):
|
|
805
|
-
"""
|
|
1199
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
1200
|
+
dictionary function of the same name).
|
|
1201
|
+
|
|
1202
|
+
:return: custom property key, value pairs.
|
|
1203
|
+
"""
|
|
806
1204
|
...
|
|
807
1205
|
|
|
808
|
-
def keyframe_delete(self):
|
|
809
|
-
"""
|
|
1206
|
+
def keyframe_delete(self) -> bool:
|
|
1207
|
+
"""Remove a keyframe from this properties fcurve.
|
|
1208
|
+
|
|
1209
|
+
:return: Success of keyframe deletion.
|
|
1210
|
+
:rtype: bool
|
|
1211
|
+
"""
|
|
810
1212
|
...
|
|
811
1213
|
|
|
812
|
-
def keyframe_insert(self):
|
|
813
|
-
"""
|
|
1214
|
+
def keyframe_insert(self) -> bool:
|
|
1215
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1216
|
+
|
|
1217
|
+
:return: Success of keyframe insertion.
|
|
1218
|
+
:rtype: bool
|
|
1219
|
+
"""
|
|
814
1220
|
...
|
|
815
1221
|
|
|
816
1222
|
def keys(self):
|
|
817
|
-
"""
|
|
1223
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
1224
|
+
dictionary function of the same name).
|
|
1225
|
+
|
|
1226
|
+
:return: custom property keys.
|
|
1227
|
+
"""
|
|
818
1228
|
...
|
|
819
1229
|
|
|
820
|
-
def path_from_id(self):
|
|
821
|
-
"""
|
|
1230
|
+
def path_from_id(self) -> str:
|
|
1231
|
+
"""Returns the data path from the ID to this object (string).
|
|
1232
|
+
|
|
1233
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1234
|
+
to this struct and property (when given).
|
|
1235
|
+
:rtype: str
|
|
1236
|
+
"""
|
|
822
1237
|
...
|
|
823
1238
|
|
|
824
1239
|
def path_resolve(self):
|
|
825
|
-
""" """
|
|
1240
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
826
1241
|
...
|
|
827
1242
|
|
|
828
1243
|
def poll(self, context):
|
|
@@ -833,37 +1248,53 @@ class DATA_PT_EEVEE_shadow(bpy_types.Panel, DataButtonsPanel, bpy_types._Generic
|
|
|
833
1248
|
...
|
|
834
1249
|
|
|
835
1250
|
def pop(self):
|
|
836
|
-
"""
|
|
1251
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
1252
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1253
|
+
|
|
1254
|
+
"""
|
|
837
1255
|
...
|
|
838
1256
|
|
|
839
1257
|
def prepend(self, draw_func):
|
|
840
|
-
"""
|
|
1258
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1259
|
+
the menus draw function
|
|
841
1260
|
|
|
842
|
-
|
|
1261
|
+
:param draw_func:
|
|
843
1262
|
"""
|
|
844
1263
|
...
|
|
845
1264
|
|
|
846
|
-
def property_overridable_library_set(self):
|
|
847
|
-
"""
|
|
1265
|
+
def property_overridable_library_set(self) -> bool:
|
|
1266
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
1267
|
+
|
|
1268
|
+
:return: True when the overridable status of the property was successfully set.
|
|
1269
|
+
:rtype: bool
|
|
1270
|
+
"""
|
|
848
1271
|
...
|
|
849
1272
|
|
|
850
1273
|
def property_unset(self):
|
|
851
|
-
""" """
|
|
1274
|
+
"""Unset a property, will use default value afterward."""
|
|
852
1275
|
...
|
|
853
1276
|
|
|
854
1277
|
def remove(self, draw_func):
|
|
855
|
-
"""
|
|
1278
|
+
"""Remove a draw function that has been added to this menu
|
|
856
1279
|
|
|
857
1280
|
:param draw_func:
|
|
858
1281
|
"""
|
|
859
1282
|
...
|
|
860
1283
|
|
|
861
1284
|
def type_recast(self):
|
|
862
|
-
"""
|
|
1285
|
+
"""Return a new instance, this is needed because types
|
|
1286
|
+
such as textures can be changed at runtime.
|
|
1287
|
+
|
|
1288
|
+
:return: a new instance of this object with the type initialized again.
|
|
1289
|
+
"""
|
|
863
1290
|
...
|
|
864
1291
|
|
|
865
1292
|
def values(self):
|
|
866
|
-
"""
|
|
1293
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
1294
|
+
dictionary function of the same name).
|
|
1295
|
+
|
|
1296
|
+
:return: custom property values.
|
|
1297
|
+
"""
|
|
867
1298
|
...
|
|
868
1299
|
|
|
869
1300
|
class DATA_PT_EEVEE_shadow_cascaded_shadow_map(
|
|
@@ -899,22 +1330,35 @@ class DATA_PT_EEVEE_shadow_cascaded_shadow_map(
|
|
|
899
1330
|
""" """
|
|
900
1331
|
|
|
901
1332
|
def append(self, draw_func):
|
|
902
|
-
"""
|
|
1333
|
+
"""Append a draw function to this menu,
|
|
1334
|
+
takes the same arguments as the menus draw function
|
|
903
1335
|
|
|
904
|
-
|
|
1336
|
+
:param draw_func:
|
|
905
1337
|
"""
|
|
906
1338
|
...
|
|
907
1339
|
|
|
908
|
-
def as_pointer(self):
|
|
909
|
-
"""
|
|
1340
|
+
def as_pointer(self) -> int:
|
|
1341
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1342
|
+
|
|
1343
|
+
:return: int (memory address).
|
|
1344
|
+
:rtype: int
|
|
1345
|
+
"""
|
|
910
1346
|
...
|
|
911
1347
|
|
|
912
|
-
def bl_rna_get_subclass(self):
|
|
913
|
-
"""
|
|
1348
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1349
|
+
"""
|
|
1350
|
+
|
|
1351
|
+
:return: The RNA type or default when not found.
|
|
1352
|
+
:rtype: bpy.types.Struct
|
|
1353
|
+
"""
|
|
914
1354
|
...
|
|
915
1355
|
|
|
916
|
-
def bl_rna_get_subclass_py(self):
|
|
917
|
-
"""
|
|
1356
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1357
|
+
"""
|
|
1358
|
+
|
|
1359
|
+
:return: The class or default when not found.
|
|
1360
|
+
:rtype: typing.Any
|
|
1361
|
+
"""
|
|
918
1362
|
...
|
|
919
1363
|
|
|
920
1364
|
def draw(self, context):
|
|
@@ -924,72 +1368,129 @@ class DATA_PT_EEVEE_shadow_cascaded_shadow_map(
|
|
|
924
1368
|
"""
|
|
925
1369
|
...
|
|
926
1370
|
|
|
927
|
-
def driver_add(self):
|
|
928
|
-
"""
|
|
1371
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
1372
|
+
"""Adds driver(s) to the given property
|
|
1373
|
+
|
|
1374
|
+
:return: The driver(s) added.
|
|
1375
|
+
:rtype: bpy.types.FCurve
|
|
1376
|
+
"""
|
|
929
1377
|
...
|
|
930
1378
|
|
|
931
|
-
def driver_remove(self):
|
|
932
|
-
"""
|
|
1379
|
+
def driver_remove(self) -> bool:
|
|
1380
|
+
"""Remove driver(s) from the given property
|
|
1381
|
+
|
|
1382
|
+
:return: Success of driver removal.
|
|
1383
|
+
:rtype: bool
|
|
1384
|
+
"""
|
|
933
1385
|
...
|
|
934
1386
|
|
|
935
1387
|
def get(self):
|
|
936
|
-
"""
|
|
1388
|
+
"""Returns the value of the custom property assigned to key or default
|
|
1389
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1390
|
+
|
|
1391
|
+
"""
|
|
937
1392
|
...
|
|
938
1393
|
|
|
939
1394
|
def id_properties_clear(self):
|
|
940
|
-
"""
|
|
1395
|
+
"""
|
|
1396
|
+
|
|
1397
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1398
|
+
"""
|
|
941
1399
|
...
|
|
942
1400
|
|
|
943
1401
|
def id_properties_ensure(self):
|
|
944
|
-
"""
|
|
1402
|
+
"""
|
|
1403
|
+
|
|
1404
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1405
|
+
"""
|
|
945
1406
|
...
|
|
946
1407
|
|
|
947
1408
|
def id_properties_ui(self):
|
|
948
|
-
"""
|
|
1409
|
+
"""
|
|
1410
|
+
|
|
1411
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
1412
|
+
"""
|
|
949
1413
|
...
|
|
950
1414
|
|
|
951
1415
|
def is_extended(self):
|
|
952
1416
|
""" """
|
|
953
1417
|
...
|
|
954
1418
|
|
|
955
|
-
def is_property_hidden(self):
|
|
956
|
-
"""
|
|
1419
|
+
def is_property_hidden(self) -> bool:
|
|
1420
|
+
"""Check if a property is hidden.
|
|
1421
|
+
|
|
1422
|
+
:return: True when the property is hidden.
|
|
1423
|
+
:rtype: bool
|
|
1424
|
+
"""
|
|
957
1425
|
...
|
|
958
1426
|
|
|
959
|
-
def is_property_overridable_library(self):
|
|
960
|
-
"""
|
|
1427
|
+
def is_property_overridable_library(self) -> bool:
|
|
1428
|
+
"""Check if a property is overridable.
|
|
1429
|
+
|
|
1430
|
+
:return: True when the property is overridable.
|
|
1431
|
+
:rtype: bool
|
|
1432
|
+
"""
|
|
961
1433
|
...
|
|
962
1434
|
|
|
963
|
-
def is_property_readonly(self):
|
|
964
|
-
"""
|
|
1435
|
+
def is_property_readonly(self) -> bool:
|
|
1436
|
+
"""Check if a property is readonly.
|
|
1437
|
+
|
|
1438
|
+
:return: True when the property is readonly (not writable).
|
|
1439
|
+
:rtype: bool
|
|
1440
|
+
"""
|
|
965
1441
|
...
|
|
966
1442
|
|
|
967
|
-
def is_property_set(self):
|
|
968
|
-
"""
|
|
1443
|
+
def is_property_set(self) -> bool:
|
|
1444
|
+
"""Check if a property is set, use for testing operator properties.
|
|
1445
|
+
|
|
1446
|
+
:return: True when the property has been set.
|
|
1447
|
+
:rtype: bool
|
|
1448
|
+
"""
|
|
969
1449
|
...
|
|
970
1450
|
|
|
971
1451
|
def items(self):
|
|
972
|
-
"""
|
|
1452
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
1453
|
+
dictionary function of the same name).
|
|
1454
|
+
|
|
1455
|
+
:return: custom property key, value pairs.
|
|
1456
|
+
"""
|
|
973
1457
|
...
|
|
974
1458
|
|
|
975
|
-
def keyframe_delete(self):
|
|
976
|
-
"""
|
|
1459
|
+
def keyframe_delete(self) -> bool:
|
|
1460
|
+
"""Remove a keyframe from this properties fcurve.
|
|
1461
|
+
|
|
1462
|
+
:return: Success of keyframe deletion.
|
|
1463
|
+
:rtype: bool
|
|
1464
|
+
"""
|
|
977
1465
|
...
|
|
978
1466
|
|
|
979
|
-
def keyframe_insert(self):
|
|
980
|
-
"""
|
|
1467
|
+
def keyframe_insert(self) -> bool:
|
|
1468
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1469
|
+
|
|
1470
|
+
:return: Success of keyframe insertion.
|
|
1471
|
+
:rtype: bool
|
|
1472
|
+
"""
|
|
981
1473
|
...
|
|
982
1474
|
|
|
983
1475
|
def keys(self):
|
|
984
|
-
"""
|
|
1476
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
1477
|
+
dictionary function of the same name).
|
|
1478
|
+
|
|
1479
|
+
:return: custom property keys.
|
|
1480
|
+
"""
|
|
985
1481
|
...
|
|
986
1482
|
|
|
987
|
-
def path_from_id(self):
|
|
988
|
-
"""
|
|
1483
|
+
def path_from_id(self) -> str:
|
|
1484
|
+
"""Returns the data path from the ID to this object (string).
|
|
1485
|
+
|
|
1486
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1487
|
+
to this struct and property (when given).
|
|
1488
|
+
:rtype: str
|
|
1489
|
+
"""
|
|
989
1490
|
...
|
|
990
1491
|
|
|
991
1492
|
def path_resolve(self):
|
|
992
|
-
""" """
|
|
1493
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
993
1494
|
...
|
|
994
1495
|
|
|
995
1496
|
def poll(self, context):
|
|
@@ -1000,37 +1501,53 @@ class DATA_PT_EEVEE_shadow_cascaded_shadow_map(
|
|
|
1000
1501
|
...
|
|
1001
1502
|
|
|
1002
1503
|
def pop(self):
|
|
1003
|
-
"""
|
|
1504
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
1505
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1506
|
+
|
|
1507
|
+
"""
|
|
1004
1508
|
...
|
|
1005
1509
|
|
|
1006
1510
|
def prepend(self, draw_func):
|
|
1007
|
-
"""
|
|
1511
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1512
|
+
the menus draw function
|
|
1008
1513
|
|
|
1009
|
-
|
|
1514
|
+
:param draw_func:
|
|
1010
1515
|
"""
|
|
1011
1516
|
...
|
|
1012
1517
|
|
|
1013
|
-
def property_overridable_library_set(self):
|
|
1014
|
-
"""
|
|
1518
|
+
def property_overridable_library_set(self) -> bool:
|
|
1519
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
1520
|
+
|
|
1521
|
+
:return: True when the overridable status of the property was successfully set.
|
|
1522
|
+
:rtype: bool
|
|
1523
|
+
"""
|
|
1015
1524
|
...
|
|
1016
1525
|
|
|
1017
1526
|
def property_unset(self):
|
|
1018
|
-
""" """
|
|
1527
|
+
"""Unset a property, will use default value afterward."""
|
|
1019
1528
|
...
|
|
1020
1529
|
|
|
1021
1530
|
def remove(self, draw_func):
|
|
1022
|
-
"""
|
|
1531
|
+
"""Remove a draw function that has been added to this menu
|
|
1023
1532
|
|
|
1024
1533
|
:param draw_func:
|
|
1025
1534
|
"""
|
|
1026
1535
|
...
|
|
1027
1536
|
|
|
1028
1537
|
def type_recast(self):
|
|
1029
|
-
"""
|
|
1538
|
+
"""Return a new instance, this is needed because types
|
|
1539
|
+
such as textures can be changed at runtime.
|
|
1540
|
+
|
|
1541
|
+
:return: a new instance of this object with the type initialized again.
|
|
1542
|
+
"""
|
|
1030
1543
|
...
|
|
1031
1544
|
|
|
1032
1545
|
def values(self):
|
|
1033
|
-
"""
|
|
1546
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
1547
|
+
dictionary function of the same name).
|
|
1548
|
+
|
|
1549
|
+
:return: custom property values.
|
|
1550
|
+
"""
|
|
1034
1551
|
...
|
|
1035
1552
|
|
|
1036
1553
|
class DATA_PT_EEVEE_shadow_contact(
|
|
@@ -1063,22 +1580,35 @@ class DATA_PT_EEVEE_shadow_contact(
|
|
|
1063
1580
|
""" """
|
|
1064
1581
|
|
|
1065
1582
|
def append(self, draw_func):
|
|
1066
|
-
"""
|
|
1583
|
+
"""Append a draw function to this menu,
|
|
1584
|
+
takes the same arguments as the menus draw function
|
|
1067
1585
|
|
|
1068
|
-
|
|
1586
|
+
:param draw_func:
|
|
1069
1587
|
"""
|
|
1070
1588
|
...
|
|
1071
1589
|
|
|
1072
|
-
def as_pointer(self):
|
|
1073
|
-
"""
|
|
1590
|
+
def as_pointer(self) -> int:
|
|
1591
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1592
|
+
|
|
1593
|
+
:return: int (memory address).
|
|
1594
|
+
:rtype: int
|
|
1595
|
+
"""
|
|
1074
1596
|
...
|
|
1075
1597
|
|
|
1076
|
-
def bl_rna_get_subclass(self):
|
|
1077
|
-
"""
|
|
1598
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1599
|
+
"""
|
|
1600
|
+
|
|
1601
|
+
:return: The RNA type or default when not found.
|
|
1602
|
+
:rtype: bpy.types.Struct
|
|
1603
|
+
"""
|
|
1078
1604
|
...
|
|
1079
1605
|
|
|
1080
|
-
def bl_rna_get_subclass_py(self):
|
|
1081
|
-
"""
|
|
1606
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1607
|
+
"""
|
|
1608
|
+
|
|
1609
|
+
:return: The class or default when not found.
|
|
1610
|
+
:rtype: typing.Any
|
|
1611
|
+
"""
|
|
1082
1612
|
...
|
|
1083
1613
|
|
|
1084
1614
|
def draw(self, context):
|
|
@@ -1095,72 +1625,129 @@ class DATA_PT_EEVEE_shadow_contact(
|
|
|
1095
1625
|
"""
|
|
1096
1626
|
...
|
|
1097
1627
|
|
|
1098
|
-
def driver_add(self):
|
|
1099
|
-
"""
|
|
1628
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
1629
|
+
"""Adds driver(s) to the given property
|
|
1630
|
+
|
|
1631
|
+
:return: The driver(s) added.
|
|
1632
|
+
:rtype: bpy.types.FCurve
|
|
1633
|
+
"""
|
|
1100
1634
|
...
|
|
1101
1635
|
|
|
1102
|
-
def driver_remove(self):
|
|
1103
|
-
"""
|
|
1636
|
+
def driver_remove(self) -> bool:
|
|
1637
|
+
"""Remove driver(s) from the given property
|
|
1638
|
+
|
|
1639
|
+
:return: Success of driver removal.
|
|
1640
|
+
:rtype: bool
|
|
1641
|
+
"""
|
|
1104
1642
|
...
|
|
1105
1643
|
|
|
1106
1644
|
def get(self):
|
|
1107
|
-
"""
|
|
1645
|
+
"""Returns the value of the custom property assigned to key or default
|
|
1646
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1647
|
+
|
|
1648
|
+
"""
|
|
1108
1649
|
...
|
|
1109
1650
|
|
|
1110
1651
|
def id_properties_clear(self):
|
|
1111
|
-
"""
|
|
1652
|
+
"""
|
|
1653
|
+
|
|
1654
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1655
|
+
"""
|
|
1112
1656
|
...
|
|
1113
1657
|
|
|
1114
1658
|
def id_properties_ensure(self):
|
|
1115
|
-
"""
|
|
1659
|
+
"""
|
|
1660
|
+
|
|
1661
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1662
|
+
"""
|
|
1116
1663
|
...
|
|
1117
1664
|
|
|
1118
1665
|
def id_properties_ui(self):
|
|
1119
|
-
"""
|
|
1666
|
+
"""
|
|
1667
|
+
|
|
1668
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
1669
|
+
"""
|
|
1120
1670
|
...
|
|
1121
1671
|
|
|
1122
1672
|
def is_extended(self):
|
|
1123
1673
|
""" """
|
|
1124
1674
|
...
|
|
1125
1675
|
|
|
1126
|
-
def is_property_hidden(self):
|
|
1127
|
-
"""
|
|
1128
|
-
...
|
|
1676
|
+
def is_property_hidden(self) -> bool:
|
|
1677
|
+
"""Check if a property is hidden.
|
|
1129
1678
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1679
|
+
:return: True when the property is hidden.
|
|
1680
|
+
:rtype: bool
|
|
1681
|
+
"""
|
|
1132
1682
|
...
|
|
1133
1683
|
|
|
1134
|
-
def
|
|
1135
|
-
"""
|
|
1684
|
+
def is_property_overridable_library(self) -> bool:
|
|
1685
|
+
"""Check if a property is overridable.
|
|
1686
|
+
|
|
1687
|
+
:return: True when the property is overridable.
|
|
1688
|
+
:rtype: bool
|
|
1689
|
+
"""
|
|
1136
1690
|
...
|
|
1137
1691
|
|
|
1138
|
-
def
|
|
1139
|
-
"""
|
|
1692
|
+
def is_property_readonly(self) -> bool:
|
|
1693
|
+
"""Check if a property is readonly.
|
|
1694
|
+
|
|
1695
|
+
:return: True when the property is readonly (not writable).
|
|
1696
|
+
:rtype: bool
|
|
1697
|
+
"""
|
|
1698
|
+
...
|
|
1699
|
+
|
|
1700
|
+
def is_property_set(self) -> bool:
|
|
1701
|
+
"""Check if a property is set, use for testing operator properties.
|
|
1702
|
+
|
|
1703
|
+
:return: True when the property has been set.
|
|
1704
|
+
:rtype: bool
|
|
1705
|
+
"""
|
|
1140
1706
|
...
|
|
1141
1707
|
|
|
1142
1708
|
def items(self):
|
|
1143
|
-
"""
|
|
1709
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
1710
|
+
dictionary function of the same name).
|
|
1711
|
+
|
|
1712
|
+
:return: custom property key, value pairs.
|
|
1713
|
+
"""
|
|
1144
1714
|
...
|
|
1145
1715
|
|
|
1146
|
-
def keyframe_delete(self):
|
|
1147
|
-
"""
|
|
1716
|
+
def keyframe_delete(self) -> bool:
|
|
1717
|
+
"""Remove a keyframe from this properties fcurve.
|
|
1718
|
+
|
|
1719
|
+
:return: Success of keyframe deletion.
|
|
1720
|
+
:rtype: bool
|
|
1721
|
+
"""
|
|
1148
1722
|
...
|
|
1149
1723
|
|
|
1150
|
-
def keyframe_insert(self):
|
|
1151
|
-
"""
|
|
1724
|
+
def keyframe_insert(self) -> bool:
|
|
1725
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1726
|
+
|
|
1727
|
+
:return: Success of keyframe insertion.
|
|
1728
|
+
:rtype: bool
|
|
1729
|
+
"""
|
|
1152
1730
|
...
|
|
1153
1731
|
|
|
1154
1732
|
def keys(self):
|
|
1155
|
-
"""
|
|
1733
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
1734
|
+
dictionary function of the same name).
|
|
1735
|
+
|
|
1736
|
+
:return: custom property keys.
|
|
1737
|
+
"""
|
|
1156
1738
|
...
|
|
1157
1739
|
|
|
1158
|
-
def path_from_id(self):
|
|
1159
|
-
"""
|
|
1740
|
+
def path_from_id(self) -> str:
|
|
1741
|
+
"""Returns the data path from the ID to this object (string).
|
|
1742
|
+
|
|
1743
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1744
|
+
to this struct and property (when given).
|
|
1745
|
+
:rtype: str
|
|
1746
|
+
"""
|
|
1160
1747
|
...
|
|
1161
1748
|
|
|
1162
1749
|
def path_resolve(self):
|
|
1163
|
-
""" """
|
|
1750
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1164
1751
|
...
|
|
1165
1752
|
|
|
1166
1753
|
def poll(self, context):
|
|
@@ -1171,37 +1758,53 @@ class DATA_PT_EEVEE_shadow_contact(
|
|
|
1171
1758
|
...
|
|
1172
1759
|
|
|
1173
1760
|
def pop(self):
|
|
1174
|
-
"""
|
|
1761
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
1762
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1763
|
+
|
|
1764
|
+
"""
|
|
1175
1765
|
...
|
|
1176
1766
|
|
|
1177
1767
|
def prepend(self, draw_func):
|
|
1178
|
-
"""
|
|
1768
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1769
|
+
the menus draw function
|
|
1179
1770
|
|
|
1180
|
-
|
|
1771
|
+
:param draw_func:
|
|
1181
1772
|
"""
|
|
1182
1773
|
...
|
|
1183
1774
|
|
|
1184
|
-
def property_overridable_library_set(self):
|
|
1185
|
-
"""
|
|
1775
|
+
def property_overridable_library_set(self) -> bool:
|
|
1776
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
1777
|
+
|
|
1778
|
+
:return: True when the overridable status of the property was successfully set.
|
|
1779
|
+
:rtype: bool
|
|
1780
|
+
"""
|
|
1186
1781
|
...
|
|
1187
1782
|
|
|
1188
1783
|
def property_unset(self):
|
|
1189
|
-
""" """
|
|
1784
|
+
"""Unset a property, will use default value afterward."""
|
|
1190
1785
|
...
|
|
1191
1786
|
|
|
1192
1787
|
def remove(self, draw_func):
|
|
1193
|
-
"""
|
|
1788
|
+
"""Remove a draw function that has been added to this menu
|
|
1194
1789
|
|
|
1195
1790
|
:param draw_func:
|
|
1196
1791
|
"""
|
|
1197
1792
|
...
|
|
1198
1793
|
|
|
1199
1794
|
def type_recast(self):
|
|
1200
|
-
"""
|
|
1795
|
+
"""Return a new instance, this is needed because types
|
|
1796
|
+
such as textures can be changed at runtime.
|
|
1797
|
+
|
|
1798
|
+
:return: a new instance of this object with the type initialized again.
|
|
1799
|
+
"""
|
|
1201
1800
|
...
|
|
1202
1801
|
|
|
1203
1802
|
def values(self):
|
|
1204
|
-
"""
|
|
1803
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
1804
|
+
dictionary function of the same name).
|
|
1805
|
+
|
|
1806
|
+
:return: custom property values.
|
|
1807
|
+
"""
|
|
1205
1808
|
...
|
|
1206
1809
|
|
|
1207
1810
|
class DATA_PT_context_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
@@ -1232,22 +1835,35 @@ class DATA_PT_context_light(bpy_types.Panel, DataButtonsPanel, bpy_types._Generi
|
|
|
1232
1835
|
""" """
|
|
1233
1836
|
|
|
1234
1837
|
def append(self, draw_func):
|
|
1235
|
-
"""
|
|
1838
|
+
"""Append a draw function to this menu,
|
|
1839
|
+
takes the same arguments as the menus draw function
|
|
1236
1840
|
|
|
1237
|
-
|
|
1841
|
+
:param draw_func:
|
|
1238
1842
|
"""
|
|
1239
1843
|
...
|
|
1240
1844
|
|
|
1241
|
-
def as_pointer(self):
|
|
1242
|
-
"""
|
|
1845
|
+
def as_pointer(self) -> int:
|
|
1846
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1847
|
+
|
|
1848
|
+
:return: int (memory address).
|
|
1849
|
+
:rtype: int
|
|
1850
|
+
"""
|
|
1243
1851
|
...
|
|
1244
1852
|
|
|
1245
|
-
def bl_rna_get_subclass(self):
|
|
1246
|
-
"""
|
|
1853
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1854
|
+
"""
|
|
1855
|
+
|
|
1856
|
+
:return: The RNA type or default when not found.
|
|
1857
|
+
:rtype: bpy.types.Struct
|
|
1858
|
+
"""
|
|
1247
1859
|
...
|
|
1248
1860
|
|
|
1249
|
-
def bl_rna_get_subclass_py(self):
|
|
1250
|
-
"""
|
|
1861
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1862
|
+
"""
|
|
1863
|
+
|
|
1864
|
+
:return: The class or default when not found.
|
|
1865
|
+
:rtype: typing.Any
|
|
1866
|
+
"""
|
|
1251
1867
|
...
|
|
1252
1868
|
|
|
1253
1869
|
def draw(self, context):
|
|
@@ -1257,72 +1873,129 @@ class DATA_PT_context_light(bpy_types.Panel, DataButtonsPanel, bpy_types._Generi
|
|
|
1257
1873
|
"""
|
|
1258
1874
|
...
|
|
1259
1875
|
|
|
1260
|
-
def driver_add(self):
|
|
1261
|
-
"""
|
|
1876
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
1877
|
+
"""Adds driver(s) to the given property
|
|
1878
|
+
|
|
1879
|
+
:return: The driver(s) added.
|
|
1880
|
+
:rtype: bpy.types.FCurve
|
|
1881
|
+
"""
|
|
1262
1882
|
...
|
|
1263
1883
|
|
|
1264
|
-
def driver_remove(self):
|
|
1265
|
-
"""
|
|
1884
|
+
def driver_remove(self) -> bool:
|
|
1885
|
+
"""Remove driver(s) from the given property
|
|
1886
|
+
|
|
1887
|
+
:return: Success of driver removal.
|
|
1888
|
+
:rtype: bool
|
|
1889
|
+
"""
|
|
1266
1890
|
...
|
|
1267
1891
|
|
|
1268
1892
|
def get(self):
|
|
1269
|
-
"""
|
|
1893
|
+
"""Returns the value of the custom property assigned to key or default
|
|
1894
|
+
when not found (matches Python's dictionary function of the same name).
|
|
1895
|
+
|
|
1896
|
+
"""
|
|
1270
1897
|
...
|
|
1271
1898
|
|
|
1272
1899
|
def id_properties_clear(self):
|
|
1273
|
-
"""
|
|
1900
|
+
"""
|
|
1901
|
+
|
|
1902
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1903
|
+
"""
|
|
1274
1904
|
...
|
|
1275
1905
|
|
|
1276
1906
|
def id_properties_ensure(self):
|
|
1277
|
-
"""
|
|
1907
|
+
"""
|
|
1908
|
+
|
|
1909
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1910
|
+
"""
|
|
1278
1911
|
...
|
|
1279
1912
|
|
|
1280
1913
|
def id_properties_ui(self):
|
|
1281
|
-
"""
|
|
1914
|
+
"""
|
|
1915
|
+
|
|
1916
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
1917
|
+
"""
|
|
1282
1918
|
...
|
|
1283
1919
|
|
|
1284
1920
|
def is_extended(self):
|
|
1285
1921
|
""" """
|
|
1286
1922
|
...
|
|
1287
1923
|
|
|
1288
|
-
def is_property_hidden(self):
|
|
1289
|
-
"""
|
|
1924
|
+
def is_property_hidden(self) -> bool:
|
|
1925
|
+
"""Check if a property is hidden.
|
|
1926
|
+
|
|
1927
|
+
:return: True when the property is hidden.
|
|
1928
|
+
:rtype: bool
|
|
1929
|
+
"""
|
|
1290
1930
|
...
|
|
1291
1931
|
|
|
1292
|
-
def is_property_overridable_library(self):
|
|
1293
|
-
"""
|
|
1932
|
+
def is_property_overridable_library(self) -> bool:
|
|
1933
|
+
"""Check if a property is overridable.
|
|
1934
|
+
|
|
1935
|
+
:return: True when the property is overridable.
|
|
1936
|
+
:rtype: bool
|
|
1937
|
+
"""
|
|
1294
1938
|
...
|
|
1295
1939
|
|
|
1296
|
-
def is_property_readonly(self):
|
|
1297
|
-
"""
|
|
1940
|
+
def is_property_readonly(self) -> bool:
|
|
1941
|
+
"""Check if a property is readonly.
|
|
1942
|
+
|
|
1943
|
+
:return: True when the property is readonly (not writable).
|
|
1944
|
+
:rtype: bool
|
|
1945
|
+
"""
|
|
1298
1946
|
...
|
|
1299
1947
|
|
|
1300
|
-
def is_property_set(self):
|
|
1301
|
-
"""
|
|
1948
|
+
def is_property_set(self) -> bool:
|
|
1949
|
+
"""Check if a property is set, use for testing operator properties.
|
|
1950
|
+
|
|
1951
|
+
:return: True when the property has been set.
|
|
1952
|
+
:rtype: bool
|
|
1953
|
+
"""
|
|
1302
1954
|
...
|
|
1303
1955
|
|
|
1304
1956
|
def items(self):
|
|
1305
|
-
"""
|
|
1957
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
1958
|
+
dictionary function of the same name).
|
|
1959
|
+
|
|
1960
|
+
:return: custom property key, value pairs.
|
|
1961
|
+
"""
|
|
1306
1962
|
...
|
|
1307
1963
|
|
|
1308
|
-
def keyframe_delete(self):
|
|
1309
|
-
"""
|
|
1964
|
+
def keyframe_delete(self) -> bool:
|
|
1965
|
+
"""Remove a keyframe from this properties fcurve.
|
|
1966
|
+
|
|
1967
|
+
:return: Success of keyframe deletion.
|
|
1968
|
+
:rtype: bool
|
|
1969
|
+
"""
|
|
1310
1970
|
...
|
|
1311
1971
|
|
|
1312
|
-
def keyframe_insert(self):
|
|
1313
|
-
"""
|
|
1972
|
+
def keyframe_insert(self) -> bool:
|
|
1973
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1974
|
+
|
|
1975
|
+
:return: Success of keyframe insertion.
|
|
1976
|
+
:rtype: bool
|
|
1977
|
+
"""
|
|
1314
1978
|
...
|
|
1315
1979
|
|
|
1316
1980
|
def keys(self):
|
|
1317
|
-
"""
|
|
1981
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
1982
|
+
dictionary function of the same name).
|
|
1983
|
+
|
|
1984
|
+
:return: custom property keys.
|
|
1985
|
+
"""
|
|
1318
1986
|
...
|
|
1319
1987
|
|
|
1320
|
-
def path_from_id(self):
|
|
1321
|
-
"""
|
|
1988
|
+
def path_from_id(self) -> str:
|
|
1989
|
+
"""Returns the data path from the ID to this object (string).
|
|
1990
|
+
|
|
1991
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1992
|
+
to this struct and property (when given).
|
|
1993
|
+
:rtype: str
|
|
1994
|
+
"""
|
|
1322
1995
|
...
|
|
1323
1996
|
|
|
1324
1997
|
def path_resolve(self):
|
|
1325
|
-
""" """
|
|
1998
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1326
1999
|
...
|
|
1327
2000
|
|
|
1328
2001
|
def poll(self, context):
|
|
@@ -1333,43 +2006,61 @@ class DATA_PT_context_light(bpy_types.Panel, DataButtonsPanel, bpy_types._Generi
|
|
|
1333
2006
|
...
|
|
1334
2007
|
|
|
1335
2008
|
def pop(self):
|
|
1336
|
-
"""
|
|
2009
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
2010
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2011
|
+
|
|
2012
|
+
"""
|
|
1337
2013
|
...
|
|
1338
2014
|
|
|
1339
2015
|
def prepend(self, draw_func):
|
|
1340
|
-
"""
|
|
2016
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2017
|
+
the menus draw function
|
|
1341
2018
|
|
|
1342
|
-
|
|
2019
|
+
:param draw_func:
|
|
1343
2020
|
"""
|
|
1344
2021
|
...
|
|
1345
2022
|
|
|
1346
|
-
def property_overridable_library_set(self):
|
|
1347
|
-
"""
|
|
2023
|
+
def property_overridable_library_set(self) -> bool:
|
|
2024
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
2025
|
+
|
|
2026
|
+
:return: True when the overridable status of the property was successfully set.
|
|
2027
|
+
:rtype: bool
|
|
2028
|
+
"""
|
|
1348
2029
|
...
|
|
1349
2030
|
|
|
1350
2031
|
def property_unset(self):
|
|
1351
|
-
""" """
|
|
2032
|
+
"""Unset a property, will use default value afterward."""
|
|
1352
2033
|
...
|
|
1353
2034
|
|
|
1354
2035
|
def remove(self, draw_func):
|
|
1355
|
-
"""
|
|
2036
|
+
"""Remove a draw function that has been added to this menu
|
|
1356
2037
|
|
|
1357
2038
|
:param draw_func:
|
|
1358
2039
|
"""
|
|
1359
2040
|
...
|
|
1360
2041
|
|
|
1361
2042
|
def type_recast(self):
|
|
1362
|
-
"""
|
|
2043
|
+
"""Return a new instance, this is needed because types
|
|
2044
|
+
such as textures can be changed at runtime.
|
|
2045
|
+
|
|
2046
|
+
:return: a new instance of this object with the type initialized again.
|
|
2047
|
+
"""
|
|
1363
2048
|
...
|
|
1364
2049
|
|
|
1365
2050
|
def values(self):
|
|
1366
|
-
"""
|
|
2051
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
2052
|
+
dictionary function of the same name).
|
|
2053
|
+
|
|
2054
|
+
:return: custom property values.
|
|
2055
|
+
"""
|
|
1367
2056
|
...
|
|
1368
2057
|
|
|
1369
2058
|
class DATA_PT_custom_props_light(
|
|
1370
2059
|
bpy_types.Panel, DataButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
|
|
1371
2060
|
):
|
|
1372
|
-
"""
|
|
2061
|
+
"""The subclass should have its own poll function
|
|
2062
|
+
and the variable '_context_path' MUST be set.
|
|
2063
|
+
"""
|
|
1373
2064
|
|
|
1374
2065
|
COMPAT_ENGINES: typing.Any
|
|
1375
2066
|
""" """
|
|
@@ -1399,22 +2090,35 @@ class DATA_PT_custom_props_light(
|
|
|
1399
2090
|
""" """
|
|
1400
2091
|
|
|
1401
2092
|
def append(self, draw_func):
|
|
1402
|
-
"""
|
|
2093
|
+
"""Append a draw function to this menu,
|
|
2094
|
+
takes the same arguments as the menus draw function
|
|
1403
2095
|
|
|
1404
|
-
|
|
2096
|
+
:param draw_func:
|
|
1405
2097
|
"""
|
|
1406
2098
|
...
|
|
1407
2099
|
|
|
1408
|
-
def as_pointer(self):
|
|
1409
|
-
"""
|
|
2100
|
+
def as_pointer(self) -> int:
|
|
2101
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
2102
|
+
|
|
2103
|
+
:return: int (memory address).
|
|
2104
|
+
:rtype: int
|
|
2105
|
+
"""
|
|
1410
2106
|
...
|
|
1411
2107
|
|
|
1412
|
-
def bl_rna_get_subclass(self):
|
|
1413
|
-
"""
|
|
2108
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2109
|
+
"""
|
|
2110
|
+
|
|
2111
|
+
:return: The RNA type or default when not found.
|
|
2112
|
+
:rtype: bpy.types.Struct
|
|
2113
|
+
"""
|
|
1414
2114
|
...
|
|
1415
2115
|
|
|
1416
|
-
def bl_rna_get_subclass_py(self):
|
|
1417
|
-
"""
|
|
2116
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2117
|
+
"""
|
|
2118
|
+
|
|
2119
|
+
:return: The class or default when not found.
|
|
2120
|
+
:rtype: typing.Any
|
|
2121
|
+
"""
|
|
1418
2122
|
...
|
|
1419
2123
|
|
|
1420
2124
|
def draw(self, context):
|
|
@@ -1424,72 +2128,129 @@ class DATA_PT_custom_props_light(
|
|
|
1424
2128
|
"""
|
|
1425
2129
|
...
|
|
1426
2130
|
|
|
1427
|
-
def driver_add(self):
|
|
1428
|
-
"""
|
|
2131
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
2132
|
+
"""Adds driver(s) to the given property
|
|
2133
|
+
|
|
2134
|
+
:return: The driver(s) added.
|
|
2135
|
+
:rtype: bpy.types.FCurve
|
|
2136
|
+
"""
|
|
1429
2137
|
...
|
|
1430
2138
|
|
|
1431
|
-
def driver_remove(self):
|
|
1432
|
-
"""
|
|
2139
|
+
def driver_remove(self) -> bool:
|
|
2140
|
+
"""Remove driver(s) from the given property
|
|
2141
|
+
|
|
2142
|
+
:return: Success of driver removal.
|
|
2143
|
+
:rtype: bool
|
|
2144
|
+
"""
|
|
1433
2145
|
...
|
|
1434
2146
|
|
|
1435
2147
|
def get(self):
|
|
1436
|
-
"""
|
|
2148
|
+
"""Returns the value of the custom property assigned to key or default
|
|
2149
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2150
|
+
|
|
2151
|
+
"""
|
|
1437
2152
|
...
|
|
1438
2153
|
|
|
1439
2154
|
def id_properties_clear(self):
|
|
1440
|
-
"""
|
|
2155
|
+
"""
|
|
2156
|
+
|
|
2157
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
2158
|
+
"""
|
|
1441
2159
|
...
|
|
1442
2160
|
|
|
1443
2161
|
def id_properties_ensure(self):
|
|
1444
|
-
"""
|
|
2162
|
+
"""
|
|
2163
|
+
|
|
2164
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
2165
|
+
"""
|
|
1445
2166
|
...
|
|
1446
2167
|
|
|
1447
2168
|
def id_properties_ui(self):
|
|
1448
|
-
"""
|
|
2169
|
+
"""
|
|
2170
|
+
|
|
2171
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
2172
|
+
"""
|
|
1449
2173
|
...
|
|
1450
2174
|
|
|
1451
2175
|
def is_extended(self):
|
|
1452
2176
|
""" """
|
|
1453
2177
|
...
|
|
1454
2178
|
|
|
1455
|
-
def is_property_hidden(self):
|
|
1456
|
-
"""
|
|
2179
|
+
def is_property_hidden(self) -> bool:
|
|
2180
|
+
"""Check if a property is hidden.
|
|
2181
|
+
|
|
2182
|
+
:return: True when the property is hidden.
|
|
2183
|
+
:rtype: bool
|
|
2184
|
+
"""
|
|
1457
2185
|
...
|
|
1458
2186
|
|
|
1459
|
-
def is_property_overridable_library(self):
|
|
1460
|
-
"""
|
|
2187
|
+
def is_property_overridable_library(self) -> bool:
|
|
2188
|
+
"""Check if a property is overridable.
|
|
2189
|
+
|
|
2190
|
+
:return: True when the property is overridable.
|
|
2191
|
+
:rtype: bool
|
|
2192
|
+
"""
|
|
1461
2193
|
...
|
|
1462
2194
|
|
|
1463
|
-
def is_property_readonly(self):
|
|
1464
|
-
"""
|
|
2195
|
+
def is_property_readonly(self) -> bool:
|
|
2196
|
+
"""Check if a property is readonly.
|
|
2197
|
+
|
|
2198
|
+
:return: True when the property is readonly (not writable).
|
|
2199
|
+
:rtype: bool
|
|
2200
|
+
"""
|
|
1465
2201
|
...
|
|
1466
2202
|
|
|
1467
|
-
def is_property_set(self):
|
|
1468
|
-
"""
|
|
2203
|
+
def is_property_set(self) -> bool:
|
|
2204
|
+
"""Check if a property is set, use for testing operator properties.
|
|
2205
|
+
|
|
2206
|
+
:return: True when the property has been set.
|
|
2207
|
+
:rtype: bool
|
|
2208
|
+
"""
|
|
1469
2209
|
...
|
|
1470
2210
|
|
|
1471
2211
|
def items(self):
|
|
1472
|
-
"""
|
|
2212
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
2213
|
+
dictionary function of the same name).
|
|
2214
|
+
|
|
2215
|
+
:return: custom property key, value pairs.
|
|
2216
|
+
"""
|
|
1473
2217
|
...
|
|
1474
2218
|
|
|
1475
|
-
def keyframe_delete(self):
|
|
1476
|
-
"""
|
|
2219
|
+
def keyframe_delete(self) -> bool:
|
|
2220
|
+
"""Remove a keyframe from this properties fcurve.
|
|
2221
|
+
|
|
2222
|
+
:return: Success of keyframe deletion.
|
|
2223
|
+
:rtype: bool
|
|
2224
|
+
"""
|
|
1477
2225
|
...
|
|
1478
2226
|
|
|
1479
|
-
def keyframe_insert(self):
|
|
1480
|
-
"""
|
|
2227
|
+
def keyframe_insert(self) -> bool:
|
|
2228
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
2229
|
+
|
|
2230
|
+
:return: Success of keyframe insertion.
|
|
2231
|
+
:rtype: bool
|
|
2232
|
+
"""
|
|
1481
2233
|
...
|
|
1482
2234
|
|
|
1483
2235
|
def keys(self):
|
|
1484
|
-
"""
|
|
2236
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
2237
|
+
dictionary function of the same name).
|
|
2238
|
+
|
|
2239
|
+
:return: custom property keys.
|
|
2240
|
+
"""
|
|
1485
2241
|
...
|
|
1486
2242
|
|
|
1487
|
-
def path_from_id(self):
|
|
1488
|
-
"""
|
|
2243
|
+
def path_from_id(self) -> str:
|
|
2244
|
+
"""Returns the data path from the ID to this object (string).
|
|
2245
|
+
|
|
2246
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2247
|
+
to this struct and property (when given).
|
|
2248
|
+
:rtype: str
|
|
2249
|
+
"""
|
|
1489
2250
|
...
|
|
1490
2251
|
|
|
1491
2252
|
def path_resolve(self):
|
|
1492
|
-
""" """
|
|
2253
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1493
2254
|
...
|
|
1494
2255
|
|
|
1495
2256
|
def poll(self, context):
|
|
@@ -1500,37 +2261,53 @@ class DATA_PT_custom_props_light(
|
|
|
1500
2261
|
...
|
|
1501
2262
|
|
|
1502
2263
|
def pop(self):
|
|
1503
|
-
"""
|
|
2264
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
2265
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2266
|
+
|
|
2267
|
+
"""
|
|
1504
2268
|
...
|
|
1505
2269
|
|
|
1506
2270
|
def prepend(self, draw_func):
|
|
1507
|
-
"""
|
|
2271
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2272
|
+
the menus draw function
|
|
1508
2273
|
|
|
1509
|
-
|
|
2274
|
+
:param draw_func:
|
|
1510
2275
|
"""
|
|
1511
2276
|
...
|
|
1512
2277
|
|
|
1513
|
-
def property_overridable_library_set(self):
|
|
1514
|
-
"""
|
|
2278
|
+
def property_overridable_library_set(self) -> bool:
|
|
2279
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
2280
|
+
|
|
2281
|
+
:return: True when the overridable status of the property was successfully set.
|
|
2282
|
+
:rtype: bool
|
|
2283
|
+
"""
|
|
1515
2284
|
...
|
|
1516
2285
|
|
|
1517
2286
|
def property_unset(self):
|
|
1518
|
-
""" """
|
|
2287
|
+
"""Unset a property, will use default value afterward."""
|
|
1519
2288
|
...
|
|
1520
2289
|
|
|
1521
2290
|
def remove(self, draw_func):
|
|
1522
|
-
"""
|
|
2291
|
+
"""Remove a draw function that has been added to this menu
|
|
1523
2292
|
|
|
1524
2293
|
:param draw_func:
|
|
1525
2294
|
"""
|
|
1526
2295
|
...
|
|
1527
2296
|
|
|
1528
2297
|
def type_recast(self):
|
|
1529
|
-
"""
|
|
2298
|
+
"""Return a new instance, this is needed because types
|
|
2299
|
+
such as textures can be changed at runtime.
|
|
2300
|
+
|
|
2301
|
+
:return: a new instance of this object with the type initialized again.
|
|
2302
|
+
"""
|
|
1530
2303
|
...
|
|
1531
2304
|
|
|
1532
2305
|
def values(self):
|
|
1533
|
-
"""
|
|
2306
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
2307
|
+
dictionary function of the same name).
|
|
2308
|
+
|
|
2309
|
+
:return: custom property values.
|
|
2310
|
+
"""
|
|
1534
2311
|
...
|
|
1535
2312
|
|
|
1536
2313
|
class DATA_PT_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
@@ -1558,22 +2335,35 @@ class DATA_PT_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1558
2335
|
""" """
|
|
1559
2336
|
|
|
1560
2337
|
def append(self, draw_func):
|
|
1561
|
-
"""
|
|
2338
|
+
"""Append a draw function to this menu,
|
|
2339
|
+
takes the same arguments as the menus draw function
|
|
1562
2340
|
|
|
1563
|
-
|
|
2341
|
+
:param draw_func:
|
|
1564
2342
|
"""
|
|
1565
2343
|
...
|
|
1566
2344
|
|
|
1567
|
-
def as_pointer(self):
|
|
1568
|
-
"""
|
|
2345
|
+
def as_pointer(self) -> int:
|
|
2346
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
2347
|
+
|
|
2348
|
+
:return: int (memory address).
|
|
2349
|
+
:rtype: int
|
|
2350
|
+
"""
|
|
1569
2351
|
...
|
|
1570
2352
|
|
|
1571
|
-
def bl_rna_get_subclass(self):
|
|
1572
|
-
"""
|
|
2353
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2354
|
+
"""
|
|
2355
|
+
|
|
2356
|
+
:return: The RNA type or default when not found.
|
|
2357
|
+
:rtype: bpy.types.Struct
|
|
2358
|
+
"""
|
|
1573
2359
|
...
|
|
1574
2360
|
|
|
1575
|
-
def bl_rna_get_subclass_py(self):
|
|
1576
|
-
"""
|
|
2361
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2362
|
+
"""
|
|
2363
|
+
|
|
2364
|
+
:return: The class or default when not found.
|
|
2365
|
+
:rtype: typing.Any
|
|
2366
|
+
"""
|
|
1577
2367
|
...
|
|
1578
2368
|
|
|
1579
2369
|
def draw(self, context):
|
|
@@ -1583,72 +2373,129 @@ class DATA_PT_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1583
2373
|
"""
|
|
1584
2374
|
...
|
|
1585
2375
|
|
|
1586
|
-
def driver_add(self):
|
|
1587
|
-
"""
|
|
2376
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
2377
|
+
"""Adds driver(s) to the given property
|
|
2378
|
+
|
|
2379
|
+
:return: The driver(s) added.
|
|
2380
|
+
:rtype: bpy.types.FCurve
|
|
2381
|
+
"""
|
|
1588
2382
|
...
|
|
1589
2383
|
|
|
1590
|
-
def driver_remove(self):
|
|
1591
|
-
"""
|
|
2384
|
+
def driver_remove(self) -> bool:
|
|
2385
|
+
"""Remove driver(s) from the given property
|
|
2386
|
+
|
|
2387
|
+
:return: Success of driver removal.
|
|
2388
|
+
:rtype: bool
|
|
2389
|
+
"""
|
|
1592
2390
|
...
|
|
1593
2391
|
|
|
1594
2392
|
def get(self):
|
|
1595
|
-
"""
|
|
2393
|
+
"""Returns the value of the custom property assigned to key or default
|
|
2394
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2395
|
+
|
|
2396
|
+
"""
|
|
1596
2397
|
...
|
|
1597
2398
|
|
|
1598
2399
|
def id_properties_clear(self):
|
|
1599
|
-
"""
|
|
2400
|
+
"""
|
|
2401
|
+
|
|
2402
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
2403
|
+
"""
|
|
1600
2404
|
...
|
|
1601
2405
|
|
|
1602
2406
|
def id_properties_ensure(self):
|
|
1603
|
-
"""
|
|
2407
|
+
"""
|
|
2408
|
+
|
|
2409
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
2410
|
+
"""
|
|
1604
2411
|
...
|
|
1605
2412
|
|
|
1606
2413
|
def id_properties_ui(self):
|
|
1607
|
-
"""
|
|
2414
|
+
"""
|
|
2415
|
+
|
|
2416
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
2417
|
+
"""
|
|
1608
2418
|
...
|
|
1609
2419
|
|
|
1610
2420
|
def is_extended(self):
|
|
1611
2421
|
""" """
|
|
1612
2422
|
...
|
|
1613
2423
|
|
|
1614
|
-
def is_property_hidden(self):
|
|
1615
|
-
"""
|
|
2424
|
+
def is_property_hidden(self) -> bool:
|
|
2425
|
+
"""Check if a property is hidden.
|
|
2426
|
+
|
|
2427
|
+
:return: True when the property is hidden.
|
|
2428
|
+
:rtype: bool
|
|
2429
|
+
"""
|
|
1616
2430
|
...
|
|
1617
2431
|
|
|
1618
|
-
def is_property_overridable_library(self):
|
|
1619
|
-
"""
|
|
2432
|
+
def is_property_overridable_library(self) -> bool:
|
|
2433
|
+
"""Check if a property is overridable.
|
|
2434
|
+
|
|
2435
|
+
:return: True when the property is overridable.
|
|
2436
|
+
:rtype: bool
|
|
2437
|
+
"""
|
|
1620
2438
|
...
|
|
1621
2439
|
|
|
1622
|
-
def is_property_readonly(self):
|
|
1623
|
-
"""
|
|
2440
|
+
def is_property_readonly(self) -> bool:
|
|
2441
|
+
"""Check if a property is readonly.
|
|
2442
|
+
|
|
2443
|
+
:return: True when the property is readonly (not writable).
|
|
2444
|
+
:rtype: bool
|
|
2445
|
+
"""
|
|
1624
2446
|
...
|
|
1625
2447
|
|
|
1626
|
-
def is_property_set(self):
|
|
1627
|
-
"""
|
|
2448
|
+
def is_property_set(self) -> bool:
|
|
2449
|
+
"""Check if a property is set, use for testing operator properties.
|
|
2450
|
+
|
|
2451
|
+
:return: True when the property has been set.
|
|
2452
|
+
:rtype: bool
|
|
2453
|
+
"""
|
|
1628
2454
|
...
|
|
1629
2455
|
|
|
1630
2456
|
def items(self):
|
|
1631
|
-
"""
|
|
2457
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
2458
|
+
dictionary function of the same name).
|
|
2459
|
+
|
|
2460
|
+
:return: custom property key, value pairs.
|
|
2461
|
+
"""
|
|
1632
2462
|
...
|
|
1633
2463
|
|
|
1634
|
-
def keyframe_delete(self):
|
|
1635
|
-
"""
|
|
2464
|
+
def keyframe_delete(self) -> bool:
|
|
2465
|
+
"""Remove a keyframe from this properties fcurve.
|
|
2466
|
+
|
|
2467
|
+
:return: Success of keyframe deletion.
|
|
2468
|
+
:rtype: bool
|
|
2469
|
+
"""
|
|
1636
2470
|
...
|
|
1637
2471
|
|
|
1638
|
-
def keyframe_insert(self):
|
|
1639
|
-
"""
|
|
2472
|
+
def keyframe_insert(self) -> bool:
|
|
2473
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
2474
|
+
|
|
2475
|
+
:return: Success of keyframe insertion.
|
|
2476
|
+
:rtype: bool
|
|
2477
|
+
"""
|
|
1640
2478
|
...
|
|
1641
2479
|
|
|
1642
2480
|
def keys(self):
|
|
1643
|
-
"""
|
|
2481
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
2482
|
+
dictionary function of the same name).
|
|
2483
|
+
|
|
2484
|
+
:return: custom property keys.
|
|
2485
|
+
"""
|
|
1644
2486
|
...
|
|
1645
2487
|
|
|
1646
|
-
def path_from_id(self):
|
|
1647
|
-
"""
|
|
2488
|
+
def path_from_id(self) -> str:
|
|
2489
|
+
"""Returns the data path from the ID to this object (string).
|
|
2490
|
+
|
|
2491
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2492
|
+
to this struct and property (when given).
|
|
2493
|
+
:rtype: str
|
|
2494
|
+
"""
|
|
1648
2495
|
...
|
|
1649
2496
|
|
|
1650
2497
|
def path_resolve(self):
|
|
1651
|
-
""" """
|
|
2498
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1652
2499
|
...
|
|
1653
2500
|
|
|
1654
2501
|
def poll(self, context):
|
|
@@ -1659,37 +2506,53 @@ class DATA_PT_light(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1659
2506
|
...
|
|
1660
2507
|
|
|
1661
2508
|
def pop(self):
|
|
1662
|
-
"""
|
|
2509
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
2510
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2511
|
+
|
|
2512
|
+
"""
|
|
1663
2513
|
...
|
|
1664
2514
|
|
|
1665
2515
|
def prepend(self, draw_func):
|
|
1666
|
-
"""
|
|
2516
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2517
|
+
the menus draw function
|
|
1667
2518
|
|
|
1668
|
-
|
|
2519
|
+
:param draw_func:
|
|
1669
2520
|
"""
|
|
1670
2521
|
...
|
|
1671
2522
|
|
|
1672
|
-
def property_overridable_library_set(self):
|
|
1673
|
-
"""
|
|
2523
|
+
def property_overridable_library_set(self) -> bool:
|
|
2524
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
2525
|
+
|
|
2526
|
+
:return: True when the overridable status of the property was successfully set.
|
|
2527
|
+
:rtype: bool
|
|
2528
|
+
"""
|
|
1674
2529
|
...
|
|
1675
2530
|
|
|
1676
2531
|
def property_unset(self):
|
|
1677
|
-
""" """
|
|
2532
|
+
"""Unset a property, will use default value afterward."""
|
|
1678
2533
|
...
|
|
1679
2534
|
|
|
1680
2535
|
def remove(self, draw_func):
|
|
1681
|
-
"""
|
|
2536
|
+
"""Remove a draw function that has been added to this menu
|
|
1682
2537
|
|
|
1683
2538
|
:param draw_func:
|
|
1684
2539
|
"""
|
|
1685
2540
|
...
|
|
1686
2541
|
|
|
1687
2542
|
def type_recast(self):
|
|
1688
|
-
"""
|
|
2543
|
+
"""Return a new instance, this is needed because types
|
|
2544
|
+
such as textures can be changed at runtime.
|
|
2545
|
+
|
|
2546
|
+
:return: a new instance of this object with the type initialized again.
|
|
2547
|
+
"""
|
|
1689
2548
|
...
|
|
1690
2549
|
|
|
1691
2550
|
def values(self):
|
|
1692
|
-
"""
|
|
2551
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
2552
|
+
dictionary function of the same name).
|
|
2553
|
+
|
|
2554
|
+
:return: custom property values.
|
|
2555
|
+
"""
|
|
1693
2556
|
...
|
|
1694
2557
|
|
|
1695
2558
|
class DATA_PT_preview(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
@@ -1720,22 +2583,35 @@ class DATA_PT_preview(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1720
2583
|
""" """
|
|
1721
2584
|
|
|
1722
2585
|
def append(self, draw_func):
|
|
1723
|
-
"""
|
|
2586
|
+
"""Append a draw function to this menu,
|
|
2587
|
+
takes the same arguments as the menus draw function
|
|
1724
2588
|
|
|
1725
|
-
|
|
2589
|
+
:param draw_func:
|
|
1726
2590
|
"""
|
|
1727
2591
|
...
|
|
1728
2592
|
|
|
1729
|
-
def as_pointer(self):
|
|
1730
|
-
"""
|
|
2593
|
+
def as_pointer(self) -> int:
|
|
2594
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
2595
|
+
|
|
2596
|
+
:return: int (memory address).
|
|
2597
|
+
:rtype: int
|
|
2598
|
+
"""
|
|
1731
2599
|
...
|
|
1732
2600
|
|
|
1733
|
-
def bl_rna_get_subclass(self):
|
|
1734
|
-
"""
|
|
2601
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2602
|
+
"""
|
|
2603
|
+
|
|
2604
|
+
:return: The RNA type or default when not found.
|
|
2605
|
+
:rtype: bpy.types.Struct
|
|
2606
|
+
"""
|
|
1735
2607
|
...
|
|
1736
2608
|
|
|
1737
|
-
def bl_rna_get_subclass_py(self):
|
|
1738
|
-
"""
|
|
2609
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2610
|
+
"""
|
|
2611
|
+
|
|
2612
|
+
:return: The class or default when not found.
|
|
2613
|
+
:rtype: typing.Any
|
|
2614
|
+
"""
|
|
1739
2615
|
...
|
|
1740
2616
|
|
|
1741
2617
|
def draw(self, context):
|
|
@@ -1745,72 +2621,129 @@ class DATA_PT_preview(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1745
2621
|
"""
|
|
1746
2622
|
...
|
|
1747
2623
|
|
|
1748
|
-
def driver_add(self):
|
|
1749
|
-
"""
|
|
2624
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
2625
|
+
"""Adds driver(s) to the given property
|
|
2626
|
+
|
|
2627
|
+
:return: The driver(s) added.
|
|
2628
|
+
:rtype: bpy.types.FCurve
|
|
2629
|
+
"""
|
|
1750
2630
|
...
|
|
1751
2631
|
|
|
1752
|
-
def driver_remove(self):
|
|
1753
|
-
"""
|
|
2632
|
+
def driver_remove(self) -> bool:
|
|
2633
|
+
"""Remove driver(s) from the given property
|
|
2634
|
+
|
|
2635
|
+
:return: Success of driver removal.
|
|
2636
|
+
:rtype: bool
|
|
2637
|
+
"""
|
|
1754
2638
|
...
|
|
1755
2639
|
|
|
1756
2640
|
def get(self):
|
|
1757
|
-
"""
|
|
2641
|
+
"""Returns the value of the custom property assigned to key or default
|
|
2642
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2643
|
+
|
|
2644
|
+
"""
|
|
1758
2645
|
...
|
|
1759
2646
|
|
|
1760
2647
|
def id_properties_clear(self):
|
|
1761
|
-
"""
|
|
2648
|
+
"""
|
|
2649
|
+
|
|
2650
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
2651
|
+
"""
|
|
1762
2652
|
...
|
|
1763
2653
|
|
|
1764
2654
|
def id_properties_ensure(self):
|
|
1765
|
-
"""
|
|
2655
|
+
"""
|
|
2656
|
+
|
|
2657
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
2658
|
+
"""
|
|
1766
2659
|
...
|
|
1767
2660
|
|
|
1768
2661
|
def id_properties_ui(self):
|
|
1769
|
-
"""
|
|
2662
|
+
"""
|
|
2663
|
+
|
|
2664
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
2665
|
+
"""
|
|
1770
2666
|
...
|
|
1771
2667
|
|
|
1772
2668
|
def is_extended(self):
|
|
1773
2669
|
""" """
|
|
1774
2670
|
...
|
|
1775
2671
|
|
|
1776
|
-
def is_property_hidden(self):
|
|
1777
|
-
"""
|
|
2672
|
+
def is_property_hidden(self) -> bool:
|
|
2673
|
+
"""Check if a property is hidden.
|
|
2674
|
+
|
|
2675
|
+
:return: True when the property is hidden.
|
|
2676
|
+
:rtype: bool
|
|
2677
|
+
"""
|
|
1778
2678
|
...
|
|
1779
2679
|
|
|
1780
|
-
def is_property_overridable_library(self):
|
|
1781
|
-
"""
|
|
2680
|
+
def is_property_overridable_library(self) -> bool:
|
|
2681
|
+
"""Check if a property is overridable.
|
|
2682
|
+
|
|
2683
|
+
:return: True when the property is overridable.
|
|
2684
|
+
:rtype: bool
|
|
2685
|
+
"""
|
|
1782
2686
|
...
|
|
1783
2687
|
|
|
1784
|
-
def is_property_readonly(self):
|
|
1785
|
-
"""
|
|
2688
|
+
def is_property_readonly(self) -> bool:
|
|
2689
|
+
"""Check if a property is readonly.
|
|
2690
|
+
|
|
2691
|
+
:return: True when the property is readonly (not writable).
|
|
2692
|
+
:rtype: bool
|
|
2693
|
+
"""
|
|
1786
2694
|
...
|
|
1787
2695
|
|
|
1788
|
-
def is_property_set(self):
|
|
1789
|
-
"""
|
|
2696
|
+
def is_property_set(self) -> bool:
|
|
2697
|
+
"""Check if a property is set, use for testing operator properties.
|
|
2698
|
+
|
|
2699
|
+
:return: True when the property has been set.
|
|
2700
|
+
:rtype: bool
|
|
2701
|
+
"""
|
|
1790
2702
|
...
|
|
1791
2703
|
|
|
1792
2704
|
def items(self):
|
|
1793
|
-
"""
|
|
2705
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
2706
|
+
dictionary function of the same name).
|
|
2707
|
+
|
|
2708
|
+
:return: custom property key, value pairs.
|
|
2709
|
+
"""
|
|
1794
2710
|
...
|
|
1795
2711
|
|
|
1796
|
-
def keyframe_delete(self):
|
|
1797
|
-
"""
|
|
2712
|
+
def keyframe_delete(self) -> bool:
|
|
2713
|
+
"""Remove a keyframe from this properties fcurve.
|
|
2714
|
+
|
|
2715
|
+
:return: Success of keyframe deletion.
|
|
2716
|
+
:rtype: bool
|
|
2717
|
+
"""
|
|
1798
2718
|
...
|
|
1799
2719
|
|
|
1800
|
-
def keyframe_insert(self):
|
|
1801
|
-
"""
|
|
2720
|
+
def keyframe_insert(self) -> bool:
|
|
2721
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
2722
|
+
|
|
2723
|
+
:return: Success of keyframe insertion.
|
|
2724
|
+
:rtype: bool
|
|
2725
|
+
"""
|
|
1802
2726
|
...
|
|
1803
2727
|
|
|
1804
2728
|
def keys(self):
|
|
1805
|
-
"""
|
|
2729
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
2730
|
+
dictionary function of the same name).
|
|
2731
|
+
|
|
2732
|
+
:return: custom property keys.
|
|
2733
|
+
"""
|
|
1806
2734
|
...
|
|
1807
2735
|
|
|
1808
|
-
def path_from_id(self):
|
|
1809
|
-
"""
|
|
2736
|
+
def path_from_id(self) -> str:
|
|
2737
|
+
"""Returns the data path from the ID to this object (string).
|
|
2738
|
+
|
|
2739
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2740
|
+
to this struct and property (when given).
|
|
2741
|
+
:rtype: str
|
|
2742
|
+
"""
|
|
1810
2743
|
...
|
|
1811
2744
|
|
|
1812
2745
|
def path_resolve(self):
|
|
1813
|
-
""" """
|
|
2746
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1814
2747
|
...
|
|
1815
2748
|
|
|
1816
2749
|
def poll(self, context):
|
|
@@ -1821,37 +2754,53 @@ class DATA_PT_preview(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1821
2754
|
...
|
|
1822
2755
|
|
|
1823
2756
|
def pop(self):
|
|
1824
|
-
"""
|
|
2757
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
2758
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2759
|
+
|
|
2760
|
+
"""
|
|
1825
2761
|
...
|
|
1826
2762
|
|
|
1827
2763
|
def prepend(self, draw_func):
|
|
1828
|
-
"""
|
|
2764
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2765
|
+
the menus draw function
|
|
1829
2766
|
|
|
1830
|
-
|
|
2767
|
+
:param draw_func:
|
|
1831
2768
|
"""
|
|
1832
2769
|
...
|
|
1833
2770
|
|
|
1834
|
-
def property_overridable_library_set(self):
|
|
1835
|
-
"""
|
|
2771
|
+
def property_overridable_library_set(self) -> bool:
|
|
2772
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
2773
|
+
|
|
2774
|
+
:return: True when the overridable status of the property was successfully set.
|
|
2775
|
+
:rtype: bool
|
|
2776
|
+
"""
|
|
1836
2777
|
...
|
|
1837
2778
|
|
|
1838
2779
|
def property_unset(self):
|
|
1839
|
-
""" """
|
|
2780
|
+
"""Unset a property, will use default value afterward."""
|
|
1840
2781
|
...
|
|
1841
2782
|
|
|
1842
2783
|
def remove(self, draw_func):
|
|
1843
|
-
"""
|
|
2784
|
+
"""Remove a draw function that has been added to this menu
|
|
1844
2785
|
|
|
1845
2786
|
:param draw_func:
|
|
1846
2787
|
"""
|
|
1847
2788
|
...
|
|
1848
2789
|
|
|
1849
2790
|
def type_recast(self):
|
|
1850
|
-
"""
|
|
2791
|
+
"""Return a new instance, this is needed because types
|
|
2792
|
+
such as textures can be changed at runtime.
|
|
2793
|
+
|
|
2794
|
+
:return: a new instance of this object with the type initialized again.
|
|
2795
|
+
"""
|
|
1851
2796
|
...
|
|
1852
2797
|
|
|
1853
2798
|
def values(self):
|
|
1854
|
-
"""
|
|
2799
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
2800
|
+
dictionary function of the same name).
|
|
2801
|
+
|
|
2802
|
+
:return: custom property values.
|
|
2803
|
+
"""
|
|
1855
2804
|
...
|
|
1856
2805
|
|
|
1857
2806
|
class DATA_PT_spot(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
@@ -1882,22 +2831,35 @@ class DATA_PT_spot(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1882
2831
|
""" """
|
|
1883
2832
|
|
|
1884
2833
|
def append(self, draw_func):
|
|
1885
|
-
"""
|
|
2834
|
+
"""Append a draw function to this menu,
|
|
2835
|
+
takes the same arguments as the menus draw function
|
|
1886
2836
|
|
|
1887
|
-
|
|
2837
|
+
:param draw_func:
|
|
1888
2838
|
"""
|
|
1889
2839
|
...
|
|
1890
2840
|
|
|
1891
|
-
def as_pointer(self):
|
|
1892
|
-
"""
|
|
2841
|
+
def as_pointer(self) -> int:
|
|
2842
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
2843
|
+
|
|
2844
|
+
:return: int (memory address).
|
|
2845
|
+
:rtype: int
|
|
2846
|
+
"""
|
|
1893
2847
|
...
|
|
1894
2848
|
|
|
1895
|
-
def bl_rna_get_subclass(self):
|
|
1896
|
-
"""
|
|
2849
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2850
|
+
"""
|
|
2851
|
+
|
|
2852
|
+
:return: The RNA type or default when not found.
|
|
2853
|
+
:rtype: bpy.types.Struct
|
|
2854
|
+
"""
|
|
1897
2855
|
...
|
|
1898
2856
|
|
|
1899
|
-
def bl_rna_get_subclass_py(self):
|
|
1900
|
-
"""
|
|
2857
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2858
|
+
"""
|
|
2859
|
+
|
|
2860
|
+
:return: The class or default when not found.
|
|
2861
|
+
:rtype: typing.Any
|
|
2862
|
+
"""
|
|
1901
2863
|
...
|
|
1902
2864
|
|
|
1903
2865
|
def draw(self, context):
|
|
@@ -1907,72 +2869,129 @@ class DATA_PT_spot(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1907
2869
|
"""
|
|
1908
2870
|
...
|
|
1909
2871
|
|
|
1910
|
-
def driver_add(self):
|
|
1911
|
-
"""
|
|
2872
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
2873
|
+
"""Adds driver(s) to the given property
|
|
2874
|
+
|
|
2875
|
+
:return: The driver(s) added.
|
|
2876
|
+
:rtype: bpy.types.FCurve
|
|
2877
|
+
"""
|
|
1912
2878
|
...
|
|
1913
2879
|
|
|
1914
|
-
def driver_remove(self):
|
|
1915
|
-
"""
|
|
2880
|
+
def driver_remove(self) -> bool:
|
|
2881
|
+
"""Remove driver(s) from the given property
|
|
2882
|
+
|
|
2883
|
+
:return: Success of driver removal.
|
|
2884
|
+
:rtype: bool
|
|
2885
|
+
"""
|
|
1916
2886
|
...
|
|
1917
2887
|
|
|
1918
2888
|
def get(self):
|
|
1919
|
-
"""
|
|
2889
|
+
"""Returns the value of the custom property assigned to key or default
|
|
2890
|
+
when not found (matches Python's dictionary function of the same name).
|
|
2891
|
+
|
|
2892
|
+
"""
|
|
1920
2893
|
...
|
|
1921
2894
|
|
|
1922
2895
|
def id_properties_clear(self):
|
|
1923
|
-
"""
|
|
2896
|
+
"""
|
|
2897
|
+
|
|
2898
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
2899
|
+
"""
|
|
1924
2900
|
...
|
|
1925
2901
|
|
|
1926
2902
|
def id_properties_ensure(self):
|
|
1927
|
-
"""
|
|
2903
|
+
"""
|
|
2904
|
+
|
|
2905
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
2906
|
+
"""
|
|
1928
2907
|
...
|
|
1929
2908
|
|
|
1930
2909
|
def id_properties_ui(self):
|
|
1931
|
-
"""
|
|
2910
|
+
"""
|
|
2911
|
+
|
|
2912
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
2913
|
+
"""
|
|
1932
2914
|
...
|
|
1933
2915
|
|
|
1934
2916
|
def is_extended(self):
|
|
1935
2917
|
""" """
|
|
1936
2918
|
...
|
|
1937
2919
|
|
|
1938
|
-
def is_property_hidden(self):
|
|
1939
|
-
"""
|
|
2920
|
+
def is_property_hidden(self) -> bool:
|
|
2921
|
+
"""Check if a property is hidden.
|
|
2922
|
+
|
|
2923
|
+
:return: True when the property is hidden.
|
|
2924
|
+
:rtype: bool
|
|
2925
|
+
"""
|
|
1940
2926
|
...
|
|
1941
2927
|
|
|
1942
|
-
def is_property_overridable_library(self):
|
|
1943
|
-
"""
|
|
2928
|
+
def is_property_overridable_library(self) -> bool:
|
|
2929
|
+
"""Check if a property is overridable.
|
|
2930
|
+
|
|
2931
|
+
:return: True when the property is overridable.
|
|
2932
|
+
:rtype: bool
|
|
2933
|
+
"""
|
|
1944
2934
|
...
|
|
1945
2935
|
|
|
1946
|
-
def is_property_readonly(self):
|
|
1947
|
-
"""
|
|
2936
|
+
def is_property_readonly(self) -> bool:
|
|
2937
|
+
"""Check if a property is readonly.
|
|
2938
|
+
|
|
2939
|
+
:return: True when the property is readonly (not writable).
|
|
2940
|
+
:rtype: bool
|
|
2941
|
+
"""
|
|
1948
2942
|
...
|
|
1949
2943
|
|
|
1950
|
-
def is_property_set(self):
|
|
1951
|
-
"""
|
|
2944
|
+
def is_property_set(self) -> bool:
|
|
2945
|
+
"""Check if a property is set, use for testing operator properties.
|
|
2946
|
+
|
|
2947
|
+
:return: True when the property has been set.
|
|
2948
|
+
:rtype: bool
|
|
2949
|
+
"""
|
|
1952
2950
|
...
|
|
1953
2951
|
|
|
1954
2952
|
def items(self):
|
|
1955
|
-
"""
|
|
2953
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
2954
|
+
dictionary function of the same name).
|
|
2955
|
+
|
|
2956
|
+
:return: custom property key, value pairs.
|
|
2957
|
+
"""
|
|
1956
2958
|
...
|
|
1957
2959
|
|
|
1958
|
-
def keyframe_delete(self):
|
|
1959
|
-
"""
|
|
2960
|
+
def keyframe_delete(self) -> bool:
|
|
2961
|
+
"""Remove a keyframe from this properties fcurve.
|
|
2962
|
+
|
|
2963
|
+
:return: Success of keyframe deletion.
|
|
2964
|
+
:rtype: bool
|
|
2965
|
+
"""
|
|
1960
2966
|
...
|
|
1961
2967
|
|
|
1962
|
-
def keyframe_insert(self):
|
|
1963
|
-
"""
|
|
2968
|
+
def keyframe_insert(self) -> bool:
|
|
2969
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
2970
|
+
|
|
2971
|
+
:return: Success of keyframe insertion.
|
|
2972
|
+
:rtype: bool
|
|
2973
|
+
"""
|
|
1964
2974
|
...
|
|
1965
2975
|
|
|
1966
2976
|
def keys(self):
|
|
1967
|
-
"""
|
|
2977
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
2978
|
+
dictionary function of the same name).
|
|
2979
|
+
|
|
2980
|
+
:return: custom property keys.
|
|
2981
|
+
"""
|
|
1968
2982
|
...
|
|
1969
2983
|
|
|
1970
|
-
def path_from_id(self):
|
|
1971
|
-
"""
|
|
2984
|
+
def path_from_id(self) -> str:
|
|
2985
|
+
"""Returns the data path from the ID to this object (string).
|
|
2986
|
+
|
|
2987
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2988
|
+
to this struct and property (when given).
|
|
2989
|
+
:rtype: str
|
|
2990
|
+
"""
|
|
1972
2991
|
...
|
|
1973
2992
|
|
|
1974
2993
|
def path_resolve(self):
|
|
1975
|
-
""" """
|
|
2994
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1976
2995
|
...
|
|
1977
2996
|
|
|
1978
2997
|
def poll(self, context):
|
|
@@ -1983,35 +3002,51 @@ class DATA_PT_spot(bpy_types.Panel, DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1983
3002
|
...
|
|
1984
3003
|
|
|
1985
3004
|
def pop(self):
|
|
1986
|
-
"""
|
|
3005
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
3006
|
+
when not found (matches Python's dictionary function of the same name).
|
|
3007
|
+
|
|
3008
|
+
"""
|
|
1987
3009
|
...
|
|
1988
3010
|
|
|
1989
3011
|
def prepend(self, draw_func):
|
|
1990
|
-
"""
|
|
3012
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
3013
|
+
the menus draw function
|
|
1991
3014
|
|
|
1992
|
-
|
|
3015
|
+
:param draw_func:
|
|
1993
3016
|
"""
|
|
1994
3017
|
...
|
|
1995
3018
|
|
|
1996
|
-
def property_overridable_library_set(self):
|
|
1997
|
-
"""
|
|
3019
|
+
def property_overridable_library_set(self) -> bool:
|
|
3020
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
3021
|
+
|
|
3022
|
+
:return: True when the overridable status of the property was successfully set.
|
|
3023
|
+
:rtype: bool
|
|
3024
|
+
"""
|
|
1998
3025
|
...
|
|
1999
3026
|
|
|
2000
3027
|
def property_unset(self):
|
|
2001
|
-
""" """
|
|
3028
|
+
"""Unset a property, will use default value afterward."""
|
|
2002
3029
|
...
|
|
2003
3030
|
|
|
2004
3031
|
def remove(self, draw_func):
|
|
2005
|
-
"""
|
|
3032
|
+
"""Remove a draw function that has been added to this menu
|
|
2006
3033
|
|
|
2007
3034
|
:param draw_func:
|
|
2008
3035
|
"""
|
|
2009
3036
|
...
|
|
2010
3037
|
|
|
2011
3038
|
def type_recast(self):
|
|
2012
|
-
"""
|
|
3039
|
+
"""Return a new instance, this is needed because types
|
|
3040
|
+
such as textures can be changed at runtime.
|
|
3041
|
+
|
|
3042
|
+
:return: a new instance of this object with the type initialized again.
|
|
3043
|
+
"""
|
|
2013
3044
|
...
|
|
2014
3045
|
|
|
2015
3046
|
def values(self):
|
|
2016
|
-
"""
|
|
3047
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
3048
|
+
dictionary function of the same name).
|
|
3049
|
+
|
|
3050
|
+
:return: custom property values.
|
|
3051
|
+
"""
|
|
2017
3052
|
...
|