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_extras.asset_utils
|
|
5
6
|
import bpy_types
|
|
@@ -7,15 +8,7 @@ import bpy_types
|
|
|
7
8
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
8
9
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
9
10
|
|
|
10
|
-
class AssetBrowserMenu:
|
|
11
|
-
def poll(self, context):
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
:param context:
|
|
15
|
-
"""
|
|
16
|
-
...
|
|
17
|
-
|
|
18
|
-
class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
|
|
11
|
+
class ASSETBROWSER_MT_catalog(AssetBrowserMenu, bpy_types._GenericUI):
|
|
19
12
|
bl_label: typing.Any
|
|
20
13
|
bl_rna: typing.Any
|
|
21
14
|
id_data: typing.Any
|
|
@@ -235,6 +228,13 @@ class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
|
|
|
235
228
|
"""Returns the property from the path, raise an exception when not found."""
|
|
236
229
|
...
|
|
237
230
|
|
|
231
|
+
def poll(self, context):
|
|
232
|
+
"""
|
|
233
|
+
|
|
234
|
+
:param context:
|
|
235
|
+
"""
|
|
236
|
+
...
|
|
237
|
+
|
|
238
238
|
def pop(self):
|
|
239
239
|
"""Remove and return the value of the custom property assigned to key or default
|
|
240
240
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -285,14 +285,9 @@ class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
|
|
|
285
285
|
"""
|
|
286
286
|
...
|
|
287
287
|
|
|
288
|
-
class
|
|
289
|
-
bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
|
|
290
|
-
):
|
|
288
|
+
class ASSETBROWSER_MT_context_menu(AssetBrowserMenu, bpy_types._GenericUI):
|
|
291
289
|
bl_label: typing.Any
|
|
292
|
-
bl_region_type: typing.Any
|
|
293
290
|
bl_rna: typing.Any
|
|
294
|
-
bl_space_type: typing.Any
|
|
295
|
-
bl_ui_units_x: typing.Any
|
|
296
291
|
id_data: typing.Any
|
|
297
292
|
|
|
298
293
|
def append(self, draw_func):
|
|
@@ -311,13 +306,6 @@ class ASSETBROWSER_PT_display(
|
|
|
311
306
|
"""
|
|
312
307
|
...
|
|
313
308
|
|
|
314
|
-
def asset_browser_panel_poll(self, context):
|
|
315
|
-
"""
|
|
316
|
-
|
|
317
|
-
:param context:
|
|
318
|
-
"""
|
|
319
|
-
...
|
|
320
|
-
|
|
321
309
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
322
310
|
"""
|
|
323
311
|
|
|
@@ -341,6 +329,26 @@ class ASSETBROWSER_PT_display(
|
|
|
341
329
|
"""
|
|
342
330
|
...
|
|
343
331
|
|
|
332
|
+
def draw_collapsible(self, context, layout):
|
|
333
|
+
"""
|
|
334
|
+
|
|
335
|
+
:param context:
|
|
336
|
+
:param layout:
|
|
337
|
+
"""
|
|
338
|
+
...
|
|
339
|
+
|
|
340
|
+
def draw_preset(self, _context):
|
|
341
|
+
"""Define these on the subclass:
|
|
342
|
+
- preset_operator (string)
|
|
343
|
+
- preset_subdir (string)Optionally:
|
|
344
|
+
- preset_add_operator (string)
|
|
345
|
+
- preset_extensions (set of strings)
|
|
346
|
+
- preset_operator_defaults (dict of keyword args)
|
|
347
|
+
|
|
348
|
+
:param _context:
|
|
349
|
+
"""
|
|
350
|
+
...
|
|
351
|
+
|
|
344
352
|
def driver_add(self) -> bpy.types.FCurve:
|
|
345
353
|
"""Adds driver(s) to the given property
|
|
346
354
|
|
|
@@ -459,6 +467,40 @@ class ASSETBROWSER_PT_display(
|
|
|
459
467
|
"""
|
|
460
468
|
...
|
|
461
469
|
|
|
470
|
+
def path_menu(
|
|
471
|
+
self,
|
|
472
|
+
searchpaths: list[str],
|
|
473
|
+
operator: str,
|
|
474
|
+
props_default: dict = None,
|
|
475
|
+
prop_filepath: str | None = "filepath",
|
|
476
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
477
|
+
filter_path=None,
|
|
478
|
+
display_name: collections.abc.Callable | None = None,
|
|
479
|
+
add_operator=None,
|
|
480
|
+
add_operator_props=None,
|
|
481
|
+
):
|
|
482
|
+
"""Populate a menu from a list of paths.
|
|
483
|
+
|
|
484
|
+
:param searchpaths: Paths to scan.
|
|
485
|
+
:type searchpaths: list[str]
|
|
486
|
+
:param operator: The operator id to use with each file.
|
|
487
|
+
:type operator: str
|
|
488
|
+
:param props_default: Properties to assign to each operator.
|
|
489
|
+
:type props_default: dict
|
|
490
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
491
|
+
:type prop_filepath: str | None
|
|
492
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
493
|
+
|
|
494
|
+
Returning false excludes the file from the list.
|
|
495
|
+
:type filter_ext: collections.abc.Callable | None
|
|
496
|
+
:param filter_path:
|
|
497
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
498
|
+
:type display_name: collections.abc.Callable | None
|
|
499
|
+
:param add_operator:
|
|
500
|
+
:param add_operator_props:
|
|
501
|
+
"""
|
|
502
|
+
...
|
|
503
|
+
|
|
462
504
|
def path_resolve(self):
|
|
463
505
|
"""Returns the property from the path, raise an exception when not found."""
|
|
464
506
|
...
|
|
@@ -520,14 +562,10 @@ class ASSETBROWSER_PT_display(
|
|
|
520
562
|
"""
|
|
521
563
|
...
|
|
522
564
|
|
|
523
|
-
class
|
|
524
|
-
|
|
525
|
-
):
|
|
526
|
-
bl_category: typing.Any
|
|
565
|
+
class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
|
|
566
|
+
bl_idname: typing.Any
|
|
527
567
|
bl_label: typing.Any
|
|
528
|
-
bl_region_type: typing.Any
|
|
529
568
|
bl_rna: typing.Any
|
|
530
|
-
bl_space_type: typing.Any
|
|
531
569
|
id_data: typing.Any
|
|
532
570
|
|
|
533
571
|
def append(self, draw_func):
|
|
@@ -546,13 +584,6 @@ class ASSETBROWSER_PT_filter(
|
|
|
546
584
|
"""
|
|
547
585
|
...
|
|
548
586
|
|
|
549
|
-
def asset_browser_panel_poll(self, context):
|
|
550
|
-
"""
|
|
551
|
-
|
|
552
|
-
:param context:
|
|
553
|
-
"""
|
|
554
|
-
...
|
|
555
|
-
|
|
556
587
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
557
588
|
"""
|
|
558
589
|
|
|
@@ -576,6 +607,26 @@ class ASSETBROWSER_PT_filter(
|
|
|
576
607
|
"""
|
|
577
608
|
...
|
|
578
609
|
|
|
610
|
+
def draw_collapsible(self, context, layout):
|
|
611
|
+
"""
|
|
612
|
+
|
|
613
|
+
:param context:
|
|
614
|
+
:param layout:
|
|
615
|
+
"""
|
|
616
|
+
...
|
|
617
|
+
|
|
618
|
+
def draw_preset(self, _context):
|
|
619
|
+
"""Define these on the subclass:
|
|
620
|
+
- preset_operator (string)
|
|
621
|
+
- preset_subdir (string)Optionally:
|
|
622
|
+
- preset_add_operator (string)
|
|
623
|
+
- preset_extensions (set of strings)
|
|
624
|
+
- preset_operator_defaults (dict of keyword args)
|
|
625
|
+
|
|
626
|
+
:param _context:
|
|
627
|
+
"""
|
|
628
|
+
...
|
|
629
|
+
|
|
579
630
|
def driver_add(self) -> bpy.types.FCurve:
|
|
580
631
|
"""Adds driver(s) to the given property
|
|
581
632
|
|
|
@@ -694,6 +745,40 @@ class ASSETBROWSER_PT_filter(
|
|
|
694
745
|
"""
|
|
695
746
|
...
|
|
696
747
|
|
|
748
|
+
def path_menu(
|
|
749
|
+
self,
|
|
750
|
+
searchpaths: list[str],
|
|
751
|
+
operator: str,
|
|
752
|
+
props_default: dict = None,
|
|
753
|
+
prop_filepath: str | None = "filepath",
|
|
754
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
755
|
+
filter_path=None,
|
|
756
|
+
display_name: collections.abc.Callable | None = None,
|
|
757
|
+
add_operator=None,
|
|
758
|
+
add_operator_props=None,
|
|
759
|
+
):
|
|
760
|
+
"""Populate a menu from a list of paths.
|
|
761
|
+
|
|
762
|
+
:param searchpaths: Paths to scan.
|
|
763
|
+
:type searchpaths: list[str]
|
|
764
|
+
:param operator: The operator id to use with each file.
|
|
765
|
+
:type operator: str
|
|
766
|
+
:param props_default: Properties to assign to each operator.
|
|
767
|
+
:type props_default: dict
|
|
768
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
769
|
+
:type prop_filepath: str | None
|
|
770
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
771
|
+
|
|
772
|
+
Returning false excludes the file from the list.
|
|
773
|
+
:type filter_ext: collections.abc.Callable | None
|
|
774
|
+
:param filter_path:
|
|
775
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
776
|
+
:type display_name: collections.abc.Callable | None
|
|
777
|
+
:param add_operator:
|
|
778
|
+
:param add_operator_props:
|
|
779
|
+
"""
|
|
780
|
+
...
|
|
781
|
+
|
|
697
782
|
def path_resolve(self):
|
|
698
783
|
"""Returns the property from the path, raise an exception when not found."""
|
|
699
784
|
...
|
|
@@ -755,14 +840,9 @@ class ASSETBROWSER_PT_filter(
|
|
|
755
840
|
"""
|
|
756
841
|
...
|
|
757
842
|
|
|
758
|
-
class
|
|
759
|
-
bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
|
|
760
|
-
):
|
|
843
|
+
class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
|
|
761
844
|
bl_label: typing.Any
|
|
762
|
-
bl_options: typing.Any
|
|
763
|
-
bl_region_type: typing.Any
|
|
764
845
|
bl_rna: typing.Any
|
|
765
|
-
bl_space_type: typing.Any
|
|
766
846
|
id_data: typing.Any
|
|
767
847
|
|
|
768
848
|
def append(self, draw_func):
|
|
@@ -781,13 +861,6 @@ class ASSETBROWSER_PT_metadata(
|
|
|
781
861
|
"""
|
|
782
862
|
...
|
|
783
863
|
|
|
784
|
-
def asset_browser_panel_poll(self, context):
|
|
785
|
-
"""
|
|
786
|
-
|
|
787
|
-
:param context:
|
|
788
|
-
"""
|
|
789
|
-
...
|
|
790
|
-
|
|
791
864
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
792
865
|
"""
|
|
793
866
|
|
|
@@ -804,10 +877,30 @@ class ASSETBROWSER_PT_metadata(
|
|
|
804
877
|
"""
|
|
805
878
|
...
|
|
806
879
|
|
|
807
|
-
def draw(self,
|
|
880
|
+
def draw(self, _context):
|
|
881
|
+
"""
|
|
882
|
+
|
|
883
|
+
:param _context:
|
|
884
|
+
"""
|
|
885
|
+
...
|
|
886
|
+
|
|
887
|
+
def draw_collapsible(self, context, layout):
|
|
808
888
|
"""
|
|
809
889
|
|
|
810
890
|
:param context:
|
|
891
|
+
:param layout:
|
|
892
|
+
"""
|
|
893
|
+
...
|
|
894
|
+
|
|
895
|
+
def draw_preset(self, _context):
|
|
896
|
+
"""Define these on the subclass:
|
|
897
|
+
- preset_operator (string)
|
|
898
|
+
- preset_subdir (string)Optionally:
|
|
899
|
+
- preset_add_operator (string)
|
|
900
|
+
- preset_extensions (set of strings)
|
|
901
|
+
- preset_operator_defaults (dict of keyword args)
|
|
902
|
+
|
|
903
|
+
:param _context:
|
|
811
904
|
"""
|
|
812
905
|
...
|
|
813
906
|
|
|
@@ -920,16 +1013,6 @@ class ASSETBROWSER_PT_metadata(
|
|
|
920
1013
|
"""
|
|
921
1014
|
...
|
|
922
1015
|
|
|
923
|
-
def metadata_prop(self, layout, asset_metadata, propname):
|
|
924
|
-
"""Only display properties that are either set or can be modified (i.e. the
|
|
925
|
-
asset is in the current file). Empty, non-editable fields are not really useful.
|
|
926
|
-
|
|
927
|
-
:param layout:
|
|
928
|
-
:param asset_metadata:
|
|
929
|
-
:param propname:
|
|
930
|
-
"""
|
|
931
|
-
...
|
|
932
|
-
|
|
933
1016
|
def path_from_id(self) -> str:
|
|
934
1017
|
"""Returns the data path from the ID to this object (string).
|
|
935
1018
|
|
|
@@ -939,17 +1022,44 @@ class ASSETBROWSER_PT_metadata(
|
|
|
939
1022
|
"""
|
|
940
1023
|
...
|
|
941
1024
|
|
|
942
|
-
def
|
|
943
|
-
|
|
944
|
-
|
|
1025
|
+
def path_menu(
|
|
1026
|
+
self,
|
|
1027
|
+
searchpaths: list[str],
|
|
1028
|
+
operator: str,
|
|
1029
|
+
props_default: dict = None,
|
|
1030
|
+
prop_filepath: str | None = "filepath",
|
|
1031
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1032
|
+
filter_path=None,
|
|
1033
|
+
display_name: collections.abc.Callable | None = None,
|
|
1034
|
+
add_operator=None,
|
|
1035
|
+
add_operator_props=None,
|
|
1036
|
+
):
|
|
1037
|
+
"""Populate a menu from a list of paths.
|
|
945
1038
|
|
|
946
|
-
|
|
947
|
-
|
|
1039
|
+
:param searchpaths: Paths to scan.
|
|
1040
|
+
:type searchpaths: list[str]
|
|
1041
|
+
:param operator: The operator id to use with each file.
|
|
1042
|
+
:type operator: str
|
|
1043
|
+
:param props_default: Properties to assign to each operator.
|
|
1044
|
+
:type props_default: dict
|
|
1045
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1046
|
+
:type prop_filepath: str | None
|
|
1047
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
948
1048
|
|
|
949
|
-
|
|
1049
|
+
Returning false excludes the file from the list.
|
|
1050
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1051
|
+
:param filter_path:
|
|
1052
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1053
|
+
:type display_name: collections.abc.Callable | None
|
|
1054
|
+
:param add_operator:
|
|
1055
|
+
:param add_operator_props:
|
|
950
1056
|
"""
|
|
951
1057
|
...
|
|
952
1058
|
|
|
1059
|
+
def path_resolve(self):
|
|
1060
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
1061
|
+
...
|
|
1062
|
+
|
|
953
1063
|
def pop(self):
|
|
954
1064
|
"""Remove and return the value of the custom property assigned to key or default
|
|
955
1065
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1000,13 +1110,9 @@ class ASSETBROWSER_PT_metadata(
|
|
|
1000
1110
|
"""
|
|
1001
1111
|
...
|
|
1002
1112
|
|
|
1003
|
-
class
|
|
1004
|
-
bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
|
|
1005
|
-
):
|
|
1113
|
+
class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
|
|
1006
1114
|
bl_label: typing.Any
|
|
1007
|
-
bl_region_type: typing.Any
|
|
1008
1115
|
bl_rna: typing.Any
|
|
1009
|
-
bl_space_type: typing.Any
|
|
1010
1116
|
id_data: typing.Any
|
|
1011
1117
|
|
|
1012
1118
|
def append(self, draw_func):
|
|
@@ -1041,20 +1147,40 @@ class ASSETBROWSER_PT_metadata_preview(
|
|
|
1041
1147
|
"""
|
|
1042
1148
|
...
|
|
1043
1149
|
|
|
1044
|
-
def draw(self,
|
|
1150
|
+
def draw(self, _context):
|
|
1045
1151
|
"""
|
|
1046
1152
|
|
|
1047
|
-
:param
|
|
1153
|
+
:param _context:
|
|
1048
1154
|
"""
|
|
1049
1155
|
...
|
|
1050
1156
|
|
|
1051
|
-
def
|
|
1052
|
-
"""Adds driver(s) to the given property
|
|
1053
|
-
|
|
1054
|
-
:return: The driver(s) added.
|
|
1055
|
-
:rtype: bpy.types.FCurve
|
|
1157
|
+
def draw_collapsible(self, context, layout):
|
|
1056
1158
|
"""
|
|
1057
|
-
|
|
1159
|
+
|
|
1160
|
+
:param context:
|
|
1161
|
+
:param layout:
|
|
1162
|
+
"""
|
|
1163
|
+
...
|
|
1164
|
+
|
|
1165
|
+
def draw_preset(self, _context):
|
|
1166
|
+
"""Define these on the subclass:
|
|
1167
|
+
- preset_operator (string)
|
|
1168
|
+
- preset_subdir (string)Optionally:
|
|
1169
|
+
- preset_add_operator (string)
|
|
1170
|
+
- preset_extensions (set of strings)
|
|
1171
|
+
- preset_operator_defaults (dict of keyword args)
|
|
1172
|
+
|
|
1173
|
+
:param _context:
|
|
1174
|
+
"""
|
|
1175
|
+
...
|
|
1176
|
+
|
|
1177
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
1178
|
+
"""Adds driver(s) to the given property
|
|
1179
|
+
|
|
1180
|
+
:return: The driver(s) added.
|
|
1181
|
+
:rtype: bpy.types.FCurve
|
|
1182
|
+
"""
|
|
1183
|
+
...
|
|
1058
1184
|
|
|
1059
1185
|
def driver_remove(self) -> bool:
|
|
1060
1186
|
"""Remove driver(s) from the given property
|
|
@@ -1166,6 +1292,40 @@ class ASSETBROWSER_PT_metadata_preview(
|
|
|
1166
1292
|
"""
|
|
1167
1293
|
...
|
|
1168
1294
|
|
|
1295
|
+
def path_menu(
|
|
1296
|
+
self,
|
|
1297
|
+
searchpaths: list[str],
|
|
1298
|
+
operator: str,
|
|
1299
|
+
props_default: dict = None,
|
|
1300
|
+
prop_filepath: str | None = "filepath",
|
|
1301
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1302
|
+
filter_path=None,
|
|
1303
|
+
display_name: collections.abc.Callable | None = None,
|
|
1304
|
+
add_operator=None,
|
|
1305
|
+
add_operator_props=None,
|
|
1306
|
+
):
|
|
1307
|
+
"""Populate a menu from a list of paths.
|
|
1308
|
+
|
|
1309
|
+
:param searchpaths: Paths to scan.
|
|
1310
|
+
:type searchpaths: list[str]
|
|
1311
|
+
:param operator: The operator id to use with each file.
|
|
1312
|
+
:type operator: str
|
|
1313
|
+
:param props_default: Properties to assign to each operator.
|
|
1314
|
+
:type props_default: dict
|
|
1315
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1316
|
+
:type prop_filepath: str | None
|
|
1317
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
1318
|
+
|
|
1319
|
+
Returning false excludes the file from the list.
|
|
1320
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1321
|
+
:param filter_path:
|
|
1322
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1323
|
+
:type display_name: collections.abc.Callable | None
|
|
1324
|
+
:param add_operator:
|
|
1325
|
+
:param add_operator_props:
|
|
1326
|
+
"""
|
|
1327
|
+
...
|
|
1328
|
+
|
|
1169
1329
|
def path_resolve(self):
|
|
1170
1330
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1171
1331
|
...
|
|
@@ -1227,13 +1387,9 @@ class ASSETBROWSER_PT_metadata_preview(
|
|
|
1227
1387
|
"""
|
|
1228
1388
|
...
|
|
1229
1389
|
|
|
1230
|
-
class
|
|
1231
|
-
bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
|
|
1232
|
-
):
|
|
1390
|
+
class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
|
|
1233
1391
|
bl_label: typing.Any
|
|
1234
|
-
bl_region_type: typing.Any
|
|
1235
1392
|
bl_rna: typing.Any
|
|
1236
|
-
bl_space_type: typing.Any
|
|
1237
1393
|
id_data: typing.Any
|
|
1238
1394
|
|
|
1239
1395
|
def append(self, draw_func):
|
|
@@ -1275,6 +1431,26 @@ class ASSETBROWSER_PT_metadata_tags(
|
|
|
1275
1431
|
"""
|
|
1276
1432
|
...
|
|
1277
1433
|
|
|
1434
|
+
def draw_collapsible(self, context, layout):
|
|
1435
|
+
"""
|
|
1436
|
+
|
|
1437
|
+
:param context:
|
|
1438
|
+
:param layout:
|
|
1439
|
+
"""
|
|
1440
|
+
...
|
|
1441
|
+
|
|
1442
|
+
def draw_preset(self, _context):
|
|
1443
|
+
"""Define these on the subclass:
|
|
1444
|
+
- preset_operator (string)
|
|
1445
|
+
- preset_subdir (string)Optionally:
|
|
1446
|
+
- preset_add_operator (string)
|
|
1447
|
+
- preset_extensions (set of strings)
|
|
1448
|
+
- preset_operator_defaults (dict of keyword args)
|
|
1449
|
+
|
|
1450
|
+
:param _context:
|
|
1451
|
+
"""
|
|
1452
|
+
...
|
|
1453
|
+
|
|
1278
1454
|
def driver_add(self) -> bpy.types.FCurve:
|
|
1279
1455
|
"""Adds driver(s) to the given property
|
|
1280
1456
|
|
|
@@ -1393,6 +1569,40 @@ class ASSETBROWSER_PT_metadata_tags(
|
|
|
1393
1569
|
"""
|
|
1394
1570
|
...
|
|
1395
1571
|
|
|
1572
|
+
def path_menu(
|
|
1573
|
+
self,
|
|
1574
|
+
searchpaths: list[str],
|
|
1575
|
+
operator: str,
|
|
1576
|
+
props_default: dict = None,
|
|
1577
|
+
prop_filepath: str | None = "filepath",
|
|
1578
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1579
|
+
filter_path=None,
|
|
1580
|
+
display_name: collections.abc.Callable | None = None,
|
|
1581
|
+
add_operator=None,
|
|
1582
|
+
add_operator_props=None,
|
|
1583
|
+
):
|
|
1584
|
+
"""Populate a menu from a list of paths.
|
|
1585
|
+
|
|
1586
|
+
:param searchpaths: Paths to scan.
|
|
1587
|
+
:type searchpaths: list[str]
|
|
1588
|
+
:param operator: The operator id to use with each file.
|
|
1589
|
+
:type operator: str
|
|
1590
|
+
:param props_default: Properties to assign to each operator.
|
|
1591
|
+
:type props_default: dict
|
|
1592
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1593
|
+
:type prop_filepath: str | None
|
|
1594
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
1595
|
+
|
|
1596
|
+
Returning false excludes the file from the list.
|
|
1597
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1598
|
+
:param filter_path:
|
|
1599
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1600
|
+
:type display_name: collections.abc.Callable | None
|
|
1601
|
+
:param add_operator:
|
|
1602
|
+
:param add_operator_props:
|
|
1603
|
+
"""
|
|
1604
|
+
...
|
|
1605
|
+
|
|
1396
1606
|
def path_resolve(self):
|
|
1397
1607
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1398
1608
|
...
|
|
@@ -1454,8 +1664,14 @@ class ASSETBROWSER_PT_metadata_tags(
|
|
|
1454
1664
|
"""
|
|
1455
1665
|
...
|
|
1456
1666
|
|
|
1457
|
-
class
|
|
1667
|
+
class ASSETBROWSER_PT_display(
|
|
1668
|
+
bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
|
|
1669
|
+
):
|
|
1670
|
+
bl_label: typing.Any
|
|
1671
|
+
bl_region_type: typing.Any
|
|
1458
1672
|
bl_rna: typing.Any
|
|
1673
|
+
bl_space_type: typing.Any
|
|
1674
|
+
bl_ui_units_x: typing.Any
|
|
1459
1675
|
id_data: typing.Any
|
|
1460
1676
|
|
|
1461
1677
|
def append(self, draw_func):
|
|
@@ -1474,6 +1690,13 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
|
|
|
1474
1690
|
"""
|
|
1475
1691
|
...
|
|
1476
1692
|
|
|
1693
|
+
def asset_browser_panel_poll(self, context):
|
|
1694
|
+
"""
|
|
1695
|
+
|
|
1696
|
+
:param context:
|
|
1697
|
+
"""
|
|
1698
|
+
...
|
|
1699
|
+
|
|
1477
1700
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1478
1701
|
"""
|
|
1479
1702
|
|
|
@@ -1490,27 +1713,10 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
|
|
|
1490
1713
|
"""
|
|
1491
1714
|
...
|
|
1492
1715
|
|
|
1493
|
-
def
|
|
1494
|
-
self,
|
|
1495
|
-
_context,
|
|
1496
|
-
layout,
|
|
1497
|
-
_data,
|
|
1498
|
-
item,
|
|
1499
|
-
icon,
|
|
1500
|
-
_active_data,
|
|
1501
|
-
_active_propname,
|
|
1502
|
-
_index,
|
|
1503
|
-
):
|
|
1716
|
+
def draw(self, context):
|
|
1504
1717
|
"""
|
|
1505
1718
|
|
|
1506
|
-
:param
|
|
1507
|
-
:param layout:
|
|
1508
|
-
:param _data:
|
|
1509
|
-
:param item:
|
|
1510
|
-
:param icon:
|
|
1511
|
-
:param _active_data:
|
|
1512
|
-
:param _active_propname:
|
|
1513
|
-
:param _index:
|
|
1719
|
+
:param context:
|
|
1514
1720
|
"""
|
|
1515
1721
|
...
|
|
1516
1722
|
|
|
@@ -1636,6 +1842,13 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
|
|
|
1636
1842
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1637
1843
|
...
|
|
1638
1844
|
|
|
1845
|
+
def poll(self, context):
|
|
1846
|
+
"""
|
|
1847
|
+
|
|
1848
|
+
:param context:
|
|
1849
|
+
"""
|
|
1850
|
+
...
|
|
1851
|
+
|
|
1639
1852
|
def pop(self):
|
|
1640
1853
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1641
1854
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1686,7 +1899,12 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
|
|
|
1686
1899
|
"""
|
|
1687
1900
|
...
|
|
1688
1901
|
|
|
1689
|
-
class
|
|
1902
|
+
class ASSETBROWSER_PT_filter(
|
|
1903
|
+
bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
|
|
1904
|
+
):
|
|
1905
|
+
bl_category: typing.Any
|
|
1906
|
+
bl_label: typing.Any
|
|
1907
|
+
bl_region_type: typing.Any
|
|
1690
1908
|
bl_rna: typing.Any
|
|
1691
1909
|
bl_space_type: typing.Any
|
|
1692
1910
|
id_data: typing.Any
|
|
@@ -1707,6 +1925,13 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
|
|
|
1707
1925
|
"""
|
|
1708
1926
|
...
|
|
1709
1927
|
|
|
1928
|
+
def asset_browser_panel_poll(self, context):
|
|
1929
|
+
"""
|
|
1930
|
+
|
|
1931
|
+
:param context:
|
|
1932
|
+
"""
|
|
1933
|
+
...
|
|
1934
|
+
|
|
1710
1935
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1711
1936
|
"""
|
|
1712
1937
|
|
|
@@ -1730,13 +1955,6 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
|
|
|
1730
1955
|
"""
|
|
1731
1956
|
...
|
|
1732
1957
|
|
|
1733
|
-
def draw_asset_browser_buttons(self, context):
|
|
1734
|
-
"""
|
|
1735
|
-
|
|
1736
|
-
:param context:
|
|
1737
|
-
"""
|
|
1738
|
-
...
|
|
1739
|
-
|
|
1740
1958
|
def driver_add(self) -> bpy.types.FCurve:
|
|
1741
1959
|
"""Adds driver(s) to the given property
|
|
1742
1960
|
|
|
@@ -1859,6 +2077,13 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
|
|
|
1859
2077
|
"""Returns the property from the path, raise an exception when not found."""
|
|
1860
2078
|
...
|
|
1861
2079
|
|
|
2080
|
+
def poll(self, context):
|
|
2081
|
+
"""
|
|
2082
|
+
|
|
2083
|
+
:param context:
|
|
2084
|
+
"""
|
|
2085
|
+
...
|
|
2086
|
+
|
|
1862
2087
|
def pop(self):
|
|
1863
2088
|
"""Remove and return the value of the custom property assigned to key or default
|
|
1864
2089
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -1909,9 +2134,14 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
|
|
|
1909
2134
|
"""
|
|
1910
2135
|
...
|
|
1911
2136
|
|
|
1912
|
-
class
|
|
2137
|
+
class ASSETBROWSER_PT_metadata(
|
|
2138
|
+
bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
|
|
2139
|
+
):
|
|
1913
2140
|
bl_label: typing.Any
|
|
2141
|
+
bl_options: typing.Any
|
|
2142
|
+
bl_region_type: typing.Any
|
|
1914
2143
|
bl_rna: typing.Any
|
|
2144
|
+
bl_space_type: typing.Any
|
|
1915
2145
|
id_data: typing.Any
|
|
1916
2146
|
|
|
1917
2147
|
def append(self, draw_func):
|
|
@@ -1930,6 +2160,13 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
|
1930
2160
|
"""
|
|
1931
2161
|
...
|
|
1932
2162
|
|
|
2163
|
+
def asset_browser_panel_poll(self, context):
|
|
2164
|
+
"""
|
|
2165
|
+
|
|
2166
|
+
:param context:
|
|
2167
|
+
"""
|
|
2168
|
+
...
|
|
2169
|
+
|
|
1933
2170
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1934
2171
|
"""
|
|
1935
2172
|
|
|
@@ -1946,30 +2183,10 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
|
1946
2183
|
"""
|
|
1947
2184
|
...
|
|
1948
2185
|
|
|
1949
|
-
def draw(self,
|
|
1950
|
-
"""
|
|
1951
|
-
|
|
1952
|
-
:param _context:
|
|
1953
|
-
"""
|
|
1954
|
-
...
|
|
1955
|
-
|
|
1956
|
-
def draw_collapsible(self, context, layout):
|
|
2186
|
+
def draw(self, context):
|
|
1957
2187
|
"""
|
|
1958
2188
|
|
|
1959
2189
|
:param context:
|
|
1960
|
-
:param layout:
|
|
1961
|
-
"""
|
|
1962
|
-
...
|
|
1963
|
-
|
|
1964
|
-
def draw_preset(self, _context):
|
|
1965
|
-
"""Define these on the subclass:
|
|
1966
|
-
- preset_operator (string)
|
|
1967
|
-
- preset_subdir (string)Optionally:
|
|
1968
|
-
- preset_add_operator (string)
|
|
1969
|
-
- preset_extensions (set of strings)
|
|
1970
|
-
- preset_operator_defaults (dict of keyword args)
|
|
1971
|
-
|
|
1972
|
-
:param _context:
|
|
1973
2190
|
"""
|
|
1974
2191
|
...
|
|
1975
2192
|
|
|
@@ -2082,6 +2299,16 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
|
2082
2299
|
"""
|
|
2083
2300
|
...
|
|
2084
2301
|
|
|
2302
|
+
def metadata_prop(self, layout, asset_metadata, propname):
|
|
2303
|
+
"""Only display properties that are either set or can be modified (i.e. the
|
|
2304
|
+
asset is in the current file). Empty, non-editable fields are not really useful.
|
|
2305
|
+
|
|
2306
|
+
:param layout:
|
|
2307
|
+
:param asset_metadata:
|
|
2308
|
+
:param propname:
|
|
2309
|
+
"""
|
|
2310
|
+
...
|
|
2311
|
+
|
|
2085
2312
|
def path_from_id(self) -> str:
|
|
2086
2313
|
"""Returns the data path from the ID to this object (string).
|
|
2087
2314
|
|
|
@@ -2091,42 +2318,15 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
|
2091
2318
|
"""
|
|
2092
2319
|
...
|
|
2093
2320
|
|
|
2094
|
-
def
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
operator: str,
|
|
2098
|
-
props_default: dict = None,
|
|
2099
|
-
prop_filepath: str | None = "filepath",
|
|
2100
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
2101
|
-
filter_path=None,
|
|
2102
|
-
display_name: collections.abc.Callable | None = None,
|
|
2103
|
-
add_operator=None,
|
|
2104
|
-
add_operator_props=None,
|
|
2105
|
-
):
|
|
2106
|
-
"""Populate a menu from a list of paths.
|
|
2321
|
+
def path_resolve(self):
|
|
2322
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
2323
|
+
...
|
|
2107
2324
|
|
|
2108
|
-
|
|
2109
|
-
:type searchpaths: list[str]
|
|
2110
|
-
:param operator: The operator id to use with each file.
|
|
2111
|
-
:type operator: str
|
|
2112
|
-
:param props_default: Properties to assign to each operator.
|
|
2113
|
-
:type props_default: dict
|
|
2114
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
2115
|
-
:type prop_filepath: str | None
|
|
2116
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
2117
|
-
|
|
2118
|
-
Returning false excludes the file from the list.
|
|
2119
|
-
:type filter_ext: collections.abc.Callable | None
|
|
2120
|
-
:param filter_path:
|
|
2121
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
2122
|
-
:type display_name: collections.abc.Callable | None
|
|
2123
|
-
:param add_operator:
|
|
2124
|
-
:param add_operator_props:
|
|
2325
|
+
def poll(self, context):
|
|
2125
2326
|
"""
|
|
2126
|
-
...
|
|
2127
2327
|
|
|
2128
|
-
|
|
2129
|
-
"""
|
|
2328
|
+
:param context:
|
|
2329
|
+
"""
|
|
2130
2330
|
...
|
|
2131
2331
|
|
|
2132
2332
|
def pop(self):
|
|
@@ -2179,9 +2379,13 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
|
2179
2379
|
"""
|
|
2180
2380
|
...
|
|
2181
2381
|
|
|
2182
|
-
class
|
|
2382
|
+
class ASSETBROWSER_PT_metadata_preview(
|
|
2383
|
+
bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
|
|
2384
|
+
):
|
|
2183
2385
|
bl_label: typing.Any
|
|
2386
|
+
bl_region_type: typing.Any
|
|
2184
2387
|
bl_rna: typing.Any
|
|
2388
|
+
bl_space_type: typing.Any
|
|
2185
2389
|
id_data: typing.Any
|
|
2186
2390
|
|
|
2187
2391
|
def append(self, draw_func):
|
|
@@ -2216,30 +2420,10 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
|
|
|
2216
2420
|
"""
|
|
2217
2421
|
...
|
|
2218
2422
|
|
|
2219
|
-
def draw(self,
|
|
2220
|
-
"""
|
|
2221
|
-
|
|
2222
|
-
:param _context:
|
|
2223
|
-
"""
|
|
2224
|
-
...
|
|
2225
|
-
|
|
2226
|
-
def draw_collapsible(self, context, layout):
|
|
2423
|
+
def draw(self, context):
|
|
2227
2424
|
"""
|
|
2228
2425
|
|
|
2229
2426
|
:param context:
|
|
2230
|
-
:param layout:
|
|
2231
|
-
"""
|
|
2232
|
-
...
|
|
2233
|
-
|
|
2234
|
-
def draw_preset(self, _context):
|
|
2235
|
-
"""Define these on the subclass:
|
|
2236
|
-
- preset_operator (string)
|
|
2237
|
-
- preset_subdir (string)Optionally:
|
|
2238
|
-
- preset_add_operator (string)
|
|
2239
|
-
- preset_extensions (set of strings)
|
|
2240
|
-
- preset_operator_defaults (dict of keyword args)
|
|
2241
|
-
|
|
2242
|
-
:param _context:
|
|
2243
2427
|
"""
|
|
2244
2428
|
...
|
|
2245
2429
|
|
|
@@ -2361,42 +2545,15 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
|
|
|
2361
2545
|
"""
|
|
2362
2546
|
...
|
|
2363
2547
|
|
|
2364
|
-
def
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
operator: str,
|
|
2368
|
-
props_default: dict = None,
|
|
2369
|
-
prop_filepath: str | None = "filepath",
|
|
2370
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
2371
|
-
filter_path=None,
|
|
2372
|
-
display_name: collections.abc.Callable | None = None,
|
|
2373
|
-
add_operator=None,
|
|
2374
|
-
add_operator_props=None,
|
|
2375
|
-
):
|
|
2376
|
-
"""Populate a menu from a list of paths.
|
|
2377
|
-
|
|
2378
|
-
:param searchpaths: Paths to scan.
|
|
2379
|
-
:type searchpaths: list[str]
|
|
2380
|
-
:param operator: The operator id to use with each file.
|
|
2381
|
-
:type operator: str
|
|
2382
|
-
:param props_default: Properties to assign to each operator.
|
|
2383
|
-
:type props_default: dict
|
|
2384
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
2385
|
-
:type prop_filepath: str | None
|
|
2386
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
2548
|
+
def path_resolve(self):
|
|
2549
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
2550
|
+
...
|
|
2387
2551
|
|
|
2388
|
-
|
|
2389
|
-
:type filter_ext: collections.abc.Callable | None
|
|
2390
|
-
:param filter_path:
|
|
2391
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
2392
|
-
:type display_name: collections.abc.Callable | None
|
|
2393
|
-
:param add_operator:
|
|
2394
|
-
:param add_operator_props:
|
|
2552
|
+
def poll(self, context):
|
|
2395
2553
|
"""
|
|
2396
|
-
...
|
|
2397
2554
|
|
|
2398
|
-
|
|
2399
|
-
"""
|
|
2555
|
+
:param context:
|
|
2556
|
+
"""
|
|
2400
2557
|
...
|
|
2401
2558
|
|
|
2402
2559
|
def pop(self):
|
|
@@ -2449,18 +2606,13 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
|
|
|
2449
2606
|
"""
|
|
2450
2607
|
...
|
|
2451
2608
|
|
|
2452
|
-
class
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
:param context:
|
|
2457
|
-
"""
|
|
2458
|
-
...
|
|
2459
|
-
|
|
2460
|
-
class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
|
|
2461
|
-
bl_idname: typing.Any
|
|
2609
|
+
class ASSETBROWSER_PT_metadata_tags(
|
|
2610
|
+
bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
|
|
2611
|
+
):
|
|
2462
2612
|
bl_label: typing.Any
|
|
2613
|
+
bl_region_type: typing.Any
|
|
2463
2614
|
bl_rna: typing.Any
|
|
2615
|
+
bl_space_type: typing.Any
|
|
2464
2616
|
id_data: typing.Any
|
|
2465
2617
|
|
|
2466
2618
|
def append(self, draw_func):
|
|
@@ -2502,26 +2654,6 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
|
|
|
2502
2654
|
"""
|
|
2503
2655
|
...
|
|
2504
2656
|
|
|
2505
|
-
def draw_collapsible(self, context, layout):
|
|
2506
|
-
"""
|
|
2507
|
-
|
|
2508
|
-
:param context:
|
|
2509
|
-
:param layout:
|
|
2510
|
-
"""
|
|
2511
|
-
...
|
|
2512
|
-
|
|
2513
|
-
def draw_preset(self, _context):
|
|
2514
|
-
"""Define these on the subclass:
|
|
2515
|
-
- preset_operator (string)
|
|
2516
|
-
- preset_subdir (string)Optionally:
|
|
2517
|
-
- preset_add_operator (string)
|
|
2518
|
-
- preset_extensions (set of strings)
|
|
2519
|
-
- preset_operator_defaults (dict of keyword args)
|
|
2520
|
-
|
|
2521
|
-
:param _context:
|
|
2522
|
-
"""
|
|
2523
|
-
...
|
|
2524
|
-
|
|
2525
2657
|
def driver_add(self) -> bpy.types.FCurve:
|
|
2526
2658
|
"""Adds driver(s) to the given property
|
|
2527
2659
|
|
|
@@ -2640,42 +2772,15 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
|
|
|
2640
2772
|
"""
|
|
2641
2773
|
...
|
|
2642
2774
|
|
|
2643
|
-
def
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
operator: str,
|
|
2647
|
-
props_default: dict = None,
|
|
2648
|
-
prop_filepath: str | None = "filepath",
|
|
2649
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
2650
|
-
filter_path=None,
|
|
2651
|
-
display_name: collections.abc.Callable | None = None,
|
|
2652
|
-
add_operator=None,
|
|
2653
|
-
add_operator_props=None,
|
|
2654
|
-
):
|
|
2655
|
-
"""Populate a menu from a list of paths.
|
|
2656
|
-
|
|
2657
|
-
:param searchpaths: Paths to scan.
|
|
2658
|
-
:type searchpaths: list[str]
|
|
2659
|
-
:param operator: The operator id to use with each file.
|
|
2660
|
-
:type operator: str
|
|
2661
|
-
:param props_default: Properties to assign to each operator.
|
|
2662
|
-
:type props_default: dict
|
|
2663
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
2664
|
-
:type prop_filepath: str | None
|
|
2665
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
2775
|
+
def path_resolve(self):
|
|
2776
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
2777
|
+
...
|
|
2666
2778
|
|
|
2667
|
-
|
|
2668
|
-
:type filter_ext: collections.abc.Callable | None
|
|
2669
|
-
:param filter_path:
|
|
2670
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
2671
|
-
:type display_name: collections.abc.Callable | None
|
|
2672
|
-
:param add_operator:
|
|
2673
|
-
:param add_operator_props:
|
|
2779
|
+
def poll(self, context):
|
|
2674
2780
|
"""
|
|
2675
|
-
...
|
|
2676
2781
|
|
|
2677
|
-
|
|
2678
|
-
"""
|
|
2782
|
+
:param context:
|
|
2783
|
+
"""
|
|
2679
2784
|
...
|
|
2680
2785
|
|
|
2681
2786
|
def pop(self):
|
|
@@ -2728,12 +2833,8 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
|
|
|
2728
2833
|
"""
|
|
2729
2834
|
...
|
|
2730
2835
|
|
|
2731
|
-
class
|
|
2732
|
-
bl_category: typing.Any
|
|
2733
|
-
bl_label: typing.Any
|
|
2734
|
-
bl_region_type: typing.Any
|
|
2836
|
+
class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
|
|
2735
2837
|
bl_rna: typing.Any
|
|
2736
|
-
bl_space_type: typing.Any
|
|
2737
2838
|
id_data: typing.Any
|
|
2738
2839
|
|
|
2739
2840
|
def append(self, draw_func):
|
|
@@ -2768,10 +2869,27 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
|
|
|
2768
2869
|
"""
|
|
2769
2870
|
...
|
|
2770
2871
|
|
|
2771
|
-
def
|
|
2872
|
+
def draw_item(
|
|
2873
|
+
self,
|
|
2874
|
+
_context,
|
|
2875
|
+
layout,
|
|
2876
|
+
_data,
|
|
2877
|
+
item,
|
|
2878
|
+
icon,
|
|
2879
|
+
_active_data,
|
|
2880
|
+
_active_propname,
|
|
2881
|
+
_index,
|
|
2882
|
+
):
|
|
2772
2883
|
"""
|
|
2773
2884
|
|
|
2774
|
-
:param
|
|
2885
|
+
:param _context:
|
|
2886
|
+
:param layout:
|
|
2887
|
+
:param _data:
|
|
2888
|
+
:param item:
|
|
2889
|
+
:param icon:
|
|
2890
|
+
:param _active_data:
|
|
2891
|
+
:param _active_propname:
|
|
2892
|
+
:param _index:
|
|
2775
2893
|
"""
|
|
2776
2894
|
...
|
|
2777
2895
|
|
|
@@ -2897,13 +3015,6 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
|
|
|
2897
3015
|
"""Returns the property from the path, raise an exception when not found."""
|
|
2898
3016
|
...
|
|
2899
3017
|
|
|
2900
|
-
def poll(self, context):
|
|
2901
|
-
"""
|
|
2902
|
-
|
|
2903
|
-
:param context:
|
|
2904
|
-
"""
|
|
2905
|
-
...
|
|
2906
|
-
|
|
2907
3018
|
def pop(self):
|
|
2908
3019
|
"""Remove and return the value of the custom property assigned to key or default
|
|
2909
3020
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -2954,9 +3065,7 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
|
|
|
2954
3065
|
"""
|
|
2955
3066
|
...
|
|
2956
3067
|
|
|
2957
|
-
class
|
|
2958
|
-
bl_space_type: typing.Any
|
|
2959
|
-
|
|
3068
|
+
class AssetBrowserMenu:
|
|
2960
3069
|
def poll(self, context):
|
|
2961
3070
|
"""
|
|
2962
3071
|
|
|
@@ -2964,10 +3073,7 @@ class FileBrowserPanel:
|
|
|
2964
3073
|
"""
|
|
2965
3074
|
...
|
|
2966
3075
|
|
|
2967
|
-
class
|
|
2968
|
-
bl_category: typing.Any
|
|
2969
|
-
bl_label: typing.Any
|
|
2970
|
-
bl_region_type: typing.Any
|
|
3076
|
+
class FILEBROWSER_HT_header(bpy_types._GenericUI):
|
|
2971
3077
|
bl_rna: typing.Any
|
|
2972
3078
|
bl_space_type: typing.Any
|
|
2973
3079
|
id_data: typing.Any
|
|
@@ -3011,6 +3117,13 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
|
|
|
3011
3117
|
"""
|
|
3012
3118
|
...
|
|
3013
3119
|
|
|
3120
|
+
def draw_asset_browser_buttons(self, context):
|
|
3121
|
+
"""
|
|
3122
|
+
|
|
3123
|
+
:param context:
|
|
3124
|
+
"""
|
|
3125
|
+
...
|
|
3126
|
+
|
|
3014
3127
|
def driver_add(self) -> bpy.types.FCurve:
|
|
3015
3128
|
"""Adds driver(s) to the given property
|
|
3016
3129
|
|
|
@@ -3133,13 +3246,6 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
|
|
|
3133
3246
|
"""Returns the property from the path, raise an exception when not found."""
|
|
3134
3247
|
...
|
|
3135
3248
|
|
|
3136
|
-
def poll(self, context):
|
|
3137
|
-
"""
|
|
3138
|
-
|
|
3139
|
-
:param context:
|
|
3140
|
-
"""
|
|
3141
|
-
...
|
|
3142
|
-
|
|
3143
3249
|
def pop(self):
|
|
3144
3250
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3145
3251
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3190,12 +3296,9 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
|
|
|
3190
3296
|
"""
|
|
3191
3297
|
...
|
|
3192
3298
|
|
|
3193
|
-
class
|
|
3194
|
-
bl_category: typing.Any
|
|
3299
|
+
class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
|
|
3195
3300
|
bl_label: typing.Any
|
|
3196
|
-
bl_region_type: typing.Any
|
|
3197
3301
|
bl_rna: typing.Any
|
|
3198
|
-
bl_space_type: typing.Any
|
|
3199
3302
|
id_data: typing.Any
|
|
3200
3303
|
|
|
3201
3304
|
def append(self, draw_func):
|
|
@@ -3230,10 +3333,30 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
|
|
|
3230
3333
|
"""
|
|
3231
3334
|
...
|
|
3232
3335
|
|
|
3233
|
-
def draw(self,
|
|
3336
|
+
def draw(self, _context):
|
|
3337
|
+
"""
|
|
3338
|
+
|
|
3339
|
+
:param _context:
|
|
3340
|
+
"""
|
|
3341
|
+
...
|
|
3342
|
+
|
|
3343
|
+
def draw_collapsible(self, context, layout):
|
|
3234
3344
|
"""
|
|
3235
3345
|
|
|
3236
3346
|
:param context:
|
|
3347
|
+
:param layout:
|
|
3348
|
+
"""
|
|
3349
|
+
...
|
|
3350
|
+
|
|
3351
|
+
def draw_preset(self, _context):
|
|
3352
|
+
"""Define these on the subclass:
|
|
3353
|
+
- preset_operator (string)
|
|
3354
|
+
- preset_subdir (string)Optionally:
|
|
3355
|
+
- preset_add_operator (string)
|
|
3356
|
+
- preset_extensions (set of strings)
|
|
3357
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3358
|
+
|
|
3359
|
+
:param _context:
|
|
3237
3360
|
"""
|
|
3238
3361
|
...
|
|
3239
3362
|
|
|
@@ -3355,17 +3478,44 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
|
|
|
3355
3478
|
"""
|
|
3356
3479
|
...
|
|
3357
3480
|
|
|
3358
|
-
def
|
|
3359
|
-
|
|
3360
|
-
|
|
3481
|
+
def path_menu(
|
|
3482
|
+
self,
|
|
3483
|
+
searchpaths: list[str],
|
|
3484
|
+
operator: str,
|
|
3485
|
+
props_default: dict = None,
|
|
3486
|
+
prop_filepath: str | None = "filepath",
|
|
3487
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3488
|
+
filter_path=None,
|
|
3489
|
+
display_name: collections.abc.Callable | None = None,
|
|
3490
|
+
add_operator=None,
|
|
3491
|
+
add_operator_props=None,
|
|
3492
|
+
):
|
|
3493
|
+
"""Populate a menu from a list of paths.
|
|
3361
3494
|
|
|
3362
|
-
|
|
3363
|
-
|
|
3495
|
+
:param searchpaths: Paths to scan.
|
|
3496
|
+
:type searchpaths: list[str]
|
|
3497
|
+
:param operator: The operator id to use with each file.
|
|
3498
|
+
:type operator: str
|
|
3499
|
+
:param props_default: Properties to assign to each operator.
|
|
3500
|
+
:type props_default: dict
|
|
3501
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3502
|
+
:type prop_filepath: str | None
|
|
3503
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
3364
3504
|
|
|
3365
|
-
|
|
3505
|
+
Returning false excludes the file from the list.
|
|
3506
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3507
|
+
:param filter_path:
|
|
3508
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3509
|
+
:type display_name: collections.abc.Callable | None
|
|
3510
|
+
:param add_operator:
|
|
3511
|
+
:param add_operator_props:
|
|
3366
3512
|
"""
|
|
3367
3513
|
...
|
|
3368
3514
|
|
|
3515
|
+
def path_resolve(self):
|
|
3516
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
3517
|
+
...
|
|
3518
|
+
|
|
3369
3519
|
def pop(self):
|
|
3370
3520
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3371
3521
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3416,13 +3566,9 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
|
|
|
3416
3566
|
"""
|
|
3417
3567
|
...
|
|
3418
3568
|
|
|
3419
|
-
class
|
|
3420
|
-
bl_category: typing.Any
|
|
3569
|
+
class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
|
|
3421
3570
|
bl_label: typing.Any
|
|
3422
|
-
bl_region_type: typing.Any
|
|
3423
3571
|
bl_rna: typing.Any
|
|
3424
|
-
bl_space_type: typing.Any
|
|
3425
|
-
bl_translation_context: typing.Any
|
|
3426
3572
|
id_data: typing.Any
|
|
3427
3573
|
|
|
3428
3574
|
def append(self, draw_func):
|
|
@@ -3457,10 +3603,30 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
|
|
|
3457
3603
|
"""
|
|
3458
3604
|
...
|
|
3459
3605
|
|
|
3460
|
-
def draw(self,
|
|
3606
|
+
def draw(self, _context):
|
|
3607
|
+
"""
|
|
3608
|
+
|
|
3609
|
+
:param _context:
|
|
3610
|
+
"""
|
|
3611
|
+
...
|
|
3612
|
+
|
|
3613
|
+
def draw_collapsible(self, context, layout):
|
|
3461
3614
|
"""
|
|
3462
3615
|
|
|
3463
3616
|
:param context:
|
|
3617
|
+
:param layout:
|
|
3618
|
+
"""
|
|
3619
|
+
...
|
|
3620
|
+
|
|
3621
|
+
def draw_preset(self, _context):
|
|
3622
|
+
"""Define these on the subclass:
|
|
3623
|
+
- preset_operator (string)
|
|
3624
|
+
- preset_subdir (string)Optionally:
|
|
3625
|
+
- preset_add_operator (string)
|
|
3626
|
+
- preset_extensions (set of strings)
|
|
3627
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3628
|
+
|
|
3629
|
+
:param _context:
|
|
3464
3630
|
"""
|
|
3465
3631
|
...
|
|
3466
3632
|
|
|
@@ -3582,17 +3748,44 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
|
|
|
3582
3748
|
"""
|
|
3583
3749
|
...
|
|
3584
3750
|
|
|
3585
|
-
def
|
|
3586
|
-
|
|
3587
|
-
|
|
3751
|
+
def path_menu(
|
|
3752
|
+
self,
|
|
3753
|
+
searchpaths: list[str],
|
|
3754
|
+
operator: str,
|
|
3755
|
+
props_default: dict = None,
|
|
3756
|
+
prop_filepath: str | None = "filepath",
|
|
3757
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3758
|
+
filter_path=None,
|
|
3759
|
+
display_name: collections.abc.Callable | None = None,
|
|
3760
|
+
add_operator=None,
|
|
3761
|
+
add_operator_props=None,
|
|
3762
|
+
):
|
|
3763
|
+
"""Populate a menu from a list of paths.
|
|
3588
3764
|
|
|
3589
|
-
|
|
3590
|
-
|
|
3765
|
+
:param searchpaths: Paths to scan.
|
|
3766
|
+
:type searchpaths: list[str]
|
|
3767
|
+
:param operator: The operator id to use with each file.
|
|
3768
|
+
:type operator: str
|
|
3769
|
+
:param props_default: Properties to assign to each operator.
|
|
3770
|
+
:type props_default: dict
|
|
3771
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3772
|
+
:type prop_filepath: str | None
|
|
3773
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
3591
3774
|
|
|
3592
|
-
|
|
3775
|
+
Returning false excludes the file from the list.
|
|
3776
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3777
|
+
:param filter_path:
|
|
3778
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3779
|
+
:type display_name: collections.abc.Callable | None
|
|
3780
|
+
:param add_operator:
|
|
3781
|
+
:param add_operator_props:
|
|
3593
3782
|
"""
|
|
3594
3783
|
...
|
|
3595
3784
|
|
|
3785
|
+
def path_resolve(self):
|
|
3786
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
3787
|
+
...
|
|
3788
|
+
|
|
3596
3789
|
def pop(self):
|
|
3597
3790
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3598
3791
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3643,13 +3836,9 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
|
|
|
3643
3836
|
"""
|
|
3644
3837
|
...
|
|
3645
3838
|
|
|
3646
|
-
class
|
|
3647
|
-
bl_category: typing.Any
|
|
3839
|
+
class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
|
|
3648
3840
|
bl_label: typing.Any
|
|
3649
|
-
bl_options: typing.Any
|
|
3650
|
-
bl_region_type: typing.Any
|
|
3651
3841
|
bl_rna: typing.Any
|
|
3652
|
-
bl_space_type: typing.Any
|
|
3653
3842
|
id_data: typing.Any
|
|
3654
3843
|
|
|
3655
3844
|
def append(self, draw_func):
|
|
@@ -3691,6 +3880,26 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
|
|
|
3691
3880
|
"""
|
|
3692
3881
|
...
|
|
3693
3882
|
|
|
3883
|
+
def draw_collapsible(self, context, layout):
|
|
3884
|
+
"""
|
|
3885
|
+
|
|
3886
|
+
:param context:
|
|
3887
|
+
:param layout:
|
|
3888
|
+
"""
|
|
3889
|
+
...
|
|
3890
|
+
|
|
3891
|
+
def draw_preset(self, _context):
|
|
3892
|
+
"""Define these on the subclass:
|
|
3893
|
+
- preset_operator (string)
|
|
3894
|
+
- preset_subdir (string)Optionally:
|
|
3895
|
+
- preset_add_operator (string)
|
|
3896
|
+
- preset_extensions (set of strings)
|
|
3897
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3898
|
+
|
|
3899
|
+
:param _context:
|
|
3900
|
+
"""
|
|
3901
|
+
...
|
|
3902
|
+
|
|
3694
3903
|
def driver_add(self) -> bpy.types.FCurve:
|
|
3695
3904
|
"""Adds driver(s) to the given property
|
|
3696
3905
|
|
|
@@ -3736,13 +3945,6 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
|
|
|
3736
3945
|
...
|
|
3737
3946
|
|
|
3738
3947
|
def is_extended(self): ...
|
|
3739
|
-
def is_header_visible(self, context):
|
|
3740
|
-
"""
|
|
3741
|
-
|
|
3742
|
-
:param context:
|
|
3743
|
-
"""
|
|
3744
|
-
...
|
|
3745
|
-
|
|
3746
3948
|
def is_property_hidden(self) -> bool:
|
|
3747
3949
|
"""Check if a property is hidden.
|
|
3748
3950
|
|
|
@@ -3816,6 +4018,40 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
|
|
|
3816
4018
|
"""
|
|
3817
4019
|
...
|
|
3818
4020
|
|
|
4021
|
+
def path_menu(
|
|
4022
|
+
self,
|
|
4023
|
+
searchpaths: list[str],
|
|
4024
|
+
operator: str,
|
|
4025
|
+
props_default: dict = None,
|
|
4026
|
+
prop_filepath: str | None = "filepath",
|
|
4027
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
4028
|
+
filter_path=None,
|
|
4029
|
+
display_name: collections.abc.Callable | None = None,
|
|
4030
|
+
add_operator=None,
|
|
4031
|
+
add_operator_props=None,
|
|
4032
|
+
):
|
|
4033
|
+
"""Populate a menu from a list of paths.
|
|
4034
|
+
|
|
4035
|
+
:param searchpaths: Paths to scan.
|
|
4036
|
+
:type searchpaths: list[str]
|
|
4037
|
+
:param operator: The operator id to use with each file.
|
|
4038
|
+
:type operator: str
|
|
4039
|
+
:param props_default: Properties to assign to each operator.
|
|
4040
|
+
:type props_default: dict
|
|
4041
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
4042
|
+
:type prop_filepath: str | None
|
|
4043
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
4044
|
+
|
|
4045
|
+
Returning false excludes the file from the list.
|
|
4046
|
+
:type filter_ext: collections.abc.Callable | None
|
|
4047
|
+
:param filter_path:
|
|
4048
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
4049
|
+
:type display_name: collections.abc.Callable | None
|
|
4050
|
+
:param add_operator:
|
|
4051
|
+
:param add_operator_props:
|
|
4052
|
+
"""
|
|
4053
|
+
...
|
|
4054
|
+
|
|
3819
4055
|
def path_resolve(self):
|
|
3820
4056
|
"""Returns the property from the path, raise an exception when not found."""
|
|
3821
4057
|
...
|
|
@@ -3877,7 +4113,9 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
|
|
|
3877
4113
|
"""
|
|
3878
4114
|
...
|
|
3879
4115
|
|
|
3880
|
-
class
|
|
4116
|
+
class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
|
|
4117
|
+
bl_idname: typing.Any
|
|
4118
|
+
bl_label: typing.Any
|
|
3881
4119
|
bl_rna: typing.Any
|
|
3882
4120
|
id_data: typing.Any
|
|
3883
4121
|
|
|
@@ -3913,27 +4151,30 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
|
|
|
3913
4151
|
"""
|
|
3914
4152
|
...
|
|
3915
4153
|
|
|
3916
|
-
def
|
|
3917
|
-
self,
|
|
3918
|
-
_context,
|
|
3919
|
-
layout,
|
|
3920
|
-
_data,
|
|
3921
|
-
item,
|
|
3922
|
-
icon,
|
|
3923
|
-
_active_data,
|
|
3924
|
-
_active_propname,
|
|
3925
|
-
_index,
|
|
3926
|
-
):
|
|
4154
|
+
def draw(self, _context):
|
|
3927
4155
|
"""
|
|
3928
4156
|
|
|
3929
|
-
:param _context:
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
:param
|
|
4157
|
+
:param _context:
|
|
4158
|
+
"""
|
|
4159
|
+
...
|
|
4160
|
+
|
|
4161
|
+
def draw_collapsible(self, context, layout):
|
|
4162
|
+
"""
|
|
4163
|
+
|
|
4164
|
+
:param context:
|
|
4165
|
+
:param layout:
|
|
4166
|
+
"""
|
|
4167
|
+
...
|
|
4168
|
+
|
|
4169
|
+
def draw_preset(self, _context):
|
|
4170
|
+
"""Define these on the subclass:
|
|
4171
|
+
- preset_operator (string)
|
|
4172
|
+
- preset_subdir (string)Optionally:
|
|
4173
|
+
- preset_add_operator (string)
|
|
4174
|
+
- preset_extensions (set of strings)
|
|
4175
|
+
- preset_operator_defaults (dict of keyword args)
|
|
4176
|
+
|
|
4177
|
+
:param _context:
|
|
3937
4178
|
"""
|
|
3938
4179
|
...
|
|
3939
4180
|
|
|
@@ -4055,10 +4296,51 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
|
|
|
4055
4296
|
"""
|
|
4056
4297
|
...
|
|
4057
4298
|
|
|
4299
|
+
def path_menu(
|
|
4300
|
+
self,
|
|
4301
|
+
searchpaths: list[str],
|
|
4302
|
+
operator: str,
|
|
4303
|
+
props_default: dict = None,
|
|
4304
|
+
prop_filepath: str | None = "filepath",
|
|
4305
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
4306
|
+
filter_path=None,
|
|
4307
|
+
display_name: collections.abc.Callable | None = None,
|
|
4308
|
+
add_operator=None,
|
|
4309
|
+
add_operator_props=None,
|
|
4310
|
+
):
|
|
4311
|
+
"""Populate a menu from a list of paths.
|
|
4312
|
+
|
|
4313
|
+
:param searchpaths: Paths to scan.
|
|
4314
|
+
:type searchpaths: list[str]
|
|
4315
|
+
:param operator: The operator id to use with each file.
|
|
4316
|
+
:type operator: str
|
|
4317
|
+
:param props_default: Properties to assign to each operator.
|
|
4318
|
+
:type props_default: dict
|
|
4319
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
4320
|
+
:type prop_filepath: str | None
|
|
4321
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
4322
|
+
|
|
4323
|
+
Returning false excludes the file from the list.
|
|
4324
|
+
:type filter_ext: collections.abc.Callable | None
|
|
4325
|
+
:param filter_path:
|
|
4326
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
4327
|
+
:type display_name: collections.abc.Callable | None
|
|
4328
|
+
:param add_operator:
|
|
4329
|
+
:param add_operator_props:
|
|
4330
|
+
"""
|
|
4331
|
+
...
|
|
4332
|
+
|
|
4058
4333
|
def path_resolve(self):
|
|
4059
4334
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4060
4335
|
...
|
|
4061
4336
|
|
|
4337
|
+
def poll(self, context):
|
|
4338
|
+
"""
|
|
4339
|
+
|
|
4340
|
+
:param context:
|
|
4341
|
+
"""
|
|
4342
|
+
...
|
|
4343
|
+
|
|
4062
4344
|
def pop(self):
|
|
4063
4345
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4064
4346
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4109,7 +4391,7 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
|
|
|
4109
4391
|
"""
|
|
4110
4392
|
...
|
|
4111
4393
|
|
|
4112
|
-
class
|
|
4394
|
+
class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
|
|
4113
4395
|
bl_label: typing.Any
|
|
4114
4396
|
bl_rna: typing.Any
|
|
4115
4397
|
id_data: typing.Any
|
|
@@ -4386,7 +4668,7 @@ class ASSETBROWSER_MT_catalog(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
4386
4668
|
"""
|
|
4387
4669
|
...
|
|
4388
4670
|
|
|
4389
|
-
class
|
|
4671
|
+
class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
|
|
4390
4672
|
bl_label: typing.Any
|
|
4391
4673
|
bl_rna: typing.Any
|
|
4392
4674
|
id_data: typing.Any
|
|
@@ -4663,7 +4945,7 @@ class ASSETBROWSER_MT_context_menu(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
4663
4945
|
"""
|
|
4664
4946
|
...
|
|
4665
4947
|
|
|
4666
|
-
class
|
|
4948
|
+
class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
|
|
4667
4949
|
bl_idname: typing.Any
|
|
4668
4950
|
bl_label: typing.Any
|
|
4669
4951
|
bl_rna: typing.Any
|
|
@@ -4884,13 +5166,6 @@ class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
4884
5166
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4885
5167
|
...
|
|
4886
5168
|
|
|
4887
|
-
def poll(self, context):
|
|
4888
|
-
"""
|
|
4889
|
-
|
|
4890
|
-
:param context:
|
|
4891
|
-
"""
|
|
4892
|
-
...
|
|
4893
|
-
|
|
4894
5169
|
def pop(self):
|
|
4895
5170
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4896
5171
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4941,9 +5216,12 @@ class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
4941
5216
|
"""
|
|
4942
5217
|
...
|
|
4943
5218
|
|
|
4944
|
-
class
|
|
5219
|
+
class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
|
|
5220
|
+
bl_category: typing.Any
|
|
4945
5221
|
bl_label: typing.Any
|
|
5222
|
+
bl_region_type: typing.Any
|
|
4946
5223
|
bl_rna: typing.Any
|
|
5224
|
+
bl_space_type: typing.Any
|
|
4947
5225
|
id_data: typing.Any
|
|
4948
5226
|
|
|
4949
5227
|
def append(self, draw_func):
|
|
@@ -4978,30 +5256,10 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
4978
5256
|
"""
|
|
4979
5257
|
...
|
|
4980
5258
|
|
|
4981
|
-
def draw(self,
|
|
4982
|
-
"""
|
|
4983
|
-
|
|
4984
|
-
:param _context:
|
|
4985
|
-
"""
|
|
4986
|
-
...
|
|
4987
|
-
|
|
4988
|
-
def draw_collapsible(self, context, layout):
|
|
5259
|
+
def draw(self, context):
|
|
4989
5260
|
"""
|
|
4990
5261
|
|
|
4991
5262
|
:param context:
|
|
4992
|
-
:param layout:
|
|
4993
|
-
"""
|
|
4994
|
-
...
|
|
4995
|
-
|
|
4996
|
-
def draw_preset(self, _context):
|
|
4997
|
-
"""Define these on the subclass:
|
|
4998
|
-
- preset_operator (string)
|
|
4999
|
-
- preset_subdir (string)Optionally:
|
|
5000
|
-
- preset_add_operator (string)
|
|
5001
|
-
- preset_extensions (set of strings)
|
|
5002
|
-
- preset_operator_defaults (dict of keyword args)
|
|
5003
|
-
|
|
5004
|
-
:param _context:
|
|
5005
5263
|
"""
|
|
5006
5264
|
...
|
|
5007
5265
|
|
|
@@ -5123,40 +5381,6 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
5123
5381
|
"""
|
|
5124
5382
|
...
|
|
5125
5383
|
|
|
5126
|
-
def path_menu(
|
|
5127
|
-
self,
|
|
5128
|
-
searchpaths: list[str],
|
|
5129
|
-
operator: str,
|
|
5130
|
-
props_default: dict = None,
|
|
5131
|
-
prop_filepath: str | None = "filepath",
|
|
5132
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
5133
|
-
filter_path=None,
|
|
5134
|
-
display_name: collections.abc.Callable | None = None,
|
|
5135
|
-
add_operator=None,
|
|
5136
|
-
add_operator_props=None,
|
|
5137
|
-
):
|
|
5138
|
-
"""Populate a menu from a list of paths.
|
|
5139
|
-
|
|
5140
|
-
:param searchpaths: Paths to scan.
|
|
5141
|
-
:type searchpaths: list[str]
|
|
5142
|
-
:param operator: The operator id to use with each file.
|
|
5143
|
-
:type operator: str
|
|
5144
|
-
:param props_default: Properties to assign to each operator.
|
|
5145
|
-
:type props_default: dict
|
|
5146
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5147
|
-
:type prop_filepath: str | None
|
|
5148
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
5149
|
-
|
|
5150
|
-
Returning false excludes the file from the list.
|
|
5151
|
-
:type filter_ext: collections.abc.Callable | None
|
|
5152
|
-
:param filter_path:
|
|
5153
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5154
|
-
:type display_name: collections.abc.Callable | None
|
|
5155
|
-
:param add_operator:
|
|
5156
|
-
:param add_operator_props:
|
|
5157
|
-
"""
|
|
5158
|
-
...
|
|
5159
|
-
|
|
5160
5384
|
def path_resolve(self):
|
|
5161
5385
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5162
5386
|
...
|
|
@@ -5218,9 +5442,12 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
5218
5442
|
"""
|
|
5219
5443
|
...
|
|
5220
5444
|
|
|
5221
|
-
class
|
|
5445
|
+
class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, bpy_types._GenericUI):
|
|
5446
|
+
bl_category: typing.Any
|
|
5222
5447
|
bl_label: typing.Any
|
|
5448
|
+
bl_region_type: typing.Any
|
|
5223
5449
|
bl_rna: typing.Any
|
|
5450
|
+
bl_space_type: typing.Any
|
|
5224
5451
|
id_data: typing.Any
|
|
5225
5452
|
|
|
5226
5453
|
def append(self, draw_func):
|
|
@@ -5262,26 +5489,6 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
5262
5489
|
"""
|
|
5263
5490
|
...
|
|
5264
5491
|
|
|
5265
|
-
def draw_collapsible(self, context, layout):
|
|
5266
|
-
"""
|
|
5267
|
-
|
|
5268
|
-
:param context:
|
|
5269
|
-
:param layout:
|
|
5270
|
-
"""
|
|
5271
|
-
...
|
|
5272
|
-
|
|
5273
|
-
def draw_preset(self, _context):
|
|
5274
|
-
"""Define these on the subclass:
|
|
5275
|
-
- preset_operator (string)
|
|
5276
|
-
- preset_subdir (string)Optionally:
|
|
5277
|
-
- preset_add_operator (string)
|
|
5278
|
-
- preset_extensions (set of strings)
|
|
5279
|
-
- preset_operator_defaults (dict of keyword args)
|
|
5280
|
-
|
|
5281
|
-
:param _context:
|
|
5282
|
-
"""
|
|
5283
|
-
...
|
|
5284
|
-
|
|
5285
5492
|
def driver_add(self) -> bpy.types.FCurve:
|
|
5286
5493
|
"""Adds driver(s) to the given property
|
|
5287
5494
|
|
|
@@ -5400,40 +5607,6 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
5400
5607
|
"""
|
|
5401
5608
|
...
|
|
5402
5609
|
|
|
5403
|
-
def path_menu(
|
|
5404
|
-
self,
|
|
5405
|
-
searchpaths: list[str],
|
|
5406
|
-
operator: str,
|
|
5407
|
-
props_default: dict = None,
|
|
5408
|
-
prop_filepath: str | None = "filepath",
|
|
5409
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
5410
|
-
filter_path=None,
|
|
5411
|
-
display_name: collections.abc.Callable | None = None,
|
|
5412
|
-
add_operator=None,
|
|
5413
|
-
add_operator_props=None,
|
|
5414
|
-
):
|
|
5415
|
-
"""Populate a menu from a list of paths.
|
|
5416
|
-
|
|
5417
|
-
:param searchpaths: Paths to scan.
|
|
5418
|
-
:type searchpaths: list[str]
|
|
5419
|
-
:param operator: The operator id to use with each file.
|
|
5420
|
-
:type operator: str
|
|
5421
|
-
:param props_default: Properties to assign to each operator.
|
|
5422
|
-
:type props_default: dict
|
|
5423
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5424
|
-
:type prop_filepath: str | None
|
|
5425
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
5426
|
-
|
|
5427
|
-
Returning false excludes the file from the list.
|
|
5428
|
-
:type filter_ext: collections.abc.Callable | None
|
|
5429
|
-
:param filter_path:
|
|
5430
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5431
|
-
:type display_name: collections.abc.Callable | None
|
|
5432
|
-
:param add_operator:
|
|
5433
|
-
:param add_operator_props:
|
|
5434
|
-
"""
|
|
5435
|
-
...
|
|
5436
|
-
|
|
5437
5610
|
def path_resolve(self):
|
|
5438
5611
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5439
5612
|
...
|
|
@@ -5495,9 +5668,12 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
|
|
|
5495
5668
|
"""
|
|
5496
5669
|
...
|
|
5497
5670
|
|
|
5498
|
-
class
|
|
5671
|
+
class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
|
|
5672
|
+
bl_category: typing.Any
|
|
5499
5673
|
bl_label: typing.Any
|
|
5674
|
+
bl_region_type: typing.Any
|
|
5500
5675
|
bl_rna: typing.Any
|
|
5676
|
+
bl_space_type: typing.Any
|
|
5501
5677
|
id_data: typing.Any
|
|
5502
5678
|
|
|
5503
5679
|
def append(self, draw_func):
|
|
@@ -5539,26 +5715,6 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
5539
5715
|
"""
|
|
5540
5716
|
...
|
|
5541
5717
|
|
|
5542
|
-
def draw_collapsible(self, context, layout):
|
|
5543
|
-
"""
|
|
5544
|
-
|
|
5545
|
-
:param context:
|
|
5546
|
-
:param layout:
|
|
5547
|
-
"""
|
|
5548
|
-
...
|
|
5549
|
-
|
|
5550
|
-
def draw_preset(self, _context):
|
|
5551
|
-
"""Define these on the subclass:
|
|
5552
|
-
- preset_operator (string)
|
|
5553
|
-
- preset_subdir (string)Optionally:
|
|
5554
|
-
- preset_add_operator (string)
|
|
5555
|
-
- preset_extensions (set of strings)
|
|
5556
|
-
- preset_operator_defaults (dict of keyword args)
|
|
5557
|
-
|
|
5558
|
-
:param _context:
|
|
5559
|
-
"""
|
|
5560
|
-
...
|
|
5561
|
-
|
|
5562
5718
|
def driver_add(self) -> bpy.types.FCurve:
|
|
5563
5719
|
"""Adds driver(s) to the given property
|
|
5564
5720
|
|
|
@@ -5667,47 +5823,13 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
5667
5823
|
:return: custom property keys.
|
|
5668
5824
|
"""
|
|
5669
5825
|
...
|
|
5670
|
-
|
|
5671
|
-
def path_from_id(self) -> str:
|
|
5672
|
-
"""Returns the data path from the ID to this object (string).
|
|
5673
|
-
|
|
5674
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
5675
|
-
to this struct and property (when given).
|
|
5676
|
-
:rtype: str
|
|
5677
|
-
"""
|
|
5678
|
-
...
|
|
5679
|
-
|
|
5680
|
-
def path_menu(
|
|
5681
|
-
self,
|
|
5682
|
-
searchpaths: list[str],
|
|
5683
|
-
operator: str,
|
|
5684
|
-
props_default: dict = None,
|
|
5685
|
-
prop_filepath: str | None = "filepath",
|
|
5686
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
5687
|
-
filter_path=None,
|
|
5688
|
-
display_name: collections.abc.Callable | None = None,
|
|
5689
|
-
add_operator=None,
|
|
5690
|
-
add_operator_props=None,
|
|
5691
|
-
):
|
|
5692
|
-
"""Populate a menu from a list of paths.
|
|
5693
|
-
|
|
5694
|
-
:param searchpaths: Paths to scan.
|
|
5695
|
-
:type searchpaths: list[str]
|
|
5696
|
-
:param operator: The operator id to use with each file.
|
|
5697
|
-
:type operator: str
|
|
5698
|
-
:param props_default: Properties to assign to each operator.
|
|
5699
|
-
:type props_default: dict
|
|
5700
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5701
|
-
:type prop_filepath: str | None
|
|
5702
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
5703
|
-
|
|
5704
|
-
Returning false excludes the file from the list.
|
|
5705
|
-
:type filter_ext: collections.abc.Callable | None
|
|
5706
|
-
:param filter_path:
|
|
5707
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5708
|
-
:type display_name: collections.abc.Callable | None
|
|
5709
|
-
:param add_operator:
|
|
5710
|
-
:param add_operator_props:
|
|
5826
|
+
|
|
5827
|
+
def path_from_id(self) -> str:
|
|
5828
|
+
"""Returns the data path from the ID to this object (string).
|
|
5829
|
+
|
|
5830
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
5831
|
+
to this struct and property (when given).
|
|
5832
|
+
:rtype: str
|
|
5711
5833
|
"""
|
|
5712
5834
|
...
|
|
5713
5835
|
|
|
@@ -5772,10 +5894,12 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
5772
5894
|
"""
|
|
5773
5895
|
...
|
|
5774
5896
|
|
|
5775
|
-
class
|
|
5776
|
-
|
|
5897
|
+
class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
|
|
5898
|
+
bl_category: typing.Any
|
|
5777
5899
|
bl_label: typing.Any
|
|
5900
|
+
bl_region_type: typing.Any
|
|
5778
5901
|
bl_rna: typing.Any
|
|
5902
|
+
bl_space_type: typing.Any
|
|
5779
5903
|
id_data: typing.Any
|
|
5780
5904
|
|
|
5781
5905
|
def append(self, draw_func):
|
|
@@ -5810,30 +5934,10 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
5810
5934
|
"""
|
|
5811
5935
|
...
|
|
5812
5936
|
|
|
5813
|
-
def draw(self,
|
|
5814
|
-
"""
|
|
5815
|
-
|
|
5816
|
-
:param _context:
|
|
5817
|
-
"""
|
|
5818
|
-
...
|
|
5819
|
-
|
|
5820
|
-
def draw_collapsible(self, context, layout):
|
|
5937
|
+
def draw(self, context):
|
|
5821
5938
|
"""
|
|
5822
5939
|
|
|
5823
5940
|
:param context:
|
|
5824
|
-
:param layout:
|
|
5825
|
-
"""
|
|
5826
|
-
...
|
|
5827
|
-
|
|
5828
|
-
def draw_preset(self, _context):
|
|
5829
|
-
"""Define these on the subclass:
|
|
5830
|
-
- preset_operator (string)
|
|
5831
|
-
- preset_subdir (string)Optionally:
|
|
5832
|
-
- preset_add_operator (string)
|
|
5833
|
-
- preset_extensions (set of strings)
|
|
5834
|
-
- preset_operator_defaults (dict of keyword args)
|
|
5835
|
-
|
|
5836
|
-
:param _context:
|
|
5837
5941
|
"""
|
|
5838
5942
|
...
|
|
5839
5943
|
|
|
@@ -5955,40 +6059,6 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
5955
6059
|
"""
|
|
5956
6060
|
...
|
|
5957
6061
|
|
|
5958
|
-
def path_menu(
|
|
5959
|
-
self,
|
|
5960
|
-
searchpaths: list[str],
|
|
5961
|
-
operator: str,
|
|
5962
|
-
props_default: dict = None,
|
|
5963
|
-
prop_filepath: str | None = "filepath",
|
|
5964
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
5965
|
-
filter_path=None,
|
|
5966
|
-
display_name: collections.abc.Callable | None = None,
|
|
5967
|
-
add_operator=None,
|
|
5968
|
-
add_operator_props=None,
|
|
5969
|
-
):
|
|
5970
|
-
"""Populate a menu from a list of paths.
|
|
5971
|
-
|
|
5972
|
-
:param searchpaths: Paths to scan.
|
|
5973
|
-
:type searchpaths: list[str]
|
|
5974
|
-
:param operator: The operator id to use with each file.
|
|
5975
|
-
:type operator: str
|
|
5976
|
-
:param props_default: Properties to assign to each operator.
|
|
5977
|
-
:type props_default: dict
|
|
5978
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5979
|
-
:type prop_filepath: str | None
|
|
5980
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
5981
|
-
|
|
5982
|
-
Returning false excludes the file from the list.
|
|
5983
|
-
:type filter_ext: collections.abc.Callable | None
|
|
5984
|
-
:param filter_path:
|
|
5985
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5986
|
-
:type display_name: collections.abc.Callable | None
|
|
5987
|
-
:param add_operator:
|
|
5988
|
-
:param add_operator_props:
|
|
5989
|
-
"""
|
|
5990
|
-
...
|
|
5991
|
-
|
|
5992
6062
|
def path_resolve(self):
|
|
5993
6063
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5994
6064
|
...
|
|
@@ -6050,9 +6120,13 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6050
6120
|
"""
|
|
6051
6121
|
...
|
|
6052
6122
|
|
|
6053
|
-
class
|
|
6123
|
+
class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
|
|
6124
|
+
bl_category: typing.Any
|
|
6054
6125
|
bl_label: typing.Any
|
|
6126
|
+
bl_region_type: typing.Any
|
|
6055
6127
|
bl_rna: typing.Any
|
|
6128
|
+
bl_space_type: typing.Any
|
|
6129
|
+
bl_translation_context: typing.Any
|
|
6056
6130
|
id_data: typing.Any
|
|
6057
6131
|
|
|
6058
6132
|
def append(self, draw_func):
|
|
@@ -6087,30 +6161,10 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6087
6161
|
"""
|
|
6088
6162
|
...
|
|
6089
6163
|
|
|
6090
|
-
def draw(self,
|
|
6091
|
-
"""
|
|
6092
|
-
|
|
6093
|
-
:param _context:
|
|
6094
|
-
"""
|
|
6095
|
-
...
|
|
6096
|
-
|
|
6097
|
-
def draw_collapsible(self, context, layout):
|
|
6164
|
+
def draw(self, context):
|
|
6098
6165
|
"""
|
|
6099
6166
|
|
|
6100
6167
|
:param context:
|
|
6101
|
-
:param layout:
|
|
6102
|
-
"""
|
|
6103
|
-
...
|
|
6104
|
-
|
|
6105
|
-
def draw_preset(self, _context):
|
|
6106
|
-
"""Define these on the subclass:
|
|
6107
|
-
- preset_operator (string)
|
|
6108
|
-
- preset_subdir (string)Optionally:
|
|
6109
|
-
- preset_add_operator (string)
|
|
6110
|
-
- preset_extensions (set of strings)
|
|
6111
|
-
- preset_operator_defaults (dict of keyword args)
|
|
6112
|
-
|
|
6113
|
-
:param _context:
|
|
6114
6168
|
"""
|
|
6115
6169
|
...
|
|
6116
6170
|
|
|
@@ -6232,40 +6286,6 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6232
6286
|
"""
|
|
6233
6287
|
...
|
|
6234
6288
|
|
|
6235
|
-
def path_menu(
|
|
6236
|
-
self,
|
|
6237
|
-
searchpaths: list[str],
|
|
6238
|
-
operator: str,
|
|
6239
|
-
props_default: dict = None,
|
|
6240
|
-
prop_filepath: str | None = "filepath",
|
|
6241
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
6242
|
-
filter_path=None,
|
|
6243
|
-
display_name: collections.abc.Callable | None = None,
|
|
6244
|
-
add_operator=None,
|
|
6245
|
-
add_operator_props=None,
|
|
6246
|
-
):
|
|
6247
|
-
"""Populate a menu from a list of paths.
|
|
6248
|
-
|
|
6249
|
-
:param searchpaths: Paths to scan.
|
|
6250
|
-
:type searchpaths: list[str]
|
|
6251
|
-
:param operator: The operator id to use with each file.
|
|
6252
|
-
:type operator: str
|
|
6253
|
-
:param props_default: Properties to assign to each operator.
|
|
6254
|
-
:type props_default: dict
|
|
6255
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
6256
|
-
:type prop_filepath: str | None
|
|
6257
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
6258
|
-
|
|
6259
|
-
Returning false excludes the file from the list.
|
|
6260
|
-
:type filter_ext: collections.abc.Callable | None
|
|
6261
|
-
:param filter_path:
|
|
6262
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
6263
|
-
:type display_name: collections.abc.Callable | None
|
|
6264
|
-
:param add_operator:
|
|
6265
|
-
:param add_operator_props:
|
|
6266
|
-
"""
|
|
6267
|
-
...
|
|
6268
|
-
|
|
6269
6289
|
def path_resolve(self):
|
|
6270
6290
|
"""Returns the property from the path, raise an exception when not found."""
|
|
6271
6291
|
...
|
|
@@ -6327,9 +6347,13 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6327
6347
|
"""
|
|
6328
6348
|
...
|
|
6329
6349
|
|
|
6330
|
-
class
|
|
6350
|
+
class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
|
|
6351
|
+
bl_category: typing.Any
|
|
6331
6352
|
bl_label: typing.Any
|
|
6353
|
+
bl_options: typing.Any
|
|
6354
|
+
bl_region_type: typing.Any
|
|
6332
6355
|
bl_rna: typing.Any
|
|
6356
|
+
bl_space_type: typing.Any
|
|
6333
6357
|
id_data: typing.Any
|
|
6334
6358
|
|
|
6335
6359
|
def append(self, draw_func):
|
|
@@ -6371,26 +6395,6 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6371
6395
|
"""
|
|
6372
6396
|
...
|
|
6373
6397
|
|
|
6374
|
-
def draw_collapsible(self, context, layout):
|
|
6375
|
-
"""
|
|
6376
|
-
|
|
6377
|
-
:param context:
|
|
6378
|
-
:param layout:
|
|
6379
|
-
"""
|
|
6380
|
-
...
|
|
6381
|
-
|
|
6382
|
-
def draw_preset(self, _context):
|
|
6383
|
-
"""Define these on the subclass:
|
|
6384
|
-
- preset_operator (string)
|
|
6385
|
-
- preset_subdir (string)Optionally:
|
|
6386
|
-
- preset_add_operator (string)
|
|
6387
|
-
- preset_extensions (set of strings)
|
|
6388
|
-
- preset_operator_defaults (dict of keyword args)
|
|
6389
|
-
|
|
6390
|
-
:param _context:
|
|
6391
|
-
"""
|
|
6392
|
-
...
|
|
6393
|
-
|
|
6394
6398
|
def driver_add(self) -> bpy.types.FCurve:
|
|
6395
6399
|
"""Adds driver(s) to the given property
|
|
6396
6400
|
|
|
@@ -6436,6 +6440,13 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6436
6440
|
...
|
|
6437
6441
|
|
|
6438
6442
|
def is_extended(self): ...
|
|
6443
|
+
def is_header_visible(self, context):
|
|
6444
|
+
"""
|
|
6445
|
+
|
|
6446
|
+
:param context:
|
|
6447
|
+
"""
|
|
6448
|
+
...
|
|
6449
|
+
|
|
6439
6450
|
def is_property_hidden(self) -> bool:
|
|
6440
6451
|
"""Check if a property is hidden.
|
|
6441
6452
|
|
|
@@ -6509,40 +6520,6 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6509
6520
|
"""
|
|
6510
6521
|
...
|
|
6511
6522
|
|
|
6512
|
-
def path_menu(
|
|
6513
|
-
self,
|
|
6514
|
-
searchpaths: list[str],
|
|
6515
|
-
operator: str,
|
|
6516
|
-
props_default: dict = None,
|
|
6517
|
-
prop_filepath: str | None = "filepath",
|
|
6518
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
6519
|
-
filter_path=None,
|
|
6520
|
-
display_name: collections.abc.Callable | None = None,
|
|
6521
|
-
add_operator=None,
|
|
6522
|
-
add_operator_props=None,
|
|
6523
|
-
):
|
|
6524
|
-
"""Populate a menu from a list of paths.
|
|
6525
|
-
|
|
6526
|
-
:param searchpaths: Paths to scan.
|
|
6527
|
-
:type searchpaths: list[str]
|
|
6528
|
-
:param operator: The operator id to use with each file.
|
|
6529
|
-
:type operator: str
|
|
6530
|
-
:param props_default: Properties to assign to each operator.
|
|
6531
|
-
:type props_default: dict
|
|
6532
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
6533
|
-
:type prop_filepath: str | None
|
|
6534
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
6535
|
-
|
|
6536
|
-
Returning false excludes the file from the list.
|
|
6537
|
-
:type filter_ext: collections.abc.Callable | None
|
|
6538
|
-
:param filter_path:
|
|
6539
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
6540
|
-
:type display_name: collections.abc.Callable | None
|
|
6541
|
-
:param add_operator:
|
|
6542
|
-
:param add_operator_props:
|
|
6543
|
-
"""
|
|
6544
|
-
...
|
|
6545
|
-
|
|
6546
6523
|
def path_resolve(self):
|
|
6547
6524
|
"""Returns the property from the path, raise an exception when not found."""
|
|
6548
6525
|
...
|
|
@@ -6604,12 +6581,12 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
|
|
|
6604
6581
|
"""
|
|
6605
6582
|
...
|
|
6606
6583
|
|
|
6607
|
-
class
|
|
6608
|
-
bl_category: typing.Any
|
|
6584
|
+
class FILEBROWSER_PT_display(FileBrowserPanel, bpy_types._GenericUI):
|
|
6609
6585
|
bl_label: typing.Any
|
|
6610
6586
|
bl_region_type: typing.Any
|
|
6611
6587
|
bl_rna: typing.Any
|
|
6612
6588
|
bl_space_type: typing.Any
|
|
6589
|
+
bl_ui_units_x: typing.Any
|
|
6613
6590
|
id_data: typing.Any
|
|
6614
6591
|
|
|
6615
6592
|
def append(self, draw_func):
|
|
@@ -6830,7 +6807,7 @@ class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, bpy_types._GenericUI)
|
|
|
6830
6807
|
"""
|
|
6831
6808
|
...
|
|
6832
6809
|
|
|
6833
|
-
class
|
|
6810
|
+
class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
|
|
6834
6811
|
bl_label: typing.Any
|
|
6835
6812
|
bl_region_type: typing.Any
|
|
6836
6813
|
bl_rna: typing.Any
|
|
@@ -7056,12 +7033,8 @@ class FILEBROWSER_PT_display(FileBrowserPanel, bpy_types._GenericUI):
|
|
|
7056
7033
|
"""
|
|
7057
7034
|
...
|
|
7058
7035
|
|
|
7059
|
-
class
|
|
7060
|
-
bl_label: typing.Any
|
|
7061
|
-
bl_region_type: typing.Any
|
|
7036
|
+
class FILEBROWSER_UL_dir(bpy_types._GenericUI):
|
|
7062
7037
|
bl_rna: typing.Any
|
|
7063
|
-
bl_space_type: typing.Any
|
|
7064
|
-
bl_ui_units_x: typing.Any
|
|
7065
7038
|
id_data: typing.Any
|
|
7066
7039
|
|
|
7067
7040
|
def append(self, draw_func):
|
|
@@ -7096,10 +7069,27 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
|
|
|
7096
7069
|
"""
|
|
7097
7070
|
...
|
|
7098
7071
|
|
|
7099
|
-
def
|
|
7072
|
+
def draw_item(
|
|
7073
|
+
self,
|
|
7074
|
+
_context,
|
|
7075
|
+
layout,
|
|
7076
|
+
_data,
|
|
7077
|
+
item,
|
|
7078
|
+
icon,
|
|
7079
|
+
_active_data,
|
|
7080
|
+
_active_propname,
|
|
7081
|
+
_index,
|
|
7082
|
+
):
|
|
7100
7083
|
"""
|
|
7101
7084
|
|
|
7102
|
-
:param
|
|
7085
|
+
:param _context:
|
|
7086
|
+
:param layout:
|
|
7087
|
+
:param _data:
|
|
7088
|
+
:param item:
|
|
7089
|
+
:param icon:
|
|
7090
|
+
:param _active_data:
|
|
7091
|
+
:param _active_propname:
|
|
7092
|
+
:param _index:
|
|
7103
7093
|
"""
|
|
7104
7094
|
...
|
|
7105
7095
|
|
|
@@ -7225,13 +7215,6 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
|
|
|
7225
7215
|
"""Returns the property from the path, raise an exception when not found."""
|
|
7226
7216
|
...
|
|
7227
7217
|
|
|
7228
|
-
def poll(self, context):
|
|
7229
|
-
"""
|
|
7230
|
-
|
|
7231
|
-
:param context:
|
|
7232
|
-
"""
|
|
7233
|
-
...
|
|
7234
|
-
|
|
7235
7218
|
def pop(self):
|
|
7236
7219
|
"""Remove and return the value of the custom property assigned to key or default
|
|
7237
7220
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -7282,6 +7265,24 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
|
|
|
7282
7265
|
"""
|
|
7283
7266
|
...
|
|
7284
7267
|
|
|
7268
|
+
class FileBrowserMenu:
|
|
7269
|
+
def poll(self, context):
|
|
7270
|
+
"""
|
|
7271
|
+
|
|
7272
|
+
:param context:
|
|
7273
|
+
"""
|
|
7274
|
+
...
|
|
7275
|
+
|
|
7276
|
+
class FileBrowserPanel:
|
|
7277
|
+
bl_space_type: typing.Any
|
|
7278
|
+
|
|
7279
|
+
def poll(self, context):
|
|
7280
|
+
"""
|
|
7281
|
+
|
|
7282
|
+
:param context:
|
|
7283
|
+
"""
|
|
7284
|
+
...
|
|
7285
|
+
|
|
7285
7286
|
def asset_path_str_get(_self): ...
|
|
7286
7287
|
def is_option_region_visible(context, space): ...
|
|
7287
7288
|
def panel_poll_is_asset_browsing(context): ...
|