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,64 +8,13 @@ import rna_prop_ui
8
8
  GenericType1 = typing.TypeVar("GenericType1")
9
9
  GenericType2 = typing.TypeVar("GenericType2")
10
10
 
11
- class DataButtonsPanel:
12
- bl_context: typing.Any
13
- bl_region_type: typing.Any
14
- bl_space_type: typing.Any
15
-
16
- def poll(self, context):
17
- """
18
-
19
- :param context:
20
- """
21
- ...
22
-
23
- class LayerDataButtonsPanel:
11
+ class DATA_PT_context_grease_pencil(DataButtonsPanel, bpy_types._GenericUI):
24
12
  bl_context: typing.Any
25
- bl_region_type: typing.Any
26
- bl_space_type: typing.Any
27
-
28
- def poll(self, context):
29
- """
30
-
31
- :param context:
32
- """
33
- ...
34
-
35
- class GreasePencil_LayerMaskPanel:
36
- def draw(self, context):
37
- """
38
-
39
- :param context:
40
- """
41
- ...
42
-
43
- def draw_header(self, context):
44
- """
45
-
46
- :param context:
47
- """
48
- ...
49
-
50
- class GreasPencil_LayerRelationsPanel:
51
- def draw(self, context):
52
- """
53
-
54
- :param context:
55
- """
56
- ...
57
-
58
- class GreasePencil_LayerTransformPanel:
59
- def draw(self, context):
60
- """
61
-
62
- :param context:
63
- """
64
- ...
65
-
66
- class GREASE_PENCIL_MT_grease_pencil_add_layer_extra(bpy_types._GenericUI):
67
13
  bl_label: typing.Any
14
+ bl_options: typing.Any
15
+ bl_region_type: typing.Any
68
16
  bl_rna: typing.Any
17
+ bl_space_type: typing.Any
69
18
  id_data: typing.Any
70
19
 
71
20
  def append(self, draw_func):
@@ -107,26 +56,6 @@ class GREASE_PENCIL_MT_grease_pencil_add_layer_extra(bpy_types._GenericUI):
107
56
  """
108
57
  ...
109
58
 
110
- def draw_collapsible(self, context, layout):
111
- """
112
-
113
- :param context:
114
- :param layout:
115
- """
116
- ...
117
-
118
- def draw_preset(self, _context):
119
- """Define these on the subclass:
120
- - preset_operator (string)
121
- - preset_subdir (string)Optionally:
122
- - preset_add_operator (string)
123
- - preset_extensions (set of strings)
124
- - preset_operator_defaults (dict of keyword args)
125
-
126
- :param _context:
127
- """
128
- ...
129
-
130
59
  def driver_add(self) -> bpy.types.FCurve:
131
60
  """Adds driver(s) to the given property
132
61
 
@@ -245,42 +174,15 @@ class GREASE_PENCIL_MT_grease_pencil_add_layer_extra(bpy_types._GenericUI):
245
174
  """
246
175
  ...
247
176
 
248
- def path_menu(
249
- self,
250
- searchpaths: list[str],
251
- operator: str,
252
- props_default: dict = None,
253
- prop_filepath: str | None = "filepath",
254
- filter_ext: collections.abc.Callable | None = None,
255
- filter_path=None,
256
- display_name: collections.abc.Callable | None = None,
257
- add_operator=None,
258
- add_operator_props=None,
259
- ):
260
- """Populate a menu from a list of paths.
261
-
262
- :param searchpaths: Paths to scan.
263
- :type searchpaths: list[str]
264
- :param operator: The operator id to use with each file.
265
- :type operator: str
266
- :param props_default: Properties to assign to each operator.
267
- :type props_default: dict
268
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
269
- :type prop_filepath: str | None
270
- :param filter_ext: Optional callback that takes the file extensions.
177
+ def path_resolve(self):
178
+ """Returns the property from the path, raise an exception when not found."""
179
+ ...
271
180
 
272
- Returning false excludes the file from the list.
273
- :type filter_ext: collections.abc.Callable | None
274
- :param filter_path:
275
- :param display_name: Optional callback that takes the full path, returns the name to display.
276
- :type display_name: collections.abc.Callable | None
277
- :param add_operator:
278
- :param add_operator_props:
181
+ def poll(self, context):
279
182
  """
280
- ...
281
183
 
282
- def path_resolve(self):
283
- """Returns the property from the path, raise an exception when not found."""
184
+ :param context:
185
+ """
284
186
  ...
