fake-bpy-module 20240705__py3-none-any.whl → 20240707__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/__init__.pyi +1 -0
- _bpy_internal/extensions/__init__.pyi +1 -0
- _bpy_internal/extensions/junction_module/__init__.pyi +1 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -0
- _bpy_internal/freedesktop/__init__.pyi +1 -0
- addon_utils/__init__.pyi +1 -0
- animsys_refactor/__init__.pyi +1 -0
- aud/__init__.pyi +1 -0
- bgl/__init__.pyi +1 -0
- bl_app_override/__init__.pyi +1 -0
- bl_app_override/helpers/__init__.pyi +1 -0
- bl_app_template_utils/__init__.pyi +1 -0
- bl_console_utils/__init__.pyi +1 -0
- bl_console_utils/autocomplete/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_import/__init__.pyi +1 -0
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +1 -0
- bl_console_utils/autocomplete/intellisense/__init__.pyi +1 -0
- bl_i18n_utils/__init__.pyi +1 -0
- bl_i18n_utils/bl_extract_messages/__init__.pyi +1 -0
- bl_i18n_utils/merge_po/__init__.pyi +1 -0
- bl_i18n_utils/settings/__init__.pyi +1 -0
- bl_i18n_utils/utils/__init__.pyi +1 -0
- bl_i18n_utils/utils_cli/__init__.pyi +1 -0
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -0
- bl_i18n_utils/utils_rtl/__init__.pyi +1 -0
- bl_keymap_utils/__init__.pyi +1 -0
- bl_keymap_utils/io/__init__.pyi +1 -0
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -0
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -0
- bl_keymap_utils/platform_helpers/__init__.pyi +1 -0
- bl_keymap_utils/versioning/__init__.pyi +1 -0
- bl_math/__init__.pyi +1 -0
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +1 -0
- bl_operators/anim/__init__.pyi +1 -0
- bl_operators/assets/__init__.pyi +9 -8
- bl_operators/bmesh/__init__.pyi +1 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +1 -0
- bl_operators/clip/__init__.pyi +1 -0
- bl_operators/connect_to_output/__init__.pyi +1 -0
- bl_operators/console/__init__.pyi +1 -0
- bl_operators/constraint/__init__.pyi +1 -0
- bl_operators/file/__init__.pyi +1 -0
- bl_operators/freestyle/__init__.pyi +1 -0
- bl_operators/geometry_nodes/__init__.pyi +1 -0
- bl_operators/image/__init__.pyi +1 -0
- bl_operators/image_as_planes/__init__.pyi +44 -43
- bl_operators/mesh/__init__.pyi +1 -0
- bl_operators/node/__init__.pyi +235 -234
- bl_operators/node_editor/__init__.pyi +1 -0
- bl_operators/node_editor/node_functions/__init__.pyi +1 -0
- bl_operators/object/__init__.pyi +1 -0
- bl_operators/object_align/__init__.pyi +1 -0
- bl_operators/object_quick_effects/__init__.pyi +22 -21
- bl_operators/object_randomize_transform/__init__.pyi +1 -0
- bl_operators/presets/__init__.pyi +389 -388
- bl_operators/rigidbody/__init__.pyi +1 -0
- bl_operators/screen_play_rendered_anim/__init__.pyi +1 -0
- bl_operators/sequencer/__init__.pyi +1 -0
- bl_operators/spreadsheet/__init__.pyi +1 -0
- bl_operators/userpref/__init__.pyi +1 -0
- bl_operators/uvcalc_follow_active/__init__.pyi +1 -0
- bl_operators/uvcalc_lightmap/__init__.pyi +1 -0
- bl_operators/uvcalc_transform/__init__.pyi +1 -0
- bl_operators/vertexpaint_dirt/__init__.pyi +1 -0
- bl_operators/view3d/__init__.pyi +1 -0
- bl_operators/wm/__init__.pyi +1 -0
- bl_operators/world/__init__.pyi +1 -0
- bl_previews_utils/__init__.pyi +1 -0
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -0
- bl_rna_utils/__init__.pyi +1 -0
- bl_rna_utils/data_path/__init__.pyi +1 -0
- bl_text_utils/__init__.pyi +1 -0
- bl_text_utils/external_editor/__init__.pyi +1 -0
- bl_ui/__init__.pyi +1 -0
- bl_ui/anim/__init__.pyi +1 -0
- bl_ui/asset_shelf/__init__.pyi +1 -0
- bl_ui/generic_ui_list/__init__.pyi +1 -0
- bl_ui/node_add_menu/__init__.pyi +1 -0
- bl_ui/node_add_menu_compositor/__init__.pyi +1 -0
- bl_ui/node_add_menu_geometry/__init__.pyi +1 -0
- bl_ui/node_add_menu_shader/__init__.pyi +1 -0
- bl_ui/node_add_menu_texture/__init__.pyi +1 -0
- bl_ui/properties_animviz/__init__.pyi +1 -0
- bl_ui/properties_collection/__init__.pyi +13 -12
- bl_ui/properties_constraint/__init__.pyi +955 -954
- bl_ui/properties_data_armature/__init__.pyi +86 -85
- bl_ui/properties_data_bone/__init__.pyi +13 -12
- bl_ui/properties_data_camera/__init__.pyi +1 -0
- bl_ui/properties_data_curve/__init__.pyi +93 -92
- bl_ui/properties_data_curves/__init__.pyi +13 -12
- bl_ui/properties_data_empty/__init__.pyi +13 -12
- bl_ui/properties_data_gpencil/__init__.pyi +266 -265
- bl_ui/properties_data_grease_pencil/__init__.pyi +313 -312
- bl_ui/properties_data_lattice/__init__.pyi +13 -12
- bl_ui/properties_data_light/__init__.pyi +13 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +13 -12
- bl_ui/properties_data_mesh/__init__.pyi +528 -527
- bl_ui/properties_data_metaball/__init__.pyi +13 -12
- bl_ui/properties_data_modifier/__init__.pyi +20 -19
- bl_ui/properties_data_pointcloud/__init__.pyi +141 -140
- bl_ui/properties_data_shaderfx/__init__.pyi +6 -5
- bl_ui/properties_data_speaker/__init__.pyi +13 -12
- bl_ui/properties_data_volume/__init__.pyi +66 -65
- bl_ui/properties_freestyle/__init__.pyi +249 -248
- bl_ui/properties_grease_pencil_common/__init__.pyi +1 -0
- bl_ui/properties_mask_common/__init__.pyi +1 -0
- bl_ui/properties_material/__init__.pyi +146 -145
- bl_ui/properties_material_gpencil/__init__.pyi +87 -86
- bl_ui/properties_object/__init__.pyi +76 -75
- bl_ui/properties_output/__init__.pyi +202 -201
- bl_ui/properties_paint_common/__init__.pyi +1 -0
- bl_ui/properties_particle/__init__.pyi +221 -220
- bl_ui/properties_physics_cloth/__init__.pyi +13 -12
- bl_ui/properties_physics_common/__init__.pyi +13 -12
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +188 -187
- bl_ui/properties_physics_field/__init__.pyi +20 -19
- bl_ui/properties_physics_fluid/__init__.pyi +62 -61
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -0
- bl_ui/properties_physics_rigidbody/__init__.pyi +6 -5
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +6 -5
- bl_ui/properties_physics_softbody/__init__.pyi +13 -12
- bl_ui/properties_render/__init__.pyi +218 -217
- bl_ui/properties_scene/__init__.pyi +144 -143
- bl_ui/properties_texture/__init__.pyi +157 -156
- bl_ui/properties_view_layer/__init__.pyi +79 -78
- bl_ui/properties_workspace/__init__.pyi +65 -64
- bl_ui/properties_world/__init__.pyi +13 -12
- bl_ui/space_clip/__init__.pyi +367 -366
- bl_ui/space_console/__init__.pyi +1 -0
- bl_ui/space_dopesheet/__init__.pyi +177 -176
- bl_ui/space_filebrowser/__init__.pyi +736 -735
- bl_ui/space_graph/__init__.pyi +1 -0
- bl_ui/space_image/__init__.pyi +647 -646
- bl_ui/space_info/__init__.pyi +1 -0
- bl_ui/space_nla/__init__.pyi +1 -0
- bl_ui/space_node/__init__.pyi +1 -0
- bl_ui/space_outliner/__init__.pyi +1 -0
- bl_ui/space_properties/__init__.pyi +1 -0
- bl_ui/space_sequencer/__init__.pyi +842 -389
- bl_ui/space_spreadsheet/__init__.pyi +1 -0
- bl_ui/space_statusbar/__init__.pyi +1 -0
- bl_ui/space_text/__init__.pyi +1 -0
- bl_ui/space_time/__init__.pyi +12 -11
- bl_ui/space_toolsystem_common/__init__.pyi +1 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1 -0
- bl_ui/space_topbar/__init__.pyi +1 -0
- bl_ui/space_userpref/__init__.pyi +685 -684
- bl_ui/space_view3d/__init__.pyi +1153 -1152
- bl_ui/space_view3d_toolbar/__init__.pyi +2832 -2831
- bl_ui/temp_anim_layers/__init__.pyi +1 -0
- bl_ui/utils/__init__.pyi +1 -0
- bl_ui_utils/__init__.pyi +1 -0
- bl_ui_utils/bug_report_url/__init__.pyi +1 -0
- bl_ui_utils/layout/__init__.pyi +1 -0
- blend_render_info/__init__.pyi +1 -0
- blf/__init__.pyi +1 -0
- bmesh/__init__.pyi +1 -0
- bmesh/geometry/__init__.pyi +1 -0
- bmesh/ops/__init__.pyi +1 -0
- bmesh/types/__init__.pyi +1 -0
- bmesh/utils/__init__.pyi +1 -0
- bpy/__init__.pyi +1 -0
- bpy/app/__init__.pyi +1 -0
- bpy/app/handlers/__init__.pyi +1 -0
- bpy/app/icons/__init__.pyi +1 -0
- bpy/app/timers/__init__.pyi +1 -0
- bpy/app/translations/__init__.pyi +1 -0
- bpy/msgbus/__init__.pyi +1 -0
- bpy/ops/__init__.pyi +1 -0
- bpy/ops/action/__init__.pyi +1 -0
- bpy/ops/anim/__init__.pyi +15 -14
- bpy/ops/armature/__init__.pyi +1 -0
- bpy/ops/asset/__init__.pyi +1 -0
- bpy/ops/boid/__init__.pyi +1 -0
- bpy/ops/brush/__init__.pyi +1 -0
- bpy/ops/buttons/__init__.pyi +1 -0
- bpy/ops/cachefile/__init__.pyi +1 -0
- bpy/ops/camera/__init__.pyi +1 -0
- bpy/ops/clip/__init__.pyi +1 -0
- bpy/ops/cloth/__init__.pyi +1 -0
- bpy/ops/collection/__init__.pyi +1 -0
- bpy/ops/console/__init__.pyi +1 -0
- bpy/ops/constraint/__init__.pyi +1 -0
- bpy/ops/curve/__init__.pyi +1 -0
- bpy/ops/curves/__init__.pyi +1 -0
- bpy/ops/cycles/__init__.pyi +1 -0
- bpy/ops/dpaint/__init__.pyi +1 -0
- bpy/ops/ed/__init__.pyi +1 -0
- bpy/ops/export_anim/__init__.pyi +1 -0
- bpy/ops/export_scene/__init__.pyi +1 -0
- bpy/ops/extensions/__init__.pyi +1 -0
- bpy/ops/file/__init__.pyi +1 -0
- bpy/ops/fluid/__init__.pyi +1 -0
- bpy/ops/font/__init__.pyi +1 -0
- bpy/ops/geometry/__init__.pyi +1 -0
- bpy/ops/gizmogroup/__init__.pyi +1 -0
- bpy/ops/gpencil/__init__.pyi +1 -0
- bpy/ops/graph/__init__.pyi +1 -0
- bpy/ops/grease_pencil/__init__.pyi +19 -0
- bpy/ops/image/__init__.pyi +1 -0
- bpy/ops/import_anim/__init__.pyi +1 -0
- bpy/ops/import_curve/__init__.pyi +1 -0
- bpy/ops/import_scene/__init__.pyi +1 -0
- bpy/ops/info/__init__.pyi +1 -0
- bpy/ops/lattice/__init__.pyi +1 -0
- bpy/ops/marker/__init__.pyi +1 -0
- bpy/ops/mask/__init__.pyi +1 -0
- bpy/ops/material/__init__.pyi +1 -0
- bpy/ops/mball/__init__.pyi +1 -0
- bpy/ops/mesh/__init__.pyi +7 -2
- bpy/ops/nla/__init__.pyi +1 -0
- bpy/ops/node/__init__.pyi +1 -0
- bpy/ops/object/__init__.pyi +2 -1
- bpy/ops/outliner/__init__.pyi +1 -0
- bpy/ops/paint/__init__.pyi +1 -0
- bpy/ops/paintcurve/__init__.pyi +1 -0
- bpy/ops/palette/__init__.pyi +1 -0
- bpy/ops/particle/__init__.pyi +1 -0
- bpy/ops/pose/__init__.pyi +1 -0
- bpy/ops/poselib/__init__.pyi +1 -0
- bpy/ops/preferences/__init__.pyi +1 -0
- bpy/ops/ptcache/__init__.pyi +1 -0
- bpy/ops/render/__init__.pyi +1 -0
- bpy/ops/rigidbody/__init__.pyi +1 -0
- bpy/ops/scene/__init__.pyi +1 -0
- bpy/ops/screen/__init__.pyi +1 -0
- bpy/ops/script/__init__.pyi +1 -0
- bpy/ops/sculpt/__init__.pyi +1 -0
- bpy/ops/sculpt_curves/__init__.pyi +1 -0
- bpy/ops/sequencer/__init__.pyi +1 -0
- bpy/ops/sound/__init__.pyi +1 -0
- bpy/ops/spreadsheet/__init__.pyi +1 -0
- bpy/ops/surface/__init__.pyi +1 -0
- bpy/ops/text/__init__.pyi +1 -0
- bpy/ops/text_editor/__init__.pyi +1 -0
- bpy/ops/texture/__init__.pyi +1 -0
- bpy/ops/transform/__init__.pyi +17 -16
- bpy/ops/ui/__init__.pyi +1 -0
- bpy/ops/uilist/__init__.pyi +1 -0
- bpy/ops/uv/__init__.pyi +1 -0
- bpy/ops/view2d/__init__.pyi +1 -0
- bpy/ops/view3d/__init__.pyi +1 -0
- bpy/ops/wm/__init__.pyi +5 -4
- bpy/ops/workspace/__init__.pyi +1 -0
- bpy/ops/world/__init__.pyi +1 -0
- bpy/path/__init__.pyi +1 -0
- bpy/props/__init__.pyi +1 -0
- bpy/types/__init__.pyi +68824 -68756
- bpy/utils/__init__.pyi +1 -0
- bpy/utils/previews/__init__.pyi +1 -0
- bpy/utils/units/__init__.pyi +1 -0
- bpy_extras/__init__.pyi +1 -0
- bpy_extras/anim_utils/__init__.pyi +1 -0
- bpy_extras/asset_utils/__init__.pyi +1 -0
- bpy_extras/bmesh_utils/__init__.pyi +1 -0
- bpy_extras/id_map_utils/__init__.pyi +1 -0
- bpy_extras/image_utils/__init__.pyi +1 -0
- bpy_extras/io_utils/__init__.pyi +1 -0
- bpy_extras/keyconfig_utils/__init__.pyi +1 -0
- bpy_extras/mesh_utils/__init__.pyi +1 -0
- bpy_extras/node_shader_utils/__init__.pyi +1 -0
- bpy_extras/node_utils/__init__.pyi +1 -0
- bpy_extras/object_utils/__init__.pyi +1 -0
- bpy_extras/view3d_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -0
- bpy_restrict_state/__init__.pyi +1 -0
- bpy_types/__init__.pyi +1 -0
- console_python/__init__.pyi +1 -0
- console_shell/__init__.pyi +1 -0
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/METADATA +1 -1
- fake_bpy_module-20240707.dist-info/RECORD +358 -0
- freestyle/__init__.pyi +1 -0
- freestyle/chainingiterators/__init__.pyi +1 -0
- freestyle/functions/__init__.pyi +1 -0
- freestyle/predicates/__init__.pyi +1 -0
- freestyle/shaders/__init__.pyi +1 -0
- freestyle/types/__init__.pyi +1 -0
- freestyle/utils/ContextFunctions/__init__.pyi +1 -0
- freestyle/utils/__init__.pyi +2 -1
- gpu/__init__.pyi +1 -0
- gpu/capabilities/__init__.pyi +1 -0
- gpu/matrix/__init__.pyi +1 -0
- gpu/platform/__init__.pyi +1 -0
- gpu/select/__init__.pyi +1 -0
- gpu/shader/__init__.pyi +1 -0
- gpu/state/__init__.pyi +1 -0
- gpu/texture/__init__.pyi +1 -0
- gpu/types/__init__.pyi +1 -0
- gpu_extras/__init__.pyi +1 -0
- gpu_extras/batch/__init__.pyi +1 -0
- gpu_extras/presets/__init__.pyi +1 -0
- graphviz_export/__init__.pyi +1 -0
- idprop/__init__.pyi +1 -0
- idprop/types/__init__.pyi +1 -0
- imbuf/__init__.pyi +1 -0
- imbuf/types/__init__.pyi +1 -0
- keyingsets_builtins/__init__.pyi +88 -87
- keyingsets_utils/__init__.pyi +1 -0
- mathutils/__init__.pyi +157 -6
- mathutils/bvhtree/__init__.pyi +1 -0
- mathutils/geometry/__init__.pyi +1 -0
- mathutils/interpolate/__init__.pyi +1 -0
- mathutils/kdtree/__init__.pyi +1 -0
- mathutils/noise/__init__.pyi +1 -0
- nodeitems_builtins/__init__.pyi +8 -7
- nodeitems_utils/__init__.pyi +1 -0
- rna_info/__init__.pyi +1 -0
- rna_keymap_ui/__init__.pyi +1 -0
- rna_prop_ui/__init__.pyi +1 -0
- rna_xml/__init__.pyi +1 -0
- sys_info/__init__.pyi +1 -0
- fake_bpy_module-20240705.dist-info/RECORD +0 -358
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240705.dist-info → fake_bpy_module-20240707.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
|
+
import typing_extensions
|
|
3
4
|
import bl_ui.utils
|
|
4
5
|
import bpy.types
|
|
5
6
|
import bpy_types
|
|
@@ -39,13 +40,25 @@ class AddPresetBase:
|
|
|
39
40
|
"""
|
|
40
41
|
...
|
|
41
42
|
|
|
42
|
-
class
|
|
43
|
-
"""
|
|
43
|
+
class AddPresetCamera(AddPresetBase):
|
|
44
|
+
"""Add or remove a Camera Preset"""
|
|
44
45
|
|
|
45
46
|
bl_idname: typing.Any
|
|
46
47
|
bl_label: typing.Any
|
|
48
|
+
bl_options: typing.Any
|
|
47
49
|
bl_rna: typing.Any
|
|
48
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
|
+
...
|
|
49
62
|
|
|
50
63
|
def as_keywords(self, ignore=()):
|
|
51
64
|
"""Return a copy of the properties as a dictionary
|
|
@@ -78,6 +91,13 @@ class ExecutePreset:
|
|
|
78
91
|
"""
|
|
79
92
|
...
|
|
80
93
|
|
|
94
|
+
def check(self, _context):
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
:param _context:
|
|
98
|
+
"""
|
|
99
|
+
...
|
|
100
|
+
|
|
81
101
|
def driver_add(self) -> bpy.types.FCurve:
|
|
82
102
|
"""Adds driver(s) to the given property
|
|
83
103
|
|
|
@@ -129,6 +149,14 @@ class ExecutePreset:
|
|
|
129
149
|
"""
|
|
130
150
|
...
|
|
131
151
|
|
|
152
|
+
def invoke(self, context, _event):
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
:param context:
|
|
156
|
+
:param _event:
|
|
157
|
+
"""
|
|
158
|
+
...
|
|
159
|
+
|
|
132
160
|
def is_property_hidden(self) -> bool:
|
|
133
161
|
"""Check if a property is hidden.
|
|
134
162
|
|
|
@@ -245,18 +273,30 @@ class ExecutePreset:
|
|
|
245
273
|
"""
|
|
246
274
|
...
|
|
247
275
|
|
|
248
|
-
class
|
|
276
|
+
class AddPresetCameraSafeAreas(AddPresetBase):
|
|
277
|
+
"""Add or remove a Safe Areas Preset"""
|
|
278
|
+
|
|
279
|
+
bl_idname: typing.Any
|
|
249
280
|
bl_label: typing.Any
|
|
281
|
+
bl_options: typing.Any
|
|
250
282
|
bl_rna: typing.Any
|
|
251
283
|
id_data: typing.Any
|
|
252
|
-
|
|
284
|
+
preset_defines: typing.Any
|
|
285
|
+
preset_menu: typing.Any
|
|
253
286
|
preset_subdir: typing.Any
|
|
287
|
+
preset_values: typing.Any
|
|
254
288
|
|
|
255
|
-
def
|
|
256
|
-
"""
|
|
257
|
-
takes the same arguments as the menus draw function
|
|
289
|
+
def as_filename(self, name):
|
|
290
|
+
"""
|
|
258
291
|
|
|
259
|
-
|
|
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:
|
|
260
300
|
"""
|
|
261
301
|
...
|
|
262
302
|
|
|
@@ -284,30 +324,10 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
284
324
|
"""
|
|
285
325
|
...
|
|
286
326
|
|
|
287
|
-
def
|
|
288
|
-
"""
|
|
289
|
-
|
|
290
|
-
:param context:
|
|
291
|
-
"""
|
|
292
|
-
...
|
|
293
|
-
|
|
294
|
-
def draw_collapsible(self, context, layout):
|
|
295
|
-
"""
|
|
296
|
-
|
|
297
|
-
:param context:
|
|
298
|
-
:param layout:
|
|
327
|
+
def check(self, _context):
|
|
299
328
|
"""
|
|
300
|
-
...
|
|
301
|
-
|
|
302
|
-
def draw_preset(self, _context):
|
|
303
|
-
"""Define these on the subclass:
|
|
304
|
-
- preset_operator (string)
|
|
305
|
-
- preset_subdir (string)Optionally:
|
|
306
|
-
- preset_add_operator (string)
|
|
307
|
-
- preset_extensions (set of strings)
|
|
308
|
-
- preset_operator_defaults (dict of keyword args)
|
|
309
329
|
|
|
310
|
-
|
|
330
|
+
:param _context:
|
|
311
331
|
"""
|
|
312
332
|
...
|
|
313
333
|
|
|
@@ -327,6 +347,13 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
327
347
|
"""
|
|
328
348
|
...
|
|
329
349
|
|
|
350
|
+
def execute(self, context):
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
:param context:
|
|
354
|
+
"""
|
|
355
|
+
...
|
|
356
|
+
|
|
330
357
|
def get(self):
|
|
331
358
|
"""Returns the value of the custom property assigned to key or default
|
|
332
359
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -355,7 +382,14 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
355
382
|
"""
|
|
356
383
|
...
|
|
357
384
|
|
|
358
|
-
def
|
|
385
|
+
def invoke(self, context, _event):
|
|
386
|
+
"""
|
|
387
|
+
|
|
388
|
+
:param context:
|
|
389
|
+
:param _event:
|
|
390
|
+
"""
|
|
391
|
+
...
|
|
392
|
+
|
|
359
393
|
def is_property_hidden(self) -> bool:
|
|
360
394
|
"""Check if a property is hidden.
|
|
361
395
|
|
|
@@ -429,44 +463,14 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
429
463
|
"""
|
|
430
464
|
...
|
|
431
465
|
|
|
432
|
-
def path_menu(
|
|
433
|
-
self,
|
|
434
|
-
searchpaths: list[str],
|
|
435
|
-
operator: str,
|
|
436
|
-
props_default: dict = None,
|
|
437
|
-
prop_filepath: str | None = "filepath",
|
|
438
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
439
|
-
filter_path=None,
|
|
440
|
-
display_name: collections.abc.Callable | None = None,
|
|
441
|
-
add_operator=None,
|
|
442
|
-
add_operator_props=None,
|
|
443
|
-
):
|
|
444
|
-
"""Populate a menu from a list of paths.
|
|
445
|
-
|
|
446
|
-
:param searchpaths: Paths to scan.
|
|
447
|
-
:type searchpaths: list[str]
|
|
448
|
-
:param operator: The operator id to use with each file.
|
|
449
|
-
:type operator: str
|
|
450
|
-
:param props_default: Properties to assign to each operator.
|
|
451
|
-
:type props_default: dict
|
|
452
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
453
|
-
:type prop_filepath: str | None
|
|
454
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
455
|
-
|
|
456
|
-
Returning false excludes the file from the list.
|
|
457
|
-
:type filter_ext: collections.abc.Callable | None
|
|
458
|
-
:param filter_path:
|
|
459
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
460
|
-
:type display_name: collections.abc.Callable | None
|
|
461
|
-
:param add_operator:
|
|
462
|
-
:param add_operator_props:
|
|
463
|
-
"""
|
|
464
|
-
...
|
|
465
|
-
|
|
466
466
|
def path_resolve(self):
|
|
467
467
|
"""Returns the property from the path, raise an exception when not found."""
|
|
468
468
|
...
|
|
469
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
|
+
|
|
470
474
|
def pop(self):
|
|
471
475
|
"""Remove and return the value of the custom property assigned to key or default
|
|
472
476
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -474,14 +478,6 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
474
478
|
"""
|
|
475
479
|
...
|
|
476
480
|
|
|
477
|
-
def prepend(self, draw_func):
|
|
478
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
479
|
-
the menus draw function
|
|
480
|
-
|
|
481
|
-
:param draw_func:
|
|
482
|
-
"""
|
|
483
|
-
...
|
|
484
|
-
|
|
485
481
|
def property_overridable_library_set(self) -> bool:
|
|
486
482
|
"""Define a property as overridable or not (only for custom properties!).
|
|
487
483
|
|
|
@@ -494,13 +490,6 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
494
490
|
"""Unset a property, will use default value afterward."""
|
|
495
491
|
...
|
|
496
492
|
|
|
497
|
-
def remove(self, draw_func):
|
|
498
|
-
"""Remove a draw function that has been added to this menu
|
|
499
|
-
|
|
500
|
-
:param draw_func:
|
|
501
|
-
"""
|
|
502
|
-
...
|
|
503
|
-
|
|
504
493
|
def type_recast(self):
|
|
505
494
|
"""Return a new instance, this is needed because types
|
|
506
495
|
such as textures can be changed at runtime.
|
|
@@ -517,13 +506,25 @@ class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
|
517
506
|
"""
|
|
518
507
|
...
|
|
519
508
|
|
|
520
|
-
class
|
|
521
|
-
"""
|
|
509
|
+
class AddPresetCloth(AddPresetBase):
|
|
510
|
+
"""Add or remove a Cloth Preset"""
|
|
522
511
|
|
|
523
512
|
bl_idname: typing.Any
|
|
524
513
|
bl_label: typing.Any
|
|
514
|
+
bl_options: typing.Any
|
|
525
515
|
bl_rna: typing.Any
|
|
526
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
|
+
...
|
|
527
528
|
|
|
528
529
|
def as_keywords(self, ignore=()):
|
|
529
530
|
"""Return a copy of the properties as a dictionary
|
|
@@ -556,6 +557,13 @@ class WM_OT_operator_presets_cleanup:
|
|
|
556
557
|
"""
|
|
557
558
|
...
|
|
558
559
|
|
|
560
|
+
def check(self, _context):
|
|
561
|
+
"""
|
|
562
|
+
|
|
563
|
+
:param _context:
|
|
564
|
+
"""
|
|
565
|
+
...
|
|
566
|
+
|
|
559
567
|
def driver_add(self) -> bpy.types.FCurve:
|
|
560
568
|
"""Adds driver(s) to the given property
|
|
561
569
|
|
|
@@ -607,6 +615,14 @@ class WM_OT_operator_presets_cleanup:
|
|
|
607
615
|
"""
|
|
608
616
|
...
|
|
609
617
|
|
|
618
|
+
def invoke(self, context, _event):
|
|
619
|
+
"""
|
|
620
|
+
|
|
621
|
+
:param context:
|
|
622
|
+
:param _event:
|
|
623
|
+
"""
|
|
624
|
+
...
|
|
625
|
+
|
|
610
626
|
def is_property_hidden(self) -> bool:
|
|
611
627
|
"""Check if a property is hidden.
|
|
612
628
|
|
|
@@ -723,22 +739,30 @@ class WM_OT_operator_presets_cleanup:
|
|
|
723
739
|
"""
|
|
724
740
|
...
|
|
725
741
|
|
|
726
|
-
class
|
|
742
|
+
class AddPresetColorManagementWhiteBalance(AddPresetBase):
|
|
743
|
+
"""Add or remove a white balance preset"""
|
|
744
|
+
|
|
745
|
+
bl_idname: typing.Any
|
|
727
746
|
bl_label: typing.Any
|
|
728
|
-
|
|
747
|
+
bl_options: typing.Any
|
|
729
748
|
bl_rna: typing.Any
|
|
730
|
-
bl_space_type: typing.Any
|
|
731
749
|
id_data: typing.Any
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
preset_operator: typing.Any
|
|
750
|
+
preset_defines: typing.Any
|
|
751
|
+
preset_menu: typing.Any
|
|
735
752
|
preset_subdir: typing.Any
|
|
753
|
+
preset_values: typing.Any
|
|
736
754
|
|
|
737
|
-
def
|
|
738
|
-
"""
|
|
739
|
-
takes the same arguments as the menus draw function
|
|
755
|
+
def as_filename(self, name):
|
|
756
|
+
"""
|
|
740
757
|
|
|
741
|
-
|
|
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:
|
|
742
766
|
"""
|
|
743
767
|
...
|
|
744
768
|
|
|
@@ -766,25 +790,10 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
766
790
|
"""
|
|
767
791
|
...
|
|
768
792
|
|
|
769
|
-
def
|
|
770
|
-
"""
|
|
771
|
-
|
|
772
|
-
:param context:
|
|
773
|
-
"""
|
|
774
|
-
...
|
|
775
|
-
|
|
776
|
-
def draw_menu(self, layout, text=None):
|
|
777
|
-
"""
|
|
778
|
-
|
|
779
|
-
:param layout:
|
|
780
|
-
:param text:
|
|
781
|
-
"""
|
|
782
|
-
...
|
|
783
|
-
|
|
784
|
-
def draw_panel_header(self, layout):
|
|
793
|
+
def check(self, _context):
|
|
785
794
|
"""
|
|
786
795
|
|
|
787
|
-
:param
|
|
796
|
+
:param _context:
|
|
788
797
|
"""
|
|
789
798
|
...
|
|
790
799
|
|
|
@@ -804,6 +813,13 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
804
813
|
"""
|
|
805
814
|
...
|
|
806
815
|
|
|
816
|
+
def execute(self, context):
|
|
817
|
+
"""
|
|
818
|
+
|
|
819
|
+
:param context:
|
|
820
|
+
"""
|
|
821
|
+
...
|
|
822
|
+
|
|
807
823
|
def get(self):
|
|
808
824
|
"""Returns the value of the custom property assigned to key or default
|
|
809
825
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -832,7 +848,14 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
832
848
|
"""
|
|
833
849
|
...
|
|
834
850
|
|
|
835
|
-
def
|
|
851
|
+
def invoke(self, context, _event):
|
|
852
|
+
"""
|
|
853
|
+
|
|
854
|
+
:param context:
|
|
855
|
+
:param _event:
|
|
856
|
+
"""
|
|
857
|
+
...
|
|
858
|
+
|
|
836
859
|
def is_property_hidden(self) -> bool:
|
|
837
860
|
"""Check if a property is hidden.
|
|
838
861
|
|
|
@@ -906,44 +929,14 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
906
929
|
"""
|
|
907
930
|
...
|
|
908
931
|
|
|
909
|
-
def path_menu(
|
|
910
|
-
self,
|
|
911
|
-
searchpaths: list[str],
|
|
912
|
-
operator: str,
|
|
913
|
-
props_default: dict = None,
|
|
914
|
-
prop_filepath: str | None = "filepath",
|
|
915
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
916
|
-
filter_path=None,
|
|
917
|
-
display_name: collections.abc.Callable | None = None,
|
|
918
|
-
add_operator=None,
|
|
919
|
-
add_operator_props=None,
|
|
920
|
-
):
|
|
921
|
-
"""Populate a menu from a list of paths.
|
|
922
|
-
|
|
923
|
-
:param searchpaths: Paths to scan.
|
|
924
|
-
:type searchpaths: list[str]
|
|
925
|
-
:param operator: The operator id to use with each file.
|
|
926
|
-
:type operator: str
|
|
927
|
-
:param props_default: Properties to assign to each operator.
|
|
928
|
-
:type props_default: dict
|
|
929
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
930
|
-
:type prop_filepath: str | None
|
|
931
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
932
|
-
|
|
933
|
-
Returning false excludes the file from the list.
|
|
934
|
-
:type filter_ext: collections.abc.Callable | None
|
|
935
|
-
:param filter_path:
|
|
936
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
937
|
-
:type display_name: collections.abc.Callable | None
|
|
938
|
-
:param add_operator:
|
|
939
|
-
:param add_operator_props:
|
|
940
|
-
"""
|
|
941
|
-
...
|
|
942
|
-
|
|
943
932
|
def path_resolve(self):
|
|
944
933
|
"""Returns the property from the path, raise an exception when not found."""
|
|
945
934
|
...
|
|
946
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
|
+
|
|
947
940
|
def pop(self):
|
|
948
941
|
"""Remove and return the value of the custom property assigned to key or default
|
|
949
942
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -951,14 +944,6 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
951
944
|
"""
|
|
952
945
|
...
|
|
953
946
|
|
|
954
|
-
def prepend(self, draw_func):
|
|
955
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
956
|
-
the menus draw function
|
|
957
|
-
|
|
958
|
-
:param draw_func:
|
|
959
|
-
"""
|
|
960
|
-
...
|
|
961
|
-
|
|
962
947
|
def property_overridable_library_set(self) -> bool:
|
|
963
948
|
"""Define a property as overridable or not (only for custom properties!).
|
|
964
949
|
|
|
@@ -971,13 +956,6 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
971
956
|
"""Unset a property, will use default value afterward."""
|
|
972
957
|
...
|
|
973
958
|
|
|
974
|
-
def remove(self, draw_func):
|
|
975
|
-
"""Remove a draw function that has been added to this menu
|
|
976
|
-
|
|
977
|
-
:param draw_func:
|
|
978
|
-
"""
|
|
979
|
-
...
|
|
980
|
-
|
|
981
959
|
def type_recast(self):
|
|
982
960
|
"""Return a new instance, this is needed because types
|
|
983
961
|
such as textures can be changed at runtime.
|
|
@@ -994,8 +972,8 @@ class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
|
994
972
|
"""
|
|
995
973
|
...
|
|
996
974
|
|
|
997
|
-
class
|
|
998
|
-
"""Add or remove
|
|
975
|
+
class AddPresetEEVEERaytracing(AddPresetBase):
|
|
976
|
+
"""Add or remove an EEVEE ray-tracing preset"""
|
|
999
977
|
|
|
1000
978
|
bl_idname: typing.Any
|
|
1001
979
|
bl_label: typing.Any
|
|
@@ -1227,8 +1205,8 @@ class AddPresetCamera(AddPresetBase):
|
|
|
1227
1205
|
"""
|
|
1228
1206
|
...
|
|
1229
1207
|
|
|
1230
|
-
class
|
|
1231
|
-
"""Add or remove a
|
|
1208
|
+
class AddPresetFluid(AddPresetBase):
|
|
1209
|
+
"""Add or remove a Fluid Preset"""
|
|
1232
1210
|
|
|
1233
1211
|
bl_idname: typing.Any
|
|
1234
1212
|
bl_label: typing.Any
|
|
@@ -1460,8 +1438,8 @@ class AddPresetCameraSafeAreas(AddPresetBase):
|
|
|
1460
1438
|
"""
|
|
1461
1439
|
...
|
|
1462
1440
|
|
|
1463
|
-
class
|
|
1464
|
-
"""Add or remove
|
|
1441
|
+
class AddPresetGpencilBrush(AddPresetBase):
|
|
1442
|
+
"""Add or remove grease pencil brush preset"""
|
|
1465
1443
|
|
|
1466
1444
|
bl_idname: typing.Any
|
|
1467
1445
|
bl_label: typing.Any
|
|
@@ -1693,8 +1671,8 @@ class AddPresetCloth(AddPresetBase):
|
|
|
1693
1671
|
"""
|
|
1694
1672
|
...
|
|
1695
1673
|
|
|
1696
|
-
class
|
|
1697
|
-
"""Add or remove
|
|
1674
|
+
class AddPresetGpencilMaterial(AddPresetBase):
|
|
1675
|
+
"""Add or remove grease pencil material preset"""
|
|
1698
1676
|
|
|
1699
1677
|
bl_idname: typing.Any
|
|
1700
1678
|
bl_label: typing.Any
|
|
@@ -1926,8 +1904,8 @@ class AddPresetColorManagementWhiteBalance(AddPresetBase):
|
|
|
1926
1904
|
"""
|
|
1927
1905
|
...
|
|
1928
1906
|
|
|
1929
|
-
class
|
|
1930
|
-
"""Add or remove
|
|
1907
|
+
class AddPresetHairDynamics(AddPresetBase):
|
|
1908
|
+
"""Add or remove a Hair Dynamics Preset"""
|
|
1931
1909
|
|
|
1932
1910
|
bl_idname: typing.Any
|
|
1933
1911
|
bl_label: typing.Any
|
|
@@ -2159,18 +2137,16 @@ class AddPresetEEVEERaytracing(AddPresetBase):
|
|
|
2159
2137
|
"""
|
|
2160
2138
|
...
|
|
2161
2139
|
|
|
2162
|
-
class
|
|
2163
|
-
"""Add
|
|
2140
|
+
class AddPresetInterfaceTheme(AddPresetBase):
|
|
2141
|
+
"""Add a custom theme to the preset list"""
|
|
2164
2142
|
|
|
2165
2143
|
bl_idname: typing.Any
|
|
2166
2144
|
bl_label: typing.Any
|
|
2167
2145
|
bl_options: typing.Any
|
|
2168
2146
|
bl_rna: typing.Any
|
|
2169
2147
|
id_data: typing.Any
|
|
2170
|
-
preset_defines: typing.Any
|
|
2171
2148
|
preset_menu: typing.Any
|
|
2172
2149
|
preset_subdir: typing.Any
|
|
2173
|
-
preset_values: typing.Any
|
|
2174
2150
|
|
|
2175
2151
|
def as_filename(self, name):
|
|
2176
2152
|
"""
|
|
@@ -2392,18 +2368,24 @@ class AddPresetFluid(AddPresetBase):
|
|
|
2392
2368
|
"""
|
|
2393
2369
|
...
|
|
2394
2370
|
|
|
2395
|
-
class
|
|
2396
|
-
"""Add
|
|
2371
|
+
class AddPresetKeyconfig(AddPresetBase):
|
|
2372
|
+
"""Add a custom keymap configuration to the preset list"""
|
|
2397
2373
|
|
|
2398
2374
|
bl_idname: typing.Any
|
|
2399
2375
|
bl_label: typing.Any
|
|
2400
2376
|
bl_options: typing.Any
|
|
2401
2377
|
bl_rna: typing.Any
|
|
2402
2378
|
id_data: typing.Any
|
|
2403
|
-
preset_defines: typing.Any
|
|
2404
2379
|
preset_menu: typing.Any
|
|
2405
2380
|
preset_subdir: typing.Any
|
|
2406
|
-
|
|
2381
|
+
|
|
2382
|
+
def add(self, _context, filepath):
|
|
2383
|
+
"""
|
|
2384
|
+
|
|
2385
|
+
:param _context:
|
|
2386
|
+
:param filepath:
|
|
2387
|
+
"""
|
|
2388
|
+
...
|
|
2407
2389
|
|
|
2408
2390
|
def as_filename(self, name):
|
|
2409
2391
|
"""
|
|
@@ -2625,8 +2607,8 @@ class AddPresetGpencilBrush(AddPresetBase):
|
|
|
2625
2607
|
"""
|
|
2626
2608
|
...
|
|
2627
2609
|
|
|
2628
|
-
class
|
|
2629
|
-
"""Add or remove
|
|
2610
|
+
class AddPresetNodeColor(AddPresetBase):
|
|
2611
|
+
"""Add or remove a Node Color Preset"""
|
|
2630
2612
|
|
|
2631
2613
|
bl_idname: typing.Any
|
|
2632
2614
|
bl_label: typing.Any
|
|
@@ -2858,8 +2840,8 @@ class AddPresetGpencilMaterial(AddPresetBase):
|
|
|
2858
2840
|
"""
|
|
2859
2841
|
...
|
|
2860
2842
|
|
|
2861
|
-
class
|
|
2862
|
-
"""Add or remove
|
|
2843
|
+
class AddPresetOperator(AddPresetBase):
|
|
2844
|
+
"""Add or remove an Operator Preset"""
|
|
2863
2845
|
|
|
2864
2846
|
bl_idname: typing.Any
|
|
2865
2847
|
bl_label: typing.Any
|
|
@@ -3039,6 +3021,13 @@ class AddPresetHairDynamics(AddPresetBase):
|
|
|
3039
3021
|
"""
|
|
3040
3022
|
...
|
|
3041
3023
|
|
|
3024
|
+
def operator_path(self, operator):
|
|
3025
|
+
"""
|
|
3026
|
+
|
|
3027
|
+
:param operator:
|
|
3028
|
+
"""
|
|
3029
|
+
...
|
|
3030
|
+
|
|
3042
3031
|
def path_from_id(self) -> str:
|
|
3043
3032
|
"""Returns the data path from the ID to this object (string).
|
|
3044
3033
|
|
|
@@ -3091,16 +3080,18 @@ class AddPresetHairDynamics(AddPresetBase):
|
|
|
3091
3080
|
"""
|
|
3092
3081
|
...
|
|
3093
3082
|
|
|
3094
|
-
class
|
|
3095
|
-
"""Add
|
|
3083
|
+
class AddPresetRender(AddPresetBase):
|
|
3084
|
+
"""Add or remove a Render Preset"""
|
|
3096
3085
|
|
|
3097
3086
|
bl_idname: typing.Any
|
|
3098
3087
|
bl_label: typing.Any
|
|
3099
3088
|
bl_options: typing.Any
|
|
3100
3089
|
bl_rna: typing.Any
|
|
3101
3090
|
id_data: typing.Any
|
|
3091
|
+
preset_defines: typing.Any
|
|
3102
3092
|
preset_menu: typing.Any
|
|
3103
3093
|
preset_subdir: typing.Any
|
|
3094
|
+
preset_values: typing.Any
|
|
3104
3095
|
|
|
3105
3096
|
def as_filename(self, name):
|
|
3106
3097
|
"""
|
|
@@ -3322,24 +3313,18 @@ class AddPresetInterfaceTheme(AddPresetBase):
|
|
|
3322
3313
|
"""
|
|
3323
3314
|
...
|
|
3324
3315
|
|
|
3325
|
-
class
|
|
3326
|
-
"""Add
|
|
3316
|
+
class AddPresetTextEditor(AddPresetBase):
|
|
3317
|
+
"""Add or remove a Text Editor Preset"""
|
|
3327
3318
|
|
|
3328
3319
|
bl_idname: typing.Any
|
|
3329
3320
|
bl_label: typing.Any
|
|
3330
3321
|
bl_options: typing.Any
|
|
3331
3322
|
bl_rna: typing.Any
|
|
3332
3323
|
id_data: typing.Any
|
|
3324
|
+
preset_defines: typing.Any
|
|
3333
3325
|
preset_menu: typing.Any
|
|
3334
3326
|
preset_subdir: typing.Any
|
|
3335
|
-
|
|
3336
|
-
def add(self, _context, filepath):
|
|
3337
|
-
"""
|
|
3338
|
-
|
|
3339
|
-
:param _context:
|
|
3340
|
-
:param filepath:
|
|
3341
|
-
"""
|
|
3342
|
-
...
|
|
3327
|
+
preset_values: typing.Any
|
|
3343
3328
|
|
|
3344
3329
|
def as_filename(self, name):
|
|
3345
3330
|
"""
|
|
@@ -3561,8 +3546,8 @@ class AddPresetKeyconfig(AddPresetBase):
|
|
|
3561
3546
|
"""
|
|
3562
3547
|
...
|
|
3563
3548
|
|
|
3564
|
-
class
|
|
3565
|
-
"""Add or remove a
|
|
3549
|
+
class AddPresetTrackingCamera(AddPresetBase):
|
|
3550
|
+
"""Add or remove a Tracking Camera Intrinsics Preset"""
|
|
3566
3551
|
|
|
3567
3552
|
bl_idname: typing.Any
|
|
3568
3553
|
bl_label: typing.Any
|
|
@@ -3794,8 +3779,8 @@ class AddPresetNodeColor(AddPresetBase):
|
|
|
3794
3779
|
"""
|
|
3795
3780
|
...
|
|
3796
3781
|
|
|
3797
|
-
class
|
|
3798
|
-
"""Add or remove
|
|
3782
|
+
class AddPresetTrackingSettings(AddPresetBase):
|
|
3783
|
+
"""Add or remove a motion tracking settings preset"""
|
|
3799
3784
|
|
|
3800
3785
|
bl_idname: typing.Any
|
|
3801
3786
|
bl_label: typing.Any
|
|
@@ -3975,13 +3960,6 @@ class AddPresetOperator(AddPresetBase):
|
|
|
3975
3960
|
"""
|
|
3976
3961
|
...
|
|
3977
3962
|
|
|
3978
|
-
def operator_path(self, operator):
|
|
3979
|
-
"""
|
|
3980
|
-
|
|
3981
|
-
:param operator:
|
|
3982
|
-
"""
|
|
3983
|
-
...
|
|
3984
|
-
|
|
3985
3963
|
def path_from_id(self) -> str:
|
|
3986
3964
|
"""Returns the data path from the ID to this object (string).
|
|
3987
3965
|
|
|
@@ -4034,8 +4012,8 @@ class AddPresetOperator(AddPresetBase):
|
|
|
4034
4012
|
"""
|
|
4035
4013
|
...
|
|
4036
4014
|
|
|
4037
|
-
class
|
|
4038
|
-
"""Add or remove a
|
|
4015
|
+
class AddPresetTrackingTrackColor(AddPresetBase):
|
|
4016
|
+
"""Add or remove a Clip Track Color Preset"""
|
|
4039
4017
|
|
|
4040
4018
|
bl_idname: typing.Any
|
|
4041
4019
|
bl_label: typing.Any
|
|
@@ -4267,25 +4245,13 @@ class AddPresetRender(AddPresetBase):
|
|
|
4267
4245
|
"""
|
|
4268
4246
|
...
|
|
4269
4247
|
|
|
4270
|
-
class
|
|
4271
|
-
"""
|
|
4248
|
+
class ExecutePreset:
|
|
4249
|
+
"""Load a preset"""
|
|
4272
4250
|
|
|
4273
4251
|
bl_idname: typing.Any
|
|
4274
4252
|
bl_label: typing.Any
|
|
4275
|
-
bl_options: typing.Any
|
|
4276
4253
|
bl_rna: typing.Any
|
|
4277
4254
|
id_data: typing.Any
|
|
4278
|
-
preset_defines: typing.Any
|
|
4279
|
-
preset_menu: typing.Any
|
|
4280
|
-
preset_subdir: typing.Any
|
|
4281
|
-
preset_values: typing.Any
|
|
4282
|
-
|
|
4283
|
-
def as_filename(self, name):
|
|
4284
|
-
"""
|
|
4285
|
-
|
|
4286
|
-
:param name:
|
|
4287
|
-
"""
|
|
4288
|
-
...
|
|
4289
4255
|
|
|
4290
4256
|
def as_keywords(self, ignore=()):
|
|
4291
4257
|
"""Return a copy of the properties as a dictionary
|
|
@@ -4318,13 +4284,6 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4318
4284
|
"""
|
|
4319
4285
|
...
|
|
4320
4286
|
|
|
4321
|
-
def check(self, _context):
|
|
4322
|
-
"""
|
|
4323
|
-
|
|
4324
|
-
:param _context:
|
|
4325
|
-
"""
|
|
4326
|
-
...
|
|
4327
|
-
|
|
4328
4287
|
def driver_add(self) -> bpy.types.FCurve:
|
|
4329
4288
|
"""Adds driver(s) to the given property
|
|
4330
4289
|
|
|
@@ -4376,14 +4335,6 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4376
4335
|
"""
|
|
4377
4336
|
...
|
|
4378
4337
|
|
|
4379
|
-
def invoke(self, context, _event):
|
|
4380
|
-
"""
|
|
4381
|
-
|
|
4382
|
-
:param context:
|
|
4383
|
-
:param _event:
|
|
4384
|
-
"""
|
|
4385
|
-
...
|
|
4386
|
-
|
|
4387
4338
|
def is_property_hidden(self) -> bool:
|
|
4388
4339
|
"""Check if a property is hidden.
|
|
4389
4340
|
|
|
@@ -4500,18 +4451,16 @@ class AddPresetTextEditor(AddPresetBase):
|
|
|
4500
4451
|
"""
|
|
4501
4452
|
...
|
|
4502
4453
|
|
|
4503
|
-
class
|
|
4504
|
-
"""
|
|
4454
|
+
class RemovePresetInterfaceTheme(AddPresetBase):
|
|
4455
|
+
"""Remove a custom theme from the preset list"""
|
|
4505
4456
|
|
|
4506
4457
|
bl_idname: typing.Any
|
|
4507
4458
|
bl_label: typing.Any
|
|
4508
4459
|
bl_options: typing.Any
|
|
4509
4460
|
bl_rna: typing.Any
|
|
4510
4461
|
id_data: typing.Any
|
|
4511
|
-
preset_defines: typing.Any
|
|
4512
4462
|
preset_menu: typing.Any
|
|
4513
4463
|
preset_subdir: typing.Any
|
|
4514
|
-
preset_values: typing.Any
|
|
4515
4464
|
|
|
4516
4465
|
def as_filename(self, name):
|
|
4517
4466
|
"""
|
|
@@ -4609,11 +4558,11 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4609
4558
|
"""
|
|
4610
4559
|
...
|
|
4611
4560
|
|
|
4612
|
-
def invoke(self, context,
|
|
4561
|
+
def invoke(self, context, event):
|
|
4613
4562
|
"""
|
|
4614
4563
|
|
|
4615
4564
|
:param context:
|
|
4616
|
-
:param
|
|
4565
|
+
:param event:
|
|
4617
4566
|
"""
|
|
4618
4567
|
...
|
|
4619
4568
|
|
|
@@ -4694,6 +4643,13 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4694
4643
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4695
4644
|
...
|
|
4696
4645
|
|
|
4646
|
+
def poll(self, context):
|
|
4647
|
+
"""
|
|
4648
|
+
|
|
4649
|
+
:param context:
|
|
4650
|
+
"""
|
|
4651
|
+
...
|
|
4652
|
+
|
|
4697
4653
|
def poll_message_set(self):
|
|
4698
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."""
|
|
4699
4655
|
...
|
|
@@ -4705,6 +4661,13 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4705
4661
|
"""
|
|
4706
4662
|
...
|
|
4707
4663
|
|
|
4664
|
+
def post_cb(self, context):
|
|
4665
|
+
"""
|
|
4666
|
+
|
|
4667
|
+
:param context:
|
|
4668
|
+
"""
|
|
4669
|
+
...
|
|
4670
|
+
|
|
4708
4671
|
def property_overridable_library_set(self) -> bool:
|
|
4709
4672
|
"""Define a property as overridable or not (only for custom properties!).
|
|
4710
4673
|
|
|
@@ -4733,18 +4696,16 @@ class AddPresetTrackingCamera(AddPresetBase):
|
|
|
4733
4696
|
"""
|
|
4734
4697
|
...
|
|
4735
4698
|
|
|
4736
|
-
class
|
|
4737
|
-
"""
|
|
4699
|
+
class RemovePresetKeyconfig(AddPresetBase):
|
|
4700
|
+
"""Remove a custom keymap configuration from the preset list"""
|
|
4738
4701
|
|
|
4739
4702
|
bl_idname: typing.Any
|
|
4740
4703
|
bl_label: typing.Any
|
|
4741
4704
|
bl_options: typing.Any
|
|
4742
4705
|
bl_rna: typing.Any
|
|
4743
4706
|
id_data: typing.Any
|
|
4744
|
-
preset_defines: typing.Any
|
|
4745
4707
|
preset_menu: typing.Any
|
|
4746
4708
|
preset_subdir: typing.Any
|
|
4747
|
-
preset_values: typing.Any
|
|
4748
4709
|
|
|
4749
4710
|
def as_filename(self, name):
|
|
4750
4711
|
"""
|
|
@@ -4842,11 +4803,11 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4842
4803
|
"""
|
|
4843
4804
|
...
|
|
4844
4805
|
|
|
4845
|
-
def invoke(self, context,
|
|
4806
|
+
def invoke(self, context, event):
|
|
4846
4807
|
"""
|
|
4847
4808
|
|
|
4848
4809
|
:param context:
|
|
4849
|
-
:param
|
|
4810
|
+
:param event:
|
|
4850
4811
|
"""
|
|
4851
4812
|
...
|
|
4852
4813
|
|
|
@@ -4927,6 +4888,13 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4927
4888
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4928
4889
|
...
|
|
4929
4890
|
|
|
4891
|
+
def poll(self, context):
|
|
4892
|
+
"""
|
|
4893
|
+
|
|
4894
|
+
:param context:
|
|
4895
|
+
"""
|
|
4896
|
+
...
|
|
4897
|
+
|
|
4930
4898
|
def poll_message_set(self):
|
|
4931
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."""
|
|
4932
4900
|
...
|
|
@@ -4938,6 +4906,20 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4938
4906
|
"""
|
|
4939
4907
|
...
|
|
4940
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
|
+
|
|
4941
4923
|
def property_overridable_library_set(self) -> bool:
|
|
4942
4924
|
"""Define a property as overridable or not (only for custom properties!).
|
|
4943
4925
|
|
|
@@ -4966,18 +4948,16 @@ class AddPresetTrackingSettings(AddPresetBase):
|
|
|
4966
4948
|
"""
|
|
4967
4949
|
...
|
|
4968
4950
|
|
|
4969
|
-
class
|
|
4970
|
-
"""
|
|
4951
|
+
class SavePresetInterfaceTheme(AddPresetBase):
|
|
4952
|
+
"""Save a custom theme in the preset list"""
|
|
4971
4953
|
|
|
4972
4954
|
bl_idname: typing.Any
|
|
4973
4955
|
bl_label: typing.Any
|
|
4974
4956
|
bl_options: typing.Any
|
|
4975
4957
|
bl_rna: typing.Any
|
|
4976
4958
|
id_data: typing.Any
|
|
4977
|
-
preset_defines: typing.Any
|
|
4978
4959
|
preset_menu: typing.Any
|
|
4979
4960
|
preset_subdir: typing.Any
|
|
4980
|
-
preset_values: typing.Any
|
|
4981
4961
|
|
|
4982
4962
|
def as_filename(self, name):
|
|
4983
4963
|
"""
|
|
@@ -5075,11 +5055,11 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5075
5055
|
"""
|
|
5076
5056
|
...
|
|
5077
5057
|
|
|
5078
|
-
def invoke(self, context,
|
|
5058
|
+
def invoke(self, context, event):
|
|
5079
5059
|
"""
|
|
5080
5060
|
|
|
5081
5061
|
:param context:
|
|
5082
|
-
:param
|
|
5062
|
+
:param event:
|
|
5083
5063
|
"""
|
|
5084
5064
|
...
|
|
5085
5065
|
|
|
@@ -5160,6 +5140,13 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5160
5140
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5161
5141
|
...
|
|
5162
5142
|
|
|
5143
|
+
def poll(self, context):
|
|
5144
|
+
"""
|
|
5145
|
+
|
|
5146
|
+
:param context:
|
|
5147
|
+
"""
|
|
5148
|
+
...
|
|
5149
|
+
|
|
5163
5150
|
def poll_message_set(self):
|
|
5164
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."""
|
|
5165
5152
|
...
|
|
@@ -5199,33 +5186,23 @@ class AddPresetTrackingTrackColor(AddPresetBase):
|
|
|
5199
5186
|
"""
|
|
5200
5187
|
...
|
|
5201
5188
|
|
|
5202
|
-
class
|
|
5203
|
-
"""Remove a custom theme from the preset list"""
|
|
5204
|
-
|
|
5205
|
-
bl_idname: typing.Any
|
|
5189
|
+
class WM_MT_operator_presets(bpy_types._GenericUI):
|
|
5206
5190
|
bl_label: typing.Any
|
|
5207
|
-
bl_options: typing.Any
|
|
5208
5191
|
bl_rna: typing.Any
|
|
5209
5192
|
id_data: typing.Any
|
|
5210
|
-
|
|
5193
|
+
preset_operator: typing.Any
|
|
5211
5194
|
preset_subdir: typing.Any
|
|
5212
5195
|
|
|
5213
|
-
def
|
|
5214
|
-
"""
|
|
5196
|
+
def append(self, draw_func):
|
|
5197
|
+
"""Append a draw function to this menu,
|
|
5198
|
+
takes the same arguments as the menus draw function
|
|
5215
5199
|
|
|
5216
|
-
|
|
5200
|
+
:param draw_func:
|
|
5217
5201
|
"""
|
|
5218
5202
|
...
|
|
5219
5203
|
|
|
5220
|
-
def
|
|
5221
|
-
"""
|
|
5222
|
-
|
|
5223
|
-
:param ignore:
|
|
5224
|
-
"""
|
|
5225
|
-
...
|
|
5226
|
-
|
|
5227
|
-
def as_pointer(self) -> int:
|
|
5228
|
-
"""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
|
|
5229
5206
|
|
|
5230
5207
|
:return: int (memory address).
|
|
5231
5208
|
:rtype: int
|
|
@@ -5248,10 +5225,30 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5248
5225
|
"""
|
|
5249
5226
|
...
|
|
5250
5227
|
|
|
5251
|
-
def
|
|
5228
|
+
def draw(self, context):
|
|
5252
5229
|
"""
|
|
5253
5230
|
|
|
5254
|
-
: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:
|
|
5255
5252
|
"""
|
|
5256
5253
|
...
|
|
5257
5254
|
|
|
@@ -5271,13 +5268,6 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5271
5268
|
"""
|
|
5272
5269
|
...
|
|
5273
5270
|
|
|
5274
|
-
def execute(self, context):
|
|
5275
|
-
"""
|
|
5276
|
-
|
|
5277
|
-
:param context:
|
|
5278
|
-
"""
|
|
5279
|
-
...
|
|
5280
|
-
|
|
5281
5271
|
def get(self):
|
|
5282
5272
|
"""Returns the value of the custom property assigned to key or default
|
|
5283
5273
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -5306,14 +5296,7 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5306
5296
|
"""
|
|
5307
5297
|
...
|
|
5308
5298
|
|
|
5309
|
-
def
|
|
5310
|
-
"""
|
|
5311
|
-
|
|
5312
|
-
:param context:
|
|
5313
|
-
:param event:
|
|
5314
|
-
"""
|
|
5315
|
-
...
|
|
5316
|
-
|
|
5299
|
+
def is_extended(self): ...
|
|
5317
5300
|
def is_property_hidden(self) -> bool:
|
|
5318
5301
|
"""Check if a property is hidden.
|
|
5319
5302
|
|
|
@@ -5387,19 +5370,42 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5387
5370
|
"""
|
|
5388
5371
|
...
|
|
5389
5372
|
|
|
5390
|
-
def
|
|
5391
|
-
|
|
5392
|
-
|
|
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.
|
|
5393
5386
|
|
|
5394
|
-
|
|
5395
|
-
|
|
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.
|
|
5396
5396
|
|
|
5397
|
-
|
|
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:
|
|
5398
5404
|
"""
|
|
5399
5405
|
...
|
|
5400
5406
|
|
|
5401
|
-
def
|
|
5402
|
-
"""
|
|
5407
|
+
def path_resolve(self):
|
|
5408
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
5403
5409
|
...
|
|
5404
5410
|
|
|
5405
5411
|
def pop(self):
|
|
@@ -5409,10 +5415,11 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5409
5415
|
"""
|
|
5410
5416
|
...
|
|
5411
5417
|
|
|
5412
|
-
def
|
|
5413
|
-
"""
|
|
5418
|
+
def prepend(self, draw_func):
|
|
5419
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
5420
|
+
the menus draw function
|
|
5414
5421
|
|
|
5415
|
-
|
|
5422
|
+
:param draw_func:
|
|
5416
5423
|
"""
|
|
5417
5424
|
...
|
|
5418
5425
|
|
|
@@ -5428,6 +5435,13 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5428
5435
|
"""Unset a property, will use default value afterward."""
|
|
5429
5436
|
...
|
|
5430
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
|
+
|
|
5431
5445
|
def type_recast(self):
|
|
5432
5446
|
"""Return a new instance, this is needed because types
|
|
5433
5447
|
such as textures can be changed at runtime.
|
|
@@ -5444,23 +5458,13 @@ class RemovePresetInterfaceTheme(AddPresetBase):
|
|
|
5444
5458
|
"""
|
|
5445
5459
|
...
|
|
5446
5460
|
|
|
5447
|
-
class
|
|
5448
|
-
"""Remove
|
|
5461
|
+
class WM_OT_operator_presets_cleanup:
|
|
5462
|
+
"""Remove outdated operator properties from presets that may cause problems"""
|
|
5449
5463
|
|
|
5450
5464
|
bl_idname: typing.Any
|
|
5451
5465
|
bl_label: typing.Any
|
|
5452
|
-
bl_options: typing.Any
|
|
5453
5466
|
bl_rna: typing.Any
|
|
5454
5467
|
id_data: typing.Any
|
|
5455
|
-
preset_menu: typing.Any
|
|
5456
|
-
preset_subdir: typing.Any
|
|
5457
|
-
|
|
5458
|
-
def as_filename(self, name):
|
|
5459
|
-
"""
|
|
5460
|
-
|
|
5461
|
-
:param name:
|
|
5462
|
-
"""
|
|
5463
|
-
...
|
|
5464
5468
|
|
|
5465
5469
|
def as_keywords(self, ignore=()):
|
|
5466
5470
|
"""Return a copy of the properties as a dictionary
|
|
@@ -5493,13 +5497,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5493
5497
|
"""
|
|
5494
5498
|
...
|
|
5495
5499
|
|
|
5496
|
-
def check(self, _context):
|
|
5497
|
-
"""
|
|
5498
|
-
|
|
5499
|
-
:param _context:
|
|
5500
|
-
"""
|
|
5501
|
-
...
|
|
5502
|
-
|
|
5503
5500
|
def driver_add(self) -> bpy.types.FCurve:
|
|
5504
5501
|
"""Adds driver(s) to the given property
|
|
5505
5502
|
|
|
@@ -5551,14 +5548,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5551
5548
|
"""
|
|
5552
5549
|
...
|
|
5553
5550
|
|
|
5554
|
-
def invoke(self, context, event):
|
|
5555
|
-
"""
|
|
5556
|
-
|
|
5557
|
-
:param context:
|
|
5558
|
-
:param event:
|
|
5559
|
-
"""
|
|
5560
|
-
...
|
|
5561
|
-
|
|
5562
5551
|
def is_property_hidden(self) -> bool:
|
|
5563
5552
|
"""Check if a property is hidden.
|
|
5564
5553
|
|
|
@@ -5636,13 +5625,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5636
5625
|
"""Returns the property from the path, raise an exception when not found."""
|
|
5637
5626
|
...
|
|
5638
5627
|
|
|
5639
|
-
def poll(self, context):
|
|
5640
|
-
"""
|
|
5641
|
-
|
|
5642
|
-
:param context:
|
|
5643
|
-
"""
|
|
5644
|
-
...
|
|
5645
|
-
|
|
5646
5628
|
def poll_message_set(self):
|
|
5647
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."""
|
|
5648
5630
|
...
|
|
@@ -5654,20 +5636,6 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5654
5636
|
"""
|
|
5655
5637
|
...
|
|
5656
5638
|
|
|
5657
|
-
def post_cb(self, context):
|
|
5658
|
-
"""
|
|
5659
|
-
|
|
5660
|
-
:param context:
|
|
5661
|
-
"""
|
|
5662
|
-
...
|
|
5663
|
-
|
|
5664
|
-
def pre_cb(self, context):
|
|
5665
|
-
"""
|
|
5666
|
-
|
|
5667
|
-
:param context:
|
|
5668
|
-
"""
|
|
5669
|
-
...
|
|
5670
|
-
|
|
5671
5639
|
def property_overridable_library_set(self) -> bool:
|
|
5672
5640
|
"""Define a property as overridable or not (only for custom properties!).
|
|
5673
5641
|
|
|
@@ -5696,28 +5664,22 @@ class RemovePresetKeyconfig(AddPresetBase):
|
|
|
5696
5664
|
"""
|
|
5697
5665
|
...
|
|
5698
5666
|
|
|
5699
|
-
class
|
|
5700
|
-
"""Save a custom theme in the preset list"""
|
|
5701
|
-
|
|
5702
|
-
bl_idname: typing.Any
|
|
5667
|
+
class WM_PT_operator_presets(bl_ui.utils.PresetPanel, bpy_types._GenericUI):
|
|
5703
5668
|
bl_label: typing.Any
|
|
5704
|
-
|
|
5669
|
+
bl_region_type: typing.Any
|
|
5705
5670
|
bl_rna: typing.Any
|
|
5671
|
+
bl_space_type: typing.Any
|
|
5706
5672
|
id_data: typing.Any
|
|
5707
|
-
|
|
5673
|
+
preset_add_operator: typing.Any
|
|
5674
|
+
preset_add_operator_properties: typing.Any
|
|
5675
|
+
preset_operator: typing.Any
|
|
5708
5676
|
preset_subdir: typing.Any
|
|
5709
5677
|
|
|
5710
|
-
def
|
|
5711
|
-
"""
|
|
5712
|
-
|
|
5713
|
-
:param name:
|
|
5714
|
-
"""
|
|
5715
|
-
...
|
|
5716
|
-
|
|
5717
|
-
def as_keywords(self, ignore=()):
|
|
5718
|
-
"""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
|
|
5719
5681
|
|
|
5720
|
-
|
|
5682
|
+
:param draw_func:
|
|
5721
5683
|
"""
|
|
5722
5684
|
...
|
|
5723
5685
|
|
|
@@ -5745,10 +5707,25 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5745
5707
|
"""
|
|
5746
5708
|
...
|
|
5747
5709
|
|
|
5748
|
-
def
|
|
5710
|
+
def draw(self, context):
|
|
5749
5711
|
"""
|
|
5750
5712
|
|
|
5751
|
-
: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:
|
|
5752
5729
|
"""
|
|
5753
5730
|
...
|
|
5754
5731
|
|
|
@@ -5768,13 +5745,6 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5768
5745
|
"""
|
|
5769
5746
|
...
|
|
5770
5747
|
|
|
5771
|
-
def execute(self, context):
|
|
5772
|
-
"""
|
|
5773
|
-
|
|
5774
|
-
:param context:
|
|
5775
|
-
"""
|
|
5776
|
-
...
|
|
5777
|
-
|
|
5778
5748
|
def get(self):
|
|
5779
5749
|
"""Returns the value of the custom property assigned to key or default
|
|
5780
5750
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -5803,14 +5773,7 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5803
5773
|
"""
|
|
5804
5774
|
...
|
|
5805
5775
|
|
|
5806
|
-
def
|
|
5807
|
-
"""
|
|
5808
|
-
|
|
5809
|
-
:param context:
|
|
5810
|
-
:param event:
|
|
5811
|
-
"""
|
|
5812
|
-
...
|
|
5813
|
-
|
|
5776
|
+
def is_extended(self): ...
|
|
5814
5777
|
def is_property_hidden(self) -> bool:
|
|
5815
5778
|
"""Check if a property is hidden.
|
|
5816
5779
|
|
|
@@ -5884,19 +5847,42 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5884
5847
|
"""
|
|
5885
5848
|
...
|
|
5886
5849
|
|
|
5887
|
-
def
|
|
5888
|
-
|
|
5889
|
-
|
|
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.
|
|
5890
5863
|
|
|
5891
|
-
|
|
5892
|
-
|
|
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.
|
|
5893
5873
|
|
|
5894
|
-
|
|
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:
|
|
5895
5881
|
"""
|
|
5896
5882
|
...
|
|
5897
5883
|
|
|
5898
|
-
def
|
|
5899
|
-
"""
|
|
5884
|
+
def path_resolve(self):
|
|
5885
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
5900
5886
|
...
|
|
5901
5887
|
|
|
5902
5888
|
def pop(self):
|
|
@@ -5906,6 +5892,14 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5906
5892
|
"""
|
|
5907
5893
|
...
|
|
5908
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
|
+
|
|
5909
5903
|
def property_overridable_library_set(self) -> bool:
|
|
5910
5904
|
"""Define a property as overridable or not (only for custom properties!).
|
|
5911
5905
|
|
|
@@ -5918,6 +5912,13 @@ class SavePresetInterfaceTheme(AddPresetBase):
|
|
|
5918
5912
|
"""Unset a property, will use default value afterward."""
|
|
5919
5913
|
...
|
|
5920
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
|
+
|
|
5921
5922
|
def type_recast(self):
|
|
5922
5923
|
"""Return a new instance, this is needed because types
|
|
5923
5924
|
such as textures can be changed at runtime.
|