fake-bpy-module 20240706__py3-none-any.whl → 20240707__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bl_operators/assets/__init__.pyi +8 -8
- bl_operators/image_as_planes/__init__.pyi +43 -43
- bl_operators/node/__init__.pyi +234 -234
- bl_operators/object_quick_effects/__init__.pyi +21 -21
- bl_operators/presets/__init__.pyi +388 -388
- bl_ui/properties_collection/__init__.pyi +12 -12
- bl_ui/properties_constraint/__init__.pyi +954 -954
- bl_ui/properties_data_armature/__init__.pyi +85 -85
- bl_ui/properties_data_bone/__init__.pyi +12 -12
- bl_ui/properties_data_curve/__init__.pyi +92 -92
- bl_ui/properties_data_curves/__init__.pyi +12 -12
- bl_ui/properties_data_empty/__init__.pyi +12 -12
- bl_ui/properties_data_gpencil/__init__.pyi +265 -265
- bl_ui/properties_data_grease_pencil/__init__.pyi +312 -312
- bl_ui/properties_data_lattice/__init__.pyi +12 -12
- bl_ui/properties_data_light/__init__.pyi +12 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +12 -12
- bl_ui/properties_data_mesh/__init__.pyi +527 -527
- bl_ui/properties_data_metaball/__init__.pyi +12 -12
- bl_ui/properties_data_modifier/__init__.pyi +19 -19
- bl_ui/properties_data_pointcloud/__init__.pyi +140 -140
- bl_ui/properties_data_shaderfx/__init__.pyi +5 -5
- bl_ui/properties_data_speaker/__init__.pyi +12 -12
- bl_ui/properties_data_volume/__init__.pyi +65 -65
- bl_ui/properties_freestyle/__init__.pyi +248 -248
- bl_ui/properties_material/__init__.pyi +145 -145
- bl_ui/properties_material_gpencil/__init__.pyi +86 -86
- bl_ui/properties_object/__init__.pyi +75 -75
- bl_ui/properties_output/__init__.pyi +201 -201
- bl_ui/properties_particle/__init__.pyi +220 -220
- bl_ui/properties_physics_cloth/__init__.pyi +12 -12
- bl_ui/properties_physics_common/__init__.pyi +12 -12
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +187 -187
- bl_ui/properties_physics_field/__init__.pyi +19 -19
- bl_ui/properties_physics_fluid/__init__.pyi +61 -61
- bl_ui/properties_physics_rigidbody/__init__.pyi +5 -5
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +5 -5
- bl_ui/properties_physics_softbody/__init__.pyi +12 -12
- bl_ui/properties_render/__init__.pyi +217 -217
- bl_ui/properties_scene/__init__.pyi +143 -143
- bl_ui/properties_texture/__init__.pyi +156 -156
- bl_ui/properties_view_layer/__init__.pyi +78 -78
- bl_ui/properties_workspace/__init__.pyi +64 -64
- bl_ui/properties_world/__init__.pyi +12 -12
- bl_ui/space_clip/__init__.pyi +366 -366
- bl_ui/space_dopesheet/__init__.pyi +176 -176
- bl_ui/space_filebrowser/__init__.pyi +735 -735
- bl_ui/space_image/__init__.pyi +646 -646
- bl_ui/space_sequencer/__init__.pyi +841 -389
- bl_ui/space_time/__init__.pyi +11 -11
- bl_ui/space_userpref/__init__.pyi +684 -684
- bl_ui/space_view3d/__init__.pyi +1152 -1152
- bl_ui/space_view3d_toolbar/__init__.pyi +2831 -2831
- bpy/types/__init__.pyi +69750 -69696
- {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240707.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240707.dist-info}/RECORD +62 -62
- freestyle/utils/__init__.pyi +1 -1
- keyingsets_builtins/__init__.pyi +87 -87
- mathutils/__init__.pyi +156 -6
- nodeitems_builtins/__init__.pyi +7 -7
- {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240707.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240706.dist-info → fake_bpy_module-20240707.dist-info}/top_level.txt +0 -0
|
@@ -40,13 +40,25 @@ class AddPresetBase:
|
|
|
40
40
|
"""
|
|
41
41
|
...
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
"""
|
|
43
|
+
class AddPresetCamera(AddPresetBase):
|
|
44
|
+
"""Add or remove a Camera Preset"""
|
|
45
45
|
|
|
46
46
|
bl_idname: typing.Any
|
|
47
47
|
bl_label: typing.Any
|
|
48
|
+
bl_options: typing.Any
|
|
48
49
|
bl_rna: typing.Any
|
|
49
50
|
id_data: typing.Any
|
|
51
|
+
preset_defines: typing.Any
|
|
52
|
+
preset_menu: typing.Any
|
|
53
|
+
preset_subdir: typing.Any
|
|
54
|
+
preset_values: typing.Any
|
|
55
|
+
|
|
56
|
+
def as_filename(self, name):
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
:param name:
|
|
60
|
+
"""
|
|
61
|
+
...
|
|
50
62
|
|
|
51
63
|
def as_keywords(self, ignore=()):
|
|
52
64
|
"""Return a copy of the properties as a dictionary
|
|
@@ -79,6 +91,13 @@ class ExecutePreset:
|
|
|
79
91
|
"""
|
|
80
92
|
...
|
|
81
93
|
|
|
94
|
+
def check(self, _context):
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
:param _context:
|
|
98
|
+
"""
|
|
99
|
+
...
|
|
100
|
+
|
|
82
101
|
def driver_add(self) -> bpy.types.FCurve:
|
|
83
102
|
"""Adds driver(s) to the given property
|
|
84
103
|
|
|
@@ -130,6 +149,14 @@ class ExecutePreset:
|
|
|
130
149
|
"""
|
|
131
150
|
...
|
|
132
151
|
|
|
152
|
+
def invoke(self, context, _event):
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
:param context:
|
|
156
|
+
:param _event:
|
|
157
|
+
"""
|
|
158
|
+
...
|
|
159
|
+
|
|
133
160
|
def is_property_hidden(self) -> bool:
|
|
134
161
|
"""Check if a property is hidden.
|
|
135
162
|
|
|
@@ -246,18 +273,30 @@ class ExecutePreset:
|
|
|
246
273
|
"""
|
|
247
274
|
...
|
|
248
275
|
|
|
249
|
-
class
|
|
276
|
+
class AddPresetCameraSafeAreas(AddPresetBase):
|
|
277
|
+
"""Add or remove a Safe Areas Preset"""
|
|
278
|
+
|
|
279
|
+
bl_idname: typing.Any
|
|
250
280
|
bl_label: typing.Any
|
|
281
|
+
bl_options: typing.Any
|
|
251
282
|
bl_rna: typing.Any
|
|
252
283
|
id_data: typing.Any
|
|
253
|
-
|
|
284
|
+
preset_defines: typing.Any
|
|
285
|
+
preset_menu: typing.Any
|
|
254
286
|
preset_subdir: typing.Any
|
|
287
|
+
preset_values: typing.Any
|
|
255
288
|
|
|
256
|
-
def
|
|
257
|
-
"""
|
|
258
|
-
takes the same arguments as the menus draw function
|
|
289
|
+
def as_filename(self, name):
|
|
290
|
+
"""
|
|
259
291
|
|
|
260
|
-
|
|
292
|
+
:param name:
|
|
293
|
+
"""
|
|
294
|
+
...
|
|
295
|
+
|
|
296
|
+
def as_keywords(self, ignore=()):
|
|
297
|
+
"""Return a copy of the properties as a dictionary
|
|
298
|
+
|
|
299
|
+
:param ignore:
|
|
261
300
|
"""
|
|
262
301
|
...
|
|
263
302
|
|
|
@@ -285,30 +324,10 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
285
324
|
"""
|
|
286
325
|
...
|
|
287
326
|
|
|
288
|
-
def
|
|
289
|
-
"""
|
|
290
|
-
|
|
291
|
-
:param context:
|
|
292
|
-
"""
|
|
293
|
-
...
|
|
294
|
-
|
|
295
|
-
def draw_collapsible(self, context, layout):
|
|
296
|
-
"""
|
|
297
|
-
|
|
298
|
-
:param context:
|
|
299
|
-
:param layout:
|
|
327
|
+
def check(self, _context):
|
|
300
328
|
"""
|
|
301
|
-
...
|
|
302
|
-
|
|
303
|
-
def draw_preset(self, _context):
|
|
304
|
-
"""Define these on the subclass:
|
|
305
|
-
- preset_operator (string)
|
|
306
|
-
- preset_subdir (string)Optionally:
|
|
307
|
-
- preset_add_operator (string)
|
|
308
|
-
- preset_extensions (set of strings)
|
|
309
|
-
- preset_operator_defaults (dict of keyword args)
|
|
310
329
|
|
|
311
|
-
|
|
330
|
+
:param _context:
|
|
312
331
|
"""
|
|
313
332
|
...
|
|
314
333
|
|
|
@@ -328,6 +347,13 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
328
347
|
"""
|
|
329
348
|
...
|
|
330
349
|
|
|
350
|
+
def execute(self, context):
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
:param context:
|
|
354
|
+
"""
|
|
355
|
+
...
|
|
356
|
+
|
|
331
357
|
def get(self):
|
|
332
358
|
"""Returns the value of the custom property assigned to key or default
|
|
333
359
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -356,7 +382,14 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
356
382
|
"""
|
|
357
383
|
...
|
|
358
384
|
|
|
359
|
-
def
|
|
385
|
+
def invoke(self, context, _event):
|
|
386
|
+
"""
|
|
387
|
+
|
|
388
|
+
:param context:
|
|
389
|
+
:param _event:
|
|
390
|
+
"""
|
|
391
|
+
...
|
|
392
|
+
|
|
360
393
|
def is_property_hidden(self) -> bool:
|
|
361
394
|
"""Check if a property is hidden.
|
|
362
395
|
|
|
@@ -430,44 +463,14 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
430
463
|
"""
|
|
431
464
|
...
|
|
432
465
|
|
|
433
|
-
def path_menu(
|
|
434
|
-
self,
|
|
435
|
-
searchpaths: list[str],
|
|
436
|
-
operator: str,
|
|
437
|
-
props_default: dict = None,
|
|
438
|
-
prop_filepath: str | None = "filepath",
|
|
439
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
440
|
-
filter_path=None,
|
|
441
|
-
display_name: collections.abc.Callable | None = None,
|
|
442
|
-
add_operator=None,
|
|
443
|
-
add_operator_props=None,
|
|
444
|
-
):
|
|
445
|
-
"""Populate a menu from a list of paths.
|
|
446
|
-
|
|
447
|
-
:param searchpaths: Paths to scan.
|
|
448
|
-
:type searchpaths: list[str]
|
|
449
|
-
:param operator: The operator id to use with each file.
|
|
450
|
-
:type operator: str
|
|
451
|
-
:param props_default: Properties to assign to each operator.
|
|
452
|
-
:type props_default: dict
|
|
453
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
454
|
-
:type prop_filepath: str | None
|
|
455
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
456
|
-
|
|
457
|
-
Returning false excludes the file from the list.
|
|
458
|
-
:type filter_ext: collections.abc.Callable | None
|
|
459
|
-
:param filter_path:
|
|
460
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
461
|
-
:type display_name: collections.abc.Callable | None
|
|
462
|
-
:param add_operator:
|
|
463
|
-
:param add_operator_props:
|
|
464
|
-
"""
|
|
465
|
-
...
|
|
466
|
-
|
|
467
466
|
def path_resolve(self):
|
|
468
467
|
"""Returns the property from the path, raise an exception when not found."""
|
|
469
468
|
...
|
|
470
469
|
|
|
470
|
+
def poll_message_set(self):
|
|
471
|
+
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
472
|
+
...
|
|
473
|
+
|
|
471
474
|
def pop(self):
|
|
472
475
|
"""Remove and return the value of the custom property assigned to key or default
|
|
473
476
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -475,14 +478,6 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
475
478
|
"""
|
|
476
479
|
...
|
|
477
480
|
|
|
478
|
-
def prepend(self, draw_func):
|
|
479
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
480
|
-
the menus draw function
|
|
481
|
-
|
|
482
|
-
:param draw_func:
|
|
483
|
-
"""
|
|
484
|
-
...
|
|
485
|
-
|
|
486
481
|
def property_overridable_library_set(self) -> bool:
|
|
487
482
|
"""Define a property as overridable or not (only for custom properties!).
|
|
488
483
|
|
|
@@ -495,13 +490,6 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
495
490
|
"""Unset a property, will use default value afterward."""
|
|
496
491
|
...
|
|
497
492
|
|
|
498
|
-
def remove(self, draw_func):
|
|
499
|
-
"""Remove a draw function that has been added to this menu
|
|
500
|
-
|
|
501
|
-
:param draw_func:
|
|
502
|
-
"""
|
|
503
|
-
...
|
|
504
|
-
|
|
505
493
|
def type_recast(self):
|
|
506
494
|
"""Return a new instance, this is needed because types
|
|
507
495
|
such as textures can be changed at runtime.
|
|
@@ -518,13 +506,25 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
518
506
|
"""
|
|
519
507
|
...
|
|
520
508
|
|
|
521
|
-
class
|
|
522
|
-
"""
|
|
509
|
+
class AddPresetCloth(AddPresetBase):
|
|
510
|
+
"""Add or remove a Cloth Preset"""
|
|
523
511
|
|
|
524
512
|
bl_idname: typing.Any
|
|
525
513
|
bl_label: typing.Any
|
|
514
|
+
bl_options: typing.Any
|
|
526
515
|
bl_rna: typing.Any
|
|
527
516
|
id_data: typing.Any
|
|
517
|
+
preset_defines: typing.Any
|
|
518
|
+
preset_menu: typing.Any
|
|
519
|
+
preset_subdir: typing.Any
|
|
520
|
+
preset_values: typing.Any
|
|
521
|
+
|
|
522
|
+
def as_filename(self, name):
|
|
523
|
+
"""
|
|
524
|
+
|
|
525
|
+
:param name:
|
|
526
|
+
"""
|
|
527
|
+
...
|
|
528
528
|
|
|
529
529
|
def as_keywords(self, ignore=()):
|
|
530
530
|
"""Return a copy of the properties as a dictionary
|
|
@@ -557,6 +557,13 @@ class WM_OT_operator_presets_cleanup:
|
|
|
557
557
|
"""
|
|
558
558
|
...
|
|
559
559
|
|
|
560
|
+
def check(self, _context):
|
|
561
|
+
"""
|
|
562
|
+
|
|
563
|
+
:param _context:
|
|
564
|
+
"""
|
|
565
|
+
...
|
|
566
|
+
|
|
560
567
|
def driver_add(self) -> bpy.types.FCurve:
|
|
561
568
|
"""Adds driver(s) to the given property
|
|
562
569
|
|
|
@@ -608,6 +615,14 @@ class WM_OT_operator_presets_cleanup:
|
|
|
608
615
|
"""
|
|
609
616
|
...
|
|
610
617
|
|
|
618
|
+
def invoke(self, context, _event):
|
|
619
|
+
"""
|
|
620
|
+
|
|
621
|
+
:param context:
|
|
622
|
+
:param _event:
|
|
623
|
+
"""
|
|
624
|
+
...
|
|
625
|
+
|
|
611
626
|
def is_property_hidden(self) -> bool:
|
|
612
627
|
"""Check if a property is hidden.
|
|
613
628
|
|
|
@@ -724,22 +739,30 @@ class WM_OT_operator_presets_cleanup:
|
|
|
724
739
|
"""
|
|
725
740
|
...
|
|
726
741
|
|
|
727
|
-
class
|
|
742
|
+
class AddPresetColorManagementWhiteBalance(AddPresetBase):
|
|
743
|
+
"""Add or remove a white balance preset"""
|
|
744
|
+
|
|
745
|
+
bl_idname: typing.Any
|
|
728
746
|
bl_label: typing.Any
|
|
729
|
-
|
|
747
|
+
bl_options: typing.Any
|
|
730
748
|
bl_rna: typing.Any
|
|
731
|
-
bl_space_type: typing.Any
|
|
732
749
|
id_data: typing.Any
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
preset_operator: typing.Any
|
|
750
|
+
preset_defines: typing.Any
|
|
751
|
+
preset_menu: typing.Any
|
|
736
752
|
preset_subdir: typing.Any
|
|
753
|
+
preset_values: typing.Any
|
|
737
754
|
|
|
738
|
-
def
|
|
739
|
-
"""
|
|
740
|
-
takes the same arguments as the menus draw function
|
|
755
|
+
def as_filename(self, name):
|
|
756
|
+
"""
|
|
741
757
|
|
|
742
|
-
|
|
758
|
+
:param name:
|
|
759
|
+
"""
|
|
760
|
+
...
|
|
761
|
+
|
|
762
|
+
def as_keywords(self, ignore=()):
|
|
763
|
+
"""Return a copy of the properties as a dictionary
|
|
764
|
+
|
|
765
|
+
:param ignore:
|
|
743
766
|
"""
|
|
744
767
|
...
|
|
745
768
|
|
|
@@ -767,25 +790,10 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
767
790
|
"""
|
|
768
791
|
...
|
|
769
792
|
|
|
770
|
-
def
|
|
771
|
-
"""
|
|
772
|
-
|
|
773
|
-
:param context:
|
|
774
|
-
"""
|
|
775
|
-
...
|
|
776
|
-
|
|
777
|
-
def draw_menu(self, layout, text=None):
|
|
778
|
-
"""
|
|
779
|
-
|
|
780
|
-
:param layout:
|
|
781
|
-
:param text:
|
|
782
|
-
"""
|
|
783
|
-
...
|
|
784
|
-
|
|
785
|
-
def draw_panel_header(self, layout):
|
|
793
|
+
def check(self, _context):
|
|
786
794
|
"""
|
|
787
795
|
|
|
788
|
-
:param
|
|
796
|
+
:param _context:
|
|
789
797
|
"""
|
|
790
798
|
...
|
|
791
799
|
|
|
@@ -805,6 +813,13 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
805
813
|
"""
|
|
806
814
|
...
|
|
807
815
|
|
|
816
|
+
def execute(self, context):
|
|
817
|
+
"""
|
|
818
|
+
|
|
819
|
+
:param context:
|
|
820
|
+
"""
|
|
821
|
+
...
|
|
822
|
+
|
|
808
823
|
def get(self):
|
|
809
824
|
"""Returns the value of the custom property assigned to key or default
|
|
810
825
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -833,7 +848,14 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
833
848
|
"""
|
|
834
849
|
...
|
|
835
850
|
|
|
836
|
-
def
|
|
851
|
+
def invoke(self, context, _event):
|
|
852
|
+
"""
|
|
853
|
+
|
|
854
|
+
:param context:
|
|
855
|
+
:param _event:
|
|
856
|
+
"""
|
|
857
|
+
...
|
|
858
|
+
|
|
837
859
|
def is_property_hidden(self) -> bool:
|
|
838
860
|
"""Check if a property is hidden.
|
|
839
861
|
|
|
@@ -907,44 +929,14 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
907
929
|
"""
|
|
908
930
|
...
|
|
909
931
|
|
|
910
|
-
def path_menu(
|
|
911
|
-
self,
|
|
912
|
-
searchpaths: list[str],
|
|
913
|
-
operator: str,
|
|
914
|
-
props_default: dict = None,
|
|
915
|
-
prop_filepath: str | None = "filepath",
|
|
916
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
917
|
-
filter_path=None,
|
|
918
|
-
display_name: collections.abc.Callable | None = None,
|
|
919
|
-
add_operator=None,
|
|
920
|
-
add_operator_props=None,
|
|
921
|
-
):
|
|
922
|
-
"""Populate a menu from a list of paths.
|
|
923
|
-
|
|
924
|
-
:param searchpaths: Paths to scan.
|
|
925
|
-
:type searchpaths: list[str]
|
|
926
|
-
:param operator: The operator id to use with each file.
|
|
927
|
-
:type operator: str
|
|
928
|
-
:param props_default: Properties to assign to each operator.
|
|
929
|
-
:type props_default: dict
|
|
930
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
931
|
-
:type prop_filepath: str | None
|
|
932
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
933
|
-
|
|
934
|
-
Returning false excludes the file from the list.
|
|
935
|
-
:type filter_ext: collections.abc.Callable | None
|
|
936
|
-
:param filter_path:
|
|
937
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
938
|
-
:type display_name: collections.abc.Callable | None
|
|
939
|
-
:param add_operator:
|
|
940
|
-
:param add_operator_props:
|
|
941
|
-
"""
|
|
942
|
-
...
|
|
943
|
-
|
|
944
932
|
def path_resolve(self):
|
|
945
933
|
"""Returns the property from the path, raise an exception when not found."""
|
|
946
934
|
...
|
|
947
935
|
|
|
936
|
+
def poll_message_set(self):
|
|
937
|
+
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
938
|
+
...
|
|
939
|
+
|
|
948
940
|
def pop(self):
|
|
949
941
|
"""Remove and return the value of the custom property assigned to key or default
|
|
950
942
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -952,14 +944,6 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
952
944
|
"""
|
|
953
945
|
...
|
|
954
946
|
|
|
955
|
-
def prepend(self, draw_func):
|
|
956
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
957
|
-
the menus draw function
|
|
958
|
-
|
|
959
|
-
:param draw_func:
|
|
960
|
-
"""
|
|
961
|
-
...
|
|
962
|
-
|
|
963
947
|
def property_overridable_library_set(self) -> bool:
|
|
964
948
|
"""Define a property as overridable or not (only for custom properties!).
|
|
965
949
|
|
|
@@ -972,13 +956,6 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
972
956
|
"""Unset a property, will use default value afterward."""
|
|
973
957
|
...
|
|
974
958
|
|
|
975
|
-
def remove(self, draw_func):
|
|
976
|
-
"""Remove a draw function that has been added to this menu
|
|
977
|
-
|
|
978
|
-
:param draw_func:
|
|
979
|
-
"""
|
|
980
|
-
...
|
|
981
|
-
|
|
982
959
|
def type_recast(self):
|
|
983
960
|
"""Return a new instance, this is needed because types
|
|
984
961
|
such as textures can be changed at runtime.
|
|
@@ -995,8 +972,8 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
995
972
|
"""
|
|
996
973
|
...
|
|
997
974
|
|
|
998
|
-
class
|
|
999
|
-
"""Add or remove
|
|
975
|
+
class AddPresetEEVEERaytracing(AddPresetBase):
|
|
976
|
+
"""Add or remove an EEVEE ray-tracing preset"""
|
|
1000
977
|
|
|
1001
978
|
bl_idname: typing.Any
|
|
1002
979
|
bl_label: typing.Any
|
|
@@ -1228,8 +1205,8 @@ class AddPresetCamera(AddPresetBase):
|
|
|
1228
1205
|
"""
|
|
1229
1206
|
...
|
|
1230
1207
|
|
|
1231
|
-
class
|
|
1232
|
-
"""Add or remove a
|
|
1208
|
+
class AddPresetFluid(AddPresetBase):
|
|
1209
|
+
"""Add or remove a Fluid Preset"""
|
|
1233
1210
|
|
|
1234
1211
|
bl_idname: typing.Any
|
|
1235
1212
|
bl_label: typing.Any
|
|
@@ -1461,8 +1438,8 @@ class AddPresetCameraSafeAreas(AddPresetBase):
|
|
|
1461
1438
|
"""
|
|
1462
1439
|
...
|
|
1463
1440
|
|
|
1464
|
-
class
|
|
1465
|
-
"""Add or remove
|
|
1441
|
+
class AddPresetGpencilBrush(AddPresetBase):
|
|
1442
|
+
"""Add or remove grease pencil brush preset"""
|
|
1466
1443
|
|
|
1467
1444
|
bl_idname: typing.Any
|
|
1468
1445
|
bl_label: typing.Any
|
|
@@ -1694,8 +1671,8 @@ class AddPresetCloth(AddPresetBase):
|
|
|
1694
1671
|
"""
|
|
1695
1672
|
...
|
|
1696
1673
|
|
|
1697
|
-
class
|
|
1698
|
-
"""Add or remove
|
|
1674
|
+
class AddPresetGpencilMaterial(AddPresetBase):
|
|
1675
|
+
"""Add or remove grease pencil material preset"""
|
|
1699
1676
|
|
|
1700
1677
|
bl_idname: typing.Any
|
|
1701
1678
|
bl_label: typing.Any
|
|
@@ -1927,8 +1904,8 @@ class AddPresetColorManagementWhiteBalance(AddPresetBase):
|
|
|
1927
1904
|
"""
|
|
1928
1905
|
...
|
|
1929
1906
|
|
|
1930
|
-
class
|
|
1931
|
-
"""Add or remove
|
|
1907
|
+
class AddPresetHairDynamics(AddPresetBase):
|
|
1908
|
+
"""Add or remove a Hair Dynamics Preset"""
|
|
1932
1909
|
|
|
1933
1910
|
bl_idname: typing.Any
|
|
1934
1911
|
bl_label: typing.Any
|
|
@@ -2160,18 +2137,16 @@ class AddPresetEEVEERaytracing(AddPresetBase):
|
|
|
2160
2137
|
"""
|
|
2161
2138
|
...
|
|
2162
2139
|
|
|
2163
|
-
class
|
|
2164
|
-
"""Add
|
|
2140
|
+
class AddPresetInterfaceTheme(AddPresetBase):
|
|
2141
|
+
"""Add a custom theme to the preset list"""
|
|
2165
2142
|
|
|
2166
2143
|
bl_idname: typing.Any
|
|
2167
2144
|
bl_label: typing.Any
|
|
2168
2145
|
bl_options: typing.Any
|
|
2169
2146
|
bl_rna: typing.Any
|
|
2170
2147
|
id_data: typing.Any
|
|
2171
|
-
preset_defines: typing.Any
|
|
2172
2148
|
preset_menu: typing.Any
|
|
2173
2149
|
preset_subdir: typing.Any
|
|
2174
|
-
preset_values: typing.Any
|
|
2175
2150
|
|
|
2176
2151
|
def as_filename(self, name):
|
|
2177
2152
|
"""
|
|
@@ -2393,18 +2368,24 @@ class AddPresetFluid(AddPresetBase):
|
|
|
2393
2368
|
"""
|
|
2394
2369
|
...
|
|
2395
2370
|
|
|
2396
|
-
class
|
|
2397
|
-
"""Add
|
|
2371
|
+
class AddPresetKeyconfig(AddPresetBase):
|
|
2372
|
+
"""Add a custom keymap configuration to the preset list"""
|
|
2398
2373
|
|
|
2399
2374
|
bl_idname: typing.Any
|
|
2400
2375
|
bl_label: typing.Any
|
|
2401
2376
|
bl_options: typing.Any
|
|
2402
2377
|
bl_rna: typing.Any
|
|
2403
2378
|
id_data: typing.Any
|
|
2404
|
-
preset_defines: typing.Any
|
|
2405
2379
|
preset_menu: typing.Any
|
|
2406
2380
|
preset_subdir: typing.Any
|
|
2407
|
-
|
|
2381
|
+
|
|
2382
|
+
def add(self, _context, filepath):
|
|
2383
|
+
"""
|
|
2384
|
+
|
|
2385
|
+
:param _context:
|
|
2386
|
+
:param filepath:
|
|
2387
|
+
"""
|
|
2388
|
+
...
|
|
2408
2389
|
|
|
2409
2390
|
def as_filename(self, name):
|
|
2410
2391
|
"""
|
|
@@ -2626,8 +2607,8 @@ class AddPresetGpencilBrush(AddPresetBase):
|
|
|
2626
2607
|
"""
|
|
2627
2608
|
...
|
|
2628
2609
|
|
|
2629
|
-
class
|
|
2630
|
-
"""Add or remove
|
|
2610
|
+
class AddPresetNodeColor(AddPresetBase):
|
|
2611
|
+
"""Add or remove a Node Color Preset"""
|
|
2631
2612
|
|
|
2632
2613
|
bl_idname: typing.Any
|
|
2633
2614
|
bl_label: typing.Any
|
|
@@ -2859,8 +2840,8 @@ class AddPresetGpencilMaterial(AddPresetBase):
|
|
|
2859
2840
|
"""
|
|
2860
2841
|
...
|
|
2861
2842
|
|
|
2862
|
-
class
|
|
2863
|
-
"""Add or remove
|
|
2843
|
+
class AddPresetOperator(AddPresetBase):
|
|
2844
|
+
"""Add or remove an Operator Preset"""
|
|
2864
2845
|
|
|
2865
2846
|
bl_idname: typing.Any
|
|
2866
2847
|
bl_label: typing.Any
|
|
@@ -3040,6 +3021,13 @@ class AddPresetHairDynamics(AddPresetBase):
|
|
|
3040
3021
|
"""
|
|
3041
3022
|
...
|
|
3042
3023
|
|
|
3024
|
+
def operator_path(self, operator):
|
|
3025
|
+
"""
|
|
3026
|
+
|
|
3027
|
+
:param operator:
|
|
3028
|
+
"""
|
|
3029
|
+
...
|
|
3030
|
+
|
|
3043
3031
|
def path_from_id(self) -> str:
|
|
3044
3032
|
"""Returns the data path from the ID to this object (string).
|
|
3045
3033
|
|
|
@@ -3092,16 +3080,18 @@ class AddPresetHairDynamics(AddPresetBase):
|
|
|
3092
3080
|
"""
|
|
3093
3081
|
...
|
|
3094
3082
|
|
|
3095
|
-
class
|
|
3096
|
-
"""Add
|
|
3083
|
+
class AddPresetRender(AddPresetBase):
|
|
3084
|
+
"""Add or remove a Render Preset"""
|
|
3097
3085
|
|
|
3098
3086
|
bl_idname: typing.Any
|
|
3099
3087
|
bl_label: typing.Any
|
|
3100
3088
|
bl_options: typing.Any
|
|
3101
3089
|
bl_rna: typing.Any
|
|
3102
3090
|
id_data: typing.Any
|
|
3091
|
+
preset_defines: typing.Any
|
|
3103
3092
|
preset_menu: typing.Any
|
|
3104
3093
|
preset_subdir: typing.Any
|
|
3094
|
+
preset_values: typing.Any
|
|
3105
3095
|
|
|
3106
3096
|
def as_filename(self, name):
|
|
3107
3097
|
"""
|
|
@@ -3323,24 +3313,18 @@ class AddPresetInterfaceTheme(AddPresetBase):
|
|
|
3323
3313
|
"""
|
|
3324
3314
|
...
|
|
3325
3315
|
|
|
3326
|
-
class
|
|
3327
|
-
"""Add
|
|
3316
|
+
class AddPresetTextEditor(AddPresetBase):
|
|
3317
|
+
"""Add or remove a Text Editor Preset"""
|
|
3328
3318
|
|
|
3329
3319
|
bl_idname: typing.Any
|
|
3330
3320
|
bl_label: typing.Any
|
|
3331
3321
|
bl_options: typing.Any
|
|
3332
3322
|
bl_rna: typing.Any
|
|
3333
3323
|
id_data: typing.Any
|
|
3324
|
+
preset_defines: typing.Any
|
|
3334
3325
|
preset_menu: typing.Any
|
|
3335
3326
|
preset_subdir: typing.Any
|
|
3336
|
-
|
|
3337
|
-
def add(self, _context, filepath):
|
|
3338
|
-
"""
|
|
3339
|
-
|
|
3340
|
-
:param _context:
|
|
3341
|
-
:param filepath:
|
|
3342
|
-
"""
|
|
3343
|
-
...
|
|
3327
|
+
preset_values: typing.Any
|
|
3344
3328
|
|
|
3345
3329
|
def as_filename(self, name):
|
|
3346
3330
|
"""
|
|
@@ -3562,8 +3546,8 @@ class AddPresetKeyconfig(AddPresetBase):
|
|
|
3562
3546
|
"""
|
|
3563
3547
|
...
|
|
3564
3548
|
|
|
3565
|
-
class
|
|
3566
|
-
"""Add or remove a
|
|
3549
|
+
class AddPresetTrackingCamera(AddPresetBase):
|
|
3550
|
+
"""Add or remove a Tracking Camera Intrinsics Preset"""
|
|
3567
3551
|
|
|
3568
3552
|
bl_idname: typing.Any
|
|
3569
3553
|
bl_label: typing.Any
|
|
@@ -3795,8 +3779,8 @@ class AddPresetNodeColor(AddPresetBase):
|
|
|
3795
3779
|
"""
|
|
3796
3780
|
...
|
|
3797
3781
|
|
|
3798
|
-
class
|
|
3799
|
-
"""Add or remove
|
|
3782
|
+
class AddPresetTrackingSettings(AddPresetBase):
|
|
3783
|
+
"""Add or remove a motion tracking settings preset"""
|
|
3800
3784
|
|
|
3801
3785
|
bl_idname: typing.Any
|
|
3802
3786
|
bl_label: typing.Any
|
|
@@ -3976,13 +3960,6 @@ class AddPresetOperator(AddPresetBase):
|
|
|
3976
3960
|
"""
|
|
3977
3961
|
...
|
|
3978
3962
|
|
|
3979
|
-
def operator_path(self, operator):
|
|
3980
|
-
"""
|
|
3981
|
-
|
|
3982
|
-
:param operator:
|
|
3983
|
-
"""
|
|
3984
|
-
...
|
|
3985
|
-
|
|
3986
3963
|
def path_from_id(self) -> str:
|
|
3987
3964
|
"""Returns the data path from the ID to this object (string).
|
|
3988
3965
|
|
|
@@ -4035,8 +4012,8 @@ class AddPresetOperator(AddPresetBase):
|
|
|
4035
4012
|
"""
|
|
4036
4013
|
...
|
|
4037
4014
|
|
|
4038
|
-
class
|
|
4039
|
-
"""Add or remove a
|
|
4015
|
+
class AddPresetTrackingTrackColor(AddPresetBase):
|
|
4016
|
+
"""Add or remove a Clip Track Color Preset"""
|
|
4040
4017
|
|
|
4041
4018
|
bl_idname: typing.Any
|
|
4042
4019
|
bl_label: typing.Any
|
|
@@ -4268,25 +4245,13 @@ class AddPresetRender(AddPresetBase):
|
|
|
4268
4245
|
"""
|
|
4269
4246
|
...
|
|
4270
4247
|
|
|
4271
|
-
class
|
|
4272
|
-
"""
|
|
4248
|
+
class ExecutePreset:
|
|
4249
|
+
"""Load a preset"""
|
|
4273
4250
|
|
|
4274
4251
|
bl_idname: typing.Any
|
|
4275
4252
|
bl_label: typing.Any
|
|
4276
|
-
bl_options: typing.Any
|
|
4277
4253
|
bl_rna: typing.Any
|
|
4278
4254
|
id_data: typing.Any
|
|
4279
|
-
preset_defines: typing.Any
|
|
4280
|
-
preset_menu: typing.Any
|
|
4281
|
-
preset_subdir: typing.Any
|
|
4282
|
-
preset_values: typing.Any
|
|
4283
|
-
|
|
4284
|
-
def as_filename(self, name):
|
|
4285
|
-
"""
|
|
4286
|
-
|
|
4287
|
-
:param name:
|
|
4288
|
-
"""
|
|
4289
|
-
...
|
|
4290
4255
|
|
|
4291
4256
|
def as_keywords(self, ignore=()):
|
|
4292
4257
|
"""Return a copy of the properties as a dictionary
|
|
@@ -4319,13 +4284,6 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4319
4284
|
"""
|
|
4320
4285
|
...
|
|
4321
4286
|
|
|
4322
|
-
def check(self, _context):
|
|
4323
|
-
"""
|
|
4324
|
-
|
|
4325
|
-
:param _context:
|
|
4326
|
-
"""
|
|
4327
|
-
...
|
|
4328
|
-
|
|
4329
4287
|
def driver_add(self) -> bpy.types.FCurve:
|
|
4330
4288
|
"""Adds driver(s) to the given property
|
|
4331
4289
|
|
|
@@ -4377,14 +4335,6 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4377
4335
|
"""
|
|
4378
4336
|
...
|
|
4379
4337
|
|
|
4380
|
-
def invoke(self, context, _event):
|
|
4381
|
-
"""
|
|
4382
|
-
|
|
4383
|
-
:param context:
|
|
4384
|
-
:param _event:
|
|
4385
|
-
"""
|
|
4386
|
-
...
|
|
4387
|
-
|
|
4388
4338
|
def is_property_hidden(self) -> bool:
|
|
4389
4339
|
"""Check if a property is hidden.
|
|
4390
4340
|
|
|
@@ -4501,18 +4451,16 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4501
4451
|
"""
|
|
4502
4452
|
...
|
|
4503
4453
|
|
|
4504
|
-
class
|
|
4505
|
-
"""
|
|
4454
|
+
class RemovePresetInterfaceTheme(AddPresetBase):
|
|
4455
|
+
"""Remove a custom theme from the preset list"""
|
|
4506
4456
|
|
|
4507
4457
|
bl_idname: typing.Any
|
|
4508
4458
|
bl_label: typing.Any
|
|
4509
4459
|
bl_options: typing.Any
|
|
4510
4460
|
bl_rna: typing.Any
|
|
4511
4461
|
id_data: typing.Any
|
|
4512
|
-
preset_defines: typing.Any
|
|
4513
4462
|
preset_menu: typing.Any
|
|
4514
4463
|
preset_subdir: typing.Any
|
|
4515
|
-
preset_values: typing.Any
|
|
4516
4464
|
|
|
4517
4465
|
def as_filename(self, name):
|
|
4518
4466
|
"""
|
|
@@ -4610,11 +4558,11 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4610
4558
|
"""
|
|
4611
4559
|
...
|
|
4612
4560
|
|
|
4613
|
-
def invoke(self, context,
|
|
4561
|
+
def invoke(self, context, event):
|
|
4614
4562
|
"""
|
|
4615
4563
|
|
|
4616
4564
|
:param context:
|
|
4617
|
-
:param
|
|
4565
|
+
:param event:
|
|
4618
4566
|
"""
|
|
4619
4567
|
...
|
|
4620
4568
|
|
|
@@ -4695,6 +4643,13 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4695
4643
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4696
4644
|
...
|
|
4697
4645
|
|
|
4646
|
+
def poll(self, context):
|
|
4647
|
+
"""
|
|
4648
|
+
|
|
4649
|
+
:param context:
|
|
4650
|
+
"""
|
|
4651
|
+
...
|
|
4652
|
+
|
|
4698
4653
|
def poll_message_set(self):
|
|
4699
4654
|
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
4700
4655
|
...
|
|
@@ -4706,6 +4661,13 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4706
4661
|
"""
|
|
4707
4662
|
...
|
|
4708
4663
|
|
|
4664
|
+
def post_cb(self, context):
|
|
4665
|
+
"""
|
|
4666
|
+
|
|
4667
|
+
:param context:
|
|
4668
|
+
"""
|
|
4669
|
+
...
|
|
4670
|
+
|
|
4709
4671
|
def property_overridable_library_set(self) -> bool:
|
|
4710
4672
|
"""Define a property as overridable or not (only for custom properties!).
|
|
4711
4673
|
|
|
@@ -4734,18 +4696,16 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4734
4696
|
"""
|
|
4735
4697
|
...
|
|
4736
4698
|
|
|
4737
|
-
class
|
|
4738
|
-
"""
|
|
4699
|
+
class RemovePresetKeyconfig(AddPresetBase):
|
|
4700
|
+
"""Remove a custom keymap configuration from the preset list"""
|
|
4739
4701
|
|
|
4740
4702
|
bl_idname: typing.Any
|
|
4741
4703
|
bl_label: typing.Any
|
|
4742
4704
|
bl_options: typing.Any
|
|
4743
4705
|
bl_rna: typing.Any
|
|
4744
4706
|
id_data: typing.Any
|
|
4745
|
-
preset_defines: typing.Any
|
|
4746
4707
|
preset_menu: typing.Any
|
|
4747
4708
|
preset_subdir: typing.Any
|
|
4748
|
-
preset_values: typing.Any
|
|
4749
4709
|
|
|
4750
4710
|
def as_filename(self, name):
|
|
4751
4711
|
"""
|
|
@@ -4843,11 +4803,11 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4843
4803
|
"""
|
|
4844
4804
|
...
|
|
4845
4805
|
|
|
4846
|
-
def invoke(self, context,
|
|
4806
|
+
def invoke(self, context, event):
|
|
4847
4807
|
"""
|
|
4848
4808
|
|
|
4849
4809
|
:param context:
|
|
4850
|
-
:param
|
|
4810
|
+
:param event:
|
|
4851
4811
|
"""
|
|
4852
4812
|
...
|
|
4853
4813
|
|
|
@@ -4928,6 +4888,13 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4928
4888
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4929
4889
|
...
|
|
4930
4890
|
|
|
4891
|
+
def poll(self, context):
|
|
4892
|
+
"""
|
|
4893
|
+
|
|
4894
|
+
:param context:
|
|
4895
|
+
"""
|
|
4896
|
+
...
|
|
4897
|
+
|
|
4931
4898
|
def poll_message_set(self):
|
|
4932
4899
|
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
4933
4900
|
...
|
|
@@ -4939,6 +4906,20 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4939
4906
|
"""
|
|
4940
4907
|
...
|
|
4941
4908
|
|
|
4909
|
+
def post_cb(self, context):
|
|
4910
|
+
"""
|
|
4911
|
+
|
|
4912
|
+
:param context:
|
|
4913
|
+
"""
|
|
4914
|
+
...
|
|
4915
|
+
|
|
4916
|
+
def pre_cb(self, context):
|
|
4917
|
+
"""
|
|
4918
|
+
|
|
4919
|
+
:param context:
|
|
4920
|
+
"""
|
|
4921
|
+
...
|
|
4922
|
+
|
|
4942
4923
|
def property_overridable_library_set(self) -> bool:
|
|
4943
4924
|
"""Define a property as overridable or not (only for custom properties!).
|
|
4944
4925
|
|
|
@@ -4967,18 +4948,16 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4967
4948
|
"""
|
|
4968
4949
|
...
|
|
4969
4950
|
|
|
4970
|
-
class
|
|
4971
|
-
"""
|
|
4951
|
+
class SavePresetInterfaceTheme(AddPresetBase):
|
|
4952
|
+
"""Save a custom theme in the preset list"""
|
|
4972
4953
|
|
|
4973
4954
|
bl_idname: typing.Any
|
|
4974
4955
|
bl_label: typing.Any
|
|
4975
4956
|
bl_options: typing.Any
|
|
4976
4957
|
bl_rna: typing.Any
|
|
4977
4958
|
id_data: typing.Any
|
|
4978
|
-
preset_defines: typing.Any
|
|
4979
4959
|
preset_menu: typing.Any
|
|
4980
4960
|
preset_subdir: typing.Any
|
|
4981
|
-
preset_values: typing.Any
|
|
4982
4961
|
|
|
4983
4962
|
def as_filename(self, name):
|
|
4984
4963
|
"""
|
|
@@ -5076,11 +5055,11 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5076
5055
|
"""
|
|
5077
5056
|
...
|
|
5078
5057
|
|
|
5079
|
-
def invoke(self, context,
|
|
5058
|
+
def invoke(self, context, event):
|
|
5080
5059
|
"""
|
|
5081
5060
|
|
|
5082
5061
|
:param context:
|
|
5083
|
-
:param
|
|
5062
|
+
:param event:
|
|
5084
5063
|
"""
|
|
5085
5064
|
...
|
|
5086
5065
|
|
|
@@ -5161,6 +5140,13 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5161
5140
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5162
5141
|
...
|
|
5163
5142
|
|
|
5143
|
+
def poll(self, context):
|
|
5144
|
+
"""
|
|
5145
|
+
|
|
5146
|
+
:param context:
|
|
5147
|
+
"""
|
|
5148
|
+
...
|
|
5149
|
+
|
|
5164
5150
|
def poll_message_set(self):
|
|
5165
5151
|
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
5166
5152
|
...
|
|
@@ -5200,33 +5186,23 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5200
5186
|
"""
|
|
5201
5187
|
...
|
|
5202
5188
|
|
|
5203
|
-
class
|
|
5204
|
-
"""Remove a custom theme from the preset list"""
|
|
5205
|
-
|
|
5206
|
-
bl_idname: typing.Any
|
|
5189
|
+
class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
5207
5190
|
bl_label: typing.Any
|
|
5208
|
-
bl_options: typing.Any
|
|
5209
5191
|
bl_rna: typing.Any
|
|
5210
5192
|
id_data: typing.Any
|
|
5211
|
-
|
|
5193
|
+
preset_operator: typing.Any
|
|
5212
5194
|
preset_subdir: typing.Any
|
|
5213
5195
|
|
|
5214
|
-
def
|
|
5215
|
-
"""
|
|
5196
|
+
def append(self, draw_func):
|
|
5197
|
+
"""Append a draw function to this menu,
|
|
5198
|
+
takes the same arguments as the menus draw function
|
|
5216
5199
|
|
|
5217
|
-
|
|
5200
|
+
:param draw_func:
|
|
5218
5201
|
"""
|
|
5219
5202
|
...
|
|
5220
5203
|
|
|
5221
|
-
def
|
|
5222
|
-
"""
|
|
5223
|
-
|
|
5224
|
-
:param ignore:
|
|
5225
|
-
"""
|
|
5226
|
-
...
|
|
5227
|
-
|
|
5228
|
-
def as_pointer(self) -> int:
|
|
5229
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
5204
|
+
def as_pointer(self) -> int:
|
|
5205
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
5230
5206
|
|
|
5231
5207
|
:return: int (memory address).
|
|
5232
5208
|
:rtype: int
|
|
@@ -5249,10 +5225,30 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5249
5225
|
"""
|
|
5250
5226
|
...
|
|
5251
5227
|
|
|
5252
|
-
def
|
|
5228
|
+
def draw(self, context):
|
|
5253
5229
|
"""
|
|
5254
5230
|
|
|
5255
|
-
:param
|
|
5231
|
+
:param context:
|
|
5232
|
+
"""
|
|
5233
|
+
...
|
|
5234
|
+
|
|
5235
|
+
def draw_collapsible(self, context, layout):
|
|
5236
|
+
"""
|
|
5237
|
+
|
|
5238
|
+
:param context:
|
|
5239
|
+
:param layout:
|
|
5240
|
+
"""
|
|
5241
|
+
...
|
|
5242
|
+
|
|
5243
|
+
def draw_preset(self, _context):
|
|
5244
|
+
"""Define these on the subclass:
|
|
5245
|
+
- preset_operator (string)
|
|
5246
|
+
- preset_subdir (string)Optionally:
|
|
5247
|
+
- preset_add_operator (string)
|
|
5248
|
+
- preset_extensions (set of strings)
|
|
5249
|
+
- preset_operator_defaults (dict of keyword args)
|
|
5250
|
+
|
|
5251
|
+
:param _context:
|
|
5256
5252
|
"""
|
|
5257
5253
|
...
|
|
5258
5254
|
|
|
@@ -5272,13 +5268,6 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5272
5268
|
"""
|
|
5273
5269
|
...
|
|
5274
5270
|
|
|
5275
|
-
def execute(self, context):
|
|
5276
|
-
"""
|
|
5277
|
-
|
|
5278
|
-
:param context:
|
|
5279
|
-
"""
|
|
5280
|
-
...
|
|
5281
|
-
|
|
5282
5271
|
def get(self):
|
|
5283
5272
|
"""Returns the value of the custom property assigned to key or default
|
|
5284
5273
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -5307,14 +5296,7 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5307
5296
|
"""
|
|
5308
5297
|
...
|
|
5309
5298
|
|
|
5310
|
-
def
|
|
5311
|
-
"""
|
|
5312
|
-
|
|
5313
|
-
:param context:
|
|
5314
|
-
:param event:
|
|
5315
|
-
"""
|
|
5316
|
-
...
|
|
5317
|
-
|
|
5299
|
+
def is_extended(self): ...
|
|
5318
5300
|
def is_property_hidden(self) -> bool:
|
|
5319
5301
|
"""Check if a property is hidden.
|
|
5320
5302
|
|
|
@@ -5388,19 +5370,42 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5388
5370
|
"""
|
|
5389
5371
|
...
|
|
5390
5372
|
|
|
5391
|
-
def
|
|
5392
|
-
|
|
5393
|
-
|
|
5373
|
+
def path_menu(
|
|
5374
|
+
self,
|
|
5375
|
+
searchpaths: list[str],
|
|
5376
|
+
operator: str,
|
|
5377
|
+
props_default: dict = None,
|
|
5378
|
+
prop_filepath: str | None = "filepath",
|
|
5379
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
5380
|
+
filter_path=None,
|
|
5381
|
+
display_name: collections.abc.Callable | None = None,
|
|
5382
|
+
add_operator=None,
|
|
5383
|
+
add_operator_props=None,
|
|
5384
|
+
):
|
|
5385
|
+
"""Populate a menu from a list of paths.
|
|
5394
5386
|
|
|
5395
|
-
|
|
5396
|
-
|
|
5387
|
+
:param searchpaths: Paths to scan.
|
|
5388
|
+
:type searchpaths: list[str]
|
|
5389
|
+
:param operator: The operator id to use with each file.
|
|
5390
|
+
:type operator: str
|
|
5391
|
+
:param props_default: Properties to assign to each operator.
|
|
5392
|
+
:type props_default: dict
|
|
5393
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5394
|
+
:type prop_filepath: str | None
|
|
5395
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
5397
5396
|
|
|
5398
|
-
|
|
5397
|
+
Returning false excludes the file from the list.
|
|
5398
|
+
:type filter_ext: collections.abc.Callable | None
|
|
5399
|
+
:param filter_path:
|
|
5400
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5401
|
+
:type display_name: collections.abc.Callable | None
|
|
5402
|
+
:param add_operator:
|
|
5403
|
+
:param add_operator_props:
|
|
5399
5404
|
"""
|
|
5400
5405
|
...
|
|
5401
5406
|
|
|
5402
|
-
def
|
|
5403
|
-
"""
|
|
5407
|
+
def path_resolve(self):
|
|
5408
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
5404
5409
|
...
|
|
5405
5410
|
|
|
5406
5411
|
def pop(self):
|
|
@@ -5410,10 +5415,11 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5410
5415
|
"""
|
|
5411
5416
|
...
|
|
5412
5417
|
|
|
5413
|
-
def
|
|
5414
|
-
"""
|
|
5418
|
+
def prepend(self, draw_func):
|
|
5419
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
5420
|
+
the menus draw function
|
|
5415
5421
|
|
|
5416
|
-
|
|
5422
|
+
:param draw_func:
|
|
5417
5423
|
"""
|
|
5418
5424
|
...
|
|
5419
5425
|
|
|
@@ -5429,6 +5435,13 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5429
5435
|
"""Unset a property, will use default value afterward."""
|
|
5430
5436
|
...
|
|
5431
5437
|
|
|
5438
|
+
def remove(self, draw_func):
|
|
5439
|
+
"""Remove a draw function that has been added to this menu
|
|
5440
|
+
|
|
5441
|
+
:param draw_func:
|
|
5442
|
+
"""
|
|
5443
|
+
...
|
|
5444
|
+
|
|
5432
5445
|
def type_recast(self):
|
|
5433
5446
|
"""Return a new instance, this is needed because types
|
|
5434
5447
|
such as textures can be changed at runtime.
|
|
@@ -5445,23 +5458,13 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5445
5458
|
"""
|
|
5446
5459
|
...
|
|
5447
5460
|
|
|
5448
|
-
class
|
|
5449
|
-
"""Remove
|
|
5461
|
+
class WM_OT_operator_presets_cleanup:
|
|
5462
|
+
"""Remove outdated operator properties from presets that may cause problems"""
|
|
5450
5463
|
|
|
5451
5464
|
bl_idname: typing.Any
|
|
5452
5465
|
bl_label: typing.Any
|
|
5453
|
-
bl_options: typing.Any
|
|
5454
5466
|
bl_rna: typing.Any
|
|
5455
5467
|
id_data: typing.Any
|
|
5456
|
-
preset_menu: typing.Any
|
|
5457
|
-
preset_subdir: typing.Any
|
|
5458
|
-
|
|
5459
|
-
def as_filename(self, name):
|
|
5460
|
-
"""
|
|
5461
|
-
|
|
5462
|
-
:param name:
|
|
5463
|
-
"""
|
|
5464
|
-
...
|
|
5465
5468
|
|
|
5466
5469
|
def as_keywords(self, ignore=()):
|
|
5467
5470
|
"""Return a copy of the properties as a dictionary
|
|
@@ -5494,13 +5497,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5494
5497
|
"""
|
|
5495
5498
|
...
|
|
5496
5499
|
|
|
5497
|
-
def check(self, _context):
|
|
5498
|
-
"""
|
|
5499
|
-
|
|
5500
|
-
:param _context:
|
|
5501
|
-
"""
|
|
5502
|
-
...
|
|
5503
|
-
|
|
5504
5500
|
def driver_add(self) -> bpy.types.FCurve:
|
|
5505
5501
|
"""Adds driver(s) to the given property
|
|
5506
5502
|
|
|
@@ -5552,14 +5548,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5552
5548
|
"""
|
|
5553
5549
|
...
|
|
5554
5550
|
|
|
5555
|
-
def invoke(self, context, event):
|
|
5556
|
-
"""
|
|
5557
|
-
|
|
5558
|
-
:param context:
|
|
5559
|
-
:param event:
|
|
5560
|
-
"""
|
|
5561
|
-
...
|
|
5562
|
-
|
|
5563
5551
|
def is_property_hidden(self) -> bool:
|
|
5564
5552
|
"""Check if a property is hidden.
|
|
5565
5553
|
|
|
@@ -5637,13 +5625,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5637
5625
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5638
5626
|
...
|
|
5639
5627
|
|
|
5640
|
-
def poll(self, context):
|
|
5641
|
-
"""
|
|
5642
|
-
|
|
5643
|
-
:param context:
|
|
5644
|
-
"""
|
|
5645
|
-
...
|
|
5646
|
-
|
|
5647
5628
|
def poll_message_set(self):
|
|
5648
5629
|
"""Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
|
|
5649
5630
|
...
|
|
@@ -5655,20 +5636,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5655
5636
|
"""
|
|
5656
5637
|
...
|
|
5657
5638
|
|
|
5658
|
-
def post_cb(self, context):
|
|
5659
|
-
"""
|
|
5660
|
-
|
|
5661
|
-
:param context:
|
|
5662
|
-
"""
|
|
5663
|
-
...
|
|
5664
|
-
|
|
5665
|
-
def pre_cb(self, context):
|
|
5666
|
-
"""
|
|
5667
|
-
|
|
5668
|
-
:param context:
|
|
5669
|
-
"""
|
|
5670
|
-
...
|
|
5671
|
-
|
|
5672
5639
|
def property_overridable_library_set(self) -> bool:
|
|
5673
5640
|
"""Define a property as overridable or not (only for custom properties!).
|
|
5674
5641
|
|
|
@@ -5697,28 +5664,22 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5697
5664
|
"""
|
|
5698
5665
|
...
|
|
5699
5666
|
|
|
5700
|
-
class
|
|
5701
|
-
"""Save a custom theme in the preset list"""
|
|
5702
|
-
|
|
5703
|
-
bl_idname: typing.Any
|
|
5667
|
+
class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
5704
5668
|
bl_label: typing.Any
|
|
5705
|
-
|
|
5669
|
+
bl_region_type: typing.Any
|
|
5706
5670
|
bl_rna: typing.Any
|
|
5671
|
+
bl_space_type: typing.Any
|
|
5707
5672
|
id_data: typing.Any
|
|
5708
|
-
|
|
5673
|
+
preset_add_operator: typing.Any
|
|
5674
|
+
preset_add_operator_properties: typing.Any
|
|
5675
|
+
preset_operator: typing.Any
|
|
5709
5676
|
preset_subdir: typing.Any
|
|
5710
5677
|
|
|
5711
|
-
def
|
|
5712
|
-
"""
|
|
5713
|
-
|
|
5714
|
-
:param name:
|
|
5715
|
-
"""
|
|
5716
|
-
...
|
|
5717
|
-
|
|
5718
|
-
def as_keywords(self, ignore=()):
|
|
5719
|
-
"""Return a copy of the properties as a dictionary
|
|
5678
|
+
def append(self, draw_func):
|
|
5679
|
+
"""Append a draw function to this menu,
|
|
5680
|
+
takes the same arguments as the menus draw function
|
|
5720
5681
|
|
|
5721
|
-
|
|
5682
|
+
:param draw_func:
|
|
5722
5683
|
"""
|
|
5723
5684
|
...
|
|
5724
5685
|
|
|
@@ -5746,10 +5707,25 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5746
5707
|
"""
|
|
5747
5708
|
...
|
|
5748
5709
|
|
|
5749
|
-
def
|
|
5710
|
+
def draw(self, context):
|
|
5750
5711
|
"""
|
|
5751
5712
|
|
|
5752
|
-
:param
|
|
5713
|
+
:param context:
|
|
5714
|
+
"""
|
|
5715
|
+
...
|
|
5716
|
+
|
|
5717
|
+
def draw_menu(self, layout, text=None):
|
|
5718
|
+
"""
|
|
5719
|
+
|
|
5720
|
+
:param layout:
|
|
5721
|
+
:param text:
|
|
5722
|
+
"""
|
|
5723
|
+
...
|
|
5724
|
+
|
|
5725
|
+
def draw_panel_header(self, layout):
|
|
5726
|
+
"""
|
|
5727
|
+
|
|
5728
|
+
:param layout:
|
|
5753
5729
|
"""
|
|
5754
5730
|
...
|
|
5755
5731
|
|
|
@@ -5769,13 +5745,6 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5769
5745
|
"""
|
|
5770
5746
|
...
|
|
5771
5747
|
|
|
5772
|
-
def execute(self, context):
|
|
5773
|
-
"""
|
|
5774
|
-
|
|
5775
|
-
:param context:
|
|
5776
|
-
"""
|
|
5777
|
-
...
|
|
5778
|
-
|
|
5779
5748
|
def get(self):
|
|
5780
5749
|
"""Returns the value of the custom property assigned to key or default
|
|
5781
5750
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -5804,14 +5773,7 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5804
5773
|
"""
|
|
5805
5774
|
...
|
|
5806
5775
|
|
|
5807
|
-
def
|
|
5808
|
-
"""
|
|
5809
|
-
|
|
5810
|
-
:param context:
|
|
5811
|
-
:param event:
|
|
5812
|
-
"""
|
|
5813
|
-
...
|
|
5814
|
-
|
|
5776
|
+
def is_extended(self): ...
|
|
5815
5777
|
def is_property_hidden(self) -> bool:
|
|
5816
5778
|
"""Check if a property is hidden.
|
|
5817
5779
|
|
|
@@ -5885,19 +5847,42 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5885
5847
|
"""
|
|
5886
5848
|
...
|
|
5887
5849
|
|
|
5888
|
-
def
|
|
5889
|
-
|
|
5890
|
-
|
|
5850
|
+
def path_menu(
|
|
5851
|
+
self,
|
|
5852
|
+
searchpaths: list[str],
|
|
5853
|
+
operator: str,
|
|
5854
|
+
props_default: dict = None,
|
|
5855
|
+
prop_filepath: str | None = "filepath",
|
|
5856
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
5857
|
+
filter_path=None,
|
|
5858
|
+
display_name: collections.abc.Callable | None = None,
|
|
5859
|
+
add_operator=None,
|
|
5860
|
+
add_operator_props=None,
|
|
5861
|
+
):
|
|
5862
|
+
"""Populate a menu from a list of paths.
|
|
5891
5863
|
|
|
5892
|
-
|
|
5893
|
-
|
|
5864
|
+
:param searchpaths: Paths to scan.
|
|
5865
|
+
:type searchpaths: list[str]
|
|
5866
|
+
:param operator: The operator id to use with each file.
|
|
5867
|
+
:type operator: str
|
|
5868
|
+
:param props_default: Properties to assign to each operator.
|
|
5869
|
+
:type props_default: dict
|
|
5870
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
5871
|
+
:type prop_filepath: str | None
|
|
5872
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
5894
5873
|
|
|
5895
|
-
|
|
5874
|
+
Returning false excludes the file from the list.
|
|
5875
|
+
:type filter_ext: collections.abc.Callable | None
|
|
5876
|
+
:param filter_path:
|
|
5877
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
5878
|
+
:type display_name: collections.abc.Callable | None
|
|
5879
|
+
:param add_operator:
|
|
5880
|
+
:param add_operator_props:
|
|
5896
5881
|
"""
|
|
5897
5882
|
...
|
|
5898
5883
|
|
|
5899
|
-
def
|
|
5900
|
-
"""
|
|
5884
|
+
def path_resolve(self):
|
|
5885
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
5901
5886
|
...
|
|
5902
5887
|
|
|
5903
5888
|
def pop(self):
|
|
@@ -5907,6 +5892,14 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5907
5892
|
"""
|
|
5908
5893
|
...
|
|
5909
5894
|
|
|
5895
|
+
def prepend(self, draw_func):
|
|
5896
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
5897
|
+
the menus draw function
|
|
5898
|
+
|
|
5899
|
+
:param draw_func:
|
|
5900
|
+
"""
|
|
5901
|
+
...
|
|
5902
|
+
|
|
5910
5903
|
def property_overridable_library_set(self) -> bool:
|
|
5911
5904
|
"""Define a property as overridable or not (only for custom properties!).
|
|
5912
5905
|
|
|
@@ -5919,6 +5912,13 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5919
5912
|
"""Unset a property, will use default value afterward."""
|
|
5920
5913
|
...
|
|
5921
5914
|
|
|
5915
|
+
def remove(self, draw_func):
|
|
5916
|
+
"""Remove a draw function that has been added to this menu
|
|
5917
|
+
|
|
5918
|
+
:param draw_func:
|
|
5919
|
+
"""
|
|
5920
|
+
...
|
|
5921
|
+
|
|
5922
5922
|
def type_recast(self):
|
|
5923
5923
|
"""Return a new instance, this is needed because types
|
|
5924
5924
|
such as textures can be changed at runtime.
|