fake-bpy-module 20240706__py3-none-any.whl → 20240708__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.

Files changed (63) hide show
  1. bl_operators/assets/__init__.pyi +8 -8
  2. bl_operators/image_as_planes/__init__.pyi +43 -43
  3. bl_operators/node/__init__.pyi +234 -234
  4. bl_operators/object_quick_effects/__init__.pyi +21 -21
  5. bl_operators/presets/__init__.pyi +388 -388
  6. bl_ui/properties_collection/__init__.pyi +12 -12
  7. bl_ui/properties_constraint/__init__.pyi +954 -954
  8. bl_ui/properties_data_armature/__init__.pyi +85 -85
  9. bl_ui/properties_data_bone/__init__.pyi +12 -12
  10. bl_ui/properties_data_curve/__init__.pyi +92 -92
  11. bl_ui/properties_data_curves/__init__.pyi +12 -12
  12. bl_ui/properties_data_empty/__init__.pyi +12 -12
  13. bl_ui/properties_data_gpencil/__init__.pyi +265 -265
  14. bl_ui/properties_data_grease_pencil/__init__.pyi +312 -312
  15. bl_ui/properties_data_lattice/__init__.pyi +12 -12
  16. bl_ui/properties_data_light/__init__.pyi +12 -12
  17. bl_ui/properties_data_lightprobe/__init__.pyi +12 -12
  18. bl_ui/properties_data_mesh/__init__.pyi +527 -527
  19. bl_ui/properties_data_metaball/__init__.pyi +12 -12
  20. bl_ui/properties_data_modifier/__init__.pyi +19 -19
  21. bl_ui/properties_data_pointcloud/__init__.pyi +140 -140
  22. bl_ui/properties_data_shaderfx/__init__.pyi +5 -5
  23. bl_ui/properties_data_speaker/__init__.pyi +12 -12
  24. bl_ui/properties_data_volume/__init__.pyi +65 -65
  25. bl_ui/properties_freestyle/__init__.pyi +248 -248
  26. bl_ui/properties_material/__init__.pyi +145 -145
  27. bl_ui/properties_material_gpencil/__init__.pyi +86 -86
  28. bl_ui/properties_object/__init__.pyi +75 -75
  29. bl_ui/properties_output/__init__.pyi +201 -201
  30. bl_ui/properties_particle/__init__.pyi +220 -220
  31. bl_ui/properties_physics_cloth/__init__.pyi +12 -12
  32. bl_ui/properties_physics_common/__init__.pyi +12 -12
  33. bl_ui/properties_physics_dynamicpaint/__init__.pyi +187 -187
  34. bl_ui/properties_physics_field/__init__.pyi +19 -19
  35. bl_ui/properties_physics_fluid/__init__.pyi +61 -61
  36. bl_ui/properties_physics_rigidbody/__init__.pyi +5 -5
  37. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +5 -5
  38. bl_ui/properties_physics_softbody/__init__.pyi +12 -12
  39. bl_ui/properties_render/__init__.pyi +217 -217
  40. bl_ui/properties_scene/__init__.pyi +143 -143
  41. bl_ui/properties_texture/__init__.pyi +156 -156
  42. bl_ui/properties_view_layer/__init__.pyi +78 -78
  43. bl_ui/properties_workspace/__init__.pyi +64 -64
  44. bl_ui/properties_world/__init__.pyi +12 -12
  45. bl_ui/space_clip/__init__.pyi +366 -366
  46. bl_ui/space_dopesheet/__init__.pyi +176 -176
  47. bl_ui/space_filebrowser/__init__.pyi +735 -735
  48. bl_ui/space_image/__init__.pyi +646 -646
  49. bl_ui/space_sequencer/__init__.pyi +841 -389
  50. bl_ui/space_time/__init__.pyi +11 -11
  51. bl_ui/space_userpref/__init__.pyi +684 -684
  52. bl_ui/space_view3d/__init__.pyi +1152 -1152
  53. bl_ui/space_view3d_toolbar/__init__.pyi +2831 -2831
  54. bmesh/types/__init__.pyi +48 -0
  55. bpy/types/__init__.pyi +70624 -70606
  56. {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240708.dist-info}/METADATA +4 -4
  57. {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240708.dist-info}/RECORD +63 -63
  58. freestyle/utils/__init__.pyi +1 -1
  59. keyingsets_builtins/__init__.pyi +87 -87
  60. mathutils/__init__.pyi +156 -50
  61. nodeitems_builtins/__init__.pyi +7 -7
  62. {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240708.dist-info}/WHEEL +0 -0
  63. {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240708.dist-info}/top_level.txt +0 -0
@@ -8,15 +8,7 @@ import bpy_types
8
8
  GenericType1 = typing.TypeVar("GenericType1")
9
9
  GenericType2 = typing.TypeVar("GenericType2")
10
10
 
11
- class AssetBrowserMenu:
12
- def poll(self, context):
13
- """
14
-
15
- :param context:
16
- """
17
- ...
18
-
19
- class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
11
+ class ASSETBROWSER_MT_catalog(AssetBrowserMenu, bpy_types._GenericUI):
20
12
  bl_label: typing.Any
21
13
  bl_rna: typing.Any
22
14
  id_data: typing.Any
@@ -236,6 +228,13 @@ class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
236
228
  """Returns the property from the path, raise an exception when not found."""
237
229
  ...
238
230
 
231
+ def poll(self, context):
232
+ """
233
+
234
+ :param context:
235
+ """
236
+ ...
237
+
239
238
  def pop(self):
240
239
  """Remove and return the value of the custom property assigned to key or default
241
240
  when not found (matches Python's dictionary function of the same name).
@@ -286,14 +285,9 @@ class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
286
285
  """
287
286
  ...
288
287
 
289
- class ASSETBROWSER_PT_display(
290
- bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
291
- ):
288
+ class ASSETBROWSER_MT_context_menu(AssetBrowserMenu, bpy_types._GenericUI):
292
289
  bl_label: typing.Any
293
- bl_region_type: typing.Any
294
290
  bl_rna: typing.Any
295
- bl_space_type: typing.Any
296
- bl_ui_units_x: typing.Any
297
291
  id_data: typing.Any
298
292
 
299
293
  def append(self, draw_func):