285
187
 
286
188
  def pop(self):
@@ -333,9 +235,20 @@ class GREASE_PENCIL_MT_grease_pencil_add_layer_extra(bpy_types._GenericUI):
333
235
  """
334
236
  ...
335
237
 
336
- class GREASE_PENCIL_MT_group_context_menu(bpy_types._GenericUI):
238
+ class DATA_PT_grease_pencil_custom_props(
239
+ DataButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
240
+ ):
241
+ """The subclass should have its own poll function
242
+ and the variable '_context_path' MUST be set.
243
+ """
244
+
245
+ bl_context: typing.Any
337
246
  bl_label: typing.Any
247
+ bl_options: typing.Any
248
+ bl_order: typing.Any
249
+ bl_region_type: typing.Any
338
250
  bl_rna: typing.Any
251
+ bl_space_type: typing.Any
339
252
  id_data: typing.Any
340
253
 
341
254
  def append(self, draw_func):
@@ -377,26 +290,6 @@ class GREASE_PENCIL_MT_group_context_menu(bpy_types._GenericUI):
377
290
  """
378
291
  ...
379
292
 
380
- def draw_collapsible(self, context, layout):
381
- """
382
-
383
- :param context:
384
- :param layout:
385
- """
386
- ...
387
-
388
- def draw_preset(self, _context):
389
- """Define these on the subclass:
390
- - preset_operator (string)
391
- - preset_subdir (string)Optionally:
392
- - preset_add_operator (string)
393
- - preset_extensions (set of strings)
394
- - preset_operator_defaults (dict of keyword args)
395
-
396
- :param _context:
397
- """
398
- ...
399
-
400
293
  def driver_add(self) -> bpy.types.FCurve:
401
294
  """Adds driver(s) to the given property
402
295
 
@@ -515,42 +408,15 @@ class GREASE_PENCIL_MT_group_context_menu(bpy_types._GenericUI):
515
408
  """
516
409
  ...
517
410
 
518
- def path_menu(
519
- self,
520
- searchpaths: list[str],
521
- operator: str,
522
- props_default: dict = None,
523
- prop_filepath: str | None = "filepath",
524
- filter_ext: collections.abc.Callable | None = None,
525
- filter_path=None,
526
- display_name: collections.abc.Callable | None = None,
527
- add_operator=None,
528
- add_operator_props=None,
529
- ):
530
- """Populate a menu from a list of paths.
531
-
532
- :param searchpaths: Paths to scan.
533
- :type searchpaths: list[str]
534
- :param operator: The operator id to use with each file.
535
- :type operator: str
536
- :param props_default: Properties to assign to each operator.
537
- :type props_default: dict
538
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
539
- :type prop_filepath: str | None
540
- :param filter_ext: Optional callback that takes the file extensions.
411
+ def path_resolve(self):
412
+ """Returns the property from the path, raise an exception when not found."""
413
+ ...
541
414
 
542
- Returning false excludes the file from the list.
543
- :type filter_ext: collections.abc.Callable | None
544
- :param filter_path:
545
- :param display_name: Optional callback that takes the full path, returns the name to display.
546
- :type display_name: collections.abc.Callable | None
547
- :param add_operator:
548
- :param add_operator_props:
415
+ def poll(self, context):
549
416
  """
550
- ...
551
417
 
552
- def path_resolve(self):
553
- """Returns the property from the path, raise an exception when not found."""
418
+ :param context:
419
+ """
554
420
  ...
555
421
 
556
422
  def pop(self):
@@ -603,9 +469,16 @@ class GREASE_PENCIL_MT_group_context_menu(bpy_types._GenericUI):
603
469
  """
604
470
  ...
605
471
 
606
- class GREASE_PENCIL_MT_layer_mask_add(bpy_types._GenericUI):
472
+ class DATA_PT_grease_pencil_layer_masks(
473
+ LayerDataButtonsPanel, GreasePencil_LayerMaskPanel, bpy_types._GenericUI
474
+ ):
475
+ bl_context: typing.Any
607
476
  bl_label: typing.Any
