fake-bpy-module 20240705__py3-none-any.whl → 20240707__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/__init__.pyi +1 -0
- _bpy_internal/extensions/__init__.pyi +1 -0
- _bpy_internal/extensions/junction_module/__init__.pyi +1 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -0
- _bpy_internal/freedesktop/__init__.pyi +1 -0
- addon_utils/__init__.pyi +1 -0
- animsys_refactor/__init__.pyi +1 -0
- aud/__init__.pyi +1 -0
- bgl/__init__.pyi +1 -0
- bl_app_override/__init__.pyi +1 -0
- bl_app_override/helpers/__init__.pyi +1 -0
- bl_app_template_utils/__init__.pyi +1 -0
- bl_console_utils/__init__.pyi +1 -0
- bl_console_utils/autocomplete/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_import/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +1 -0
- bl_console_utils/autocomplete/intellisense/__init__.pyi +1 -0
- bl_i18n_utils/__init__.pyi +1 -0
- bl_i18n_utils/bl_extract_messages/__init__.pyi +1 -0
- bl_i18n_utils/merge_po/__init__.pyi +1 -0
- bl_i18n_utils/settings/__init__.pyi +1 -0
- bl_i18n_utils/utils/__init__.pyi +1 -0
- bl_i18n_utils/utils_cli/__init__.pyi +1 -0
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -0
- bl_i18n_utils/utils_rtl/__init__.pyi +1 -0
- bl_keymap_utils/__init__.pyi +1 -0
- bl_keymap_utils/io/__init__.pyi +1 -0
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -0
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -0
- bl_keymap_utils/platform_helpers/__init__.pyi +1 -0
- bl_keymap_utils/versioning/__init__.pyi +1 -0
- bl_math/__init__.pyi +1 -0
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +1 -0
- bl_operators/anim/__init__.pyi +1 -0
- bl_operators/assets/__init__.pyi +9 -8
- bl_operators/bmesh/__init__.pyi +1 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +1 -0
- bl_operators/clip/__init__.pyi +1 -0
- bl_operators/connect_to_output/__init__.pyi +1 -0
- bl_operators/console/__init__.pyi +1 -0
- bl_operators/constraint/__init__.pyi +1 -0
- bl_operators/file/__init__.pyi +1 -0
- bl_operators/freestyle/__init__.pyi +1 -0
- bl_operators/geometry_nodes/__init__.pyi +1 -0
- bl_operators/image/__init__.pyi +1 -0
- bl_operators/image_as_planes/__init__.pyi +44 -43
- bl_operators/mesh/__init__.pyi +1 -0
- bl_operators/node/__init__.pyi +235 -234
- bl_operators/node_editor/__init__.pyi +1 -0
- bl_operators/node_editor/node_functions/__init__.pyi +1 -0
- bl_operators/object/__init__.pyi +1 -0
- bl_operators/object_align/__init__.pyi +1 -0
- bl_operators/object_quick_effects/__init__.pyi +22 -21
- bl_operators/object_randomize_transform/__init__.pyi +1 -0
- bl_operators/presets/__init__.pyi +389 -388
- bl_operators/rigidbody/__init__.pyi +1 -0
- bl_operators/screen_play_rendered_anim/__init__.pyi +1 -0
- bl_operators/sequencer/__init__.pyi +1 -0
- bl_operators/spreadsheet/__init__.pyi +1 -0
- bl_operators/userpref/__init__.pyi +1 -0
- bl_operators/uvcalc_follow_active/__init__.pyi +1 -0
- bl_operators/uvcalc_lightmap/__init__.pyi +1 -0
- bl_operators/uvcalc_transform/__init__.pyi +1 -0
- bl_operators/vertexpaint_dirt/__init__.pyi +1 -0
- bl_operators/view3d/__init__.pyi +1 -0
- bl_operators/wm/__init__.pyi +1 -0
- bl_operators/world/__init__.pyi +1 -0
- bl_previews_utils/__init__.pyi +1 -0
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -0
- bl_rna_utils/__init__.pyi +1 -0
- bl_rna_utils/data_path/__init__.pyi +1 -0
- bl_text_utils/__init__.pyi +1 -0
- bl_text_utils/external_editor/__init__.pyi +1 -0
- bl_ui/__init__.pyi +1 -0
- bl_ui/anim/__init__.pyi +1 -0
- bl_ui/asset_shelf/__init__.pyi +1 -0
- bl_ui/generic_ui_list/__init__.pyi +1 -0
- bl_ui/node_add_menu/__init__.pyi +1 -0
- bl_ui/node_add_menu_compositor/__init__.pyi +1 -0
- bl_ui/node_add_menu_geometry/__init__.pyi +1 -0
- bl_ui/node_add_menu_shader/__init__.pyi +1 -0
- bl_ui/node_add_menu_texture/__init__.pyi +1 -0
- bl_ui/properties_animviz/__init__.pyi +1 -0
- bl_ui/properties_collection/__init__.pyi +13 -12
- bl_ui/properties_constraint/__init__.pyi +955 -954
- bl_ui/properties_data_armature/__init__.pyi +86 -85
- bl_ui/properties_data_bone/__init__.pyi +13 -12
- bl_ui/properties_data_camera/__init__.pyi +1 -0
- bl_ui/properties_data_curve/__init__.pyi +93 -92
- bl_ui/properties_data_curves/__init__.pyi +13 -12
- bl_ui/properties_data_empty/__init__.pyi +13 -12
- bl_ui/properties_data_gpencil/__init__.pyi +266 -265
- bl_ui/properties_data_grease_pencil/__init__.pyi +313 -312
- bl_ui/properties_data_lattice/__init__.pyi +13 -12
- bl_ui/properties_data_light/__init__.pyi +13 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +13 -12
- bl_ui/properties_data_mesh/__init__.pyi +528 -527
- bl_ui/properties_data_metaball/__init__.pyi +13 -12
- bl_ui/properties_data_modifier/__init__.pyi +20 -19
- bl_ui/properties_data_pointcloud/__init__.pyi +141 -140
- bl_ui/properties_data_shaderfx/__init__.pyi +6 -5
- bl_ui/properties_data_speaker/__init__.pyi +13 -12
- bl_ui/properties_data_volume/__init__.pyi +66 -65
- bl_ui/properties_freestyle/__init__.pyi +249 -248
- bl_ui/properties_grease_pencil_common/__init__.pyi +1 -0
- bl_ui/properties_mask_common/__init__.pyi +1 -0
- bl_ui/properties_material/__init__.pyi +146 -145
- bl_ui/properties_material_gpencil/__init__.pyi +87 -86
- bl_ui/properties_object/__init__.pyi +76 -75
- bl_ui/properties_output/__init__.pyi +202 -201
- bl_ui/properties_paint_common/__init__.pyi +1 -0
- bl_ui/properties_particle/__init__.pyi +221 -220
- bl_ui/properties_physics_cloth/__init__.pyi +13 -12
- bl_ui/properties_physics_common/__init__.pyi +13 -12
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +188 -187
- bl_ui/properties_physics_field/__init__.pyi +20 -19
- bl_ui/properties_physics_fluid/__init__.pyi +62 -61
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -0
- bl_ui/properties_physics_rigidbody/__init__.pyi +6 -5
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +6 -5
- bl_ui/properties_physics_softbody/__init__.pyi +13 -12
- bl_ui/properties_render/__init__.pyi +218 -217
- bl_ui/properties_scene/__init__.pyi +144 -143
- bl_ui/properties_texture/__init__.pyi +157 -156
- bl_ui/properties_view_layer/__init__.pyi +79 -78
- bl_ui/properties_workspace/__init__.pyi +65 -64
- bl_ui/properties_world/__init__.pyi +13 -12
- bl_ui/space_clip/__init__.pyi +367 -366
- bl_ui/space_console/__init__.pyi +1 -0
- bl_ui/space_dopesheet/__init__.pyi +177 -176
- bl_ui/space_filebrowser/__init__.pyi +736 -735
- bl_ui/space_graph/__init__.pyi +1 -0
- bl_ui/space_image/__init__.pyi +647 -646
- bl_ui/space_info/__init__.pyi +1 -0
- bl_ui/space_nla/__init__.pyi +1 -0
- bl_ui/space_node/__init__.pyi +1 -0
- bl_ui/space_outliner/__init__.pyi +1 -0
- bl_ui/space_properties/__init__.pyi +1 -0
- bl_ui/space_sequencer/__init__.pyi +842 -389
- bl_ui/space_spreadsheet/__init__.pyi +1 -0
- bl_ui/space_statusbar/__init__.pyi +1 -0
- bl_ui/space_text/__init__.pyi +1 -0
- bl_ui/space_time/__init__.pyi +12 -11
- bl_ui/space_toolsystem_common/__init__.pyi +1 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1 -0
- bl_ui/space_topbar/__init__.pyi +1 -0
- bl_ui/space_userpref/__init__.pyi +685 -684
- bl_ui/space_view3d/__init__.pyi +1153 -1152
- bl_ui/space_view3d_toolbar/__init__.pyi +2832 -2831
- bl_ui/temp_anim_layers/__init__.pyi +1 -0
- bl_ui/utils/__init__.pyi +1 -0
- bl_ui_utils/__init__.pyi +1 -0
- bl_ui_utils/bug_report_url/__init__.pyi +1 -0
- bl_ui_utils/layout/__init__.pyi +1 -0
- blend_render_info/__init__.pyi +1 -0
- blf/__init__.pyi +1 -0
- bmesh/__init__.pyi +1 -0
- bmesh/geometry/__init__.pyi +1 -0
- bmesh/ops/__init__.pyi +1 -0
- bmesh/types/__init__.pyi +1 -0
- bmesh/utils/__init__.pyi +1 -0
- bpy/__init__.pyi +1 -0
- bpy/app/__init__.pyi +1 -0
- bpy/app/handlers/__init__.pyi +1 -0
- bpy/app/icons/__init__.pyi +1 -0
- bpy/app/timers/__init__.pyi +1 -0
- bpy/app/translations/__init__.pyi +1 -0
- bpy/msgbus/__init__.pyi +1 -0
- bpy/ops/__init__.pyi +1 -0
- bpy/ops/action/__init__.pyi +1 -0
- bpy/ops/anim/__init__.pyi +15 -14
- bpy/ops/armature/__init__.pyi +1 -0
- bpy/ops/asset/__init__.pyi +1 -0
- bpy/ops/boid/__init__.pyi +1 -0
- bpy/ops/brush/__init__.pyi +1 -0
- bpy/ops/buttons/__init__.pyi +1 -0
- bpy/ops/cachefile/__init__.pyi +1 -0
- bpy/ops/camera/__init__.pyi +1 -0
- bpy/ops/clip/__init__.pyi +1 -0
- bpy/ops/cloth/__init__.pyi +1 -0
- bpy/ops/collection/__init__.pyi +1 -0
- bpy/ops/console/__init__.pyi +1 -0
- bpy/ops/constraint/__init__.pyi +1 -0
- bpy/ops/curve/__init__.pyi +1 -0
- bpy/ops/curves/__init__.pyi +1 -0
- bpy/ops/cycles/__init__.pyi +1 -0
- bpy/ops/dpaint/__init__.pyi +1 -0
- bpy/ops/ed/__init__.pyi +1 -0
- bpy/ops/export_anim/__init__.pyi +1 -0
- bpy/ops/export_scene/__init__.pyi +1 -0
- bpy/ops/extensions/__init__.pyi +1 -0
- bpy/ops/file/__init__.pyi +1 -0
- bpy/ops/fluid/__init__.pyi +1 -0
- bpy/ops/font/__init__.pyi +1 -0
- bpy/ops/geometry/__init__.pyi +1 -0
- bpy/ops/gizmogroup/__init__.pyi +1 -0
- bpy/ops/gpencil/__init__.pyi +1 -0
- bpy/ops/graph/__init__.pyi +1 -0
- bpy/ops/grease_pencil/__init__.pyi +19 -0
- bpy/ops/image/__init__.pyi +1 -0
- bpy/ops/import_anim/__init__.pyi +1 -0
- bpy/ops/import_curve/__init__.pyi +1 -0
- bpy/ops/import_scene/__init__.pyi +1 -0
- bpy/ops/info/__init__.pyi +1 -0
- bpy/ops/lattice/__init__.pyi +1 -0
- bpy/ops/marker/__init__.pyi +1 -0
- bpy/ops/mask/__init__.pyi +1 -0
- bpy/ops/material/__init__.pyi +1 -0
- bpy/ops/mball/__init__.pyi +1 -0
- bpy/ops/mesh/__init__.pyi +7 -2
- bpy/ops/nla/__init__.pyi +1 -0
- bpy/ops/node/__init__.pyi +1 -0
- bpy/ops/object/__init__.pyi +2 -1
- bpy/ops/outliner/__init__.pyi +1 -0
- bpy/ops/paint/__init__.pyi +1 -0
- bpy/ops/paintcurve/__init__.pyi +1 -0
- bpy/ops/palette/__init__.pyi +1 -0
- bpy/ops/particle/__init__.pyi +1 -0
- bpy/ops/pose/__init__.pyi +1 -0
- bpy/ops/poselib/__init__.pyi +1 -0
- bpy/ops/preferences/__init__.pyi +1 -0
- bpy/ops/ptcache/__init__.pyi +1 -0
- bpy/ops/render/__init__.pyi +1 -0
- bpy/ops/rigidbody/__init__.pyi +1 -0
- bpy/ops/scene/__init__.pyi +1 -0
- bpy/ops/screen/__init__.pyi +1 -0
- bpy/ops/script/__init__.pyi +1 -0
- bpy/ops/sculpt/__init__.pyi +1 -0
- bpy/ops/sculpt_curves/__init__.pyi +1 -0
- bpy/ops/sequencer/__init__.pyi +1 -0
- bpy/ops/sound/__init__.pyi +1 -0
- bpy/ops/spreadsheet/__init__.pyi +1 -0
- bpy/ops/surface/__init__.pyi +1 -0
- bpy/ops/text/__init__.pyi +1 -0
- bpy/ops/text_editor/__init__.pyi +1 -0
- bpy/ops/texture/__init__.pyi +1 -0
- bpy/ops/transform/__init__.pyi +17 -16
- bpy/ops/ui/__init__.pyi +1 -0
- bpy/ops/uilist/__init__.pyi +1 -0
- bpy/ops/uv/__init__.pyi +1 -0
- bpy/ops/view2d/__init__.pyi +1 -0
- bpy/ops/view3d/__init__.pyi +1 -0
- bpy/ops/wm/__init__.pyi +5 -4
- bpy/ops/workspace/__init__.pyi +1 -0
- bpy/ops/world/__init__.pyi +1 -0
- bpy/path/__init__.pyi +1 -0
- bpy/props/__init__.pyi +1 -0
- bpy/types/__init__.pyi +68824 -68756
- bpy/utils/__init__.pyi +1 -0
- bpy/utils/previews/__init__.pyi +1 -0
- bpy/utils/units/__init__.pyi +1 -0
- bpy_extras/__init__.pyi +1 -0
- bpy_extras/anim_utils/__init__.pyi +1 -0
- bpy_extras/asset_utils/__init__.pyi +1 -0
- bpy_extras/bmesh_utils/__init__.pyi +1 -0
- bpy_extras/id_map_utils/__init__.pyi +1 -0
- bpy_extras/image_utils/__init__.pyi +1 -0
- bpy_extras/io_utils/__init__.pyi +1 -0
- bpy_extras/keyconfig_utils/__init__.pyi +1 -0
- bpy_extras/mesh_utils/__init__.pyi +1 -0
- bpy_extras/node_shader_utils/__init__.pyi +1 -0
- bpy_extras/node_utils/__init__.pyi +1 -0
- bpy_extras/object_utils/__init__.pyi +1 -0
- bpy_extras/view3d_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -0
- bpy_restrict_state/__init__.pyi +1 -0
- bpy_types/__init__.pyi +1 -0
- console_python/__init__.pyi +1 -0
- console_shell/__init__.pyi +1 -0
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/METADATA +1 -1
- fake_bpy_module-20240707.dist-info/RECORD +358 -0
- freestyle/__init__.pyi +1 -0
- freestyle/chainingiterators/__init__.pyi +1 -0
- freestyle/functions/__init__.pyi +1 -0
- freestyle/predicates/__init__.pyi +1 -0
- freestyle/shaders/__init__.pyi +1 -0
- freestyle/types/__init__.pyi +1 -0
- freestyle/utils/ContextFunctions/__init__.pyi +1 -0
- freestyle/utils/__init__.pyi +2 -1
- gpu/__init__.pyi +1 -0
- gpu/capabilities/__init__.pyi +1 -0
- gpu/matrix/__init__.pyi +1 -0
- gpu/platform/__init__.pyi +1 -0
- gpu/select/__init__.pyi +1 -0
- gpu/shader/__init__.pyi +1 -0
- gpu/state/__init__.pyi +1 -0
- gpu/texture/__init__.pyi +1 -0
- gpu/types/__init__.pyi +1 -0
- gpu_extras/__init__.pyi +1 -0
- gpu_extras/batch/__init__.pyi +1 -0
- gpu_extras/presets/__init__.pyi +1 -0
- graphviz_export/__init__.pyi +1 -0
- idprop/__init__.pyi +1 -0
- idprop/types/__init__.pyi +1 -0
- imbuf/__init__.pyi +1 -0
- imbuf/types/__init__.pyi +1 -0
- keyingsets_builtins/__init__.pyi +88 -87
- keyingsets_utils/__init__.pyi +1 -0
- mathutils/__init__.pyi +157 -6
- mathutils/bvhtree/__init__.pyi +1 -0
- mathutils/geometry/__init__.pyi +1 -0
- mathutils/interpolate/__init__.pyi +1 -0
- mathutils/kdtree/__init__.pyi +1 -0
- mathutils/noise/__init__.pyi +1 -0
- nodeitems_builtins/__init__.pyi +8 -7
- nodeitems_utils/__init__.pyi +1 -0
- rna_info/__init__.pyi +1 -0
- rna_keymap_ui/__init__.pyi +1 -0
- rna_prop_ui/__init__.pyi +1 -0
- rna_xml/__init__.pyi +1 -0
- sys_info/__init__.pyi +1 -0
- fake_bpy_module-20240705.dist-info/RECORD +0 -358
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
|
+
import typing_extensions
|
|
3
4
|
import bpy.types
|
|
4
5
|
import bpy_types
|
|
5
6
|
import rna_prop_ui
|
|
@@ -19,21 +20,14 @@ class ColorAttributesListBase:
|
|
|
19
20
|
"""
|
|
20
21
|
...
|
|
21
22
|
|
|
22
|
-
class MeshButtonsPanel:
|
|
23
|
+
class DATA_PT_context_mesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
24
|
+
COMPAT_ENGINES: typing.Any
|
|
23
25
|
bl_context: typing.Any
|
|
24
|
-
bl_region_type: typing.Any
|
|
25
|
-
bl_space_type: typing.Any
|
|
26
|
-
|
|
27
|
-
def poll(self, context):
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
:param context:
|
|
31
|
-
"""
|
|
32
|
-
...
|
|
33
|
-
|
|
34
|
-
class MESH_MT_attribute_context_menu(bpy_types._GenericUI):
|
|
35
26
|
bl_label: typing.Any
|
|
27
|
+
bl_options: typing.Any
|
|
28
|
+
bl_region_type: typing.Any
|
|
36
29
|
bl_rna: typing.Any
|
|
30
|
+
bl_space_type: typing.Any
|
|
37
31
|
id_data: typing.Any
|
|
38
32
|
|
|
39
33
|
def append(self, draw_func):
|
|
@@ -68,30 +62,10 @@ class MESH_MT_attribute_context_menu(bpy_types._GenericUI):
|
|
|
68
62
|
"""
|
|
69
63
|
...
|
|
70
64
|
|
|
71
|
-
def draw(self,
|
|
72
|
-
"""
|
|
73
|
-
|
|
74
|
-
:param _context:
|
|
75
|
-
"""
|
|
76
|
-
...
|
|
77
|
-
|
|
78
|
-
def draw_collapsible(self, context, layout):
|
|
65
|
+
def draw(self, context):
|
|
79
66
|
"""
|
|
80
67
|
|
|
81
68
|
:param context:
|
|
82
|
-
:param layout:
|
|
83
|
-
"""
|
|
84
|
-
...
|
|
85
|
-
|
|
86
|
-
def draw_preset(self, _context):
|
|
87
|
-
"""Define these on the subclass:
|
|
88
|
-
- preset_operator (string)
|
|
89
|
-
- preset_subdir (string)Optionally:
|
|
90
|
-
- preset_add_operator (string)
|
|
91
|
-
- preset_extensions (set of strings)
|
|
92
|
-
- preset_operator_defaults (dict of keyword args)
|
|
93
|
-
|
|
94
|
-
:param _context:
|
|
95
69
|
"""
|
|
96
70
|
...
|
|
97
71
|
|
|
@@ -213,42 +187,15 @@ class MESH_MT_attribute_context_menu(bpy_types._GenericUI):
|
|
|
213
187
|
"""
|
|
214
188
|
...
|
|
215
189
|
|
|
216
|
-
def
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
operator: str,
|
|
220
|
-
props_default: dict = None,
|
|
221
|
-
prop_filepath: str | None = "filepath",
|
|
222
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
223
|
-
filter_path=None,
|
|
224
|
-
display_name: collections.abc.Callable | None = None,
|
|
225
|
-
add_operator=None,
|
|
226
|
-
add_operator_props=None,
|
|
227
|
-
):
|
|
228
|
-
"""Populate a menu from a list of paths.
|
|
229
|
-
|
|
230
|
-
:param searchpaths: Paths to scan.
|
|
231
|
-
:type searchpaths: list[str]
|
|
232
|
-
:param operator: The operator id to use with each file.
|
|
233
|
-
:type operator: str
|
|
234
|
-
:param props_default: Properties to assign to each operator.
|
|
235
|
-
:type props_default: dict
|
|
236
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
237
|
-
:type prop_filepath: str | None
|
|
238
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
190
|
+
def path_resolve(self):
|
|
191
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
192
|
+
...
|
|
239
193
|
|
|
240
|
-
|
|
241
|
-
:type filter_ext: collections.abc.Callable | None
|
|
242
|
-
:param filter_path:
|
|
243
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
244
|
-
:type display_name: collections.abc.Callable | None
|
|
245
|
-
:param add_operator:
|
|
246
|
-
:param add_operator_props:
|
|
194
|
+
def poll(self, context):
|
|
247
195
|
"""
|
|
248
|
-
...
|
|
249
196
|
|
|
250
|
-
|
|
251
|
-
"""
|
|
197
|
+
:param context:
|
|
198
|
+
"""
|
|
252
199
|
...
|
|
253
200
|
|
|
254
201
|
def pop(self):
|
|
@@ -301,9 +248,21 @@ class MESH_MT_attribute_context_menu(bpy_types._GenericUI):
|
|
|
301
248
|
"""
|
|
302
249
|
...
|
|
303
250
|
|
|
304
|
-
class
|
|
251
|
+
class DATA_PT_custom_props_mesh(
|
|
252
|
+
MeshButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
|
|
253
|
+
):
|
|
254
|
+
"""The subclass should have its own poll function
|
|
255
|
+
and the variable '_context_path' MUST be set.
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
COMPAT_ENGINES: typing.Any
|
|
259
|
+
bl_context: typing.Any
|
|
305
260
|
bl_label: typing.Any
|
|
261
|
+
bl_options: typing.Any
|
|
262
|
+
bl_order: typing.Any
|
|
263
|
+
bl_region_type: typing.Any
|
|
306
264
|
bl_rna: typing.Any
|
|
265
|
+
bl_space_type: typing.Any
|
|
307
266
|
id_data: typing.Any
|
|
308
267
|
|
|
309
268
|
def append(self, draw_func):
|
|
@@ -338,30 +297,10 @@ class MESH_MT_color_attribute_context_menu(bpy_types._GenericUI):
|
|
|
338
297
|
"""
|
|
339
298
|
...
|
|
340
299
|
|
|
341
|
-
def draw(self,
|
|
342
|
-
"""
|
|
343
|
-
|
|
344
|
-
:param _context:
|
|
345
|
-
"""
|
|
346
|
-
...
|
|
347
|
-
|
|
348
|
-
def draw_collapsible(self, context, layout):
|
|
300
|
+
def draw(self, context):
|
|
349
301
|
"""
|
|
350
302
|
|
|
351
303
|
:param context:
|
|
352
|
-
:param layout:
|
|
353
|
-
"""
|
|
354
|
-
...
|
|
355
|
-
|
|
356
|
-
def draw_preset(self, _context):
|
|
357
|
-
"""Define these on the subclass:
|
|
358
|
-
- preset_operator (string)
|
|
359
|
-
- preset_subdir (string)Optionally:
|
|
360
|
-
- preset_add_operator (string)
|
|
361
|
-
- preset_extensions (set of strings)
|
|
362
|
-
- preset_operator_defaults (dict of keyword args)
|
|
363
|
-
|
|
364
|
-
:param _context:
|
|
365
304
|
"""
|
|
366
305
|
...
|
|
367
306
|
|
|
@@ -483,42 +422,15 @@ class MESH_MT_color_attribute_context_menu(bpy_types._GenericUI):
|
|
|
483
422
|
"""
|
|
484
423
|
...
|
|
485
424
|
|
|
486
|
-
def
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
operator: str,
|
|
490
|
-
props_default: dict = None,
|
|
491
|
-
prop_filepath: str | None = "filepath",
|
|
492
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
493
|
-
filter_path=None,
|
|
494
|
-
display_name: collections.abc.Callable | None = None,
|
|
495
|
-
add_operator=None,
|
|
496
|
-
add_operator_props=None,
|
|
497
|
-
):
|
|
498
|
-
"""Populate a menu from a list of paths.
|
|
499
|
-
|
|
500
|
-
:param searchpaths: Paths to scan.
|
|
501
|
-
:type searchpaths: list[str]
|
|
502
|
-
:param operator: The operator id to use with each file.
|
|
503
|
-
:type operator: str
|
|
504
|
-
:param props_default: Properties to assign to each operator.
|
|
505
|
-
:type props_default: dict
|
|
506
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
507
|
-
:type prop_filepath: str | None
|
|
508
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
425
|
+
def path_resolve(self):
|
|
426
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
427
|
+
...
|
|
509
428
|
|
|
510
|
-
|
|
511
|
-
:type filter_ext: collections.abc.Callable | None
|
|
512
|
-
:param filter_path:
|
|
513
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
514
|
-
:type display_name: collections.abc.Callable | None
|
|
515
|
-
:param add_operator:
|
|
516
|
-
:param add_operator_props:
|
|
429
|
+
def poll(self, context):
|
|
517
430
|
"""
|
|
518
|
-
...
|
|
519
431
|
|
|
520
|
-
|
|
521
|
-
"""
|
|
432
|
+
:param context:
|
|
433
|
+
"""
|
|
522
434
|
...
|
|
523
435
|
|
|
524
436
|
def pop(self):
|
|
@@ -571,9 +483,14 @@ class MESH_MT_color_attribute_context_menu(bpy_types._GenericUI):
|
|
|
571
483
|
"""
|
|
572
484
|
...
|
|
573
485
|
|
|
574
|
-
class
|
|
486
|
+
class DATA_PT_customdata(MeshButtonsPanel, bpy_types._GenericUI):
|
|
487
|
+
COMPAT_ENGINES: typing.Any
|
|
488
|
+
bl_context: typing.Any
|
|
575
489
|
bl_label: typing.Any
|
|
490
|
+
bl_options: typing.Any
|
|
491
|
+
bl_region_type: typing.Any
|
|
576
492
|
bl_rna: typing.Any
|
|
493
|
+
bl_space_type: typing.Any
|
|
577
494
|
id_data: typing.Any
|
|
578
495
|
|
|
579
496
|
def append(self, draw_func):
|
|
@@ -608,30 +525,10 @@ class MESH_MT_shape_key_context_menu(bpy_types._GenericUI):
|
|
|
608
525
|
"""
|
|
609
526
|
...
|
|
610
527
|
|
|
611
|
-
def draw(self,
|
|
612
|
-
"""
|
|
613
|
-
|
|
614
|
-
:param _context:
|
|
615
|
-
"""
|
|
616
|
-
...
|
|
617
|
-
|
|
618
|
-
def draw_collapsible(self, context, layout):
|
|
528
|
+
def draw(self, context):
|
|
619
529
|
"""
|
|
620
530
|
|
|
621
531
|
:param context:
|
|
622
|
-
:param layout:
|
|
623
|
-
"""
|
|
624
|
-
...
|
|
625
|
-
|
|
626
|
-
def draw_preset(self, _context):
|
|
627
|
-
"""Define these on the subclass:
|
|
628
|
-
- preset_operator (string)
|
|
629
|
-
- preset_subdir (string)Optionally:
|
|
630
|
-
- preset_add_operator (string)
|
|
631
|
-
- preset_extensions (set of strings)
|
|
632
|
-
- preset_operator_defaults (dict of keyword args)
|
|
633
|
-
|
|
634
|
-
:param _context:
|
|
635
532
|
"""
|
|
636
533
|
...
|
|
637
534
|
|
|
@@ -753,42 +650,15 @@ class MESH_MT_shape_key_context_menu(bpy_types._GenericUI):
|
|
|
753
650
|
"""
|
|
754
651
|
...
|
|
755
652
|
|
|
756
|
-
def
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
operator: str,
|
|
760
|
-
props_default: dict = None,
|
|
761
|
-
prop_filepath: str | None = "filepath",
|
|
762
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
763
|
-
filter_path=None,
|
|
764
|
-
display_name: collections.abc.Callable | None = None,
|
|
765
|
-
add_operator=None,
|
|
766
|
-
add_operator_props=None,
|
|
767
|
-
):
|
|
768
|
-
"""Populate a menu from a list of paths.
|
|
769
|
-
|
|
770
|
-
:param searchpaths: Paths to scan.
|
|
771
|
-
:type searchpaths: list[str]
|
|
772
|
-
:param operator: The operator id to use with each file.
|
|
773
|
-
:type operator: str
|
|
774
|
-
:param props_default: Properties to assign to each operator.
|
|
775
|
-
:type props_default: dict
|
|
776
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
777
|
-
:type prop_filepath: str | None
|
|
778
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
653
|
+
def path_resolve(self):
|
|
654
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
655
|
+
...
|
|
779
656
|
|
|
780
|
-
|
|
781
|
-
:type filter_ext: collections.abc.Callable | None
|
|
782
|
-
:param filter_path:
|
|
783
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
784
|
-
:type display_name: collections.abc.Callable | None
|
|
785
|
-
:param add_operator:
|
|
786
|
-
:param add_operator_props:
|
|
657
|
+
def poll(self, context):
|
|
787
658
|
"""
|
|
788
|
-
...
|
|
789
659
|
|
|
790
|
-
|
|
791
|
-
"""
|
|
660
|
+
:param context:
|
|
661
|
+
"""
|
|
792
662
|
...
|
|
793
663
|
|
|
794
664
|
def pop(self):
|
|
@@ -841,9 +711,14 @@ class MESH_MT_shape_key_context_menu(bpy_types._GenericUI):
|
|
|
841
711
|
"""
|
|
842
712
|
...
|
|
843
713
|
|
|
844
|
-
class
|
|
714
|
+
class DATA_PT_mesh_attributes(MeshButtonsPanel, bpy_types._GenericUI):
|
|
715
|
+
COMPAT_ENGINES: typing.Any
|
|
716
|
+
bl_context: typing.Any
|
|
845
717
|
bl_label: typing.Any
|
|
718
|
+
bl_options: typing.Any
|
|
719
|
+
bl_region_type: typing.Any
|
|
846
720
|
bl_rna: typing.Any
|
|
721
|
+
bl_space_type: typing.Any
|
|
847
722
|
id_data: typing.Any
|
|
848
723
|
|
|
849
724
|
def append(self, draw_func):
|
|
@@ -878,30 +753,10 @@ class MESH_MT_vertex_group_context_menu(bpy_types._GenericUI):
|
|
|
878
753
|
"""
|
|
879
754
|
...
|
|
880
755
|
|
|
881
|
-
def draw(self,
|
|
882
|
-
"""
|
|
883
|
-
|
|
884
|
-
:param _context:
|
|
885
|
-
"""
|
|
886
|
-
...
|
|
887
|
-
|
|
888
|
-
def draw_collapsible(self, context, layout):
|
|
756
|
+
def draw(self, context):
|
|
889
757
|
"""
|
|
890
758
|
|
|
891
759
|
:param context:
|
|
892
|
-
:param layout:
|
|
893
|
-
"""
|
|
894
|
-
...
|
|
895
|
-
|
|
896
|
-
def draw_preset(self, _context):
|
|
897
|
-
"""Define these on the subclass:
|
|
898
|
-
- preset_operator (string)
|
|
899
|
-
- preset_subdir (string)Optionally:
|
|
900
|
-
- preset_add_operator (string)
|
|
901
|
-
- preset_extensions (set of strings)
|
|
902
|
-
- preset_operator_defaults (dict of keyword args)
|
|
903
|
-
|
|
904
|
-
:param _context:
|
|
905
760
|
"""
|
|
906
761
|
...
|
|
907
762
|
|
|
@@ -1023,42 +878,15 @@ class MESH_MT_vertex_group_context_menu(bpy_types._GenericUI):
|
|
|
1023
878
|
"""
|
|
1024
879
|
...
|
|
1025
880
|
|
|
1026
|
-
def
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
operator: str,
|
|
1030
|
-
props_default: dict = None,
|
|
1031
|
-
prop_filepath: str | None = "filepath",
|
|
1032
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
1033
|
-
filter_path=None,
|
|
1034
|
-
display_name: collections.abc.Callable | None = None,
|
|
1035
|
-
add_operator=None,
|
|
1036
|
-
add_operator_props=None,
|
|
1037
|
-
):
|
|
1038
|
-
"""Populate a menu from a list of paths.
|
|
1039
|
-
|
|
1040
|
-
:param searchpaths: Paths to scan.
|
|
1041
|
-
:type searchpaths: list[str]
|
|
1042
|
-
:param operator: The operator id to use with each file.
|
|
1043
|
-
:type operator: str
|
|
1044
|
-
:param props_default: Properties to assign to each operator.
|
|
1045
|
-
:type props_default: dict
|
|
1046
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1047
|
-
:type prop_filepath: str | None
|
|
1048
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
881
|
+
def path_resolve(self):
|
|
882
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
883
|
+
...
|
|
1049
884
|
|
|
1050
|
-
|
|
1051
|
-
:type filter_ext: collections.abc.Callable | None
|
|
1052
|
-
:param filter_path:
|
|
1053
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1054
|
-
:type display_name: collections.abc.Callable | None
|
|
1055
|
-
:param add_operator:
|
|
1056
|
-
:param add_operator_props:
|
|
885
|
+
def poll(self, context):
|
|
1057
886
|
"""
|
|
1058
|
-
...
|
|
1059
887
|
|
|
1060
|
-
|
|
1061
|
-
"""
|
|
888
|
+
:param context:
|
|
889
|
+
"""
|
|
1062
890
|
...
|
|
1063
891
|
|
|
1064
892
|
def pop(self):
|
|
@@ -1111,9 +939,14 @@ class MESH_MT_vertex_group_context_menu(bpy_types._GenericUI):
|
|
|
1111
939
|
"""
|
|
1112
940
|
...
|
|
1113
941
|
|
|
1114
|
-
class
|
|
942
|
+
class DATA_PT_remesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
943
|
+
COMPAT_ENGINES: typing.Any
|
|
944
|
+
bl_context: typing.Any
|
|
945
|
+
bl_label: typing.Any
|
|
946
|
+
bl_options: typing.Any
|
|
947
|
+
bl_region_type: typing.Any
|
|
1115
948
|
bl_rna: typing.Any
|
|
1116
|
-
|
|
949
|
+
bl_space_type: typing.Any
|
|
1117
950
|
id_data: typing.Any
|
|
1118
951
|
|
|
1119
952
|
def append(self, draw_func):
|
|
@@ -1148,27 +981,10 @@ class MESH_UL_attributes(bpy_types._GenericUI):
|
|
|
1148
981
|
"""
|
|
1149
982
|
...
|
|
1150
983
|
|
|
1151
|
-
def
|
|
1152
|
-
self,
|
|
1153
|
-
_context,
|
|
1154
|
-
layout,
|
|
1155
|
-
_data,
|
|
1156
|
-
attribute,
|
|
1157
|
-
_icon,
|
|
1158
|
-
_active_data,
|
|
1159
|
-
_active_propname,
|
|
1160
|
-
_index,
|
|
1161
|
-
):
|
|
984
|
+
def draw(self, context):
|
|
1162
985
|
"""
|
|
1163
986
|
|
|
1164
|
-
:param
|
|
1165
|
-
:param layout:
|
|
1166
|
-
:param _data:
|
|
1167
|
-
:param attribute:
|
|
1168
|
-
:param _icon:
|
|
1169
|
-
:param _active_data:
|
|
1170
|
-
:param _active_propname:
|
|
1171
|
-
:param _index:
|
|
987
|
+
:param context:
|
|
1172
988
|
"""
|
|
1173
989
|
...
|
|
1174
990
|
|
|
@@ -1188,15 +1004,6 @@ class MESH_UL_attributes(bpy_types._GenericUI):
|
|
|
1188
1004
|
"""
|
|
1189
1005
|
...
|
|
1190
1006
|
|
|
1191
|
-
def filter_items(self, _context, data, property):
|
|
1192
|
-
"""
|
|
1193
|
-
|
|
1194
|
-
:param _context:
|
|
1195
|
-
:param data:
|
|
1196
|
-
:param property:
|
|
1197
|
-
"""
|
|
1198
|
-
...
|
|
1199
|
-
|
|
1200
1007
|
def get(self):
|
|
1201
1008
|
"""Returns the value of the custom property assigned to key or default
|
|
1202
1009
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1303,6 +1110,13 @@ class MESH_UL_attributes(bpy_types._GenericUI):
|
|
|
1303
1110
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1304
1111
|
...
|
|
1305
1112
|
|
|
1113
|
+
def poll(self, context):
|
|
1114
|
+
"""
|
|
1115
|
+
|
|
1116
|
+
:param context:
|
|
1117
|
+
"""
|
|
1118
|
+
...
|
|
1119
|
+
|
|
1306
1120
|
def pop(self):
|
|
1307
1121
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1308
1122
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1353,8 +1167,13 @@ class MESH_UL_attributes(bpy_types._GenericUI):
|
|
|
1353
1167
|
"""
|
|
1354
1168
|
...
|
|
1355
1169
|
|
|
1356
|
-
class
|
|
1170
|
+
class DATA_PT_shape_keys(MeshButtonsPanel, bpy_types._GenericUI):
|
|
1171
|
+
COMPAT_ENGINES: typing.Any
|
|
1172
|
+
bl_context: typing.Any
|
|
1173
|
+
bl_label: typing.Any
|
|
1174
|
+
bl_region_type: typing.Any
|
|
1357
1175
|
bl_rna: typing.Any
|
|
1176
|
+
bl_space_type: typing.Any
|
|
1358
1177
|
id_data: typing.Any
|
|
1359
1178
|
|
|
1360
1179
|
def append(self, draw_func):
|
|
@@ -1389,19 +1208,10 @@ class MESH_UL_shape_keys(bpy_types._GenericUI):
|
|
|
1389
1208
|
"""
|
|
1390
1209
|
...
|
|
1391
1210
|
|
|
1392
|
-
def
|
|
1393
|
-
self, _context, layout, _data, item, icon, active_data, _active_propname, index
|
|
1394
|
-
):
|
|
1211
|
+
def draw(self, context):
|
|
1395
1212
|
"""
|
|
1396
1213
|
|
|
1397
|
-
:param
|
|
1398
|
-
:param layout:
|
|
1399
|
-
:param _data:
|
|
1400
|
-
:param item:
|
|
1401
|
-
:param icon:
|
|
1402
|
-
:param active_data:
|
|
1403
|
-
:param _active_propname:
|
|
1404
|
-
:param index:
|
|
1214
|
+
:param context:
|
|
1405
1215
|
"""
|
|
1406
1216
|
...
|
|
1407
1217
|
|
|
@@ -1527,6 +1337,13 @@ class MESH_UL_shape_keys(bpy_types._GenericUI):
|
|
|
1527
1337
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1528
1338
|
...
|
|
1529
1339
|
|
|
1340
|
+
def poll(self, context):
|
|
1341
|
+
"""
|
|
1342
|
+
|
|
1343
|
+
:param context:
|
|
1344
|
+
"""
|
|
1345
|
+
...
|
|
1346
|
+
|
|
1530
1347
|
def pop(self):
|
|
1531
1348
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1532
1349
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1577,8 +1394,14 @@ class MESH_UL_shape_keys(bpy_types._GenericUI):
|
|
|
1577
1394
|
"""
|
|
1578
1395
|
...
|
|
1579
1396
|
|
|
1580
|
-
class
|
|
1397
|
+
class DATA_PT_texture_space(MeshButtonsPanel, bpy_types._GenericUI):
|
|
1398
|
+
COMPAT_ENGINES: typing.Any
|
|
1399
|
+
bl_context: typing.Any
|
|
1400
|
+
bl_label: typing.Any
|
|
1401
|
+
bl_options: typing.Any
|
|
1402
|
+
bl_region_type: typing.Any
|
|
1581
1403
|
bl_rna: typing.Any
|
|
1404
|
+
bl_space_type: typing.Any
|
|
1582
1405
|
id_data: typing.Any
|
|
1583
1406
|
|
|
1584
1407
|
def append(self, draw_func):
|
|
@@ -1613,27 +1436,10 @@ class MESH_UL_uvmaps(bpy_types._GenericUI):
|
|
|
1613
1436
|
"""
|
|
1614
1437
|
...
|
|
1615
1438
|
|
|
1616
|
-
def
|
|
1617
|
-
self,
|
|
1618
|
-
_context,
|
|
1619
|
-
layout,
|
|
1620
|
-
_data,
|
|
1621
|
-
item,
|
|
1622
|
-
icon,
|
|
1623
|
-
_active_data,
|
|
1624
|
-
_active_propname,
|
|
1625
|
-
_index,
|
|
1626
|
-
):
|
|
1439
|
+
def draw(self, context):
|
|
1627
1440
|
"""
|
|
1628
1441
|
|
|
1629
|
-
:param
|
|
1630
|
-
:param layout:
|
|
1631
|
-
:param _data:
|
|
1632
|
-
:param item:
|
|
1633
|
-
:param icon:
|
|
1634
|
-
:param _active_data:
|
|
1635
|
-
:param _active_propname:
|
|
1636
|
-
:param _index:
|
|
1442
|
+
:param context:
|
|
1637
1443
|
"""
|
|
1638
1444
|
...
|
|
1639
1445
|
|
|
@@ -1759,6 +1565,13 @@ class MESH_UL_uvmaps(bpy_types._GenericUI):
|
|
|
1759
1565
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1760
1566
|
...
|
|
1761
1567
|
|
|
1568
|
+
def poll(self, context):
|
|
1569
|
+
"""
|
|
1570
|
+
|
|
1571
|
+
:param context:
|
|
1572
|
+
"""
|
|
1573
|
+
...
|
|
1574
|
+
|
|
1762
1575
|
def pop(self):
|
|
1763
1576
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1764
1577
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1809,8 +1622,14 @@ class MESH_UL_uvmaps(bpy_types._GenericUI):
|
|
|
1809
1622
|
"""
|
|
1810
1623
|
...
|
|
1811
1624
|
|
|
1812
|
-
class
|
|
1625
|
+
class DATA_PT_uv_texture(MeshButtonsPanel, bpy_types._GenericUI):
|
|
1626
|
+
COMPAT_ENGINES: typing.Any
|
|
1627
|
+
bl_context: typing.Any
|
|
1628
|
+
bl_label: typing.Any
|
|
1629
|
+
bl_options: typing.Any
|
|
1630
|
+
bl_region_type: typing.Any
|
|
1813
1631
|
bl_rna: typing.Any
|
|
1632
|
+
bl_space_type: typing.Any
|
|
1814
1633
|
id_data: typing.Any
|
|
1815
1634
|
|
|
1816
1635
|
def append(self, draw_func):
|
|
@@ -1845,27 +1664,10 @@ class MESH_UL_vgroups(bpy_types._GenericUI):
|
|
|
1845
1664
|
"""
|
|
1846
1665
|
...
|
|
1847
1666
|
|
|
1848
|
-
def
|
|
1849
|
-
self,
|
|
1850
|
-
_context,
|
|
1851
|
-
layout,
|
|
1852
|
-
_data,
|
|
1853
|
-
item,
|
|
1854
|
-
icon,
|
|
1855
|
-
_active_data_,
|
|
1856
|
-
_active_propname,
|
|
1857
|
-
_index,
|
|
1858
|
-
):
|
|
1667
|
+
def draw(self, context):
|
|
1859
1668
|
"""
|
|
1860
1669
|
|
|
1861
|
-
:param
|
|
1862
|
-
:param layout:
|
|
1863
|
-
:param _data:
|
|
1864
|
-
:param item:
|
|
1865
|
-
:param icon:
|
|
1866
|
-
:param _active_data_:
|
|
1867
|
-
:param _active_propname:
|
|
1868
|
-
:param _index:
|
|
1670
|
+
:param context:
|
|
1869
1671
|
"""
|
|
1870
1672
|
...
|
|
1871
1673
|
|
|
@@ -1991,6 +1793,13 @@ class MESH_UL_vgroups(bpy_types._GenericUI):
|
|
|
1991
1793
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1992
1794
|
...
|
|
1993
1795
|
|
|
1796
|
+
def poll(self, context):
|
|
1797
|
+
"""
|
|
1798
|
+
|
|
1799
|
+
:param context:
|
|
1800
|
+
"""
|
|
1801
|
+
...
|
|
1802
|
+
|
|
1994
1803
|
def pop(self):
|
|
1995
1804
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1996
1805
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2041,9 +1850,16 @@ class MESH_UL_vgroups(bpy_types._GenericUI):
|
|
|
2041
1850
|
"""
|
|
2042
1851
|
...
|
|
2043
1852
|
|
|
2044
|
-
class
|
|
1853
|
+
class DATA_PT_vertex_colors(
|
|
1854
|
+
DATA_PT_mesh_attributes, MeshButtonsPanel, bpy_types._GenericUI
|
|
1855
|
+
):
|
|
1856
|
+
COMPAT_ENGINES: typing.Any
|
|
1857
|
+
bl_context: typing.Any
|
|
1858
|
+
bl_label: typing.Any
|
|
1859
|
+
bl_options: typing.Any
|
|
1860
|
+
bl_region_type: typing.Any
|
|
2045
1861
|
bl_rna: typing.Any
|
|
2046
|
-
|
|
1862
|
+
bl_space_type: typing.Any
|
|
2047
1863
|
id_data: typing.Any
|
|
2048
1864
|
|
|
2049
1865
|
def append(self, draw_func):
|
|
@@ -2078,27 +1894,10 @@ class MESH_UL_color_attributes(bpy_types._GenericUI, ColorAttributesListBase):
|
|
|
2078
1894
|
"""
|
|
2079
1895
|
...
|
|
2080
1896
|
|
|
2081
|
-
def
|
|
2082
|
-
self,
|
|
2083
|
-
_context,
|
|
2084
|
-
layout,
|
|
2085
|
-
data,
|
|
2086
|
-
attribute,
|
|
2087
|
-
_icon,
|
|
2088
|
-
_active_data,
|
|
2089
|
-
_active_propname,
|
|
2090
|
-
_index,
|
|
2091
|
-
):
|
|
1897
|
+
def draw(self, context):
|
|
2092
1898
|
"""
|
|
2093
1899
|
|
|
2094
|
-
:param
|
|
2095
|
-
:param layout:
|
|
2096
|
-
:param data:
|
|
2097
|
-
:param attribute:
|
|
2098
|
-
:param _icon:
|
|
2099
|
-
:param _active_data:
|
|
2100
|
-
:param _active_propname:
|
|
2101
|
-
:param _index:
|
|
1900
|
+
:param context:
|
|
2102
1901
|
"""
|
|
2103
1902
|
...
|
|
2104
1903
|
|
|
@@ -2118,15 +1917,6 @@ class MESH_UL_color_attributes(bpy_types._GenericUI, ColorAttributesListBase):
|
|
|
2118
1917
|
"""
|
|
2119
1918
|
...
|
|
2120
1919
|
|
|
2121
|
-
def filter_items(self, _context, data, property):
|
|
2122
|
-
"""
|
|
2123
|
-
|
|
2124
|
-
:param _context:
|
|
2125
|
-
:param data:
|
|
2126
|
-
:param property:
|
|
2127
|
-
"""
|
|
2128
|
-
...
|
|
2129
|
-
|
|
2130
1920
|
def get(self):
|
|
2131
1921
|
"""Returns the value of the custom property assigned to key or default
|
|
2132
1922
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2233,6 +2023,13 @@ class MESH_UL_color_attributes(bpy_types._GenericUI, ColorAttributesListBase):
|
|
|
2233
2023
|
"""Returns the property from the path, raise an exception when not found."""
|
|
2234
2024
|
...
|
|
2235
2025
|
|
|
2026
|
+
def poll(self, context):
|
|
2027
|
+
"""
|
|
2028
|
+
|
|
2029
|
+
:param context:
|
|
2030
|
+
"""
|
|
2031
|
+
...
|
|
2032
|
+
|
|
2236
2033
|
def pop(self):
|
|
2237
2034
|
"""Remove and return the value of the custom property assigned to key or default
|
|
2238
2035
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2283,9 +2080,13 @@ class MESH_UL_color_attributes(bpy_types._GenericUI, ColorAttributesListBase):
|
|
|
2283
2080
|
"""
|
|
2284
2081
|
...
|
|
2285
2082
|
|
|
2286
|
-
class
|
|
2083
|
+
class DATA_PT_vertex_groups(MeshButtonsPanel, bpy_types._GenericUI):
|
|
2084
|
+
COMPAT_ENGINES: typing.Any
|
|
2085
|
+
bl_context: typing.Any
|
|
2086
|
+
bl_label: typing.Any
|
|
2087
|
+
bl_region_type: typing.Any
|
|
2287
2088
|
bl_rna: typing.Any
|
|
2288
|
-
|
|
2089
|
+
bl_space_type: typing.Any
|
|
2289
2090
|
id_data: typing.Any
|
|
2290
2091
|
|
|
2291
2092
|
def append(self, draw_func):
|
|
@@ -2320,27 +2121,10 @@ class MESH_UL_color_attributes_selector(bpy_types._GenericUI, ColorAttributesLis
|
|
|
2320
2121
|
"""
|
|
2321
2122
|
...
|
|
2322
2123
|
|
|
2323
|
-
def
|
|
2324
|
-
self,
|
|
2325
|
-
_context,
|
|
2326
|
-
layout,
|
|
2327
|
-
_data,
|
|
2328
|
-
attribute,
|
|
2329
|
-
_icon,
|
|
2330
|
-
_active_data,
|
|
2331
|
-
_active_propname,
|
|
2332
|
-
_index,
|
|
2333
|
-
):
|
|
2124
|
+
def draw(self, context):
|
|
2334
2125
|
"""
|
|
2335
2126
|
|
|
2336
|
-
:param
|
|
2337
|
-
:param layout:
|
|
2338
|
-
:param _data:
|
|
2339
|
-
:param attribute:
|
|
2340
|
-
:param _icon:
|
|
2341
|
-
:param _active_data:
|
|
2342
|
-
:param _active_propname:
|
|
2343
|
-
:param _index:
|
|
2127
|
+
:param context:
|
|
2344
2128
|
"""
|
|
2345
2129
|
...
|
|
2346
2130
|
|
|
@@ -2360,15 +2144,6 @@ class MESH_UL_color_attributes_selector(bpy_types._GenericUI, ColorAttributesLis
|
|
|
2360
2144
|
"""
|
|
2361
2145
|
...
|
|
2362
2146
|
|
|
2363
|
-
def filter_items(self, _context, data, property):
|
|
2364
|
-
"""
|
|
2365
|
-
|
|
2366
|
-
:param _context:
|
|
2367
|
-
:param data:
|
|
2368
|
-
:param property:
|
|
2369
|
-
"""
|
|
2370
|
-
...
|
|
2371
|
-
|
|
2372
2147
|
def get(self):
|
|
2373
2148
|
"""Returns the value of the custom property assigned to key or default
|
|
2374
2149
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2475,6 +2250,13 @@ class MESH_UL_color_attributes_selector(bpy_types._GenericUI, ColorAttributesLis
|
|
|
2475
2250
|
"""Returns the property from the path, raise an exception when not found."""
|
|
2476
2251
|
...
|
|
2477
2252
|
|
|
2253
|
+
def poll(self, context):
|
|
2254
|
+
"""
|
|
2255
|
+
|
|
2256
|
+
:param context:
|
|
2257
|
+
"""
|
|
2258
|
+
...
|
|
2259
|
+
|
|
2478
2260
|
def pop(self):
|
|
2479
2261
|
"""Remove and return the value of the custom property assigned to key or default
|
|
2480
2262
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2525,14 +2307,9 @@ class MESH_UL_color_attributes_selector(bpy_types._GenericUI, ColorAttributesLis
|
|
|
2525
2307
|
"""
|
|
2526
2308
|
...
|
|
2527
2309
|
|
|
2528
|
-
class
|
|
2529
|
-
COMPAT_ENGINES: typing.Any
|
|
2530
|
-
bl_context: typing.Any
|
|
2310
|
+
class MESH_MT_attribute_context_menu(bpy_types._GenericUI):
|
|
2531
2311
|
bl_label: typing.Any
|
|
2532
|
-
bl_options: typing.Any
|
|
2533
|
-
bl_region_type: typing.Any
|
|
2534
2312
|
bl_rna: typing.Any
|
|
2535
|
-
bl_space_type: typing.Any
|
|
2536
2313
|
id_data: typing.Any
|
|
2537
2314
|
|
|
2538
2315
|
def append(self, draw_func):
|
|
@@ -2567,10 +2344,30 @@ class DATA_PT_context_mesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
2567
2344
|
"""
|
|
2568
2345
|
...
|
|
2569
2346
|
|
|
2570
|
-
def draw(self,
|
|
2347
|
+
def draw(self, _context):
|
|
2348
|
+
"""
|
|
2349
|
+
|
|
2350
|
+
:param _context:
|
|
2351
|
+
"""
|
|
2352
|
+
...
|
|
2353
|
+
|
|
2354
|
+
def draw_collapsible(self, context, layout):
|
|
2571
2355
|
"""
|
|
2572
2356
|
|
|
2573
2357
|
:param context:
|
|
2358
|
+
:param layout:
|
|
2359
|
+
"""
|
|
2360
|
+
...
|
|
2361
|
+
|
|
2362
|
+
def draw_preset(self, _context):
|
|
2363
|
+
"""Define these on the subclass:
|
|
2364
|
+
- preset_operator (string)
|
|
2365
|
+
- preset_subdir (string)Optionally:
|
|
2366
|
+
- preset_add_operator (string)
|
|
2367
|
+
- preset_extensions (set of strings)
|
|
2368
|
+
- preset_operator_defaults (dict of keyword args)
|
|
2369
|
+
|
|
2370
|
+
:param _context:
|
|
2574
2371
|
"""
|
|
2575
2372
|
...
|
|
2576
2373
|
|
|
@@ -2692,17 +2489,44 @@ class DATA_PT_context_mesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
2692
2489
|
"""
|
|
2693
2490
|
...
|
|
2694
2491
|
|
|
2695
|
-
def
|
|
2696
|
-
|
|
2697
|
-
|
|
2492
|
+
def path_menu(
|
|
2493
|
+
self,
|
|
2494
|
+
searchpaths: list[str],
|
|
2495
|
+
operator: str,
|
|
2496
|
+
props_default: dict = None,
|
|
2497
|
+
prop_filepath: str | None = "filepath",
|
|
2498
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
2499
|
+
filter_path=None,
|
|
2500
|
+
display_name: collections.abc.Callable | None = None,
|
|
2501
|
+
add_operator=None,
|
|
2502
|
+
add_operator_props=None,
|
|
2503
|
+
):
|
|
2504
|
+
"""Populate a menu from a list of paths.
|
|
2698
2505
|
|
|
2699
|
-
|
|
2700
|
-
|
|
2506
|
+
:param searchpaths: Paths to scan.
|
|
2507
|
+
:type searchpaths: list[str]
|
|
2508
|
+
:param operator: The operator id to use with each file.
|
|
2509
|
+
:type operator: str
|
|
2510
|
+
:param props_default: Properties to assign to each operator.
|
|
2511
|
+
:type props_default: dict
|
|
2512
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
2513
|
+
:type prop_filepath: str | None
|
|
2514
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
2701
2515
|
|
|
2702
|
-
|
|
2516
|
+
Returning false excludes the file from the list.
|
|
2517
|
+
:type filter_ext: collections.abc.Callable | None
|
|
2518
|
+
:param filter_path:
|
|
2519
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
2520
|
+
:type display_name: collections.abc.Callable | None
|
|
2521
|
+
:param add_operator:
|
|
2522
|
+
:param add_operator_props:
|
|
2703
2523
|
"""
|
|
2704
2524
|
...
|
|
2705
2525
|
|
|
2526
|
+
def path_resolve(self):
|
|
2527
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
2528
|
+
...
|
|
2529
|
+
|
|
2706
2530
|
def pop(self):
|
|
2707
2531
|
"""Remove and return the value of the custom property assigned to key or default
|
|
2708
2532
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2753,21 +2577,9 @@ class DATA_PT_context_mesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
2753
2577
|
"""
|
|
2754
2578
|
...
|
|
2755
2579
|
|
|
2756
|
-
class
|
|
2757
|
-
MeshButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
|
|
2758
|
-
):
|
|
2759
|
-
"""The subclass should have its own poll function
|
|
2760
|
-
and the variable '_context_path' MUST be set.
|
|
2761
|
-
"""
|
|
2762
|
-
|
|
2763
|
-
COMPAT_ENGINES: typing.Any
|
|
2764
|
-
bl_context: typing.Any
|
|
2580
|
+
class MESH_MT_color_attribute_context_menu(bpy_types._GenericUI):
|
|
2765
2581
|
bl_label: typing.Any
|
|
2766
|
-
bl_options: typing.Any
|
|
2767
|
-
bl_order: typing.Any
|
|
2768
|
-
bl_region_type: typing.Any
|
|
2769
2582
|
bl_rna: typing.Any
|
|
2770
|
-
bl_space_type: typing.Any
|
|
2771
2583
|
id_data: typing.Any
|
|
2772
2584
|
|
|
2773
2585
|
def append(self, draw_func):
|
|
@@ -2802,10 +2614,30 @@ class DATA_PT_custom_props_mesh(
|
|
|
2802
2614
|
"""
|
|
2803
2615
|
...
|
|
2804
2616
|
|
|
2805
|
-
def draw(self,
|
|
2617
|
+
def draw(self, _context):
|
|
2618
|
+
"""
|
|
2619
|
+
|
|
2620
|
+
:param _context:
|
|
2621
|
+
"""
|
|
2622
|
+
...
|
|
2623
|
+
|
|
2624
|
+
def draw_collapsible(self, context, layout):
|
|
2806
2625
|
"""
|
|
2807
2626
|
|
|
2808
2627
|
:param context:
|
|
2628
|
+
:param layout:
|
|
2629
|
+
"""
|
|
2630
|
+
...
|
|
2631
|
+
|
|
2632
|
+
def draw_preset(self, _context):
|
|
2633
|
+
"""Define these on the subclass:
|
|
2634
|
+
- preset_operator (string)
|
|
2635
|
+
- preset_subdir (string)Optionally:
|
|
2636
|
+
- preset_add_operator (string)
|
|
2637
|
+
- preset_extensions (set of strings)
|
|
2638
|
+
- preset_operator_defaults (dict of keyword args)
|
|
2639
|
+
|
|
2640
|
+
:param _context:
|
|
2809
2641
|
"""
|
|
2810
2642
|
...
|
|
2811
2643
|
|
|
@@ -2927,17 +2759,44 @@ class DATA_PT_custom_props_mesh(
|
|
|
2927
2759
|
"""
|
|
2928
2760
|
...
|
|
2929
2761
|
|
|
2930
|
-
def
|
|
2931
|
-
|
|
2932
|
-
|
|
2762
|
+
def path_menu(
|
|
2763
|
+
self,
|
|
2764
|
+
searchpaths: list[str],
|
|
2765
|
+
operator: str,
|
|
2766
|
+
props_default: dict = None,
|
|
2767
|
+
prop_filepath: str | None = "filepath",
|
|
2768
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
2769
|
+
filter_path=None,
|
|
2770
|
+
display_name: collections.abc.Callable | None = None,
|
|
2771
|
+
add_operator=None,
|
|
2772
|
+
add_operator_props=None,
|
|
2773
|
+
):
|
|
2774
|
+
"""Populate a menu from a list of paths.
|
|
2933
2775
|
|
|
2934
|
-
|
|
2935
|
-
|
|
2776
|
+
:param searchpaths: Paths to scan.
|
|
2777
|
+
:type searchpaths: list[str]
|
|
2778
|
+
:param operator: The operator id to use with each file.
|
|
2779
|
+
:type operator: str
|
|
2780
|
+
:param props_default: Properties to assign to each operator.
|
|
2781
|
+
:type props_default: dict
|
|
2782
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
2783
|
+
:type prop_filepath: str | None
|
|
2784
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
2936
2785
|
|
|
2937
|
-
|
|
2786
|
+
Returning false excludes the file from the list.
|
|
2787
|
+
:type filter_ext: collections.abc.Callable | None
|
|
2788
|
+
:param filter_path:
|
|
2789
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
2790
|
+
:type display_name: collections.abc.Callable | None
|
|
2791
|
+
:param add_operator:
|
|
2792
|
+
:param add_operator_props:
|
|
2938
2793
|
"""
|
|
2939
2794
|
...
|
|
2940
2795
|
|
|
2796
|
+
def path_resolve(self):
|
|
2797
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
2798
|
+
...
|
|
2799
|
+
|
|
2941
2800
|
def pop(self):
|
|
2942
2801
|
"""Remove and return the value of the custom property assigned to key or default
|
|
2943
2802
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2988,14 +2847,9 @@ class DATA_PT_custom_props_mesh(
|
|
|
2988
2847
|
"""
|
|
2989
2848
|
...
|
|
2990
2849
|
|
|
2991
|
-
class
|
|
2992
|
-
COMPAT_ENGINES: typing.Any
|
|
2993
|
-
bl_context: typing.Any
|
|
2850
|
+
class MESH_MT_shape_key_context_menu(bpy_types._GenericUI):
|
|
2994
2851
|
bl_label: typing.Any
|
|
2995
|
-
bl_options: typing.Any
|
|
2996
|
-
bl_region_type: typing.Any
|
|
2997
2852
|
bl_rna: typing.Any
|
|
2998
|
-
bl_space_type: typing.Any
|
|
2999
2853
|
id_data: typing.Any
|
|
3000
2854
|
|
|
3001
2855
|
def append(self, draw_func):
|
|
@@ -3030,10 +2884,30 @@ class DATA_PT_customdata(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3030
2884
|
"""
|
|
3031
2885
|
...
|
|
3032
2886
|
|
|
3033
|
-
def draw(self,
|
|
2887
|
+
def draw(self, _context):
|
|
2888
|
+
"""
|
|
2889
|
+
|
|
2890
|
+
:param _context:
|
|
2891
|
+
"""
|
|
2892
|
+
...
|
|
2893
|
+
|
|
2894
|
+
def draw_collapsible(self, context, layout):
|
|
3034
2895
|
"""
|
|
3035
2896
|
|
|
3036
2897
|
:param context:
|
|
2898
|
+
:param layout:
|
|
2899
|
+
"""
|
|
2900
|
+
...
|
|
2901
|
+
|
|
2902
|
+
def draw_preset(self, _context):
|
|
2903
|
+
"""Define these on the subclass:
|
|
2904
|
+
- preset_operator (string)
|
|
2905
|
+
- preset_subdir (string)Optionally:
|
|
2906
|
+
- preset_add_operator (string)
|
|
2907
|
+
- preset_extensions (set of strings)
|
|
2908
|
+
- preset_operator_defaults (dict of keyword args)
|
|
2909
|
+
|
|
2910
|
+
:param _context:
|
|
3037
2911
|
"""
|
|
3038
2912
|
...
|
|
3039
2913
|
|
|
@@ -3155,17 +3029,44 @@ class DATA_PT_customdata(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3155
3029
|
"""
|
|
3156
3030
|
...
|
|
3157
3031
|
|
|
3158
|
-
def
|
|
3159
|
-
|
|
3160
|
-
|
|
3032
|
+
def path_menu(
|
|
3033
|
+
self,
|
|
3034
|
+
searchpaths: list[str],
|
|
3035
|
+
operator: str,
|
|
3036
|
+
props_default: dict = None,
|
|
3037
|
+
prop_filepath: str | None = "filepath",
|
|
3038
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3039
|
+
filter_path=None,
|
|
3040
|
+
display_name: collections.abc.Callable | None = None,
|
|
3041
|
+
add_operator=None,
|
|
3042
|
+
add_operator_props=None,
|
|
3043
|
+
):
|
|
3044
|
+
"""Populate a menu from a list of paths.
|
|
3161
3045
|
|
|
3162
|
-
|
|
3163
|
-
|
|
3046
|
+
:param searchpaths: Paths to scan.
|
|
3047
|
+
:type searchpaths: list[str]
|
|
3048
|
+
:param operator: The operator id to use with each file.
|
|
3049
|
+
:type operator: str
|
|
3050
|
+
:param props_default: Properties to assign to each operator.
|
|
3051
|
+
:type props_default: dict
|
|
3052
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3053
|
+
:type prop_filepath: str | None
|
|
3054
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
3164
3055
|
|
|
3165
|
-
|
|
3056
|
+
Returning false excludes the file from the list.
|
|
3057
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3058
|
+
:param filter_path:
|
|
3059
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3060
|
+
:type display_name: collections.abc.Callable | None
|
|
3061
|
+
:param add_operator:
|
|
3062
|
+
:param add_operator_props:
|
|
3166
3063
|
"""
|
|
3167
3064
|
...
|
|
3168
3065
|
|
|
3066
|
+
def path_resolve(self):
|
|
3067
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
3068
|
+
...
|
|
3069
|
+
|
|
3169
3070
|
def pop(self):
|
|
3170
3071
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3171
3072
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3216,14 +3117,9 @@ class DATA_PT_customdata(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3216
3117
|
"""
|
|
3217
3118
|
...
|
|
3218
3119
|
|
|
3219
|
-
class
|
|
3220
|
-
COMPAT_ENGINES: typing.Any
|
|
3221
|
-
bl_context: typing.Any
|
|
3120
|
+
class MESH_MT_vertex_group_context_menu(bpy_types._GenericUI):
|
|
3222
3121
|
bl_label: typing.Any
|
|
3223
|
-
bl_options: typing.Any
|
|
3224
|
-
bl_region_type: typing.Any
|
|
3225
3122
|
bl_rna: typing.Any
|
|
3226
|
-
bl_space_type: typing.Any
|
|
3227
3123
|
id_data: typing.Any
|
|
3228
3124
|
|
|
3229
3125
|
def append(self, draw_func):
|
|
@@ -3258,10 +3154,30 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3258
3154
|
"""
|
|
3259
3155
|
...
|
|
3260
3156
|
|
|
3261
|
-
def draw(self,
|
|
3157
|
+
def draw(self, _context):
|
|
3158
|
+
"""
|
|
3159
|
+
|
|
3160
|
+
:param _context:
|
|
3161
|
+
"""
|
|
3162
|
+
...
|
|
3163
|
+
|
|
3164
|
+
def draw_collapsible(self, context, layout):
|
|
3262
3165
|
"""
|
|
3263
3166
|
|
|
3264
3167
|
:param context:
|
|
3168
|
+
:param layout:
|
|
3169
|
+
"""
|
|
3170
|
+
...
|
|
3171
|
+
|
|
3172
|
+
def draw_preset(self, _context):
|
|
3173
|
+
"""Define these on the subclass:
|
|
3174
|
+
- preset_operator (string)
|
|
3175
|
+
- preset_subdir (string)Optionally:
|
|
3176
|
+
- preset_add_operator (string)
|
|
3177
|
+
- preset_extensions (set of strings)
|
|
3178
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3179
|
+
|
|
3180
|
+
:param _context:
|
|
3265
3181
|
"""
|
|
3266
3182
|
...
|
|
3267
3183
|
|
|
@@ -3383,17 +3299,44 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3383
3299
|
"""
|
|
3384
3300
|
...
|
|
3385
3301
|
|
|
3302
|
+
def path_menu(
|
|
3303
|
+
self,
|
|
3304
|
+
searchpaths: list[str],
|
|
3305
|
+
operator: str,
|
|
3306
|
+
props_default: dict = None,
|
|
3307
|
+
prop_filepath: str | None = "filepath",
|
|
3308
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3309
|
+
filter_path=None,
|
|
3310
|
+
display_name: collections.abc.Callable | None = None,
|
|
3311
|
+
add_operator=None,
|
|
3312
|
+
add_operator_props=None,
|
|
3313
|
+
):
|
|
3314
|
+
"""Populate a menu from a list of paths.
|
|
3315
|
+
|
|
3316
|
+
:param searchpaths: Paths to scan.
|
|
3317
|
+
:type searchpaths: list[str]
|
|
3318
|
+
:param operator: The operator id to use with each file.
|
|
3319
|
+
:type operator: str
|
|
3320
|
+
:param props_default: Properties to assign to each operator.
|
|
3321
|
+
:type props_default: dict
|
|
3322
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3323
|
+
:type prop_filepath: str | None
|
|
3324
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
3325
|
+
|
|
3326
|
+
Returning false excludes the file from the list.
|
|
3327
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3328
|
+
:param filter_path:
|
|
3329
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3330
|
+
:type display_name: collections.abc.Callable | None
|
|
3331
|
+
:param add_operator:
|
|
3332
|
+
:param add_operator_props:
|
|
3333
|
+
"""
|
|
3334
|
+
...
|
|
3335
|
+
|
|
3386
3336
|
def path_resolve(self):
|
|
3387
3337
|
"""Returns the property from the path, raise an exception when not found."""
|
|
3388
3338
|
...
|
|
3389
3339
|
|
|
3390
|
-
def poll(self, context):
|
|
3391
|
-
"""
|
|
3392
|
-
|
|
3393
|
-
:param context:
|
|
3394
|
-
"""
|
|
3395
|
-
...
|
|
3396
|
-
|
|
3397
3340
|
def pop(self):
|
|
3398
3341
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3399
3342
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3444,14 +3387,9 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3444
3387
|
"""
|
|
3445
3388
|
...
|
|
3446
3389
|
|
|
3447
|
-
class
|
|
3448
|
-
COMPAT_ENGINES: typing.Any
|
|
3449
|
-
bl_context: typing.Any
|
|
3450
|
-
bl_label: typing.Any
|
|
3451
|
-
bl_options: typing.Any
|
|
3452
|
-
bl_region_type: typing.Any
|
|
3390
|
+
class MESH_UL_attributes(bpy_types._GenericUI):
|
|
3453
3391
|
bl_rna: typing.Any
|
|
3454
|
-
|
|
3392
|
+
display_domain_names: typing.Any
|
|
3455
3393
|
id_data: typing.Any
|
|
3456
3394
|
|
|
3457
3395
|
def append(self, draw_func):
|
|
@@ -3486,10 +3424,27 @@ class DATA_PT_remesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3486
3424
|
"""
|
|
3487
3425
|
...
|
|
3488
3426
|
|
|
3489
|
-
def
|
|
3427
|
+
def draw_item(
|
|
3428
|
+
self,
|
|
3429
|
+
_context,
|
|
3430
|
+
layout,
|
|
3431
|
+
_data,
|
|
3432
|
+
attribute,
|
|
3433
|
+
_icon,
|
|
3434
|
+
_active_data,
|
|
3435
|
+
_active_propname,
|
|
3436
|
+
_index,
|
|
3437
|
+
):
|
|
3490
3438
|
"""
|
|
3491
3439
|
|
|
3492
|
-
:param
|
|
3440
|
+
:param _context:
|
|
3441
|
+
:param layout:
|
|
3442
|
+
:param _data:
|
|
3443
|
+
:param attribute:
|
|
3444
|
+
:param _icon:
|
|
3445
|
+
:param _active_data:
|
|
3446
|
+
:param _active_propname:
|
|
3447
|
+
:param _index:
|
|
3493
3448
|
"""
|
|
3494
3449
|
...
|
|
3495
3450
|
|
|
@@ -3509,6 +3464,15 @@ class DATA_PT_remesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3509
3464
|
"""
|
|
3510
3465
|
...
|
|
3511
3466
|
|
|
3467
|
+
def filter_items(self, _context, data, property):
|
|
3468
|
+
"""
|
|
3469
|
+
|
|
3470
|
+
:param _context:
|
|
3471
|
+
:param data:
|
|
3472
|
+
:param property:
|
|
3473
|
+
"""
|
|
3474
|
+
...
|
|
3475
|
+
|
|
3512
3476
|
def get(self):
|
|
3513
3477
|
"""Returns the value of the custom property assigned to key or default
|
|
3514
3478
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3615,13 +3579,6 @@ class DATA_PT_remesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3615
3579
|
"""Returns the property from the path, raise an exception when not found."""
|
|
3616
3580
|
...
|
|
3617
3581
|
|
|
3618
|
-
def poll(self, context):
|
|
3619
|
-
"""
|
|
3620
|
-
|
|
3621
|
-
:param context:
|
|
3622
|
-
"""
|
|
3623
|
-
...
|
|
3624
|
-
|
|
3625
3582
|
def pop(self):
|
|
3626
3583
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3627
3584
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3672,13 +3629,8 @@ class DATA_PT_remesh(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3672
3629
|
"""
|
|
3673
3630
|
...
|
|
3674
3631
|
|
|
3675
|
-
class
|
|
3676
|
-
COMPAT_ENGINES: typing.Any
|
|
3677
|
-
bl_context: typing.Any
|
|
3678
|
-
bl_label: typing.Any
|
|
3679
|
-
bl_region_type: typing.Any
|
|
3632
|
+
class MESH_UL_shape_keys(bpy_types._GenericUI):
|
|
3680
3633
|
bl_rna: typing.Any
|
|
3681
|
-
bl_space_type: typing.Any
|
|
3682
3634
|
id_data: typing.Any
|
|
3683
3635
|
|
|
3684
3636
|
def append(self, draw_func):
|
|
@@ -3713,10 +3665,19 @@ class DATA_PT_shape_keys(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3713
3665
|
"""
|
|
3714
3666
|
...
|
|
3715
3667
|
|
|
3716
|
-
def
|
|
3668
|
+
def draw_item(
|
|
3669
|
+
self, _context, layout, _data, item, icon, active_data, _active_propname, index
|
|
3670
|
+
):
|
|
3717
3671
|
"""
|
|
3718
3672
|
|
|
3719
|
-
:param
|
|
3673
|
+
:param _context:
|
|
3674
|
+
:param layout:
|
|
3675
|
+
:param _data:
|
|
3676
|
+
:param item:
|
|
3677
|
+
:param icon:
|
|
3678
|
+
:param active_data:
|
|
3679
|
+
:param _active_propname:
|
|
3680
|
+
:param index:
|
|
3720
3681
|
"""
|
|
3721
3682
|
...
|
|
3722
3683
|
|
|
@@ -3842,13 +3803,6 @@ class DATA_PT_shape_keys(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3842
3803
|
"""Returns the property from the path, raise an exception when not found."""
|
|
3843
3804
|
...
|
|
3844
3805
|
|
|
3845
|
-
def poll(self, context):
|
|
3846
|
-
"""
|
|
3847
|
-
|
|
3848
|
-
:param context:
|
|
3849
|
-
"""
|
|
3850
|
-
...
|
|
3851
|
-
|
|
3852
3806
|
def pop(self):
|
|
3853
3807
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3854
3808
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3899,14 +3853,8 @@ class DATA_PT_shape_keys(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3899
3853
|
"""
|
|
3900
3854
|
...
|
|
3901
3855
|
|
|
3902
|
-
class
|
|
3903
|
-
COMPAT_ENGINES: typing.Any
|
|
3904
|
-
bl_context: typing.Any
|
|
3905
|
-
bl_label: typing.Any
|
|
3906
|
-
bl_options: typing.Any
|
|
3907
|
-
bl_region_type: typing.Any
|
|
3856
|
+
class MESH_UL_uvmaps(bpy_types._GenericUI):
|
|
3908
3857
|
bl_rna: typing.Any
|
|
3909
|
-
bl_space_type: typing.Any
|
|
3910
3858
|
id_data: typing.Any
|
|
3911
3859
|
|
|
3912
3860
|
def append(self, draw_func):
|
|
@@ -3941,10 +3889,27 @@ class DATA_PT_texture_space(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
3941
3889
|
"""
|
|
3942
3890
|
...
|
|
3943
3891
|
|
|
3944
|
-
def
|
|
3892
|
+
def draw_item(
|
|
3893
|
+
self,
|
|
3894
|
+
_context,
|
|
3895
|
+
layout,
|
|
3896
|
+
_data,
|
|
3897
|
+
item,
|
|
3898
|
+
icon,
|
|
3899
|
+
_active_data,
|
|
3900
|
+
_active_propname,
|
|
3901
|
+
_index,
|
|
3902
|
+
):
|
|
3945
3903
|
"""
|
|
3946
3904
|
|
|
3947
|
-
:param
|
|
3905
|
+
:param _context:
|
|
3906
|
+
:param layout:
|
|
3907
|
+
:param _data:
|
|
3908
|
+
:param item:
|
|
3909
|
+
:param icon:
|
|
3910
|
+
:param _active_data:
|
|
3911
|
+
:param _active_propname:
|
|
3912
|
+
:param _index:
|
|
3948
3913
|
"""
|
|
3949
3914
|
...
|
|
3950
3915
|
|
|
@@ -4070,13 +4035,6 @@ class DATA_PT_texture_space(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4070
4035
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4071
4036
|
...
|
|
4072
4037
|
|
|
4073
|
-
def poll(self, context):
|
|
4074
|
-
"""
|
|
4075
|
-
|
|
4076
|
-
:param context:
|
|
4077
|
-
"""
|
|
4078
|
-
...
|
|
4079
|
-
|
|
4080
4038
|
def pop(self):
|
|
4081
4039
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4082
4040
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4127,14 +4085,8 @@ class DATA_PT_texture_space(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4127
4085
|
"""
|
|
4128
4086
|
...
|
|
4129
4087
|
|
|
4130
|
-
class
|
|
4131
|
-
COMPAT_ENGINES: typing.Any
|
|
4132
|
-
bl_context: typing.Any
|
|
4133
|
-
bl_label: typing.Any
|
|
4134
|
-
bl_options: typing.Any
|
|
4135
|
-
bl_region_type: typing.Any
|
|
4088
|
+
class MESH_UL_vgroups(bpy_types._GenericUI):
|
|
4136
4089
|
bl_rna: typing.Any
|
|
4137
|
-
bl_space_type: typing.Any
|
|
4138
4090
|
id_data: typing.Any
|
|
4139
4091
|
|
|
4140
4092
|
def append(self, draw_func):
|
|
@@ -4169,10 +4121,27 @@ class DATA_PT_uv_texture(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4169
4121
|
"""
|
|
4170
4122
|
...
|
|
4171
4123
|
|
|
4172
|
-
def
|
|
4124
|
+
def draw_item(
|
|
4125
|
+
self,
|
|
4126
|
+
_context,
|
|
4127
|
+
layout,
|
|
4128
|
+
_data,
|
|
4129
|
+
item,
|
|
4130
|
+
icon,
|
|
4131
|
+
_active_data_,
|
|
4132
|
+
_active_propname,
|
|
4133
|
+
_index,
|
|
4134
|
+
):
|
|
4173
4135
|
"""
|
|
4174
4136
|
|
|
4175
|
-
:param
|
|
4137
|
+
:param _context:
|
|
4138
|
+
:param layout:
|
|
4139
|
+
:param _data:
|
|
4140
|
+
:param item:
|
|
4141
|
+
:param icon:
|
|
4142
|
+
:param _active_data_:
|
|
4143
|
+
:param _active_propname:
|
|
4144
|
+
:param _index:
|
|
4176
4145
|
"""
|
|
4177
4146
|
...
|
|
4178
4147
|
|
|
@@ -4298,13 +4267,6 @@ class DATA_PT_uv_texture(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4298
4267
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4299
4268
|
...
|
|
4300
4269
|
|
|
4301
|
-
def poll(self, context):
|
|
4302
|
-
"""
|
|
4303
|
-
|
|
4304
|
-
:param context:
|
|
4305
|
-
"""
|
|
4306
|
-
...
|
|
4307
|
-
|
|
4308
4270
|
def pop(self):
|
|
4309
4271
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4310
4272
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4355,13 +4317,21 @@ class DATA_PT_uv_texture(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4355
4317
|
"""
|
|
4356
4318
|
...
|
|
4357
4319
|
|
|
4358
|
-
class
|
|
4359
|
-
COMPAT_ENGINES: typing.Any
|
|
4320
|
+
class MeshButtonsPanel:
|
|
4360
4321
|
bl_context: typing.Any
|
|
4361
|
-
bl_label: typing.Any
|
|
4362
4322
|
bl_region_type: typing.Any
|
|
4363
|
-
bl_rna: typing.Any
|
|
4364
4323
|
bl_space_type: typing.Any
|
|
4324
|
+
|
|
4325
|
+
def poll(self, context):
|
|
4326
|
+
"""
|
|
4327
|
+
|
|
4328
|
+
:param context:
|
|
4329
|
+
"""
|
|
4330
|
+
...
|
|
4331
|
+
|
|
4332
|
+
class MESH_UL_color_attributes(bpy_types._GenericUI, ColorAttributesListBase):
|
|
4333
|
+
bl_rna: typing.Any
|
|
4334
|
+
display_domain_names: typing.Any
|
|
4365
4335
|
id_data: typing.Any
|
|
4366
4336
|
|
|
4367
4337
|
def append(self, draw_func):
|
|
@@ -4396,10 +4366,27 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4396
4366
|
"""
|
|
4397
4367
|
...
|
|
4398
4368
|
|
|
4399
|
-
def
|
|
4369
|
+
def draw_item(
|
|
4370
|
+
self,
|
|
4371
|
+
_context,
|
|
4372
|
+
layout,
|
|
4373
|
+
data,
|
|
4374
|
+
attribute,
|
|
4375
|
+
_icon,
|
|
4376
|
+
_active_data,
|
|
4377
|
+
_active_propname,
|
|
4378
|
+
_index,
|
|
4379
|
+
):
|
|
4400
4380
|
"""
|
|
4401
4381
|
|
|
4402
|
-
:param
|
|
4382
|
+
:param _context:
|
|
4383
|
+
:param layout:
|
|
4384
|
+
:param data:
|
|
4385
|
+
:param attribute:
|
|
4386
|
+
:param _icon:
|
|
4387
|
+
:param _active_data:
|
|
4388
|
+
:param _active_propname:
|
|
4389
|
+
:param _index:
|
|
4403
4390
|
"""
|
|
4404
4391
|
...
|
|
4405
4392
|
|
|
@@ -4419,6 +4406,15 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4419
4406
|
"""
|
|
4420
4407
|
...
|
|
4421
4408
|
|
|
4409
|
+
def filter_items(self, _context, data, property):
|
|
4410
|
+
"""
|
|
4411
|
+
|
|
4412
|
+
:param _context:
|
|
4413
|
+
:param data:
|
|
4414
|
+
:param property:
|
|
4415
|
+
"""
|
|
4416
|
+
...
|
|
4417
|
+
|
|
4422
4418
|
def get(self):
|
|
4423
4419
|
"""Returns the value of the custom property assigned to key or default
|
|
4424
4420
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4525,13 +4521,6 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4525
4521
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4526
4522
|
...
|
|
4527
4523
|
|
|
4528
|
-
def poll(self, context):
|
|
4529
|
-
"""
|
|
4530
|
-
|
|
4531
|
-
:param context:
|
|
4532
|
-
"""
|
|
4533
|
-
...
|
|
4534
|
-
|
|
4535
4524
|
def pop(self):
|
|
4536
4525
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4537
4526
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4582,16 +4571,9 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, bpy_types._GenericUI):
|
|
|
4582
4571
|
"""
|
|
4583
4572
|
...
|
|
4584
4573
|
|
|
4585
|
-
class
|
|
4586
|
-
DATA_PT_mesh_attributes, MeshButtonsPanel, bpy_types._GenericUI
|
|
4587
|
-
):
|
|
4588
|
-
COMPAT_ENGINES: typing.Any
|
|
4589
|
-
bl_context: typing.Any
|
|
4590
|
-
bl_label: typing.Any
|
|
4591
|
-
bl_options: typing.Any
|
|
4592
|
-
bl_region_type: typing.Any
|
|
4574
|
+
class MESH_UL_color_attributes_selector(bpy_types._GenericUI, ColorAttributesListBase):
|
|
4593
4575
|
bl_rna: typing.Any
|
|
4594
|
-
|
|
4576
|
+
display_domain_names: typing.Any
|
|
4595
4577
|
id_data: typing.Any
|
|
4596
4578
|
|
|
4597
4579
|
def append(self, draw_func):
|
|
@@ -4626,10 +4608,27 @@ class DATA_PT_vertex_colors(
|
|
|
4626
4608
|
"""
|
|
4627
4609
|
...
|
|
4628
4610
|
|
|
4629
|
-
def
|
|
4611
|
+
def draw_item(
|
|
4612
|
+
self,
|
|
4613
|
+
_context,
|
|
4614
|
+
layout,
|
|
4615
|
+
_data,
|
|
4616
|
+
attribute,
|
|
4617
|
+
_icon,
|
|
4618
|
+
_active_data,
|
|
4619
|
+
_active_propname,
|
|
4620
|
+
_index,
|
|
4621
|
+
):
|
|
4630
4622
|
"""
|
|
4631
4623
|
|
|
4632
|
-
:param
|
|
4624
|
+
:param _context:
|
|
4625
|
+
:param layout:
|
|
4626
|
+
:param _data:
|
|
4627
|
+
:param attribute:
|
|
4628
|
+
:param _icon:
|
|
4629
|
+
:param _active_data:
|
|
4630
|
+
:param _active_propname:
|
|
4631
|
+
:param _index:
|
|
4633
4632
|
"""
|
|
4634
4633
|
...
|
|
4635
4634
|
|
|
@@ -4649,6 +4648,15 @@ class DATA_PT_vertex_colors(
|
|
|
4649
4648
|
"""
|
|
4650
4649
|
...
|
|
4651
4650
|
|
|
4651
|
+
def filter_items(self, _context, data, property):
|
|
4652
|
+
"""
|
|
4653
|
+
|
|
4654
|
+
:param _context:
|
|
4655
|
+
:param data:
|
|
4656
|
+
:param property:
|
|
4657
|
+
"""
|
|
4658
|
+
...
|
|
4659
|
+
|
|
4652
4660
|
def get(self):
|
|
4653
4661
|
"""Returns the value of the custom property assigned to key or default
|
|
4654
4662
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4755,13 +4763,6 @@ class DATA_PT_vertex_colors(
|
|
|
4755
4763
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4756
4764
|
...
|
|
4757
4765
|
|
|
4758
|
-
def poll(self, context):
|
|
4759
|
-
"""
|
|
4760
|
-
|
|
4761
|
-
:param context:
|
|
4762
|
-
"""
|
|
4763
|
-
...
|
|
4764
|
-
|
|
4765
4766
|
def pop(self):
|
|
4766
4767
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4767
4768
|
when not found (matches Python's dictionary function of the same name).
|