@@ -312,13 +306,6 @@ class ASSETBROWSER_PT_display(
312
306
  """
313
307
  ...
314
308
 
315
- def asset_browser_panel_poll(self, context):
316
- """
317
-
318
- :param context:
319
- """
320
- ...
321
-
322
309
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
323
310
  """
324
311
 
@@ -342,6 +329,26 @@ class ASSETBROWSER_PT_display(
342
329
  """
343
330
  ...
344
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
+
345
352
  def driver_add(self) -> bpy.types.FCurve:
346
353
  """Adds driver(s) to the given property
347
354
 
@@ -460,6 +467,40 @@ class ASSETBROWSER_PT_display(
460
467
  """
461
468
  ...
462
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
+
463
504
  def path_resolve(self):
464
505
  """Returns the property from the path, raise an exception when not found."""
465
506
  ...
@@ -521,14 +562,10 @@ class ASSETBROWSER_PT_display(
521
562
  """
522
563
  ...
523
564
 
524
- class ASSETBROWSER_PT_filter(
525
- bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
526
- ):
527
- bl_category: typing.Any
565
+ class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
566
+ bl_idname: typing.Any
528
567
  bl_label: typing.Any
529
- bl_region_type: typing.Any
530
568
  bl_rna: typing.Any
531
- bl_space_type: typing.Any
532
569
  id_data: typing.Any
533
570
 
534
571
  def append(self, draw_func):
@@ -547,13 +584,6 @@ class ASSETBROWSER_PT_filter(
547
584
  """
548
585
  ...
549
586
 
550
- def asset_browser_panel_poll(self, context):
551
- """
552
-
553
- :param context:
554
- """
555
- ...
556
-
557
587
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
558
588
  """
559
589
 
@@ -577,6 +607,26 @@ class ASSETBROWSER_PT_filter(
577
607
  """
578
608
  ...
579
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
+
580
630
  def driver_add(self) -> bpy.types.FCurve:
581
631
  """Adds driver(s) to the given property
582
632
 
@@ -695,6 +745,40 @@ class ASSETBROWSER_PT_filter(
695
745
  """
696
746
  ...
697
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
+
698
782
  def path_resolve(self):
699
783
  """Returns the property from the path, raise an exception when not found."""
700
784
  ...
@@ -756,14 +840,9 @@ class ASSETBROWSER_PT_filter(
756
840
  """
757
841
  ...
758
842
 
759
- class ASSETBROWSER_PT_metadata(
760
- bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
761
- ):
843
+ class ASSETBROWSER_MT_metadata_preview_menu(bpy_types._GenericUI):
762
844
  bl_label: typing.Any
763
- bl_options: typing.Any
764
- bl_region_type: typing.Any
765
845
  bl_rna: typing.Any
766
- bl_space_type: typing.Any
767
846
  id_data: typing.Any
768
847
 
769
848
  def append(self, draw_func):
@@ -782,13 +861,6 @@ class ASSETBROWSER_PT_metadata(
782
861
  """
783
862
  ...
784
863
 
785
- def asset_browser_panel_poll(self, context):
786
- """
787
-
788
- :param context:
789
- """
790
- ...
791
-
792
864
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
793
865
  """
794
866
 
@@ -805,10 +877,30 @@ class ASSETBROWSER_PT_metadata(
805
877
  """
806
878
  ...
807
879
 
808
- def draw(self, context):
880
+ def draw(self, _context):
881
+ """
882
+
883
+ :param _context:
884
+ """
885
+ ...
886
+
887
+ def draw_collapsible(self, context, layout):
809
888
  """
810
889
 
811
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:
812
904
  """
813
905
  ...
814
906
 
@@ -921,16 +1013,6 @@ class ASSETBROWSER_PT_metadata(
921
1013
  """
922
1014
  ...
923
1015
 
924
- def metadata_prop(self, layout, asset_metadata, propname):
925
- """Only display properties that are either set or can be modified (i.e. the
926
- asset is in the current file). Empty, non-editable fields are not really useful.
927
-
928
- :param layout:
929
- :param asset_metadata:
930
- :param propname:
931
- """
932
- ...
933
-
934
1016
  def path_from_id(self) -> str:
935
1017
  """Returns the data path from the ID to this object (string).
936
1018
 
@@ -940,17 +1022,44 @@ class ASSETBROWSER_PT_metadata(
940
1022
  """
941
1023
  ...
942
1024
 
943
- def path_resolve(self):
944
- """Returns the property from the path, raise an exception when not found."""
945
- ...
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.
946
1038
 
947
- def poll(self, context):
948
- """
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.
949
1048
 
950
- :param context:
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:
951
1056
  """
952
1057
  ...
953
1058
 
1059
+ def path_resolve(self):
1060
+ """Returns the property from the path, raise an exception when not found."""
1061
+ ...
1062
+
954
1063
  def pop(self):
955
1064
  """Remove and return the value of the custom property assigned to key or default
956
1065
  when not found (matches Python's dictionary function of the same name).
@@ -1001,13 +1110,9 @@ class ASSETBROWSER_PT_metadata(
1001
1110
  """
1002
1111
  ...
1003
1112
 
1004
- class ASSETBROWSER_PT_metadata_preview(
1005
- bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
1006
- ):
1113
+ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
1007
1114
  bl_label: typing.Any
1008
- bl_region_type: typing.Any
1009
1115
  bl_rna: typing.Any
1010
- bl_space_type: typing.Any
1011
1116
  id_data: typing.Any
1012
1117
 
1013
1118
  def append(self, draw_func):
@@ -1042,20 +1147,40 @@ class ASSETBROWSER_PT_metadata_preview(
1042
1147
  """
1043
1148
  ...
1044
1149
 
1045
- def draw(self, context):
1150
+ def draw(self, _context):
1046
1151
  """
1047
1152
 
1048
- :param context:
1153
+ :param _context:
1049
1154
  """
1050
1155
  ...
1051
1156
 
1052
- def driver_add(self) -> bpy.types.FCurve:
1053
- """Adds driver(s) to the given property
1054
-
1055
- :return: The driver(s) added.
1056
- :rtype: bpy.types.FCurve
1157
+ def draw_collapsible(self, context, layout):
1057
1158
  """
1058
- ...
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
+ ...
1059
1184
 
1060
1185
  def driver_remove(self) -> bool:
1061
1186
  """Remove driver(s) from the given property
@@ -1167,6 +1292,40 @@ class ASSETBROWSER_PT_metadata_preview(
1167
1292
  """
1168
1293
  ...
1169
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
+
1170
1329
  def path_resolve(self):
1171
1330
  """Returns the property from the path, raise an exception when not found."""
1172
1331
  ...
@@ -1228,13 +1387,9 @@ class ASSETBROWSER_PT_metadata_preview(
1228
1387
  """
1229
1388
  ...
1230
1389
 
1231
- class ASSETBROWSER_PT_metadata_tags(
1232
- bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
1233
- ):
1390
+ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
1234
1391
  bl_label: typing.Any
1235
- bl_region_type: typing.Any
1236
1392
  bl_rna: typing.Any
1237
- bl_space_type: typing.Any
1238
1393
  id_data: typing.Any
1239
1394
 
1240
1395
  def append(self, draw_func):
@@ -1276,6 +1431,26 @@ class ASSETBROWSER_PT_metadata_tags(
1276
1431
  """
1277
1432
  ...
1278
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
+
1279
1454
  def driver_add(self) -> bpy.types.FCurve:
1280
1455
  """Adds driver(s) to the given property
1281
1456
 
@@ -1394,6 +1569,40 @@ class ASSETBROWSER_PT_metadata_tags(
1394
1569
  """
1395
1570
  ...
1396
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
+
1397
1606
  def path_resolve(self):
1398
1607
  """Returns the property from the path, raise an exception when not found."""
1399
1608
  ...
@@ -1455,8 +1664,14 @@ class ASSETBROWSER_PT_metadata_tags(
1455
1664
  """
1456
1665
  ...
1457
1666
 
1458
- class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
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
1459
1672
  bl_rna: typing.Any
1673
+ bl_space_type: typing.Any
1674
+ bl_ui_units_x: typing.Any
1460
1675
  id_data: typing.Any
1461
1676
 
1462
1677
  def append(self, draw_func):
@@ -1475,6 +1690,13 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
1475
1690
  """
1476
1691
  ...
1477
1692
 
1693
+ def asset_browser_panel_poll(self, context):
1694
+ """
1695
+
1696
+ :param context:
1697
+ """
1698
+ ...
1699
+
1478
1700
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
1479
1701
  """
1480
1702
 
@@ -1491,27 +1713,10 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
1491
1713
  """
1492
1714
  ...
1493
1715
 
1494
- def draw_item(
1495
- self,
1496
- _context,
1497
- layout,
1498
- _data,
1499
- item,
1500
- icon,
1501
- _active_data,
1502
- _active_propname,
1503
- _index,
1504
- ):
1716
+ def draw(self, context):
1505
1717
  """
1506
1718
 
1507
- :param _context:
1508
- :param layout:
1509
- :param _data:
1510
- :param item:
1511
- :param icon:
1512
- :param _active_data:
1513
- :param _active_propname:
1514
- :param _index:
1719
+ :param context:
1515
1720
  """
1516
1721
  ...
1517
1722
 
@@ -1637,6 +1842,13 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
1637
1842
  """Returns the property from the path, raise an exception when not found."""
1638
1843
  ...
1639
1844
 
1845
+ def poll(self, context):
1846
+ """
1847
+
1848
+ :param context:
1849
+ """
1850
+ ...
1851
+
1640
1852
  def pop(self):
1641
1853
  """Remove and return the value of the custom property assigned to key or default
1642
1854
  when not found (matches Python's dictionary function of the same name).
@@ -1687,7 +1899,12 @@ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
1687
1899
  """
1688
1900
  ...
1689
1901
 
1690
- class FILEBROWSER_HT_header(bpy_types._GenericUI):
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
1691
1908
  bl_rna: typing.Any
1692
1909
  bl_space_type: typing.Any
1693
1910
  id_data: typing.Any
@@ -1708,6 +1925,13 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
1708
1925
  """
1709
1926
  ...
1710
1927
 
1928
+ def asset_browser_panel_poll(self, context):
1929
+ """
1930
+
1931
+ :param context:
1932
+ """
1933
+ ...
1934
+
1711
1935
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
1712
1936
  """
1713
1937
 
@@ -1731,13 +1955,6 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
1731
1955
  """
1732
1956
  ...
1733
1957
 
1734
- def draw_asset_browser_buttons(self, context):
1735
- """
1736
-
1737
- :param context:
1738
- """
1739
- ...
1740
-
1741
1958
  def driver_add(self) -> bpy.types.FCurve:
1742
1959
  """Adds driver(s) to the given property
1743
1960
 
@@ -1860,6 +2077,13 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
1860
2077
  """Returns the property from the path, raise an exception when not found."""
1861
2078
  ...
1862
2079
 
2080
+ def poll(self, context):
2081
+ """
2082
+
2083
+ :param context:
2084
+ """
2085
+ ...
2086
+
1863
2087
  def pop(self):
1864
2088
  """Remove and return the value of the custom property assigned to key or default
1865
2089
  when not found (matches Python's dictionary function of the same name).
@@ -1910,9 +2134,14 @@ class FILEBROWSER_HT_header(bpy_types._GenericUI):
1910
2134
  """
1911
2135
  ...
1912
2136
 
1913
- class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
2137
+ class ASSETBROWSER_PT_metadata(
2138
+ bpy_extras.asset_utils.AssetBrowserPanel, bpy_types._GenericUI
2139
+ ):
1914
2140
  bl_label: typing.Any
2141
+ bl_options: typing.Any
2142
+ bl_region_type: typing.Any
1915
2143
  bl_rna: typing.Any
2144
+ bl_space_type: typing.Any
1916
2145
  id_data: typing.Any
1917
2146
 
1918
2147
  def append(self, draw_func):
@@ -1931,6 +2160,13 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
1931
2160
  """
1932
2161
  ...
1933
2162
 
2163
+ def asset_browser_panel_poll(self, context):
2164
+ """
2165
+
2166
+ :param context:
2167
+ """
2168
+ ...
2169
+
1934
2170
  def bl_rna_get_subclass(self) -> bpy.types.Struct:
1935
2171
  """
1936
2172
 
@@ -1947,30 +2183,10 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
1947
2183
  """
1948
2184
  ...
1949
2185
 
1950
- def draw(self, _context):
1951
- """
1952
-
1953
- :param _context:
1954
- """
1955
- ...
1956
-
1957
- def draw_collapsible(self, context, layout):
2186
+ def draw(self, context):
1958
2187
  """
1959
2188
 
1960
2189
  :param context:
1961
- :param layout:
1962
- """
1963
- ...
1964
-
1965
- def draw_preset(self, _context):
1966
- """Define these on the subclass:
1967
- - preset_operator (string)
1968
- - preset_subdir (string)Optionally:
1969
- - preset_add_operator (string)
1970
- - preset_extensions (set of strings)
1971
- - preset_operator_defaults (dict of keyword args)
1972
-
1973
- :param _context:
1974
2190
  """
1975
2191
  ...
1976
2192
 
@@ -2083,6 +2299,16 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
2083
2299
  """
2084
2300
  ...
2085
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
+
2086
2312
  def path_from_id(self) -> str:
2087
2313
  """Returns the data path from the ID to this object (string).
2088
2314
 
@@ -2092,42 +2318,15 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
2092
2318
  """
2093
2319
  ...
2094
2320
 
2095
- def path_menu(
2096
- self,
2097
- searchpaths: list[str],
2098
- operator: str,
2099
- props_default: dict = None,
2100
- prop_filepath: str | None = "filepath",
2101
- filter_ext: collections.abc.Callable | None = None,
2102
- filter_path=None,
2103
- display_name: collections.abc.Callable | None = None,
2104
- add_operator=None,
2105
- add_operator_props=None,
2106
- ):
2107
- """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
+ ...
2108
2324
 
2109
- :param searchpaths: Paths to scan.
2110
- :type searchpaths: list[str]
2111
- :param operator: The operator id to use with each file.
2112
- :type operator: str
2113
- :param props_default: Properties to assign to each operator.
2114
- :type props_default: dict
2115
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
2116
- :type prop_filepath: str | None
2117
- :param filter_ext: Optional callback that takes the file extensions.
2118
-
2119
- Returning false excludes the file from the list.
2120
- :type filter_ext: collections.abc.Callable | None
2121
- :param filter_path:
2122
- :param display_name: Optional callback that takes the full path, returns the name to display.
2123
- :type display_name: collections.abc.Callable | None
2124
- :param add_operator:
2125
- :param add_operator_props:
2325
+ def poll(self, context):
2126
2326
  """
2127
- ...
2128
2327
 
2129
- def path_resolve(self):
2130
- """Returns the property from the path, raise an exception when not found."""
2328
+ :param context:
2329
+ """
2131
2330
  ...
2132
2331
 
2133
2332
  def pop(self):
@@ -2180,9 +2379,13 @@ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
2180
2379
  """
2181
2380
  ...
2182
2381
 
2183
- class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
2382
+ class ASSETBROWSER_PT_metadata_preview(
2383
+ bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
2384
+ ):
2184
2385
  bl_label: typing.Any
2386
+ bl_region_type: typing.Any
2185
2387
  bl_rna: typing.Any
2388
+ bl_space_type: typing.Any
2186
2389
  id_data: typing.Any
2187
2390
 
2188
2391
  def append(self, draw_func):
@@ -2217,30 +2420,10 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
2217
2420
  """
2218
2421
  ...
2219
2422
 
2220
- def draw(self, _context):
2221
- """
2222
-
2223
- :param _context:
2224
- """
2225
- ...
2226
-
2227
- def draw_collapsible(self, context, layout):
2423
+ def draw(self, context):
2228
2424
  """
2229
2425
 
2230
2426
  :param context:
2231
- :param layout:
2232
- """
2233
- ...
2234
-
2235
- def draw_preset(self, _context):
2236
- """Define these on the subclass:
2237
- - preset_operator (string)
2238
- - preset_subdir (string)Optionally:
2239
- - preset_add_operator (string)
2240
- - preset_extensions (set of strings)
2241
- - preset_operator_defaults (dict of keyword args)
2242
-
2243
- :param _context:
2244
2427
  """
2245
2428
  ...
2246
2429
 
@@ -2362,42 +2545,15 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
2362
2545
  """
2363
2546
  ...
2364
2547
 
2365
- def path_menu(
2366
- self,
2367
- searchpaths: list[str],
2368
- operator: str,
2369
- props_default: dict = None,
2370
- prop_filepath: str | None = "filepath",
2371
- filter_ext: collections.abc.Callable | None = None,
2372
- filter_path=None,
2373
- display_name: collections.abc.Callable | None = None,
2374
- add_operator=None,
2375
- add_operator_props=None,
2376
- ):
2377
- """Populate a menu from a list of paths.
2378
-
2379
- :param searchpaths: Paths to scan.
2380
- :type searchpaths: list[str]
2381
- :param operator: The operator id to use with each file.
2382
- :type operator: str
2383
- :param props_default: Properties to assign to each operator.
2384
- :type props_default: dict
2385
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
2386
- :type prop_filepath: str | None
2387
- :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
+ ...
2388
2551
 
2389
- Returning false excludes the file from the list.
2390
- :type filter_ext: collections.abc.Callable | None
2391
- :param filter_path:
2392
- :param display_name: Optional callback that takes the full path, returns the name to display.
2393
- :type display_name: collections.abc.Callable | None
2394
- :param add_operator:
2395
- :param add_operator_props:
2552
+ def poll(self, context):
2396
2553
  """
2397
- ...
2398
2554
 
2399
- def path_resolve(self):
2400
- """Returns the property from the path, raise an exception when not found."""
2555
+ :param context:
2556
+ """
2401
2557
  ...
2402
2558
 
2403
2559
  def pop(self):
@@ -2450,18 +2606,13 @@ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
2450
2606
  """
2451
2607
  ...
2452
2608
 
2453
- class FileBrowserMenu:
2454
- def poll(self, context):
2455
- """
2456
-
2457
- :param context:
2458
- """
2459
- ...
2460
-
2461
- class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
2462
- bl_idname: typing.Any
2609
+ class ASSETBROWSER_PT_metadata_tags(
2610
+ bpy_extras.asset_utils.AssetMetaDataPanel, bpy_types._GenericUI
2611
+ ):
2463
2612
  bl_label: typing.Any
2613
+ bl_region_type: typing.Any
2464
2614
  bl_rna: typing.Any
2615
+ bl_space_type: typing.Any
2465
2616
  id_data: typing.Any
2466
2617
 
2467
2618
  def append(self, draw_func):
@@ -2503,26 +2654,6 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
2503
2654
  """
2504
2655
  ...
2505
2656
 
2506
- def draw_collapsible(self, context, layout):
2507
- """
2508
-
2509
- :param context:
2510
- :param layout:
2511
- """
2512
- ...
2513
-
2514
- def draw_preset(self, _context):
2515
- """Define these on the subclass:
2516
- - preset_operator (string)
2517
- - preset_subdir (string)Optionally:
2518
- - preset_add_operator (string)
2519
- - preset_extensions (set of strings)
2520
- - preset_operator_defaults (dict of keyword args)
2521
-
2522
- :param _context:
2523
- """
2524
- ...
2525
-
2526
2657
  def driver_add(self) -> bpy.types.FCurve:
2527
2658
  """Adds driver(s) to the given property
2528
2659
 
@@ -2641,42 +2772,15 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
2641
2772
  """
2642
2773
  ...
2643
2774
 
2644
- def path_menu(
2645
- self,
2646
- searchpaths: list[str],
2647
- operator: str,
2648
- props_default: dict = None,
2649
- prop_filepath: str | None = "filepath",
2650
- filter_ext: collections.abc.Callable | None = None,
2651
- filter_path=None,
2652
- display_name: collections.abc.Callable | None = None,
2653
- add_operator=None,
2654
- add_operator_props=None,
2655
- ):
2656
- """Populate a menu from a list of paths.
2657
-
2658
- :param searchpaths: Paths to scan.
2659
- :type searchpaths: list[str]
2660
- :param operator: The operator id to use with each file.
2661
- :type operator: str
2662
- :param props_default: Properties to assign to each operator.
2663
- :type props_default: dict
2664
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
2665
- :type prop_filepath: str | None
2666
- :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
+ ...
2667
2778
 
2668
- Returning false excludes the file from the list.
2669
- :type filter_ext: collections.abc.Callable | None
2670
- :param filter_path:
2671
- :param display_name: Optional callback that takes the full path, returns the name to display.
2672
- :type display_name: collections.abc.Callable | None
2673
- :param add_operator:
2674
- :param add_operator_props:
2779
+ def poll(self, context):
2675
2780
  """
2676
- ...
2677
2781
 
2678
- def path_resolve(self):
2679
- """Returns the property from the path, raise an exception when not found."""
2782
+ :param context:
2783
+ """
2680
2784
  ...
2681
2785
 
2682
2786
  def pop(self):
@@ -2729,12 +2833,8 @@ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
2729
2833
  """
2730
2834
  ...
2731
2835
 
2732
- class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
2733
- bl_category: typing.Any
2734
- bl_label: typing.Any
2735
- bl_region_type: typing.Any
2836
+ class ASSETBROWSER_UL_metadata_tags(bpy_types._GenericUI):
2736
2837
  bl_rna: typing.Any
2737
- bl_space_type: typing.Any
2738
2838
  id_data: typing.Any
2739
2839
 
2740
2840
  def append(self, draw_func):
@@ -2769,10 +2869,27 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
2769
2869
  """
2770
2870
  ...
2771
2871
 
2772
- def draw(self, context):
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
+ ):
2773
2883
  """
2774
2884
 
2775
- :param context:
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:
2776
2893
  """
2777
2894
  ...
2778
2895
 
@@ -2898,13 +3015,6 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
2898
3015
  """Returns the property from the path, raise an exception when not found."""
2899
3016
  ...
2900
3017
 
2901
- def poll(self, context):
2902
- """
2903
-
2904
- :param context:
2905
- """
2906
- ...
2907
-
2908
3018
  def pop(self):
2909
3019
  """Remove and return the value of the custom property assigned to key or default
2910
3020
  when not found (matches Python's dictionary function of the same name).
@@ -2955,9 +3065,7 @@ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
2955
3065
  """
2956
3066
  ...
2957
3067
 
2958
- class FileBrowserPanel:
2959
- bl_space_type: typing.Any
2960
-
3068
+ class AssetBrowserMenu:
2961
3069
  def poll(self, context):
2962
3070
  """
2963
3071
 
@@ -2965,10 +3073,7 @@ class FileBrowserPanel:
2965
3073
  """
2966
3074
  ...
2967
3075
 
2968
- class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
2969
- bl_category: typing.Any
2970
- bl_label: typing.Any
2971
- bl_region_type: typing.Any
3076
+ class FILEBROWSER_HT_header(bpy_types._GenericUI):
2972
3077
  bl_rna: typing.Any
2973
3078
  bl_space_type: typing.Any
2974
3079
  id_data: typing.Any
@@ -3012,6 +3117,13 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
3012
3117
  """
3013
3118
  ...
3014
3119
 
3120
+ def draw_asset_browser_buttons(self, context):
3121
+ """
3122
+
3123
+ :param context:
3124
+ """
3125
+ ...
3126
+
3015
3127
  def driver_add(self) -> bpy.types.FCurve:
3016
3128
  """Adds driver(s) to the given property
3017
3129
 
@@ -3134,13 +3246,6 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
3134
3246
  """Returns the property from the path, raise an exception when not found."""
3135
3247
  ...
3136
3248
 
3137
- def poll(self, context):
3138
- """
3139
-
3140
- :param context:
3141
- """
3142
- ...
3143
-
3144
3249
  def pop(self):
3145
3250
  """Remove and return the value of the custom property assigned to key or default
3146
3251
  when not found (matches Python's dictionary function of the same name).
@@ -3191,12 +3296,9 @@ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
3191
3296
  """
3192
3297
  ...
3193
3298
 
3194
- class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
3195
- bl_category: typing.Any
3299
+ class FILEBROWSER_MT_bookmarks_context_menu(bpy_types._GenericUI):
3196
3300
  bl_label: typing.Any
3197
- bl_region_type: typing.Any
3198
3301
  bl_rna: typing.Any
3199
- bl_space_type: typing.Any
3200
3302
  id_data: typing.Any
3201
3303
 
3202
3304
  def append(self, draw_func):
@@ -3231,10 +3333,30 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
3231
3333
  """
3232
3334
  ...
3233
3335
 
3234
- def draw(self, context):
3336
+ def draw(self, _context):
3337
+ """
3338
+
3339
+ :param _context:
3340
+ """
3341
+ ...
3342
+
3343
+ def draw_collapsible(self, context, layout):
3235
3344
  """
3236
3345
 
3237
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:
3238
3360
  """
3239
3361
  ...
3240
3362
 
@@ -3356,17 +3478,44 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
3356
3478
  """
3357
3479
  ...
3358
3480
 
3359
- def path_resolve(self):
3360
- """Returns the property from the path, raise an exception when not found."""
3361
- ...
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.
3362
3494
 
3363
- def poll(self, context):
3364
- """
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.
3365
3504
 
3366
- :param context:
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:
3367
3512
  """
3368
3513
  ...
3369
3514
 
3515
+ def path_resolve(self):
3516
+ """Returns the property from the path, raise an exception when not found."""
3517
+ ...
3518
+
3370
3519
  def pop(self):
3371
3520
  """Remove and return the value of the custom property assigned to key or default
3372
3521
  when not found (matches Python's dictionary function of the same name).
@@ -3417,13 +3566,9 @@ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
3417
3566
  """
3418
3567
  ...
3419
3568
 
3420
- class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
3421
- bl_category: typing.Any
3569
+ class FILEBROWSER_MT_bookmarks_recents_specials_menu(bpy_types._GenericUI):
3422
3570
  bl_label: typing.Any
3423
- bl_region_type: typing.Any
3424
3571
  bl_rna: typing.Any
3425
- bl_space_type: typing.Any
3426
- bl_translation_context: typing.Any
3427
3572
  id_data: typing.Any
3428
3573
 
3429
3574
  def append(self, draw_func):
@@ -3458,10 +3603,30 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
3458
3603
  """
3459
3604
  ...
3460
3605
 
3461
- def draw(self, context):
3606
+ def draw(self, _context):
3607
+ """
3608
+
3609
+ :param _context:
3610
+ """
3611
+ ...
3612
+
3613
+ def draw_collapsible(self, context, layout):
3462
3614
  """
3463
3615
 
3464
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:
3465
3630
  """
3466
3631
  ...
3467
3632
 
@@ -3583,17 +3748,44 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
3583
3748
  """
3584
3749
  ...
3585
3750
 
3586
- def path_resolve(self):
3587
- """Returns the property from the path, raise an exception when not found."""
3588
- ...
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.
3589
3764
 
3590
- def poll(self, context):
3591
- """
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.
3592
3774
 
3593
- :param context:
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:
3594
3782
  """
3595
3783
  ...
3596
3784
 
3785
+ def path_resolve(self):
3786
+ """Returns the property from the path, raise an exception when not found."""
3787
+ ...
3788
+
3597
3789
  def pop(self):
3598
3790
  """Remove and return the value of the custom property assigned to key or default
3599
3791
  when not found (matches Python's dictionary function of the same name).
@@ -3644,13 +3836,9 @@ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
3644
3836
  """
3645
3837
  ...
3646
3838
 
3647
- class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
3648
- bl_category: typing.Any
3839
+ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
3649
3840
  bl_label: typing.Any
3650
- bl_options: typing.Any
3651
- bl_region_type: typing.Any
3652
3841
  bl_rna: typing.Any
3653
- bl_space_type: typing.Any
3654
3842
  id_data: typing.Any
3655
3843
 
3656
3844
  def append(self, draw_func):
@@ -3692,6 +3880,26 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
3692
3880
  """
3693
3881
  ...
3694
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
+
3695
3903
  def driver_add(self) -> bpy.types.FCurve:
3696
3904
  """Adds driver(s) to the given property
3697
3905
 
@@ -3737,13 +3945,6 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
3737
3945
  ...
3738
3946
 
3739
3947
  def is_extended(self): ...
3740
- def is_header_visible(self, context):
3741
- """
3742
-
3743
- :param context:
3744
- """
3745
- ...
3746
-
3747
3948
  def is_property_hidden(self) -> bool:
3748
3949
  """Check if a property is hidden.
3749
3950
 
@@ -3817,6 +4018,40 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
3817
4018
  """
3818
4019
  ...
3819
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
+
3820
4055
  def path_resolve(self):
3821
4056
  """Returns the property from the path, raise an exception when not found."""
3822
4057
  ...
@@ -3878,7 +4113,9 @@ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
3878
4113
  """
3879
4114
  ...
3880
4115
 
3881
- class FILEBROWSER_UL_dir(bpy_types._GenericUI):
4116
+ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
4117
+ bl_idname: typing.Any
4118
+ bl_label: typing.Any
3882
4119
  bl_rna: typing.Any
3883
4120
  id_data: typing.Any
3884
4121
 
@@ -3914,27 +4151,30 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
3914
4151
  """
3915
4152
  ...
3916
4153
 
3917
- def draw_item(
3918
- self,
3919
- _context,
3920
- layout,
3921
- _data,
3922
- item,
3923
- icon,
3924
- _active_data,
3925
- _active_propname,
3926
- _index,
3927
- ):
4154
+ def draw(self, _context):
3928
4155
  """
3929
4156
 
3930
- :param _context:
3931
- :param layout:
3932
- :param _data:
3933
- :param item:
3934
- :param icon:
3935
- :param _active_data:
3936
- :param _active_propname:
3937
- :param _index:
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:
3938
4178
  """
3939
4179
  ...
3940
4180
 
@@ -4056,10 +4296,51 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
4056
4296
  """
4057
4297
  ...
4058
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
+
4059
4333
  def path_resolve(self):
4060
4334
  """Returns the property from the path, raise an exception when not found."""
4061
4335
  ...
4062
4336
 
4337
+ def poll(self, context):
4338
+ """
4339
+
4340
+ :param context:
4341
+ """
4342
+ ...
4343
+
4063
4344
  def pop(self):
4064
4345
  """Remove and return the value of the custom property assigned to key or default
4065
4346
  when not found (matches Python's dictionary function of the same name).
@@ -4110,7 +4391,7 @@ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
4110
4391
  """
4111
4392
  ...
4112
4393
 
4113
- class ASSETBROWSER_MT_catalog(AssetBrowserMenu, bpy_types._GenericUI):
4394
+ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
4114
4395
  bl_label: typing.Any
4115
4396
  bl_rna: typing.Any
4116
4397
  id_data: typing.Any
@@ -4387,7 +4668,7 @@ class ASSETBROWSER_MT_catalog(AssetBrowserMenu, bpy_types._GenericUI):
4387
4668
  """
4388
4669
  ...
4389
4670
 
4390
- class ASSETBROWSER_MT_context_menu(AssetBrowserMenu, bpy_types._GenericUI):
4671
+ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
4391
4672
  bl_label: typing.Any
4392
4673
  bl_rna: typing.Any
4393
4674
  id_data: typing.Any
@@ -4664,7 +4945,7 @@ class ASSETBROWSER_MT_context_menu(AssetBrowserMenu, bpy_types._GenericUI):
4664
4945
  """
4665
4946
  ...
4666
4947
 
4667
- class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
4948
+ class FILEBROWSER_MT_view_pie(bpy_types._GenericUI):
4668
4949
  bl_idname: typing.Any
4669
4950
  bl_label: typing.Any
4670
4951
  bl_rna: typing.Any
@@ -4885,13 +5166,6 @@ class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
4885
5166
  """Returns the property from the path, raise an exception when not found."""
4886
5167
  ...
4887
5168
 
4888
- def poll(self, context):
4889
- """
4890
-
4891
- :param context:
4892
- """
4893
- ...
4894
-
4895
5169
  def pop(self):
4896
5170
  """Remove and return the value of the custom property assigned to key or default
4897
5171
  when not found (matches Python's dictionary function of the same name).
@@ -4942,9 +5216,12 @@ class ASSETBROWSER_MT_editor_menus(AssetBrowserMenu, bpy_types._GenericUI):
4942
5216
  """
4943
5217
  ...
4944
5218
 
4945
- class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
5219
+ class FILEBROWSER_PT_advanced_filter(bpy_types._GenericUI):
5220
+ bl_category: typing.Any
4946
5221
  bl_label: typing.Any
5222
+ bl_region_type: typing.Any
4947
5223
  bl_rna: typing.Any
5224
+ bl_space_type: typing.Any
4948
5225
  id_data: typing.Any
4949
5226
 
4950
5227
  def append(self, draw_func):
@@ -4979,30 +5256,10 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
4979
5256
  """
4980
5257
  ...
4981
5258
 
4982
- def draw(self, _context):
4983
- """
4984
-
4985
- :param _context:
4986
- """
4987
- ...
4988
-
4989
- def draw_collapsible(self, context, layout):
5259
+ def draw(self, context):
4990
5260
  """
4991
5261
 
4992
5262
  :param context:
4993
- :param layout:
4994
- """
4995
- ...
4996
-
4997
- def draw_preset(self, _context):
4998
- """Define these on the subclass:
4999
- - preset_operator (string)
5000
- - preset_subdir (string)Optionally:
5001
- - preset_add_operator (string)
5002
- - preset_extensions (set of strings)
5003
- - preset_operator_defaults (dict of keyword args)
5004
-
5005
- :param _context:
5006
5263
  """
5007
5264
  ...
5008
5265
 
@@ -5124,40 +5381,6 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
5124
5381
  """
5125
5382
  ...
5126
5383
 
5127
- def path_menu(
5128
- self,
5129
- searchpaths: list[str],
5130
- operator: str,
5131
- props_default: dict = None,
5132
- prop_filepath: str | None = "filepath",
5133
- filter_ext: collections.abc.Callable | None = None,
5134
- filter_path=None,
5135
- display_name: collections.abc.Callable | None = None,
5136
- add_operator=None,
5137
- add_operator_props=None,
5138
- ):
5139
- """Populate a menu from a list of paths.
5140
-
5141
- :param searchpaths: Paths to scan.
5142
- :type searchpaths: list[str]
5143
- :param operator: The operator id to use with each file.
5144
- :type operator: str
5145
- :param props_default: Properties to assign to each operator.
5146
- :type props_default: dict
5147
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
5148
- :type prop_filepath: str | None
5149
- :param filter_ext: Optional callback that takes the file extensions.
5150
-
5151
- Returning false excludes the file from the list.
5152
- :type filter_ext: collections.abc.Callable | None
5153
- :param filter_path:
5154
- :param display_name: Optional callback that takes the full path, returns the name to display.
5155
- :type display_name: collections.abc.Callable | None
5156
- :param add_operator:
5157
- :param add_operator_props:
5158
- """
5159
- ...
5160
-
5161
5384
  def path_resolve(self):
5162
5385
  """Returns the property from the path, raise an exception when not found."""
5163
5386
  ...
@@ -5219,9 +5442,12 @@ class ASSETBROWSER_MT_select(AssetBrowserMenu, bpy_types._GenericUI):
5219
5442
  """
5220
5443
  ...
5221
5444
 
5222
- class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
5445
+ class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, bpy_types._GenericUI):
5446
+ bl_category: typing.Any
5223
5447
  bl_label: typing.Any
5448
+ bl_region_type: typing.Any
5224
5449
  bl_rna: typing.Any
5450
+ bl_space_type: typing.Any
5225
5451
  id_data: typing.Any
5226
5452
 
5227
5453
  def append(self, draw_func):
@@ -5263,26 +5489,6 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
5263
5489
  """
5264
5490
  ...
5265
5491
 
5266
- def draw_collapsible(self, context, layout):
5267
- """
5268
-
5269
- :param context:
5270
- :param layout:
5271
- """
5272
- ...
5273
-
5274
- def draw_preset(self, _context):
5275
- """Define these on the subclass:
5276
- - preset_operator (string)
5277
- - preset_subdir (string)Optionally:
5278
- - preset_add_operator (string)
5279
- - preset_extensions (set of strings)
5280
- - preset_operator_defaults (dict of keyword args)
5281
-
5282
- :param _context:
5283
- """
5284
- ...
5285
-
5286
5492
  def driver_add(self) -> bpy.types.FCurve:
5287
5493
  """Adds driver(s) to the given property
5288
5494
 
@@ -5401,40 +5607,6 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
5401
5607
  """
5402
5608
  ...
5403
5609
 
5404
- def path_menu(
5405
- self,
5406
- searchpaths: list[str],
5407
- operator: str,
5408
- props_default: dict = None,
5409
- prop_filepath: str | None = "filepath",
5410
- filter_ext: collections.abc.Callable | None = None,
5411
- filter_path=None,
5412
- display_name: collections.abc.Callable | None = None,
5413
- add_operator=None,
5414
- add_operator_props=None,
5415
- ):
5416
- """Populate a menu from a list of paths.
5417
-
5418
- :param searchpaths: Paths to scan.
5419
- :type searchpaths: list[str]
5420
- :param operator: The operator id to use with each file.
5421
- :type operator: str
5422
- :param props_default: Properties to assign to each operator.
5423
- :type props_default: dict
5424
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
5425
- :type prop_filepath: str | None
5426
- :param filter_ext: Optional callback that takes the file extensions.
5427
-
5428
- Returning false excludes the file from the list.
5429
- :type filter_ext: collections.abc.Callable | None
5430
- :param filter_path:
5431
- :param display_name: Optional callback that takes the full path, returns the name to display.
5432
- :type display_name: collections.abc.Callable | None
5433
- :param add_operator:
5434
- :param add_operator_props:
5435
- """
5436
- ...
5437
-
5438
5610
  def path_resolve(self):
5439
5611
  """Returns the property from the path, raise an exception when not found."""
5440
5612
  ...
@@ -5496,9 +5668,12 @@ class ASSETBROWSER_MT_view(AssetBrowserMenu, bpy_types._GenericUI):
5496
5668
  """
5497
5669
  ...
5498
5670
 
5499
- class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
5671
+ class FILEBROWSER_PT_bookmarks_recents(bpy_types._GenericUI):
5672
+ bl_category: typing.Any
5500
5673
  bl_label: typing.Any
5674
+ bl_region_type: typing.Any
5501
5675
  bl_rna: typing.Any
5676
+ bl_space_type: typing.Any
5502
5677
  id_data: typing.Any
5503
5678
 
5504
5679
  def append(self, draw_func):
@@ -5540,26 +5715,6 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
5540
5715
  """
5541
5716
  ...
5542
5717
 
5543
- def draw_collapsible(self, context, layout):
5544
- """
5545
-
5546
- :param context:
5547
- :param layout:
5548
- """
5549
- ...
5550
-
5551
- def draw_preset(self, _context):
5552
- """Define these on the subclass:
5553
- - preset_operator (string)
5554
- - preset_subdir (string)Optionally:
5555
- - preset_add_operator (string)
5556
- - preset_extensions (set of strings)
5557
- - preset_operator_defaults (dict of keyword args)
5558
-
5559
- :param _context:
5560
- """
5561
- ...
5562
-
5563
5718
  def driver_add(self) -> bpy.types.FCurve:
5564
5719
  """Adds driver(s) to the given property
5565
5720
 
@@ -5668,47 +5823,13 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
5668
5823
  :return: custom property keys.
5669
5824
  """
5670
5825
  ...
5671
-
5672
- def path_from_id(self) -> str:
5673
- """Returns the data path from the ID to this object (string).
5674
-
5675
- :return: The path from `bpy.types.bpy_struct.id_data`
5676
- to this struct and property (when given).
5677
- :rtype: str
5678
- """
5679
- ...
5680
-
5681
- def path_menu(
5682
- self,
5683
- searchpaths: list[str],
5684
- operator: str,
5685
- props_default: dict = None,
5686
- prop_filepath: str | None = "filepath",
5687
- filter_ext: collections.abc.Callable | None = None,
5688
- filter_path=None,
5689
- display_name: collections.abc.Callable | None = None,
5690
- add_operator=None,
5691
- add_operator_props=None,
5692
- ):
5693
- """Populate a menu from a list of paths.
5694
-
5695
- :param searchpaths: Paths to scan.
5696
- :type searchpaths: list[str]
5697
- :param operator: The operator id to use with each file.
5698
- :type operator: str
5699
- :param props_default: Properties to assign to each operator.
5700
- :type props_default: dict
5701
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
5702
- :type prop_filepath: str | None
5703
- :param filter_ext: Optional callback that takes the file extensions.
5704
-
5705
- Returning false excludes the file from the list.
5706
- :type filter_ext: collections.abc.Callable | None
5707
- :param filter_path:
5708
- :param display_name: Optional callback that takes the full path, returns the name to display.
5709
- :type display_name: collections.abc.Callable | None
5710
- :param add_operator:
5711
- :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
5712
5833
  """
5713
5834
  ...
5714
5835
 
@@ -5773,10 +5894,12 @@ class FILEBROWSER_MT_context_menu(FileBrowserMenu, bpy_types._GenericUI):
5773
5894
  """
5774
5895
  ...
5775
5896
 
5776
- class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
5777
- bl_idname: typing.Any
5897
+ class FILEBROWSER_PT_bookmarks_system(bpy_types._GenericUI):
5898
+ bl_category: typing.Any
5778
5899
  bl_label: typing.Any
5900
+ bl_region_type: typing.Any
5779
5901
  bl_rna: typing.Any
5902
+ bl_space_type: typing.Any
5780
5903
  id_data: typing.Any
5781
5904
 
5782
5905
  def append(self, draw_func):
@@ -5811,30 +5934,10 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
5811
5934
  """
5812
5935
  ...
5813
5936
 
5814
- def draw(self, _context):
5815
- """
5816
-
5817
- :param _context:
5818
- """
5819
- ...
5820
-
5821
- def draw_collapsible(self, context, layout):
5937
+ def draw(self, context):
5822
5938
  """
5823
5939
 
5824
5940
  :param context:
5825
- :param layout:
5826
- """
5827
- ...
5828
-
5829
- def draw_preset(self, _context):
5830
- """Define these on the subclass:
5831
- - preset_operator (string)
5832
- - preset_subdir (string)Optionally:
5833
- - preset_add_operator (string)
5834
- - preset_extensions (set of strings)
5835
- - preset_operator_defaults (dict of keyword args)
5836
-
5837
- :param _context:
5838
5941
  """
5839
5942
  ...
5840
5943
 
@@ -5956,40 +6059,6 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
5956
6059
  """
5957
6060
  ...
5958
6061
 
5959
- def path_menu(
5960
- self,
5961
- searchpaths: list[str],
5962
- operator: str,
5963
- props_default: dict = None,
5964
- prop_filepath: str | None = "filepath",
5965
- filter_ext: collections.abc.Callable | None = None,
5966
- filter_path=None,
5967
- display_name: collections.abc.Callable | None = None,
5968
- add_operator=None,
5969
- add_operator_props=None,
5970
- ):
5971
- """Populate a menu from a list of paths.
5972
-
5973
- :param searchpaths: Paths to scan.
5974
- :type searchpaths: list[str]
5975
- :param operator: The operator id to use with each file.
5976
- :type operator: str
5977
- :param props_default: Properties to assign to each operator.
5978
- :type props_default: dict
5979
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
5980
- :type prop_filepath: str | None
5981
- :param filter_ext: Optional callback that takes the file extensions.
5982
-
5983
- Returning false excludes the file from the list.
5984
- :type filter_ext: collections.abc.Callable | None
5985
- :param filter_path:
5986
- :param display_name: Optional callback that takes the full path, returns the name to display.
5987
- :type display_name: collections.abc.Callable | None
5988
- :param add_operator:
5989
- :param add_operator_props:
5990
- """
5991
- ...
5992
-
5993
6062
  def path_resolve(self):
5994
6063
  """Returns the property from the path, raise an exception when not found."""
5995
6064
  ...
@@ -6051,9 +6120,13 @@ class FILEBROWSER_MT_editor_menus(FileBrowserMenu, bpy_types._GenericUI):
6051
6120
  """
6052
6121
  ...
6053
6122
 
6054
- class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
6123
+ class FILEBROWSER_PT_bookmarks_volumes(bpy_types._GenericUI):
6124
+ bl_category: typing.Any
6055
6125
  bl_label: typing.Any
6126
+ bl_region_type: typing.Any
6056
6127
  bl_rna: typing.Any
6128
+ bl_space_type: typing.Any
6129
+ bl_translation_context: typing.Any
6057
6130
  id_data: typing.Any
6058
6131
 
6059
6132
  def append(self, draw_func):
@@ -6088,30 +6161,10 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
6088
6161
  """
6089
6162
  ...
6090
6163
 
6091
- def draw(self, _context):
6092
- """
6093
-
6094
- :param _context:
6095
- """
6096
- ...
6097
-
6098
- def draw_collapsible(self, context, layout):
6164
+ def draw(self, context):
6099
6165
  """
6100
6166
 
6101
6167
  :param context:
6102
- :param layout:
6103
- """
6104
- ...
6105
-
6106
- def draw_preset(self, _context):
6107
- """Define these on the subclass:
6108
- - preset_operator (string)
6109
- - preset_subdir (string)Optionally:
6110
- - preset_add_operator (string)
6111
- - preset_extensions (set of strings)
6112
- - preset_operator_defaults (dict of keyword args)
6113
-
6114
- :param _context:
6115
6168
  """
6116
6169
  ...
6117
6170
 
@@ -6233,40 +6286,6 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
6233
6286
  """
6234
6287
  ...
6235
6288
 
6236
- def path_menu(
6237
- self,
6238
- searchpaths: list[str],
6239
- operator: str,
6240
- props_default: dict = None,
6241
- prop_filepath: str | None = "filepath",
6242
- filter_ext: collections.abc.Callable | None = None,
6243
- filter_path=None,
6244
- display_name: collections.abc.Callable | None = None,
6245
- add_operator=None,
6246
- add_operator_props=None,
6247
- ):
6248
- """Populate a menu from a list of paths.
6249
-
6250
- :param searchpaths: Paths to scan.
6251
- :type searchpaths: list[str]
6252
- :param operator: The operator id to use with each file.
6253
- :type operator: str
6254
- :param props_default: Properties to assign to each operator.
6255
- :type props_default: dict
6256
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
6257
- :type prop_filepath: str | None
6258
- :param filter_ext: Optional callback that takes the file extensions.
6259
-
6260
- Returning false excludes the file from the list.
6261
- :type filter_ext: collections.abc.Callable | None
6262
- :param filter_path:
6263
- :param display_name: Optional callback that takes the full path, returns the name to display.
6264
- :type display_name: collections.abc.Callable | None
6265
- :param add_operator:
6266
- :param add_operator_props:
6267
- """
6268
- ...
6269
-
6270
6289
  def path_resolve(self):
6271
6290
  """Returns the property from the path, raise an exception when not found."""
6272
6291
  ...
@@ -6328,9 +6347,13 @@ class FILEBROWSER_MT_select(FileBrowserMenu, bpy_types._GenericUI):
6328
6347
  """
6329
6348
  ...
6330
6349
 
6331
- class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
6350
+ class FILEBROWSER_PT_directory_path(bpy_types._GenericUI):
6351
+ bl_category: typing.Any
6332
6352
  bl_label: typing.Any
6353
+ bl_options: typing.Any
6354
+ bl_region_type: typing.Any
6333
6355
  bl_rna: typing.Any
6356
+ bl_space_type: typing.Any
6334
6357
  id_data: typing.Any
6335
6358
 
6336
6359
  def append(self, draw_func):
@@ -6372,26 +6395,6 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
6372
6395
  """
6373
6396
  ...
6374
6397
 
6375
- def draw_collapsible(self, context, layout):
6376
- """
6377
-
6378
- :param context:
6379
- :param layout:
6380
- """
6381
- ...
6382
-
6383
- def draw_preset(self, _context):
6384
- """Define these on the subclass:
6385
- - preset_operator (string)
6386
- - preset_subdir (string)Optionally:
6387
- - preset_add_operator (string)
6388
- - preset_extensions (set of strings)
6389
- - preset_operator_defaults (dict of keyword args)
6390
-
6391
- :param _context:
6392
- """
6393
- ...
6394
-
6395
6398
  def driver_add(self) -> bpy.types.FCurve:
6396
6399
  """Adds driver(s) to the given property
6397
6400
 
@@ -6437,6 +6440,13 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
6437
6440
  ...
6438
6441
 
6439
6442
  def is_extended(self): ...
6443
+ def is_header_visible(self, context):
6444
+ """
6445
+
6446
+ :param context:
6447
+ """
6448
+ ...
6449
+
6440
6450
  def is_property_hidden(self) -> bool:
6441
6451
  """Check if a property is hidden.
6442
6452
 
@@ -6510,40 +6520,6 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
6510
6520
  """
6511
6521
  ...
6512
6522
 
6513
- def path_menu(
6514
- self,
6515
- searchpaths: list[str],
6516
- operator: str,
6517
- props_default: dict = None,
6518
- prop_filepath: str | None = "filepath",
6519
- filter_ext: collections.abc.Callable | None = None,
6520
- filter_path=None,
6521
- display_name: collections.abc.Callable | None = None,
6522
- add_operator=None,
6523
- add_operator_props=None,
6524
- ):
6525
- """Populate a menu from a list of paths.
6526
-
6527
- :param searchpaths: Paths to scan.
6528
- :type searchpaths: list[str]
6529
- :param operator: The operator id to use with each file.
6530
- :type operator: str
6531
- :param props_default: Properties to assign to each operator.
6532
- :type props_default: dict
6533
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
6534
- :type prop_filepath: str | None
6535
- :param filter_ext: Optional callback that takes the file extensions.
6536
-
6537
- Returning false excludes the file from the list.
6538
- :type filter_ext: collections.abc.Callable | None
6539
- :param filter_path:
6540
- :param display_name: Optional callback that takes the full path, returns the name to display.
6541
- :type display_name: collections.abc.Callable | None
6542
- :param add_operator:
6543
- :param add_operator_props:
6544
- """
6545
- ...
6546
-
6547
6523
  def path_resolve(self):
6548
6524
  """Returns the property from the path, raise an exception when not found."""
6549
6525
  ...
@@ -6605,12 +6581,12 @@ class FILEBROWSER_MT_view(FileBrowserMenu, bpy_types._GenericUI):
6605
6581
  """
6606
6582
  ...
6607
6583
 
6608
- class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, bpy_types._GenericUI):
6609
- bl_category: typing.Any
6584
+ class FILEBROWSER_PT_display(FileBrowserPanel, bpy_types._GenericUI):
6610
6585
  bl_label: typing.Any
6611
6586
  bl_region_type: typing.Any
6612
6587
  bl_rna: typing.Any
6613
6588
  bl_space_type: typing.Any
6589
+ bl_ui_units_x: typing.Any
6614
6590
  id_data: typing.Any
6615
6591
 
6616
6592
  def append(self, draw_func):
@@ -6831,7 +6807,7 @@ class FILEBROWSER_PT_bookmarks_favorites(FileBrowserPanel, bpy_types._GenericUI)
6831
6807
  """
6832
6808
  ...
6833
6809
 
6834
- class FILEBROWSER_PT_display(FileBrowserPanel, bpy_types._GenericUI):
6810
+ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
6835
6811
  bl_label: typing.Any
6836
6812
  bl_region_type: typing.Any
6837
6813
  bl_rna: typing.Any
@@ -7057,12 +7033,8 @@ class FILEBROWSER_PT_display(FileBrowserPanel, bpy_types._GenericUI):
7057
7033
  """
7058
7034
  ...
7059
7035
 
7060
- class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
7061
- bl_label: typing.Any
7062
- bl_region_type: typing.Any
7036
+ class FILEBROWSER_UL_dir(bpy_types._GenericUI):
7063
7037
  bl_rna: typing.Any
7064
- bl_space_type: typing.Any
7065
- bl_ui_units_x: typing.Any
7066
7038
  id_data: typing.Any
7067
7039
 
7068
7040
  def append(self, draw_func):
@@ -7097,10 +7069,27 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
7097
7069
  """
7098
7070
  ...
7099
7071
 
7100
- def draw(self, context):
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
+ ):
7101
7083
  """
7102
7084
 
7103
- :param context:
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:
7104
7093
  """
7105
7094
  ...
7106
7095
 
@@ -7226,13 +7215,6 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
7226
7215
  """Returns the property from the path, raise an exception when not found."""
7227
7216
  ...
7228
7217
 
7229
- def poll(self, context):
7230
- """
7231
-
7232
- :param context:
7233
- """
7234
- ...
7235
-
7236
7218
  def pop(self):
7237
7219
  """Remove and return the value of the custom property assigned to key or default
7238
7220
  when not found (matches Python's dictionary function of the same name).
@@ -7283,6 +7265,24 @@ class FILEBROWSER_PT_filter(FileBrowserPanel, bpy_types._GenericUI):
7283
7265
  """
7284
7266
  ...
7285
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
+
7286
7286
  def asset_path_str_get(_self): ...
7287
7287
  def is_option_region_visible(context, space): ...
7288
7288
  def panel_poll_is_asset_browsing(context): ...