477
+ bl_options: typing.Any
478
+ bl_parent_id: typing.Any
479
+ bl_region_type: typing.Any
608
480
  bl_rna: typing.Any
481
+ bl_space_type: typing.Any
609
482
  id_data: typing.Any
610
483
 
611
484
  def append(self, draw_func):
@@ -647,23 +520,10 @@ class GREASE_PENCIL_MT_layer_mask_add(bpy_types._GenericUI):
647
520
  """
648
521
  ...
649
522
 
650
- def draw_collapsible(self, context, layout):
523
+ def draw_header(self, context):
651
524
  """
652
525
 
653
526
  :param context:
654
- :param layout:
655
- """
656
- ...
657
-
658
- def draw_preset(self, _context):
659
- """Define these on the subclass:
660
- - preset_operator (string)
661
- - preset_subdir (string)Optionally:
662
- - preset_add_operator (string)
663
- - preset_extensions (set of strings)
664
- - preset_operator_defaults (dict of keyword args)
665
-
666
- :param _context:
667
527
  """
668
528
  ...
669
529
 
@@ -785,42 +645,15 @@ class GREASE_PENCIL_MT_layer_mask_add(bpy_types._GenericUI):
785
645
  """
786
646
  ...
787
647
 
788
- def path_menu(
789
- self,
790
- searchpaths: list[str],
791
- operator: str,
792
- props_default: dict = None,
793
- prop_filepath: str | None = "filepath",
794
- filter_ext: collections.abc.Callable | None = None,
795
- filter_path=None,
796
- display_name: collections.abc.Callable | None = None,
797
- add_operator=None,
798
- add_operator_props=None,
799
- ):
800
- """Populate a menu from a list of paths.
801
-
802
- :param searchpaths: Paths to scan.
803
- :type searchpaths: list[str]
804
- :param operator: The operator id to use with each file.
805
- :type operator: str
806
- :param props_default: Properties to assign to each operator.
807
- :type props_default: dict
808
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
809
- :type prop_filepath: str | None
810
- :param filter_ext: Optional callback that takes the file extensions.
648
+ def path_resolve(self):
649
+ """Returns the property from the path, raise an exception when not found."""
650
+ ...
811
651
 
812
- Returning false excludes the file from the list.
813
- :type filter_ext: collections.abc.Callable | None
814
- :param filter_path:
815
- :param display_name: Optional callback that takes the full path, returns the name to display.
816
- :type display_name: collections.abc.Callable | None
817
- :param add_operator:
818
- :param add_operator_props:
652
+ def poll(self, context):
819
653
  """
820
- ...
821
654
 
822
- def path_resolve(self):
823
- """Returns the property from the path, raise an exception when not found."""
655
+ :param context:
656
+ """
824
657
  ...
825
658
 
826
659
  def pop(self):
@@ -873,8 +706,16 @@ class GREASE_PENCIL_MT_layer_mask_add(bpy_types._GenericUI):
873
706
  """
874
707
  ...
875
708
 
876
- class GREASE_PENCIL_UL_masks(bpy_types._GenericUI):
709
+ class DATA_PT_grease_pencil_layer_relations(
710
+ LayerDataButtonsPanel, GreasPencil_LayerRelationsPanel, bpy_types._GenericUI
711
+ ):
712
+ bl_context: typing.Any
713
+ bl_label: typing.Any
714
+ bl_options: typing.Any
715
+ bl_parent_id: typing.Any
716
+ bl_region_type: typing.Any
877
717
  bl_rna: typing.Any
718
+ bl_space_type: typing.Any
878
719
  id_data: typing.Any
879
720
 
880
721
  def append(self, draw_func):
@@ -909,27 +750,10 @@ class GREASE_PENCIL_UL_masks(bpy_types._GenericUI):
909
750
  """
910
751
  ...
911
752
 
912
- def draw_item(
913
- self,
914
- _context,
915
- layout,
916
- _data,
917
- item,
918
- icon,
919
- _active_data,
920
- _active_propname,
921
- _index,
922
- ):
753
+ def draw(self, context):
923
754
  """
924
755
 
