fake-bpy-module 20240516__py3-none-any.whl → 20240518__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/freedesktop/__init__.pyi +17 -84
- addon_utils/__init__.pyi +44 -38
- animsys_refactor/__init__.pyi +7 -27
- aud/__init__.pyi +8 -11
- bgl/__init__.pyi +121 -1812
- bl_app_override/__init__.pyi +8 -19
- bl_app_override/helpers/__init__.pyi +5 -23
- bl_app_template_utils/__init__.pyi +5 -17
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +16 -67
- bl_i18n_utils/merge_po/__init__.pyi +1 -4
- bl_i18n_utils/settings/__init__.pyi +6 -24
- bl_i18n_utils/utils/__init__.pyi +93 -122
- bl_i18n_utils/utils_cli/__init__.pyi +6 -29
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -4
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +9 -40
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -4
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -6
- bl_keymap_utils/versioning/__init__.pyi +1 -4
- bl_operators/__init__.pyi +2 -9
- bl_operators/add_mesh_torus/__init__.pyi +128 -59
- bl_operators/anim/__init__.pyi +1001 -398
- bl_operators/assets/__init__.pyi +376 -152
- bl_operators/bmesh/find_adjacent/__init__.pyi +10 -37
- bl_operators/clip/__init__.pyi +1264 -532
- bl_operators/console/__init__.pyi +626 -242
- bl_operators/constraint/__init__.pyi +502 -201
- bl_operators/file/__init__.pyi +376 -150
- bl_operators/freestyle/__init__.pyi +501 -200
- bl_operators/geometry_nodes/__init__.pyi +514 -266
- bl_operators/image/__init__.pyi +621 -251
- bl_operators/mesh/__init__.pyi +376 -150
- bl_operators/node/__init__.pyi +1253 -516
- bl_operators/object/__init__.pyi +1879 -755
- bl_operators/object_align/__init__.pyi +129 -64
- bl_operators/object_quick_effects/__init__.pyi +504 -213
- bl_operators/object_randomize_transform/__init__.pyi +129 -54
- bl_operators/presets/__init__.pyi +3072 -1403
- bl_operators/rigidbody/__init__.pyi +376 -150
- bl_operators/screen_play_rendered_anim/__init__.pyi +127 -54
- bl_operators/sequencer/__init__.pyi +1010 -434
- bl_operators/spreadsheet/__init__.pyi +126 -50
- bl_operators/userpref/__init__.pyi +3253 -1267
- bl_operators/uvcalc_follow_active/__init__.pyi +128 -59
- bl_operators/uvcalc_lightmap/__init__.pyi +139 -80
- bl_operators/uvcalc_transform/__init__.pyi +297 -159
- bl_operators/vertexpaint_dirt/__init__.pyi +128 -59
- bl_operators/view3d/__init__.pyi +868 -342
- bl_operators/wm/__init__.pyi +5795 -2388
- bl_operators/world/__init__.pyi +126 -50
- bl_previews_utils/bl_previews_render/__init__.pyi +7 -34
- bl_rna_utils/data_path/__init__.pyi +8 -4
- bl_text_utils/external_editor/__init__.pyi +1 -4
- bl_ui/__init__.pyi +366 -269
- bl_ui/anim/__init__.pyi +164 -74
- bl_ui/asset_shelf/__init__.pyi +129 -56
- bl_ui/generic_ui_list/__init__.pyi +412 -163
- bl_ui/node_add_menu/__init__.pyi +171 -94
- bl_ui/node_add_menu_compositor/__init__.pyi +2918 -1353
- bl_ui/node_add_menu_geometry/__init__.pyi +7789 -3616
- bl_ui/node_add_menu_shader/__init__.pyi +1630 -790
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -675
- bl_ui/properties_animviz/__init__.pyi +2 -16
- bl_ui/properties_collection/__init__.pyi +807 -379
- bl_ui/properties_constraint/__init__.pyi +10292 -4941
- bl_ui/properties_data_armature/__init__.pyi +1615 -753
- bl_ui/properties_data_bone/__init__.pyi +1284 -608
- bl_ui/properties_data_camera/__init__.pyi +1854 -927
- bl_ui/properties_data_curve/__init__.pyi +1927 -937
- bl_ui/properties_data_curves/__init__.pyi +806 -375
- bl_ui/properties_data_empty/__init__.pyi +257 -125
- bl_ui/properties_data_gpencil/__init__.pyi +2376 -1130
- bl_ui/properties_data_grease_pencil/__init__.pyi +1898 -894
- bl_ui/properties_data_lattice/__init__.pyi +388 -188
- bl_ui/properties_data_light/__init__.pyi +1540 -756
- bl_ui/properties_data_lightprobe/__init__.pyi +1666 -810
- bl_ui/properties_data_mesh/__init__.pyi +2707 -1235
- bl_ui/properties_data_metaball/__init__.pyi +644 -308
- bl_ui/properties_data_modifier/__init__.pyi +1353 -671
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -316
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -67
- bl_ui/properties_data_speaker/__init__.pyi +644 -316
- bl_ui/properties_data_volume/__init__.pyi +1028 -484
- bl_ui/properties_freestyle/__init__.pyi +3112 -1619
- bl_ui/properties_grease_pencil_common/__init__.pyi +2454 -1123
- bl_ui/properties_mask_common/__init__.pyi +1102 -523
- bl_ui/properties_material/__init__.pyi +2089 -1009
- bl_ui/properties_material_gpencil/__init__.pyi +1348 -635
- bl_ui/properties_object/__init__.pyi +1832 -873
- bl_ui/properties_output/__init__.pyi +2405 -1173
- bl_ui/properties_paint_common/__init__.pyi +416 -386
- bl_ui/properties_particle/__init__.pyi +6740 -3346
- bl_ui/properties_physics_cloth/__init__.pyi +1822 -907
- bl_ui/properties_physics_common/__init__.pyi +135 -98
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2817 -1391
- bl_ui/properties_physics_field/__init__.pyi +1282 -627
- bl_ui/properties_physics_fluid/__init__.pyi +3614 -1794
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -60
- bl_ui/properties_physics_rigidbody/__init__.pyi +1026 -515
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1665 -811
- bl_ui/properties_physics_softbody/__init__.pyi +1922 -967
- bl_ui/properties_render/__init__.pyi +6843 -3367
- bl_ui/properties_scene/__init__.pyi +1924 -913
- bl_ui/properties_texture/__init__.pyi +3371 -1667
- bl_ui/properties_view_layer/__init__.pyi +2344 -1107
- bl_ui/properties_workspace/__init__.pyi +516 -244
- bl_ui/properties_world/__init__.pyi +1284 -630
- bl_ui/space_clip/__init__.pyi +10172 -4695
- bl_ui/space_console/__init__.pyi +940 -423
- bl_ui/space_dopesheet/__init__.pyi +4325 -2013
- bl_ui/space_filebrowser/__init__.pyi +4172 -1903
- bl_ui/space_graph/__init__.pyi +3107 -1394
- bl_ui/space_image/__init__.pyi +9764 -4614
- bl_ui/space_info/__init__.pyi +939 -421
- bl_ui/space_nla/__init__.pyi +2623 -1183
- bl_ui/space_node/__init__.pyi +3995 -1840
- bl_ui/space_outliner/__init__.pyi +2203 -991
- bl_ui/space_properties/__init__.pyi +386 -165
- bl_ui/space_sequencer/__init__.pyi +10809 -4978
- bl_ui/space_spreadsheet/__init__.pyi +130 -53
- bl_ui/space_statusbar/__init__.pyi +129 -52
- bl_ui/space_text/__init__.pyi +2457 -1100
- bl_ui/space_time/__init__.pyi +1034 -481
- bl_ui/space_toolsystem_common/__init__.pyi +56 -211
- bl_ui/space_toolsystem_toolbar/__init__.pyi +153 -882
- bl_ui/space_topbar/__init__.pyi +3982 -1805
- bl_ui/space_userpref/__init__.pyi +11383 -5290
- bl_ui/space_view3d/__init__.pyi +40873 -18532
- bl_ui/space_view3d_toolbar/__init__.pyi +12570 -6502
- bl_ui/temp_anim_layers/__init__.pyi +130 -62
- bl_ui/utils/__init__.pyi +28 -27
- bl_ui_utils/bug_report_url/__init__.pyi +1 -4
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +3 -10
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +39 -56
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2683 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17058 -26311
- bpy/utils/__init__.pyi +247 -179
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -29
- bpy_extras/asset_utils/__init__.pyi +0 -10
- bpy_extras/bmesh_utils/__init__.pyi +9 -6
- bpy_extras/extensions/junction_module/__init__.pyi +6 -8
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +116 -41
- bpy_extras/keyconfig_utils/__init__.pyi +4 -11
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +52 -288
- bpy_extras/node_utils/__init__.pyi +10 -10
- bpy_extras/object_utils/__init__.pyi +71 -14
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +15 -38
- bpy_restrict_state/__init__.pyi +1 -14
- bpy_types/__init__.pyi +4203 -1605
- console_python/__init__.pyi +12 -37
- console_shell/__init__.pyi +5 -24
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/METADATA +1 -1
- fake_bpy_module-20240518.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +14 -44
- freestyle/functions/__init__.pyi +7 -33
- freestyle/predicates/__init__.pyi +44 -217
- freestyle/shaders/__init__.pyi +2 -12
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +6 -18
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -9
- idprop/types/__init__.pyi +8 -35
- imbuf/__init__.pyi +4 -4
- imbuf/types/__init__.pyi +0 -2
- keyingsets_builtins/__init__.pyi +2692 -997
- keyingsets_utils/__init__.pyi +14 -69
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -6
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_builtins/__init__.pyi +5 -30
- nodeitems_utils/__init__.pyi +8 -45
- rna_info/__init__.pyi +39 -215
- rna_keymap_ui/__init__.pyi +6 -29
- rna_prop_ui/__init__.pyi +24 -62
- rna_xml/__init__.pyi +16 -39
- sys_info/__init__.pyi +1 -4
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/top_level.txt +0 -0
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import bpy.types
|
|
2
3
|
import bpy_types
|
|
3
4
|
|
|
4
5
|
GenericType = typing.TypeVar("GenericType")
|
|
5
6
|
|
|
6
7
|
class BrushAssetShelf:
|
|
7
|
-
""" """
|
|
8
|
-
|
|
9
8
|
bl_default_preview_size: typing.Any
|
|
10
|
-
""" """
|
|
11
|
-
|
|
12
9
|
bl_options: typing.Any
|
|
13
|
-
""" """
|
|
14
10
|
|
|
15
11
|
def asset_poll(self, asset):
|
|
16
12
|
"""
|
|
@@ -27,12 +23,11 @@ class BrushAssetShelf:
|
|
|
27
23
|
...
|
|
28
24
|
|
|
29
25
|
class UnifiedPaintPanel:
|
|
30
|
-
""" """
|
|
31
|
-
|
|
32
26
|
def get_brush_mode(self, context):
|
|
33
|
-
"""
|
|
27
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
28
|
+
no brush options should be displayed.
|
|
34
29
|
|
|
35
|
-
|
|
30
|
+
:param context:
|
|
36
31
|
"""
|
|
37
32
|
...
|
|
38
33
|
|
|
@@ -49,29 +44,30 @@ class UnifiedPaintPanel:
|
|
|
49
44
|
context,
|
|
50
45
|
brush,
|
|
51
46
|
prop_name,
|
|
52
|
-
unified_name,
|
|
53
|
-
pressure_name,
|
|
54
|
-
icon,
|
|
55
|
-
text,
|
|
56
|
-
slider,
|
|
57
|
-
header,
|
|
47
|
+
unified_name=None,
|
|
48
|
+
pressure_name=None,
|
|
49
|
+
icon="NONE",
|
|
50
|
+
text=None,
|
|
51
|
+
slider=False,
|
|
52
|
+
header=False,
|
|
58
53
|
):
|
|
59
|
-
"""
|
|
54
|
+
"""Generalized way of adding brush options to the UI,
|
|
55
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
:param layout:
|
|
58
|
+
:param context:
|
|
59
|
+
:param brush:
|
|
60
|
+
:param prop_name:
|
|
61
|
+
:param unified_name:
|
|
62
|
+
:param pressure_name:
|
|
63
|
+
:param icon:
|
|
64
|
+
:param text:
|
|
65
|
+
:param slider:
|
|
66
|
+
:param header:
|
|
71
67
|
"""
|
|
72
68
|
...
|
|
73
69
|
|
|
74
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
70
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
75
71
|
"""
|
|
76
72
|
|
|
77
73
|
:param parent:
|
|
@@ -83,7 +79,7 @@ class UnifiedPaintPanel:
|
|
|
83
79
|
...
|
|
84
80
|
|
|
85
81
|
def prop_unified_color_picker(
|
|
86
|
-
self, parent, context, brush, prop_name, value_slider
|
|
82
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
87
83
|
):
|
|
88
84
|
"""
|
|
89
85
|
|
|
@@ -96,34 +92,40 @@ class UnifiedPaintPanel:
|
|
|
96
92
|
...
|
|
97
93
|
|
|
98
94
|
class VIEW3D_MT_tools_projectpaint_clone(bpy_types.Menu, bpy_types._GenericUI):
|
|
99
|
-
""" """
|
|
100
|
-
|
|
101
95
|
bl_label: typing.Any
|
|
102
|
-
""" """
|
|
103
|
-
|
|
104
96
|
bl_rna: typing.Any
|
|
105
|
-
""" """
|
|
106
|
-
|
|
107
97
|
id_data: typing.Any
|
|
108
|
-
""" """
|
|
109
98
|
|
|
110
99
|
def append(self, draw_func):
|
|
111
|
-
"""
|
|
100
|
+
"""Append a draw function to this menu,
|
|
101
|
+
takes the same arguments as the menus draw function
|
|
112
102
|
|
|
113
|
-
|
|
103
|
+
:param draw_func:
|
|
114
104
|
"""
|
|
115
105
|
...
|
|
116
106
|
|
|
117
|
-
def as_pointer(self):
|
|
118
|
-
"""
|
|
107
|
+
def as_pointer(self) -> int:
|
|
108
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
109
|
+
|
|
110
|
+
:return: int (memory address).
|
|
111
|
+
:rtype: int
|
|
112
|
+
"""
|
|
119
113
|
...
|
|
120
114
|
|
|
121
|
-
def bl_rna_get_subclass(self):
|
|
122
|
-
"""
|
|
115
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
:return: The RNA type or default when not found.
|
|
119
|
+
:rtype: bpy.types.Struct
|
|
120
|
+
"""
|
|
123
121
|
...
|
|
124
122
|
|
|
125
|
-
def bl_rna_get_subclass_py(self):
|
|
126
|
-
"""
|
|
123
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
:return: The class or default when not found.
|
|
127
|
+
:rtype: typing.Any
|
|
128
|
+
"""
|
|
127
129
|
...
|
|
128
130
|
|
|
129
131
|
def draw(self, context):
|
|
@@ -142,147 +144,229 @@ class VIEW3D_MT_tools_projectpaint_clone(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
142
144
|
...
|
|
143
145
|
|
|
144
146
|
def draw_preset(self, _context):
|
|
145
|
-
"""
|
|
147
|
+
"""Define these on the subclass:
|
|
148
|
+
- preset_operator (string)
|
|
149
|
+
- preset_subdir (string)Optionally:
|
|
150
|
+
- preset_add_operator (string)
|
|
151
|
+
- preset_extensions (set of strings)
|
|
152
|
+
- preset_operator_defaults (dict of keyword args)
|
|
146
153
|
|
|
147
|
-
|
|
154
|
+
:param _context:
|
|
148
155
|
"""
|
|
149
156
|
...
|
|
150
157
|
|
|
151
|
-
def driver_add(self):
|
|
152
|
-
"""
|
|
158
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
159
|
+
"""Adds driver(s) to the given property
|
|
160
|
+
|
|
161
|
+
:return: The driver(s) added.
|
|
162
|
+
:rtype: bpy.types.FCurve
|
|
163
|
+
"""
|
|
153
164
|
...
|
|
154
165
|
|
|
155
|
-
def driver_remove(self):
|
|
156
|
-
"""
|
|
166
|
+
def driver_remove(self) -> bool:
|
|
167
|
+
"""Remove driver(s) from the given property
|
|
168
|
+
|
|
169
|
+
:return: Success of driver removal.
|
|
170
|
+
:rtype: bool
|
|
171
|
+
"""
|
|
157
172
|
...
|
|
158
173
|
|
|
159
174
|
def get(self):
|
|
160
|
-
"""
|
|
175
|
+
"""Returns the value of the custom property assigned to key or default
|
|
176
|
+
when not found (matches Python's dictionary function of the same name).
|
|
177
|
+
|
|
178
|
+
"""
|
|
161
179
|
...
|
|
162
180
|
|
|
163
181
|
def id_properties_clear(self):
|
|
164
|
-
"""
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
185
|
+
"""
|
|
165
186
|
...
|
|
166
187
|
|
|
167
188
|
def id_properties_ensure(self):
|
|
168
|
-
"""
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
192
|
+
"""
|
|
169
193
|
...
|
|
170
194
|
|
|
171
195
|
def id_properties_ui(self):
|
|
172
|
-
"""
|
|
173
|
-
...
|
|
196
|
+
"""
|
|
174
197
|
|
|
175
|
-
|
|
176
|
-
"""
|
|
198
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
199
|
+
"""
|
|
177
200
|
...
|
|
178
201
|
|
|
179
|
-
def
|
|
180
|
-
|
|
202
|
+
def is_extended(self): ...
|
|
203
|
+
def is_property_hidden(self) -> bool:
|
|
204
|
+
"""Check if a property is hidden.
|
|
205
|
+
|
|
206
|
+
:return: True when the property is hidden.
|
|
207
|
+
:rtype: bool
|
|
208
|
+
"""
|
|
181
209
|
...
|
|
182
210
|
|
|
183
|
-
def is_property_overridable_library(self):
|
|
184
|
-
"""
|
|
211
|
+
def is_property_overridable_library(self) -> bool:
|
|
212
|
+
"""Check if a property is overridable.
|
|
213
|
+
|
|
214
|
+
:return: True when the property is overridable.
|
|
215
|
+
:rtype: bool
|
|
216
|
+
"""
|
|
185
217
|
...
|
|
186
218
|
|
|
187
|
-
def is_property_readonly(self):
|
|
188
|
-
"""
|
|
219
|
+
def is_property_readonly(self) -> bool:
|
|
220
|
+
"""Check if a property is readonly.
|
|
221
|
+
|
|
222
|
+
:return: True when the property is readonly (not writable).
|
|
223
|
+
:rtype: bool
|
|
224
|
+
"""
|
|
189
225
|
...
|
|
190
226
|
|
|
191
|
-
def is_property_set(self):
|
|
192
|
-
"""
|
|
227
|
+
def is_property_set(self) -> bool:
|
|
228
|
+
"""Check if a property is set, use for testing operator properties.
|
|
229
|
+
|
|
230
|
+
:return: True when the property has been set.
|
|
231
|
+
:rtype: bool
|
|
232
|
+
"""
|
|
193
233
|
...
|
|
194
234
|
|
|
195
235
|
def items(self):
|
|
196
|
-
"""
|
|
236
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
237
|
+
dictionary function of the same name).
|
|
238
|
+
|
|
239
|
+
:return: custom property key, value pairs.
|
|
240
|
+
"""
|
|
197
241
|
...
|
|
198
242
|
|
|
199
|
-
def keyframe_delete(self):
|
|
200
|
-
"""
|
|
243
|
+
def keyframe_delete(self) -> bool:
|
|
244
|
+
"""Remove a keyframe from this properties fcurve.
|
|
245
|
+
|
|
246
|
+
:return: Success of keyframe deletion.
|
|
247
|
+
:rtype: bool
|
|
248
|
+
"""
|
|
201
249
|
...
|
|
202
250
|
|
|
203
|
-
def keyframe_insert(self):
|
|
204
|
-
"""
|
|
251
|
+
def keyframe_insert(self) -> bool:
|
|
252
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
253
|
+
|
|
254
|
+
:return: Success of keyframe insertion.
|
|
255
|
+
:rtype: bool
|
|
256
|
+
"""
|
|
205
257
|
...
|
|
206
258
|
|
|
207
259
|
def keys(self):
|
|
208
|
-
"""
|
|
260
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
261
|
+
dictionary function of the same name).
|
|
262
|
+
|
|
263
|
+
:return: custom property keys.
|
|
264
|
+
"""
|
|
209
265
|
...
|
|
210
266
|
|
|
211
|
-
def path_from_id(self):
|
|
212
|
-
"""
|
|
267
|
+
def path_from_id(self) -> str:
|
|
268
|
+
"""Returns the data path from the ID to this object (string).
|
|
269
|
+
|
|
270
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
271
|
+
to this struct and property (when given).
|
|
272
|
+
:rtype: str
|
|
273
|
+
"""
|
|
213
274
|
...
|
|
214
275
|
|
|
215
276
|
def path_menu(
|
|
216
277
|
self,
|
|
217
|
-
searchpaths,
|
|
218
|
-
operator,
|
|
219
|
-
props_default,
|
|
220
|
-
prop_filepath,
|
|
221
|
-
filter_ext,
|
|
222
|
-
filter_path,
|
|
223
|
-
display_name,
|
|
224
|
-
add_operator,
|
|
225
|
-
add_operator_props,
|
|
278
|
+
searchpaths: list[str],
|
|
279
|
+
operator: str,
|
|
280
|
+
props_default: dict = None,
|
|
281
|
+
prop_filepath: str = "filepath",
|
|
282
|
+
filter_ext: typing.Callable = None,
|
|
283
|
+
filter_path=None,
|
|
284
|
+
display_name: typing.Callable = None,
|
|
285
|
+
add_operator=None,
|
|
286
|
+
add_operator_props=None,
|
|
226
287
|
):
|
|
227
|
-
"""
|
|
288
|
+
"""Populate a menu from a list of paths.
|
|
228
289
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
290
|
+
:param searchpaths: Paths to scan.
|
|
291
|
+
:type searchpaths: list[str]
|
|
292
|
+
:param operator: The operator id to use with each file.
|
|
293
|
+
:type operator: str
|
|
294
|
+
:param props_default: Properties to assign to each operator.
|
|
295
|
+
:type props_default: dict
|
|
296
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
297
|
+
:type prop_filepath: str
|
|
298
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
299
|
+
|
|
300
|
+
Returning false excludes the file from the list.
|
|
301
|
+
:type filter_ext: typing.Callable
|
|
302
|
+
:param filter_path:
|
|
303
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
304
|
+
:type display_name: typing.Callable
|
|
305
|
+
:param add_operator:
|
|
306
|
+
:param add_operator_props:
|
|
238
307
|
"""
|
|
239
308
|
...
|
|
240
309
|
|
|
241
310
|
def path_resolve(self):
|
|
242
|
-
""" """
|
|
311
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
243
312
|
...
|
|
244
313
|
|
|
245
314
|
def pop(self):
|
|
246
|
-
"""
|
|
315
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
316
|
+
when not found (matches Python's dictionary function of the same name).
|
|
317
|
+
|
|
318
|
+
"""
|
|
247
319
|
...
|
|
248
320
|
|
|
249
321
|
def prepend(self, draw_func):
|
|
250
|
-
"""
|
|
322
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
323
|
+
the menus draw function
|
|
251
324
|
|
|
252
|
-
|
|
325
|
+
:param draw_func:
|
|
253
326
|
"""
|
|
254
327
|
...
|
|
255
328
|
|
|
256
|
-
def property_overridable_library_set(self):
|
|
257
|
-
"""
|
|
329
|
+
def property_overridable_library_set(self) -> bool:
|
|
330
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
331
|
+
|
|
332
|
+
:return: True when the overridable status of the property was successfully set.
|
|
333
|
+
:rtype: bool
|
|
334
|
+
"""
|
|
258
335
|
...
|
|
259
336
|
|
|
260
337
|
def property_unset(self):
|
|
261
|
-
""" """
|
|
338
|
+
"""Unset a property, will use default value afterward."""
|
|
262
339
|
...
|
|
263
340
|
|
|
264
341
|
def remove(self, draw_func):
|
|
265
|
-
"""
|
|
342
|
+
"""Remove a draw function that has been added to this menu
|
|
266
343
|
|
|
267
344
|
:param draw_func:
|
|
268
345
|
"""
|
|
269
346
|
...
|
|
270
347
|
|
|
271
348
|
def type_recast(self):
|
|
272
|
-
"""
|
|
349
|
+
"""Return a new instance, this is needed because types
|
|
350
|
+
such as textures can be changed at runtime.
|
|
351
|
+
|
|
352
|
+
:return: a new instance of this object with the type initialized again.
|
|
353
|
+
"""
|
|
273
354
|
...
|
|
274
355
|
|
|
275
356
|
def values(self):
|
|
276
|
-
"""
|
|
357
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
358
|
+
dictionary function of the same name).
|
|
359
|
+
|
|
360
|
+
:return: custom property values.
|
|
361
|
+
"""
|
|
277
362
|
...
|
|
278
363
|
|
|
279
364
|
class BrushPanel(UnifiedPaintPanel):
|
|
280
|
-
""" """
|
|
281
|
-
|
|
282
365
|
def get_brush_mode(self, context):
|
|
283
|
-
"""
|
|
366
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
367
|
+
no brush options should be displayed.
|
|
284
368
|
|
|
285
|
-
|
|
369
|
+
:param context:
|
|
286
370
|
"""
|
|
287
371
|
...
|
|
288
372
|
|
|
@@ -306,29 +390,30 @@ class BrushPanel(UnifiedPaintPanel):
|
|
|
306
390
|
context,
|
|
307
391
|
brush,
|
|
308
392
|
prop_name,
|
|
309
|
-
unified_name,
|
|
310
|
-
pressure_name,
|
|
311
|
-
icon,
|
|
312
|
-
text,
|
|
313
|
-
slider,
|
|
314
|
-
header,
|
|
393
|
+
unified_name=None,
|
|
394
|
+
pressure_name=None,
|
|
395
|
+
icon="NONE",
|
|
396
|
+
text=None,
|
|
397
|
+
slider=False,
|
|
398
|
+
header=False,
|
|
315
399
|
):
|
|
316
|
-
"""
|
|
400
|
+
"""Generalized way of adding brush options to the UI,
|
|
401
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
317
402
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
403
|
+
:param layout:
|
|
404
|
+
:param context:
|
|
405
|
+
:param brush:
|
|
406
|
+
:param prop_name:
|
|
407
|
+
:param unified_name:
|
|
408
|
+
:param pressure_name:
|
|
409
|
+
:param icon:
|
|
410
|
+
:param text:
|
|
411
|
+
:param slider:
|
|
412
|
+
:param header:
|
|
328
413
|
"""
|
|
329
414
|
...
|
|
330
415
|
|
|
331
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
416
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
332
417
|
"""
|
|
333
418
|
|
|
334
419
|
:param parent:
|
|
@@ -340,7 +425,7 @@ class BrushPanel(UnifiedPaintPanel):
|
|
|
340
425
|
...
|
|
341
426
|
|
|
342
427
|
def prop_unified_color_picker(
|
|
343
|
-
self, parent, context, brush, prop_name, value_slider
|
|
428
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
344
429
|
):
|
|
345
430
|
"""
|
|
346
431
|
|
|
@@ -353,10 +438,7 @@ class BrushPanel(UnifiedPaintPanel):
|
|
|
353
438
|
...
|
|
354
439
|
|
|
355
440
|
class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
356
|
-
""" """
|
|
357
|
-
|
|
358
441
|
bl_label: typing.Any
|
|
359
|
-
""" """
|
|
360
442
|
|
|
361
443
|
def draw(self, context):
|
|
362
444
|
"""
|
|
@@ -366,9 +448,10 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
366
448
|
...
|
|
367
449
|
|
|
368
450
|
def get_brush_mode(self, context):
|
|
369
|
-
"""
|
|
451
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
452
|
+
no brush options should be displayed.
|
|
370
453
|
|
|
371
|
-
|
|
454
|
+
:param context:
|
|
372
455
|
"""
|
|
373
456
|
...
|
|
374
457
|
|
|
@@ -392,29 +475,30 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
392
475
|
context,
|
|
393
476
|
brush,
|
|
394
477
|
prop_name,
|
|
395
|
-
unified_name,
|
|
396
|
-
pressure_name,
|
|
397
|
-
icon,
|
|
398
|
-
text,
|
|
399
|
-
slider,
|
|
400
|
-
header,
|
|
478
|
+
unified_name=None,
|
|
479
|
+
pressure_name=None,
|
|
480
|
+
icon="NONE",
|
|
481
|
+
text=None,
|
|
482
|
+
slider=False,
|
|
483
|
+
header=False,
|
|
401
484
|
):
|
|
402
|
-
"""
|
|
485
|
+
"""Generalized way of adding brush options to the UI,
|
|
486
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
403
487
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
488
|
+
:param layout:
|
|
489
|
+
:param context:
|
|
490
|
+
:param brush:
|
|
491
|
+
:param prop_name:
|
|
492
|
+
:param unified_name:
|
|
493
|
+
:param pressure_name:
|
|
494
|
+
:param icon:
|
|
495
|
+
:param text:
|
|
496
|
+
:param slider:
|
|
497
|
+
:param header:
|
|
414
498
|
"""
|
|
415
499
|
...
|
|
416
500
|
|
|
417
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
501
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
418
502
|
"""
|
|
419
503
|
|
|
420
504
|
:param parent:
|
|
@@ -426,7 +510,7 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
426
510
|
...
|
|
427
511
|
|
|
428
512
|
def prop_unified_color_picker(
|
|
429
|
-
self, parent, context, brush, prop_name, value_slider
|
|
513
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
430
514
|
):
|
|
431
515
|
"""
|
|
432
516
|
|
|
@@ -439,13 +523,8 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
439
523
|
...
|
|
440
524
|
|
|
441
525
|
class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
442
|
-
""" """
|
|
443
|
-
|
|
444
526
|
bl_label: typing.Any
|
|
445
|
-
""" """
|
|
446
|
-
|
|
447
527
|
bl_options: typing.Any
|
|
448
|
-
""" """
|
|
449
528
|
|
|
450
529
|
def draw(self, context):
|
|
451
530
|
"""
|
|
@@ -462,9 +541,10 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
462
541
|
...
|
|
463
542
|
|
|
464
543
|
def get_brush_mode(self, context):
|
|
465
|
-
"""
|
|
544
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
545
|
+
no brush options should be displayed.
|
|
466
546
|
|
|
467
|
-
|
|
547
|
+
:param context:
|
|
468
548
|
"""
|
|
469
549
|
...
|
|
470
550
|
|
|
@@ -488,29 +568,30 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
488
568
|
context,
|
|
489
569
|
brush,
|
|
490
570
|
prop_name,
|
|
491
|
-
unified_name,
|
|
492
|
-
pressure_name,
|
|
493
|
-
icon,
|
|
494
|
-
text,
|
|
495
|
-
slider,
|
|
496
|
-
header,
|
|
571
|
+
unified_name=None,
|
|
572
|
+
pressure_name=None,
|
|
573
|
+
icon="NONE",
|
|
574
|
+
text=None,
|
|
575
|
+
slider=False,
|
|
576
|
+
header=False,
|
|
497
577
|
):
|
|
498
|
-
"""
|
|
578
|
+
"""Generalized way of adding brush options to the UI,
|
|
579
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
499
580
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
581
|
+
:param layout:
|
|
582
|
+
:param context:
|
|
583
|
+
:param brush:
|
|
584
|
+
:param prop_name:
|
|
585
|
+
:param unified_name:
|
|
586
|
+
:param pressure_name:
|
|
587
|
+
:param icon:
|
|
588
|
+
:param text:
|
|
589
|
+
:param slider:
|
|
590
|
+
:param header:
|
|
510
591
|
"""
|
|
511
592
|
...
|
|
512
593
|
|
|
513
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
594
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
514
595
|
"""
|
|
515
596
|
|
|
516
597
|
:param parent:
|
|
@@ -522,7 +603,7 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
522
603
|
...
|
|
523
604
|
|
|
524
605
|
def prop_unified_color_picker(
|
|
525
|
-
self, parent, context, brush, prop_name, value_slider
|
|
606
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
526
607
|
):
|
|
527
608
|
"""
|
|
528
609
|
|
|
@@ -535,13 +616,8 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
535
616
|
...
|
|
536
617
|
|
|
537
618
|
class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
538
|
-
""" """
|
|
539
|
-
|
|
540
619
|
bl_label: typing.Any
|
|
541
|
-
""" """
|
|
542
|
-
|
|
543
620
|
bl_options: typing.Any
|
|
544
|
-
""" """
|
|
545
621
|
|
|
546
622
|
def draw(self, context):
|
|
547
623
|
"""
|
|
@@ -551,9 +627,10 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
551
627
|
...
|
|
552
628
|
|
|
553
629
|
def get_brush_mode(self, context):
|
|
554
|
-
"""
|
|
630
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
631
|
+
no brush options should be displayed.
|
|
555
632
|
|
|
556
|
-
|
|
633
|
+
:param context:
|
|
557
634
|
"""
|
|
558
635
|
...
|
|
559
636
|
|
|
@@ -577,29 +654,30 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
577
654
|
context,
|
|
578
655
|
brush,
|
|
579
656
|
prop_name,
|
|
580
|
-
unified_name,
|
|
581
|
-
pressure_name,
|
|
582
|
-
icon,
|
|
583
|
-
text,
|
|
584
|
-
slider,
|
|
585
|
-
header,
|
|
657
|
+
unified_name=None,
|
|
658
|
+
pressure_name=None,
|
|
659
|
+
icon="NONE",
|
|
660
|
+
text=None,
|
|
661
|
+
slider=False,
|
|
662
|
+
header=False,
|
|
586
663
|
):
|
|
587
|
-
"""
|
|
664
|
+
"""Generalized way of adding brush options to the UI,
|
|
665
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
588
666
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
667
|
+
:param layout:
|
|
668
|
+
:param context:
|
|
669
|
+
:param brush:
|
|
670
|
+
:param prop_name:
|
|
671
|
+
:param unified_name:
|
|
672
|
+
:param pressure_name:
|
|
673
|
+
:param icon:
|
|
674
|
+
:param text:
|
|
675
|
+
:param slider:
|
|
676
|
+
:param header:
|
|
599
677
|
"""
|
|
600
678
|
...
|
|
601
679
|
|
|
602
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
680
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
603
681
|
"""
|
|
604
682
|
|
|
605
683
|
:param parent:
|
|
@@ -611,7 +689,7 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
611
689
|
...
|
|
612
690
|
|
|
613
691
|
def prop_unified_color_picker(
|
|
614
|
-
self, parent, context, brush, prop_name, value_slider
|
|
692
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
615
693
|
):
|
|
616
694
|
"""
|
|
617
695
|
|
|
@@ -624,13 +702,8 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
624
702
|
...
|
|
625
703
|
|
|
626
704
|
class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
627
|
-
""" """
|
|
628
|
-
|
|
629
705
|
bl_label: typing.Any
|
|
630
|
-
""" """
|
|
631
|
-
|
|
632
706
|
bl_options: typing.Any
|
|
633
|
-
""" """
|
|
634
707
|
|
|
635
708
|
def draw(self, context):
|
|
636
709
|
"""
|
|
@@ -647,9 +720,10 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
647
720
|
...
|
|
648
721
|
|
|
649
722
|
def get_brush_mode(self, context):
|
|
650
|
-
"""
|
|
723
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
724
|
+
no brush options should be displayed.
|
|
651
725
|
|
|
652
|
-
|
|
726
|
+
:param context:
|
|
653
727
|
"""
|
|
654
728
|
...
|
|
655
729
|
|
|
@@ -673,29 +747,30 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
673
747
|
context,
|
|
674
748
|
brush,
|
|
675
749
|
prop_name,
|
|
676
|
-
unified_name,
|
|
677
|
-
pressure_name,
|
|
678
|
-
icon,
|
|
679
|
-
text,
|
|
680
|
-
slider,
|
|
681
|
-
header,
|
|
750
|
+
unified_name=None,
|
|
751
|
+
pressure_name=None,
|
|
752
|
+
icon="NONE",
|
|
753
|
+
text=None,
|
|
754
|
+
slider=False,
|
|
755
|
+
header=False,
|
|
682
756
|
):
|
|
683
|
-
"""
|
|
757
|
+
"""Generalized way of adding brush options to the UI,
|
|
758
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
684
759
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
760
|
+
:param layout:
|
|
761
|
+
:param context:
|
|
762
|
+
:param brush:
|
|
763
|
+
:param prop_name:
|
|
764
|
+
:param unified_name:
|
|
765
|
+
:param pressure_name:
|
|
766
|
+
:param icon:
|
|
767
|
+
:param text:
|
|
768
|
+
:param slider:
|
|
769
|
+
:param header:
|
|
695
770
|
"""
|
|
696
771
|
...
|
|
697
772
|
|
|
698
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
773
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
699
774
|
"""
|
|
700
775
|
|
|
701
776
|
:param parent:
|
|
@@ -707,7 +782,7 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
707
782
|
...
|
|
708
783
|
|
|
709
784
|
def prop_unified_color_picker(
|
|
710
|
-
self, parent, context, brush, prop_name, value_slider
|
|
785
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
711
786
|
):
|
|
712
787
|
"""
|
|
713
788
|
|
|
@@ -720,13 +795,8 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
720
795
|
...
|
|
721
796
|
|
|
722
797
|
class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
723
|
-
""" """
|
|
724
|
-
|
|
725
798
|
bl_label: typing.Any
|
|
726
|
-
""" """
|
|
727
|
-
|
|
728
799
|
bl_options: typing.Any
|
|
729
|
-
""" """
|
|
730
800
|
|
|
731
801
|
def draw(self, context):
|
|
732
802
|
"""
|
|
@@ -736,9 +806,10 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
736
806
|
...
|
|
737
807
|
|
|
738
808
|
def get_brush_mode(self, context):
|
|
739
|
-
"""
|
|
809
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
810
|
+
no brush options should be displayed.
|
|
740
811
|
|
|
741
|
-
|
|
812
|
+
:param context:
|
|
742
813
|
"""
|
|
743
814
|
...
|
|
744
815
|
|
|
@@ -762,29 +833,30 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
762
833
|
context,
|
|
763
834
|
brush,
|
|
764
835
|
prop_name,
|
|
765
|
-
unified_name,
|
|
766
|
-
pressure_name,
|
|
767
|
-
icon,
|
|
768
|
-
text,
|
|
769
|
-
slider,
|
|
770
|
-
header,
|
|
836
|
+
unified_name=None,
|
|
837
|
+
pressure_name=None,
|
|
838
|
+
icon="NONE",
|
|
839
|
+
text=None,
|
|
840
|
+
slider=False,
|
|
841
|
+
header=False,
|
|
771
842
|
):
|
|
772
|
-
"""
|
|
843
|
+
"""Generalized way of adding brush options to the UI,
|
|
844
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
773
845
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
846
|
+
:param layout:
|
|
847
|
+
:param context:
|
|
848
|
+
:param brush:
|
|
849
|
+
:param prop_name:
|
|
850
|
+
:param unified_name:
|
|
851
|
+
:param pressure_name:
|
|
852
|
+
:param icon:
|
|
853
|
+
:param text:
|
|
854
|
+
:param slider:
|
|
855
|
+
:param header:
|
|
784
856
|
"""
|
|
785
857
|
...
|
|
786
858
|
|
|
787
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
859
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
788
860
|
"""
|
|
789
861
|
|
|
790
862
|
:param parent:
|
|
@@ -796,7 +868,7 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
796
868
|
...
|
|
797
869
|
|
|
798
870
|
def prop_unified_color_picker(
|
|
799
|
-
self, parent, context, brush, prop_name, value_slider
|
|
871
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
800
872
|
):
|
|
801
873
|
"""
|
|
802
874
|
|
|
@@ -809,13 +881,8 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
809
881
|
...
|
|
810
882
|
|
|
811
883
|
class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
812
|
-
""" """
|
|
813
|
-
|
|
814
884
|
bl_label: typing.Any
|
|
815
|
-
""" """
|
|
816
|
-
|
|
817
885
|
bl_options: typing.Any
|
|
818
|
-
""" """
|
|
819
886
|
|
|
820
887
|
def draw(self, context):
|
|
821
888
|
"""
|
|
@@ -832,9 +899,10 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
832
899
|
...
|
|
833
900
|
|
|
834
901
|
def get_brush_mode(self, context):
|
|
835
|
-
"""
|
|
902
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
903
|
+
no brush options should be displayed.
|
|
836
904
|
|
|
837
|
-
|
|
905
|
+
:param context:
|
|
838
906
|
"""
|
|
839
907
|
...
|
|
840
908
|
|
|
@@ -858,29 +926,30 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
858
926
|
context,
|
|
859
927
|
brush,
|
|
860
928
|
prop_name,
|
|
861
|
-
unified_name,
|
|
862
|
-
pressure_name,
|
|
863
|
-
icon,
|
|
864
|
-
text,
|
|
865
|
-
slider,
|
|
866
|
-
header,
|
|
929
|
+
unified_name=None,
|
|
930
|
+
pressure_name=None,
|
|
931
|
+
icon="NONE",
|
|
932
|
+
text=None,
|
|
933
|
+
slider=False,
|
|
934
|
+
header=False,
|
|
867
935
|
):
|
|
868
|
-
"""
|
|
936
|
+
"""Generalized way of adding brush options to the UI,
|
|
937
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
869
938
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
939
|
+
:param layout:
|
|
940
|
+
:param context:
|
|
941
|
+
:param brush:
|
|
942
|
+
:param prop_name:
|
|
943
|
+
:param unified_name:
|
|
944
|
+
:param pressure_name:
|
|
945
|
+
:param icon:
|
|
946
|
+
:param text:
|
|
947
|
+
:param slider:
|
|
948
|
+
:param header:
|
|
880
949
|
"""
|
|
881
950
|
...
|
|
882
951
|
|
|
883
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
952
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
884
953
|
"""
|
|
885
954
|
|
|
886
955
|
:param parent:
|
|
@@ -892,7 +961,7 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
892
961
|
...
|
|
893
962
|
|
|
894
963
|
def prop_unified_color_picker(
|
|
895
|
-
self, parent, context, brush, prop_name, value_slider
|
|
964
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
896
965
|
):
|
|
897
966
|
"""
|
|
898
967
|
|
|
@@ -905,16 +974,9 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
905
974
|
...
|
|
906
975
|
|
|
907
976
|
class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
908
|
-
""" """
|
|
909
|
-
|
|
910
977
|
bl_label: typing.Any
|
|
911
|
-
""" """
|
|
912
|
-
|
|
913
978
|
bl_options: typing.Any
|
|
914
|
-
""" """
|
|
915
|
-
|
|
916
979
|
bl_ui_units_x: typing.Any
|
|
917
|
-
""" """
|
|
918
980
|
|
|
919
981
|
def draw(self, context):
|
|
920
982
|
"""
|
|
@@ -924,9 +986,10 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
924
986
|
...
|
|
925
987
|
|
|
926
988
|
def get_brush_mode(self, context):
|
|
927
|
-
"""
|
|
989
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
990
|
+
no brush options should be displayed.
|
|
928
991
|
|
|
929
|
-
|
|
992
|
+
:param context:
|
|
930
993
|
"""
|
|
931
994
|
...
|
|
932
995
|
|
|
@@ -950,29 +1013,30 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
950
1013
|
context,
|
|
951
1014
|
brush,
|
|
952
1015
|
prop_name,
|
|
953
|
-
unified_name,
|
|
954
|
-
pressure_name,
|
|
955
|
-
icon,
|
|
956
|
-
text,
|
|
957
|
-
slider,
|
|
958
|
-
header,
|
|
1016
|
+
unified_name=None,
|
|
1017
|
+
pressure_name=None,
|
|
1018
|
+
icon="NONE",
|
|
1019
|
+
text=None,
|
|
1020
|
+
slider=False,
|
|
1021
|
+
header=False,
|
|
959
1022
|
):
|
|
960
|
-
"""
|
|
1023
|
+
"""Generalized way of adding brush options to the UI,
|
|
1024
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
961
1025
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1026
|
+
:param layout:
|
|
1027
|
+
:param context:
|
|
1028
|
+
:param brush:
|
|
1029
|
+
:param prop_name:
|
|
1030
|
+
:param unified_name:
|
|
1031
|
+
:param pressure_name:
|
|
1032
|
+
:param icon:
|
|
1033
|
+
:param text:
|
|
1034
|
+
:param slider:
|
|
1035
|
+
:param header:
|
|
972
1036
|
"""
|
|
973
1037
|
...
|
|
974
1038
|
|
|
975
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
1039
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
976
1040
|
"""
|
|
977
1041
|
|
|
978
1042
|
:param parent:
|
|
@@ -984,7 +1048,7 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
984
1048
|
...
|
|
985
1049
|
|
|
986
1050
|
def prop_unified_color_picker(
|
|
987
|
-
self, parent, context, brush, prop_name, value_slider
|
|
1051
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
988
1052
|
):
|
|
989
1053
|
"""
|
|
990
1054
|
|
|
@@ -997,13 +1061,8 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
997
1061
|
...
|
|
998
1062
|
|
|
999
1063
|
class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
1000
|
-
""" """
|
|
1001
|
-
|
|
1002
1064
|
bl_label: typing.Any
|
|
1003
|
-
""" """
|
|
1004
|
-
|
|
1005
1065
|
bl_options: typing.Any
|
|
1006
|
-
""" """
|
|
1007
1066
|
|
|
1008
1067
|
def draw(self, context):
|
|
1009
1068
|
"""
|
|
@@ -1013,9 +1072,10 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1013
1072
|
...
|
|
1014
1073
|
|
|
1015
1074
|
def get_brush_mode(self, context):
|
|
1016
|
-
"""
|
|
1075
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
1076
|
+
no brush options should be displayed.
|
|
1017
1077
|
|
|
1018
|
-
|
|
1078
|
+
:param context:
|
|
1019
1079
|
"""
|
|
1020
1080
|
...
|
|
1021
1081
|
|
|
@@ -1039,29 +1099,30 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1039
1099
|
context,
|
|
1040
1100
|
brush,
|
|
1041
1101
|
prop_name,
|
|
1042
|
-
unified_name,
|
|
1043
|
-
pressure_name,
|
|
1044
|
-
icon,
|
|
1045
|
-
text,
|
|
1046
|
-
slider,
|
|
1047
|
-
header,
|
|
1102
|
+
unified_name=None,
|
|
1103
|
+
pressure_name=None,
|
|
1104
|
+
icon="NONE",
|
|
1105
|
+
text=None,
|
|
1106
|
+
slider=False,
|
|
1107
|
+
header=False,
|
|
1048
1108
|
):
|
|
1049
|
-
"""
|
|
1109
|
+
"""Generalized way of adding brush options to the UI,
|
|
1110
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
1050
1111
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1112
|
+
:param layout:
|
|
1113
|
+
:param context:
|
|
1114
|
+
:param brush:
|
|
1115
|
+
:param prop_name:
|
|
1116
|
+
:param unified_name:
|
|
1117
|
+
:param pressure_name:
|
|
1118
|
+
:param icon:
|
|
1119
|
+
:param text:
|
|
1120
|
+
:param slider:
|
|
1121
|
+
:param header:
|
|
1061
1122
|
"""
|
|
1062
1123
|
...
|
|
1063
1124
|
|
|
1064
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
1125
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
1065
1126
|
"""
|
|
1066
1127
|
|
|
1067
1128
|
:param parent:
|
|
@@ -1073,7 +1134,7 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1073
1134
|
...
|
|
1074
1135
|
|
|
1075
1136
|
def prop_unified_color_picker(
|
|
1076
|
-
self, parent, context, brush, prop_name, value_slider
|
|
1137
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
1077
1138
|
):
|
|
1078
1139
|
"""
|
|
1079
1140
|
|
|
@@ -1085,72 +1146,41 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1085
1146
|
"""
|
|
1086
1147
|
...
|
|
1087
1148
|
|
|
1088
|
-
def brush_basic__draw_color_selector(context, layout, brush, gp_settings, props):
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
def
|
|
1094
|
-
|
|
1149
|
+
def brush_basic__draw_color_selector(context, layout, brush, gp_settings, props): ...
|
|
1150
|
+
def brush_basic_gpencil_paint_settings(layout, context, brush, compact=False): ...
|
|
1151
|
+
def brush_basic_gpencil_sculpt_settings(layout, _context, brush, compact=False): ...
|
|
1152
|
+
def brush_basic_gpencil_vertex_settings(layout, _context, brush, compact=False): ...
|
|
1153
|
+
def brush_basic_gpencil_weight_settings(layout, _context, brush, compact=False): ...
|
|
1154
|
+
def brush_basic_grease_pencil_paint_settings(layout, context, brush, compact=False): ...
|
|
1155
|
+
def brush_basic_grease_pencil_weight_settings(
|
|
1156
|
+
layout, context, brush, compact=False
|
|
1157
|
+
): ...
|
|
1158
|
+
def brush_basic_texpaint_settings(layout, context, brush, compact=False):
|
|
1159
|
+
"""Draw Tool Settings header for Vertex Paint and 2D and 3D Texture Paint modes."""
|
|
1095
1160
|
|
|
1096
1161
|
...
|
|
1097
1162
|
|
|
1098
|
-
def
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
def brush_basic_gpencil_vertex_settings(layout, _context, brush, compact):
|
|
1104
|
-
""" """
|
|
1105
|
-
|
|
1106
|
-
...
|
|
1107
|
-
|
|
1108
|
-
def brush_basic_gpencil_weight_settings(layout, _context, brush, compact):
|
|
1109
|
-
""" """
|
|
1110
|
-
|
|
1111
|
-
...
|
|
1112
|
-
|
|
1113
|
-
def brush_basic_grease_pencil_paint_settings(layout, context, brush, compact):
|
|
1114
|
-
""" """
|
|
1115
|
-
|
|
1116
|
-
...
|
|
1117
|
-
|
|
1118
|
-
def brush_basic_grease_pencil_weight_settings(layout, context, brush, compact):
|
|
1119
|
-
""" """
|
|
1120
|
-
|
|
1121
|
-
...
|
|
1122
|
-
|
|
1123
|
-
def brush_basic_texpaint_settings(layout, context, brush, compact):
|
|
1124
|
-
""" """
|
|
1125
|
-
|
|
1126
|
-
...
|
|
1127
|
-
|
|
1128
|
-
def brush_mask_texture_settings(layout, brush):
|
|
1129
|
-
""" """
|
|
1130
|
-
|
|
1131
|
-
...
|
|
1132
|
-
|
|
1133
|
-
def brush_settings(layout, context, brush, popover):
|
|
1134
|
-
""" """
|
|
1135
|
-
|
|
1136
|
-
...
|
|
1163
|
+
def brush_mask_texture_settings(layout, brush): ...
|
|
1164
|
+
def brush_settings(layout, context, brush, popover=False):
|
|
1165
|
+
"""Draw simple brush settings for Sculpt,
|
|
1166
|
+
Texture/Vertex/Weight Paint modes, or skip certain settings for the popover
|
|
1137
1167
|
|
|
1138
|
-
|
|
1139
|
-
""" """
|
|
1168
|
+
"""
|
|
1140
1169
|
|
|
1141
1170
|
...
|
|
1142
1171
|
|
|
1143
|
-
def
|
|
1144
|
-
""" """
|
|
1172
|
+
def brush_settings_advanced(layout, context, brush, popover=False):
|
|
1173
|
+
"""Draw advanced brush settings for Sculpt, Texture/Vertex/Weight Paint modes."""
|
|
1145
1174
|
|
|
1146
1175
|
...
|
|
1147
1176
|
|
|
1148
|
-
def
|
|
1149
|
-
""" """
|
|
1177
|
+
def brush_shared_settings(layout, context, brush, popover=False):
|
|
1178
|
+
"""Draw simple brush settings that are shared between different paint modes."""
|
|
1150
1179
|
|
|
1151
1180
|
...
|
|
1152
1181
|
|
|
1153
|
-
def
|
|
1154
|
-
|
|
1182
|
+
def brush_texture_settings(layout, brush, sculpt): ...
|
|
1183
|
+
def draw_color_settings(context, layout, brush, color_type=False):
|
|
1184
|
+
"""Draw color wheel and gradient settings."""
|
|
1155
1185
|
|
|
1156
1186
|
...
|