925
- :param _context:
926
- :param layout:
927
- :param _data:
928
- :param item:
929
- :param icon:
930
- :param _active_data:
931
- :param _active_propname:
932
- :param _index:
756
+ :param context:
933
757
  """
934
758
  ...
935
759
 
@@ -1055,6 +879,13 @@ class GREASE_PENCIL_UL_masks(bpy_types._GenericUI):
1055
879
  """Returns the property from the path, raise an exception when not found."""
1056
880
  ...
1057
881
 
882
+ def poll(self, context):
883
+ """
884
+
885
+ :param context:
886
+ """
887
+ ...
888
+
1058
889
  def pop(self):
1059
890
  """Remove and return the value of the custom property assigned to key or default
1060
891
  when not found (matches Python's dictionary function of the same name).
@@ -1105,10 +936,13 @@ class GREASE_PENCIL_UL_masks(bpy_types._GenericUI):
1105
936
  """
1106
937
  ...
1107
938
 
1108
- class DATA_PT_context_grease_pencil(DataButtonsPanel, bpy_types._GenericUI):
939
+ class DATA_PT_grease_pencil_layer_transform(
940
+ LayerDataButtonsPanel, GreasePencil_LayerTransformPanel, bpy_types._GenericUI
941
+ ):
1109
942
  bl_context: typing.Any
1110
943
  bl_label: typing.Any
1111
944
  bl_options: typing.Any
945
+ bl_parent_id: typing.Any
1112
946
  bl_region_type: typing.Any
1113
947
  bl_rna: typing.Any
1114
948
  bl_space_type: typing.Any
@@ -1332,17 +1166,9 @@ class DATA_PT_context_grease_pencil(DataButtonsPanel, bpy_types._GenericUI):
1332
1166
  """
1333
1167
  ...
1334
1168
 
1335
- class DATA_PT_grease_pencil_custom_props(
1336
- DataButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
1337
- ):
1338
- """The subclass should have its own poll function
1339
- and the variable '_context_path' MUST be set.
1340
- """
1341
-
1169
+ class DATA_PT_grease_pencil_layers(DataButtonsPanel, bpy_types._GenericUI):
1342
1170
  bl_context: typing.Any
1343
1171
  bl_label: typing.Any
1344
- bl_options: typing.Any
1345
- bl_order: typing.Any
1346
1172
  bl_region_type: typing.Any
1347
1173
  bl_rna: typing.Any
1348
1174
  bl_space_type: typing.Any
@@ -1566,7 +1392,7 @@ class DATA_PT_grease_pencil_custom_props(
1566
1392
  """
1567
1393
  ...
1568
1394
 
1569
- class DATA_PT_grease_pencil_layers(DataButtonsPanel, bpy_types._GenericUI):
1395
+ class DATA_PT_grease_pencil_onion_skinning(DataButtonsPanel, bpy_types._GenericUI):
1570
1396
  bl_context: typing.Any
1571
1397
  bl_label: typing.Any
1572
1398
  bl_region_type: typing.Any
@@ -1792,9 +1618,13 @@ class DATA_PT_grease_pencil_layers(DataButtonsPanel, bpy_types._GenericUI):
1792
1618
  """
1793
1619
  ...
1794
1620
 
1795
- class DATA_PT_grease_pencil_onion_skinning(DataButtonsPanel, bpy_types._GenericUI):
1621
+ class DATA_PT_grease_pencil_onion_skinning_custom_colors(
1622
+ DataButtonsPanel, bpy_types._GenericUI
1623
+ ):
1796
1624
  bl_context: typing.Any
1797
1625
  bl_label: typing.Any
1626
+ bl_options: typing.Any
1627
+ bl_parent_id: typing.Any
1798
1628
  bl_region_type: typing.Any
1799
1629
  bl_rna: typing.Any
1800
1630
  bl_space_type: typing.Any
@@ -1839,6 +1669,13 @@ class DATA_PT_grease_pencil_onion_skinning(DataButtonsPanel, bpy_types._GenericU
1839
1669
  """
1840
1670
  ...
1841
1671
 
1672
+ def draw_header(self, context):
1673
+ """
1674
+
1675
+ :param context:
1676
+ """
1677
+ ...
1678
+
1842
1679
  def driver_add(self) -> bpy.types.FCurve:
1843
1680
  """Adds driver(s) to the given property
1844
1681
 
@@ -2018,7 +1855,7 @@ class DATA_PT_grease_pencil_onion_skinning(DataButtonsPanel, bpy_types._GenericU
2018
1855
  """
2019
1856
  ...
2020
1857
 
2021
- class DATA_PT_grease_pencil_onion_skinning_custom_colors(
1858
+ class DATA_PT_grease_pencil_onion_skinning_display(
2022
1859
  DataButtonsPanel, bpy_types._GenericUI
2023
1860
  ):
2024
1861
  bl_context: typing.Any
@@ -2069,13 +1906,6 @@ class DATA_PT_grease_pencil_onion_skinning_custom_colors(
2069
1906
  """
2070
1907
  ...
2071
1908
 
2072
- def draw_header(self, context):
2073
- """
2074
-
2075
- :param context:
2076
- """
2077
- ...
2078
-
2079
1909
  def driver_add(self) -> bpy.types.FCurve:
2080
1910
  """Adds driver(s) to the given property
2081
1911
 
@@ -2255,13 +2085,9 @@ class DATA_PT_grease_pencil_onion_skinning_custom_colors(
2255
2085
  """
2256
2086
  ...
2257
2087
 
2258
- class DATA_PT_grease_pencil_onion_skinning_display(
2259
- DataButtonsPanel, bpy_types._GenericUI
2260
- ):
2088
+ class DATA_PT_grease_pencil_settings(DataButtonsPanel, bpy_types._GenericUI):
2261
2089
  bl_context: typing.Any
2262
2090
  bl_label: typing.Any
2263
- bl_options: typing.Any
2264
- bl_parent_id: typing.Any
2265
2091
  bl_region_type: typing.Any
2266
2092
  bl_rna: typing.Any
2267
2093
  bl_space_type: typing.Any
@@ -2485,12 +2311,21 @@ class DATA_PT_grease_pencil_onion_skinning_display(
2485
2311
  """
2486
2312
  ...
2487
2313
 
2488
- class DATA_PT_grease_pencil_settings(DataButtonsPanel, bpy_types._GenericUI):
2314
+ class DataButtonsPanel:
2489
2315
  bl_context: typing.Any
2490
- bl_label: typing.Any
2491
2316
  bl_region_type: typing.Any
2492
- bl_rna: typing.Any
2493
2317
  bl_space_type: typing.Any
2318
+
2319
+ def poll(self, context):
2320
+ """
2321
+
2322
+ :param context:
2323
+ """
2324
+ ...
2325
+
2326
+ class GREASE_PENCIL_MT_grease_pencil_add_layer_extra(bpy_types._GenericUI):
2327
+ bl_label: typing.Any
2328
+ bl_rna: typing.Any
2494
2329
  id_data: typing.Any
2495
2330
 
2496
2331
  def append(self, draw_func):
@@ -2528,7 +2363,27 @@ class DATA_PT_grease_pencil_settings(DataButtonsPanel, bpy_types._GenericUI):
2528
2363
  def draw(self, context):
2529
2364
  """
2530
2365
 
2531
- :param context:
2366
+ :param context:
2367
+ """
2368
+ ...
2369
+
2370
+ def draw_collapsible(self, context, layout):
2371
+ """
2372
+
2373
+ :param context:
2374
+ :param layout:
2375
+ """
2376
+ ...
2377
+
2378
+ def draw_preset(self, _context):
2379
+ """Define these on the subclass:
2380
+ - preset_operator (string)
2381
+ - preset_subdir (string)Optionally:
2382
+ - preset_add_operator (string)
2383
+ - preset_extensions (set of strings)
2384
+ - preset_operator_defaults (dict of keyword args)
2385
+
2386
+ :param _context:
2532
2387
  """
2533
2388
  ...
2534
2389
 
@@ -2650,17 +2505,44 @@ class DATA_PT_grease_pencil_settings(DataButtonsPanel, bpy_types._GenericUI):
2650
2505
  """
2651
2506
  ...
2652
2507
 
2653
- def path_resolve(self):
2654
- """Returns the property from the path, raise an exception when not found."""
2655
- ...
2508
+ def path_menu(
2509
+ self,
2510
+ searchpaths: list[str],
2511
+ operator: str,
2512
+ props_default: dict = None,
2513
+ prop_filepath: str | None = "filepath",
2514
+ filter_ext: collections.abc.Callable | None = None,
2515
+ filter_path=None,
2516
+ display_name: collections.abc.Callable | None = None,
2517
+ add_operator=None,
2518
+ add_operator_props=None,
2519
+ ):
2520
+ """Populate a menu from a list of paths.
2656
2521
 
2657
- def poll(self, context):
2658
- """
2522
+ :param searchpaths: Paths to scan.
2523
+ :type searchpaths: list[str]
2524
+ :param operator: The operator id to use with each file.
2525
+ :type operator: str
2526
+ :param props_default: Properties to assign to each operator.
2527
+ :type props_default: dict
2528
+ :param prop_filepath: Optional operator filepath property (defaults to "filepath").
2529
+ :type prop_filepath: str | None
2530
+ :param filter_ext: Optional callback that takes the file extensions.
2659
2531
 
2660
- :param context:
2532
+ Returning false excludes the file from the list.
2533
+ :type filter_ext: collections.abc.Callable | None
2534
+ :param filter_path:
2535
+ :param display_name: Optional callback that takes the full path, returns the name to display.
2536
+ :type display_name: collections.abc.Callable | None
2537
+ :param add_operator:
2538
+ :param add_operator_props:
2661
2539
  """
2662
2540
  ...
2663
2541
 
2542
+ def path_resolve(self):
2543
+ """Returns the property from the path, raise an exception when not found."""
2544
+ ...
2545
+
2664
2546
  def pop(self):
2665
2547
  """Remove and return the value of the custom property assigned to key or default
2666
2548
  when not found (matches Python's dictionary function of the same name).
@@ -2711,16 +2593,9 @@ class DATA_PT_grease_pencil_settings(DataButtonsPanel, bpy_types._GenericUI):
2711
2593
  """
2712
2594
  ...
2713
2595
 
2714
- class DATA_PT_grease_pencil_layer_masks(
2715
- LayerDataButtonsPanel, GreasePencil_LayerMaskPanel, bpy_types._GenericUI
2716
- ):
2717
- bl_context: typing.Any
2596
+ class GREASE_PENCIL_MT_group_context_menu(bpy_types._GenericUI):
2718
2597
  bl_label: typing.Any
2719
- bl_options: typing.Any
2720
- bl_parent_id: typing.Any
2721
- bl_region_type: typing.Any
2722
2598
  bl_rna: typing.Any
2723
- bl_space_type: typing.Any
2724
2599
  id_data: typing.Any
2725
2600
 
2726
2601
  def append(self, draw_func):
@@ -2762,10 +2637,23 @@ class DATA_PT_grease_pencil_layer_masks(
2762
2637
  """
2763
2638
  ...
2764
2639
 
2765
- def draw_header(self, context):
2640
+ def draw_collapsible(self, context, layout):
2766
2641
  """
2767
2642
 
2768
2643
  :param context:
2644
+ :param layout:
2645
+ """
2646
+ ...
2647
+
2648
+ def draw_preset(self, _context):
2649
+ """Define these on the subclass:
2650
+ - preset_operator (string)
2651
+ - preset_subdir (string)Optionally:
2652
+ - preset_add_operator (string)
2653
+ - preset_extensions (set of strings)
2654
+ - preset_operator_defaults (dict of keyword args)
2655
+
2656
+ :param _context:
2769
2657
  """
2770
2658
  ...
2771
2659
 
@@ -2887,17 +2775,44 @@ class DATA_PT_grease_pencil_layer_masks(
2887
2775
  """
2888
2776
  ...
2889
2777
 
2890
- def path_resolve(self):
2891
- """Returns the property from the path, raise an exception when not found."""
2892
- ...
2778
+ def path_menu(
2779
+ self,
2780
+ searchpaths: list[str],
2781
+ operator: str,
2782
+ props_default: dict = None,
2783
+ prop_filepath: str | None = "filepath",
2784
+ filter_ext: collections.abc.Callable | None = None,
2785
+ filter_path=None,
2786
+ display_name: collections.abc.Callable | None = None,
2787
+ add_operator=None,
2788
+ add_operator_props=None,
2789
+ ):
2790
+ """Populate a menu from a list of paths.
2893
2791
 
2894
- def poll(self, context):
2895
- """
2792
+ :param searchpaths: Paths to scan.
2793
+ :type searchpaths: list[str]
2794
+ :param operator: The operator id to use with each file.
2795
+ :type operator: str
2796
+ :param props_default: Properties to assign to each operator.
2797
+ :type props_default: dict
2798
+ :param prop_filepath: Optional operator filepath property (defaults to "filepath").
2799
+ :type prop_filepath: str | None
2800
+ :param filter_ext: Optional callback that takes the file extensions.
2896
2801
 
2897
- :param context:
2802
+ Returning false excludes the file from the list.
2803
+ :type filter_ext: collections.abc.Callable | None
2804
+ :param filter_path:
2805
+ :param display_name: Optional callback that takes the full path, returns the name to display.
2806
+ :type display_name: collections.abc.Callable | None
2807
+ :param add_operator:
2808
+ :param add_operator_props:
2898
2809
  """
2899
2810
  ...
2900
2811
 
2812
+ def path_resolve(self):
2813
+ """Returns the property from the path, raise an exception when not found."""
2814
+ ...
2815
+
2901
2816
  def pop(self):
2902
2817
  """Remove and return the value of the custom property assigned to key or default
2903
2818
  when not found (matches Python's dictionary function of the same name).
@@ -2948,16 +2863,9 @@ class DATA_PT_grease_pencil_layer_masks(
2948
2863
  """
2949
2864
  ...
2950
2865
 
2951
- class DATA_PT_grease_pencil_layer_relations(
2952
- LayerDataButtonsPanel, GreasPencil_LayerRelationsPanel, bpy_types._GenericUI
2953
- ):
2954
- bl_context: typing.Any
2866
+ class GREASE_PENCIL_MT_layer_mask_add(bpy_types._GenericUI):
2955
2867
  bl_label: typing.Any
2956
- bl_options: typing.Any
2957
- bl_parent_id: typing.Any
2958
- bl_region_type: typing.Any
2959
2868
  bl_rna: typing.Any
2960
- bl_space_type: typing.Any
2961
2869
  id_data: typing.Any
2962
2870
 
2963
2871
  def append(self, draw_func):
@@ -2999,6 +2907,26 @@ class DATA_PT_grease_pencil_layer_relations(
2999
2907
  """
3000
2908
  ...
3001
2909
 
2910
+ def draw_collapsible(self, context, layout):
2911
+ """
2912
+
2913
+ :param context:
2914
+ :param layout:
2915
+ """
2916
+ ...
2917
+
2918
+ def draw_preset(self, _context):
2919
+ """Define these on the subclass:
2920
+ - preset_operator (string)
2921
+ - preset_subdir (string)Optionally:
2922
+ - preset_add_operator (string)
2923
+ - preset_extensions (set of strings)
2924
+ - preset_operator_defaults (dict of keyword args)
2925
+
2926
+ :param _context:
2927
+ """
2928
+ ...
2929
+
3002
2930
  def driver_add(self) -> bpy.types.FCurve:
3003
2931
  """Adds driver(s) to the given property
3004
2932
 
@@ -3117,17 +3045,44 @@ class DATA_PT_grease_pencil_layer_relations(
3117
3045
  """
3118
3046
  ...
3119
3047
 
3120
- def path_resolve(self):
3121
- """Returns the property from the path, raise an exception when not found."""
3122
- ...
3048
+ def path_menu(
3049
+ self,
3050
+ searchpaths: list[str],
3051
+ operator: str,
3052
+ props_default: dict = None,
3053
+ prop_filepath: str | None = "filepath",
3054
+ filter_ext: collections.abc.Callable | None = None,
3055
+ filter_path=None,
3056
+ display_name: collections.abc.Callable | None = None,
3057
+ add_operator=None,
3058
+ add_operator_props=None,
3059
+ ):
3060
+ """Populate a menu from a list of paths.
3123
3061
 
3124
- def poll(self, context):
3125
- """
3062
+ :param searchpaths: Paths to scan.
3063
+ :type searchpaths: list[str]
3064
+ :param operator: The operator id to use with each file.
3065
+ :type operator: str
3066
+ :param props_default: Properties to assign to each operator.
3067
+ :type props_default: dict
3068
+ :param prop_filepath: Optional operator filepath property (defaults to "filepath").
3069
+ :type prop_filepath: str | None
3070
+ :param filter_ext: Optional callback that takes the file extensions.
3126
3071
 
3127
- :param context:
3072
+ Returning false excludes the file from the list.
3073
+ :type filter_ext: collections.abc.Callable | None
3074
+ :param filter_path:
3075
+ :param display_name: Optional callback that takes the full path, returns the name to display.
3076
+ :type display_name: collections.abc.Callable | None
3077
+ :param add_operator:
3078
+ :param add_operator_props:
3128
3079
  """
3129
3080
  ...
3130
3081
 
3082
+ def path_resolve(self):
3083
+ """Returns the property from the path, raise an exception when not found."""
3084
+ ...
3085
+
3131
3086
  def pop(self):
3132
3087
  """Remove and return the value of the custom property assigned to key or default
3133
3088
  when not found (matches Python's dictionary function of the same name).
@@ -3178,16 +3133,8 @@ class DATA_PT_grease_pencil_layer_relations(
3178
3133
  """
3179
3134
  ...
3180
3135
 
3181
- class DATA_PT_grease_pencil_layer_transform(
3182
- LayerDataButtonsPanel, GreasePencil_LayerTransformPanel, bpy_types._GenericUI
3183
- ):
3184
- bl_context: typing.Any
3185
- bl_label: typing.Any
3186
- bl_options: typing.Any
3187
- bl_parent_id: typing.Any
3188
- bl_region_type: typing.Any
3136
+ class GREASE_PENCIL_UL_masks(bpy_types._GenericUI):
3189
3137
  bl_rna: typing.Any
3190
- bl_space_type: typing.Any
3191
3138
  id_data: typing.Any
3192
3139
 
3193
3140
  def append(self, draw_func):
@@ -3222,10 +3169,27 @@ class DATA_PT_grease_pencil_layer_transform(
3222
3169
  """
3223
3170
  ...
3224
3171
 
3225
- def draw(self, context):
3172
+ def draw_item(
3173
+ self,
3174
+ _context,
3175
+ layout,
3176
+ _data,
3177
+ item,
3178
+ icon,
3179
+ _active_data,
3180
+ _active_propname,
3181
+ _index,
3182
+ ):
3226
3183
  """
3227
3184
 
3228
- :param context:
3185
+ :param _context:
3186
+ :param layout:
3187
+ :param _data:
3188
+ :param item:
3189
+ :param icon:
3190
+ :param _active_data:
3191
+ :param _active_propname:
3192
+ :param _index:
3229
3193
  """
3230
3194
  ...
3231
3195
 
@@ -3351,13 +3315,6 @@ class DATA_PT_grease_pencil_layer_transform(
3351
3315
  """Returns the property from the path, raise an exception when not found."""
3352
3316
  ...
3353
3317
 
3354
- def poll(self, context):
3355
- """
3356
-
3357
- :param context:
3358
- """
3359
- ...
3360
-
3361
3318
  def pop(self):
3362
3319
  """Remove and return the value of the custom property assigned to key or default
3363
3320
  when not found (matches Python's dictionary function of the same name).
@@ -3407,3 +3364,46 @@ class DATA_PT_grease_pencil_layer_transform(
3407
3364
  :return: custom property values.
3408
3365
  """
3409
3366
  ...
3367
+
3368
+ class GreasPencil_LayerRelationsPanel:
3369
+ def draw(self, context):
3370
+ """
3371
+
3372
+ :param context:
3373
+ """
3374
+ ...
3375
+
3376
+ class GreasePencil_LayerMaskPanel:
3377
+ def draw(self, context):
3378
+ """
3379
+
3380
+ :param context:
3381
+ """
3382
+ ...
3383
+
3384
+ def draw_header(self, context):
3385
+ """
3386
+
3387
+ :param context:
3388
+ """
3389
+ ...
3390
+
3391
+ class GreasePencil_LayerTransformPanel:
3392
+ def draw(self, context):
3393
+ """
3394
+
3395
+ :param context:
3396
+ """
3397
+ ...
3398
+
3399
+ class LayerDataButtonsPanel:
3400
+ bl_context: typing.Any
3401
+ bl_region_type: typing.Any
3402
+ bl_space_type: typing.Any
3403
+
3404
+ def poll(self, context):
3405
+ """
3406
+
3407
+ :param context:
3408
+ """
3409
+ ...