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.properties_grease_pencil_common
|
|
4
5
|
import bpy.types
|
|
5
6
|
import bpy_types
|
|
@@ -8,45 +9,13 @@ import rna_prop_ui
|
|
|
8
9
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
9
10
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
10
11
|
|
|
11
|
-
class DataButtonsPanel:
|
|
12
|
-
bl_context: typing.Any
|
|
13
|
-
bl_region_type: typing.Any
|
|
14
|
-
bl_space_type: typing.Any
|
|
15
|
-
|
|
16
|
-
def poll(self, context):
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
:param context:
|
|
20
|
-
"""
|
|
21
|
-
...
|
|
22
|
-
|
|
23
|
-
class LayerDataButtonsPanel:
|
|
24
|
-
bl_context: typing.Any
|
|
25
|
-
bl_region_type: typing.Any
|
|
26
|
-
bl_space_type: typing.Any
|
|
27
|
-
|
|
28
|
-
def poll(self, context):
|
|
29
|
-
"""
|
|
30
|
-
|
|
31
|
-
:param context:
|
|
32
|
-
"""
|
|
33
|
-
...
|
|
34
|
-
|
|
35
|
-
class ObjectButtonsPanel:
|
|
12
|
+
class DATA_PT_context_gpencil(DataButtonsPanel, bpy_types._GenericUI):
|
|
36
13
|
bl_context: typing.Any
|
|
37
|
-
bl_region_type: typing.Any
|
|
38
|
-
bl_space_type: typing.Any
|
|
39
|
-
|
|
40
|
-
def poll(self, context):
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
:param context:
|
|
44
|
-
"""
|
|
45
|
-
...
|
|
46
|
-
|
|
47
|
-
class GPENCIL_MT_gpencil_vertex_group(bpy_types._GenericUI):
|
|
48
14
|
bl_label: typing.Any
|
|
15
|
+
bl_options: typing.Any
|
|
16
|
+
bl_region_type: typing.Any
|
|
49
17
|
bl_rna: typing.Any
|
|
18
|
+
bl_space_type: typing.Any
|
|
50
19
|
id_data: typing.Any
|
|
51
20
|
|
|
52
21
|
def append(self, draw_func):
|
|
@@ -88,26 +57,6 @@ class GPENCIL_MT_gpencil_vertex_group(bpy_types._GenericUI):
|
|
|
88
57
|
"""
|
|
89
58
|
...
|
|
90
59
|
|
|
91
|
-
def draw_collapsible(self, context, layout):
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
:param context:
|
|
95
|
-
:param layout:
|
|
96
|
-
"""
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
-
def draw_preset(self, _context):
|
|
100
|
-
"""Define these on the subclass:
|
|
101
|
-
- preset_operator (string)
|
|
102
|
-
- preset_subdir (string)Optionally:
|
|
103
|
-
- preset_add_operator (string)
|
|
104
|
-
- preset_extensions (set of strings)
|
|
105
|
-
- preset_operator_defaults (dict of keyword args)
|
|
106
|
-
|
|
107
|
-
:param _context:
|
|
108
|
-
"""
|
|
109
|
-
...
|
|
110
|
-
|
|
111
60
|
def driver_add(self) -> bpy.types.FCurve:
|
|
112
61
|
"""Adds driver(s) to the given property
|
|
113
62
|
|
|
@@ -226,42 +175,15 @@ class GPENCIL_MT_gpencil_vertex_group(bpy_types._GenericUI):
|
|
|
226
175
|
"""
|
|
227
176
|
...
|
|
228
177
|
|
|
229
|
-
def
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
operator: str,
|
|
233
|
-
props_default: dict = None,
|
|
234
|
-
prop_filepath: str | None = "filepath",
|
|
235
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
236
|
-
filter_path=None,
|
|
237
|
-
display_name: collections.abc.Callable | None = None,
|
|
238
|
-
add_operator=None,
|
|
239
|
-
add_operator_props=None,
|
|
240
|
-
):
|
|
241
|
-
"""Populate a menu from a list of paths.
|
|
242
|
-
|
|
243
|
-
:param searchpaths: Paths to scan.
|
|
244
|
-
:type searchpaths: list[str]
|
|
245
|
-
:param operator: The operator id to use with each file.
|
|
246
|
-
:type operator: str
|
|
247
|
-
:param props_default: Properties to assign to each operator.
|
|
248
|
-
:type props_default: dict
|
|
249
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
250
|
-
:type prop_filepath: str | None
|
|
251
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
178
|
+
def path_resolve(self):
|
|
179
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
180
|
+
...
|
|
252
181
|
|
|
253
|
-
|
|
254
|
-
:type filter_ext: collections.abc.Callable | None
|
|
255
|
-
:param filter_path:
|
|
256
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
257
|
-
:type display_name: collections.abc.Callable | None
|
|
258
|
-
:param add_operator:
|
|
259
|
-
:param add_operator_props:
|
|
182
|
+
def poll(self, context):
|
|
260
183
|
"""
|
|
261
|
-
...
|
|
262
184
|
|
|
263
|
-
|
|
264
|
-
"""
|
|
185
|
+
:param context:
|
|
186
|
+
"""
|
|
265
187
|
...
|
|
266
188
|
|
|
267
189
|
def pop(self):
|
|
@@ -314,9 +236,20 @@ class GPENCIL_MT_gpencil_vertex_group(bpy_types._GenericUI):
|
|
|
314
236
|
"""
|
|
315
237
|
...
|
|
316
238
|
|
|
317
|
-
class
|
|
239
|
+
class DATA_PT_custom_props_gpencil(
|
|
240
|
+
DataButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
|
|
241
|
+
):
|
|
242
|
+
"""The subclass should have its own poll function
|
|
243
|
+
and the variable '_context_path' MUST be set.
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
bl_context: typing.Any
|
|
318
247
|
bl_label: typing.Any
|
|
248
|
+
bl_options: typing.Any
|
|
249
|
+
bl_order: typing.Any
|
|
250
|
+
bl_region_type: typing.Any
|
|
319
251
|
bl_rna: typing.Any
|
|
252
|
+
bl_space_type: typing.Any
|
|
320
253
|
id_data: typing.Any
|
|
321
254
|
|
|
322
255
|
def append(self, draw_func):
|
|
@@ -358,26 +291,6 @@ class GPENCIL_MT_layer_context_menu(bpy_types._GenericUI):
|
|
|
358
291
|
"""
|
|
359
292
|
...
|
|
360
293
|
|
|
361
|
-
def draw_collapsible(self, context, layout):
|
|
362
|
-
"""
|
|
363
|
-
|
|
364
|
-
:param context:
|
|
365
|
-
:param layout:
|
|
366
|
-
"""
|
|
367
|
-
...
|
|
368
|
-
|
|
369
|
-
def draw_preset(self, _context):
|
|
370
|
-
"""Define these on the subclass:
|
|
371
|
-
- preset_operator (string)
|
|
372
|
-
- preset_subdir (string)Optionally:
|
|
373
|
-
- preset_add_operator (string)
|
|
374
|
-
- preset_extensions (set of strings)
|
|
375
|
-
- preset_operator_defaults (dict of keyword args)
|
|
376
|
-
|
|
377
|
-
:param _context:
|
|
378
|
-
"""
|
|
379
|
-
...
|
|
380
|
-
|
|
381
294
|
def driver_add(self) -> bpy.types.FCurve:
|
|
382
295
|
"""Adds driver(s) to the given property
|
|
383
296
|
|
|
@@ -496,42 +409,15 @@ class GPENCIL_MT_layer_context_menu(bpy_types._GenericUI):
|
|
|
496
409
|
"""
|
|
497
410
|
...
|
|
498
411
|
|
|
499
|
-
def
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
operator: str,
|
|
503
|
-
props_default: dict = None,
|
|
504
|
-
prop_filepath: str | None = "filepath",
|
|
505
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
506
|
-
filter_path=None,
|
|
507
|
-
display_name: collections.abc.Callable | None = None,
|
|
508
|
-
add_operator=None,
|
|
509
|
-
add_operator_props=None,
|
|
510
|
-
):
|
|
511
|
-
"""Populate a menu from a list of paths.
|
|
512
|
-
|
|
513
|
-
:param searchpaths: Paths to scan.
|
|
514
|
-
:type searchpaths: list[str]
|
|
515
|
-
:param operator: The operator id to use with each file.
|
|
516
|
-
:type operator: str
|
|
517
|
-
:param props_default: Properties to assign to each operator.
|
|
518
|
-
:type props_default: dict
|
|
519
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
520
|
-
:type prop_filepath: str | None
|
|
521
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
412
|
+
def path_resolve(self):
|
|
413
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
414
|
+
...
|
|
522
415
|
|
|
523
|
-
|
|
524
|
-
:type filter_ext: collections.abc.Callable | None
|
|
525
|
-
:param filter_path:
|
|
526
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
527
|
-
:type display_name: collections.abc.Callable | None
|
|
528
|
-
:param add_operator:
|
|
529
|
-
:param add_operator_props:
|
|
416
|
+
def poll(self, context):
|
|
530
417
|
"""
|
|
531
|
-
...
|
|
532
418
|
|
|
533
|
-
|
|
534
|
-
"""
|
|
419
|
+
:param context:
|
|
420
|
+
"""
|
|
535
421
|
...
|
|
536
422
|
|
|
537
423
|
def pop(self):
|
|
@@ -584,8 +470,14 @@ class GPENCIL_MT_layer_context_menu(bpy_types._GenericUI):
|
|
|
584
470
|
"""
|
|
585
471
|
...
|
|
586
472
|
|
|
587
|
-
class
|
|
473
|
+
class DATA_PT_gpencil_canvas(DataButtonsPanel, bpy_types._GenericUI):
|
|
474
|
+
bl_context: typing.Any
|
|
475
|
+
bl_label: typing.Any
|
|
476
|
+
bl_options: typing.Any
|
|
477
|
+
bl_parent_id: typing.Any
|
|
478
|
+
bl_region_type: typing.Any
|
|
588
479
|
bl_rna: typing.Any
|
|
480
|
+
bl_space_type: typing.Any
|
|
589
481
|
id_data: typing.Any
|
|
590
482
|
|
|
591
483
|
def append(self, draw_func):
|
|
@@ -620,27 +512,10 @@ class GPENCIL_UL_vgroups(bpy_types._GenericUI):
|
|
|
620
512
|
"""
|
|
621
513
|
...
|
|
622
514
|
|
|
623
|
-
def
|
|
624
|
-
self,
|
|
625
|
-
_context,
|
|
626
|
-
layout,
|
|
627
|
-
_data,
|
|
628
|
-
item,
|
|
629
|
-
icon,
|
|
630
|
-
_active_data,
|
|
631
|
-
_active_propname,
|
|
632
|
-
_index,
|
|
633
|
-
):
|
|
515
|
+
def draw(self, context):
|
|
634
516
|
"""
|
|
635
517
|
|
|
636
|
-
:param
|
|
637
|
-
:param layout:
|
|
638
|
-
:param _data:
|
|
639
|
-
:param item:
|
|
640
|
-
:param icon:
|
|
641
|
-
:param _active_data:
|
|
642
|
-
:param _active_propname:
|
|
643
|
-
:param _index:
|
|
518
|
+
:param context:
|
|
644
519
|
"""
|
|
645
520
|
...
|
|
646
521
|
|
|
@@ -766,6 +641,13 @@ class GPENCIL_UL_vgroups(bpy_types._GenericUI):
|
|
|
766
641
|
"""Returns the property from the path, raise an exception when not found."""
|
|
767
642
|
...
|
|
768
643
|
|
|
644
|
+
def poll(self, context):
|
|
645
|
+
"""
|
|
646
|
+
|
|
647
|
+
:param context:
|
|
648
|
+
"""
|
|
649
|
+
...
|
|
650
|
+
|
|
769
651
|
def pop(self):
|
|
770
652
|
"""Remove and return the value of the custom property assigned to key or default
|
|
771
653
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -816,7 +698,7 @@ class GPENCIL_UL_vgroups(bpy_types._GenericUI):
|
|
|
816
698
|
"""
|
|
817
699
|
...
|
|
818
700
|
|
|
819
|
-
class
|
|
701
|
+
class DATA_PT_gpencil_display(DataButtonsPanel, bpy_types._GenericUI):
|
|
820
702
|
bl_context: typing.Any
|
|
821
703
|
bl_label: typing.Any
|
|
822
704
|
bl_options: typing.Any
|
|
@@ -1043,17 +925,15 @@ class DATA_PT_context_gpencil(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1043
925
|
"""
|
|
1044
926
|
...
|
|
1045
927
|
|
|
1046
|
-
class
|
|
1047
|
-
|
|
928
|
+
class DATA_PT_gpencil_layer_adjustments(
|
|
929
|
+
LayerDataButtonsPanel,
|
|
930
|
+
bl_ui.properties_grease_pencil_common.GreasePencilLayerAdjustmentsPanel,
|
|
931
|
+
bpy_types._GenericUI,
|
|
1048
932
|
):
|
|
1049
|
-
"""The subclass should have its own poll function
|
|
1050
|
-
and the variable '_context_path' MUST be set.
|
|
1051
|
-
"""
|
|
1052
|
-
|
|
1053
933
|
bl_context: typing.Any
|
|
1054
934
|
bl_label: typing.Any
|
|
1055
935
|
bl_options: typing.Any
|
|
1056
|
-
|
|
936
|
+
bl_parent_id: typing.Any
|
|
1057
937
|
bl_region_type: typing.Any
|
|
1058
938
|
bl_rna: typing.Any
|
|
1059
939
|
bl_space_type: typing.Any
|
|
@@ -1277,7 +1157,11 @@ class DATA_PT_custom_props_gpencil(
|
|
|
1277
1157
|
"""
|
|
1278
1158
|
...
|
|
1279
1159
|
|
|
1280
|
-
class
|
|
1160
|
+
class DATA_PT_gpencil_layer_display(
|
|
1161
|
+
LayerDataButtonsPanel,
|
|
1162
|
+
bl_ui.properties_grease_pencil_common.GreasePencilLayerDisplayPanel,
|
|
1163
|
+
bpy_types._GenericUI,
|
|
1164
|
+
):
|
|
1281
1165
|
bl_context: typing.Any
|
|
1282
1166
|
bl_label: typing.Any
|
|
1283
1167
|
bl_options: typing.Any
|
|
@@ -1505,10 +1389,15 @@ class DATA_PT_gpencil_canvas(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1505
1389
|
"""
|
|
1506
1390
|
...
|
|
1507
1391
|
|
|
1508
|
-
class
|
|
1392
|
+
class DATA_PT_gpencil_layer_masks(
|
|
1393
|
+
LayerDataButtonsPanel,
|
|
1394
|
+
bl_ui.properties_grease_pencil_common.GreasePencilLayerMasksPanel,
|
|
1395
|
+
bpy_types._GenericUI,
|
|
1396
|
+
):
|
|
1509
1397
|
bl_context: typing.Any
|
|
1510
1398
|
bl_label: typing.Any
|
|
1511
1399
|
bl_options: typing.Any
|
|
1400
|
+
bl_parent_id: typing.Any
|
|
1512
1401
|
bl_region_type: typing.Any
|
|
1513
1402
|
bl_rna: typing.Any
|
|
1514
1403
|
bl_space_type: typing.Any
|
|
@@ -1553,6 +1442,13 @@ class DATA_PT_gpencil_display(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1553
1442
|
"""
|
|
1554
1443
|
...
|
|
1555
1444
|
|
|
1445
|
+
def draw_header(self, context):
|
|
1446
|
+
"""
|
|
1447
|
+
|
|
1448
|
+
:param context:
|
|
1449
|
+
"""
|
|
1450
|
+
...
|
|
1451
|
+
|
|
1556
1452
|
def driver_add(self) -> bpy.types.FCurve:
|
|
1557
1453
|
"""Adds driver(s) to the given property
|
|
1558
1454
|
|
|
@@ -1732,9 +1628,15 @@ class DATA_PT_gpencil_display(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1732
1628
|
"""
|
|
1733
1629
|
...
|
|
1734
1630
|
|
|
1735
|
-
class
|
|
1631
|
+
class DATA_PT_gpencil_layer_relations(
|
|
1632
|
+
LayerDataButtonsPanel,
|
|
1633
|
+
bl_ui.properties_grease_pencil_common.GreasePencilLayerRelationsPanel,
|
|
1634
|
+
bpy_types._GenericUI,
|
|
1635
|
+
):
|
|
1736
1636
|
bl_context: typing.Any
|
|
1737
1637
|
bl_label: typing.Any
|
|
1638
|
+
bl_options: typing.Any
|
|
1639
|
+
bl_parent_id: typing.Any
|
|
1738
1640
|
bl_region_type: typing.Any
|
|
1739
1641
|
bl_rna: typing.Any
|
|
1740
1642
|
bl_space_type: typing.Any
|
|
@@ -1779,15 +1681,6 @@ class DATA_PT_gpencil_layers(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1779
1681
|
"""
|
|
1780
1682
|
...
|
|
1781
1683
|
|
|
1782
|
-
def draw_layers(self, _context, layout, gpd):
|
|
1783
|
-
"""
|
|
1784
|
-
|
|
1785
|
-
:param _context:
|
|
1786
|
-
:param layout:
|
|
1787
|
-
:param gpd:
|
|
1788
|
-
"""
|
|
1789
|
-
...
|
|
1790
|
-
|
|
1791
1684
|
def driver_add(self) -> bpy.types.FCurve:
|
|
1792
1685
|
"""Adds driver(s) to the given property
|
|
1793
1686
|
|
|
@@ -1967,9 +1860,15 @@ class DATA_PT_gpencil_layers(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
1967
1860
|
"""
|
|
1968
1861
|
...
|
|
1969
1862
|
|
|
1970
|
-
class
|
|
1863
|
+
class DATA_PT_gpencil_layer_transform(
|
|
1864
|
+
LayerDataButtonsPanel,
|
|
1865
|
+
bl_ui.properties_grease_pencil_common.GreasePencilLayerTransformPanel,
|
|
1866
|
+
bpy_types._GenericUI,
|
|
1867
|
+
):
|
|
1971
1868
|
bl_context: typing.Any
|
|
1972
1869
|
bl_label: typing.Any
|
|
1870
|
+
bl_options: typing.Any
|
|
1871
|
+
bl_parent_id: typing.Any
|
|
1973
1872
|
bl_region_type: typing.Any
|
|
1974
1873
|
bl_rna: typing.Any
|
|
1975
1874
|
bl_space_type: typing.Any
|
|
@@ -2193,13 +2092,9 @@ class DATA_PT_gpencil_onion_skinning(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
2193
2092
|
"""
|
|
2194
2093
|
...
|
|
2195
2094
|
|
|
2196
|
-
class
|
|
2197
|
-
DataButtonsPanel, bpy_types._GenericUI
|
|
2198
|
-
):
|
|
2095
|
+
class DATA_PT_gpencil_layers(DataButtonsPanel, bpy_types._GenericUI):
|
|
2199
2096
|
bl_context: typing.Any
|
|
2200
2097
|
bl_label: typing.Any
|
|
2201
|
-
bl_options: typing.Any
|
|
2202
|
-
bl_parent_id: typing.Any
|
|
2203
2098
|
bl_region_type: typing.Any
|
|
2204
2099
|
bl_rna: typing.Any
|
|
2205
2100
|
bl_space_type: typing.Any
|
|
@@ -2244,10 +2139,12 @@ class DATA_PT_gpencil_onion_skinning_custom_colors(
|
|
|
2244
2139
|
"""
|
|
2245
2140
|
...
|
|
2246
2141
|
|
|
2247
|
-
def
|
|
2142
|
+
def draw_layers(self, _context, layout, gpd):
|
|
2248
2143
|
"""
|
|
2249
2144
|
|
|
2250
|
-
:param
|
|
2145
|
+
:param _context:
|
|
2146
|
+
:param layout:
|
|
2147
|
+
:param gpd:
|
|
2251
2148
|
"""
|
|
2252
2149
|
...
|
|
2253
2150
|
|
|
@@ -2430,11 +2327,9 @@ class DATA_PT_gpencil_onion_skinning_custom_colors(
|
|
|
2430
2327
|
"""
|
|
2431
2328
|
...
|
|
2432
2329
|
|
|
2433
|
-
class
|
|
2330
|
+
class DATA_PT_gpencil_onion_skinning(DataButtonsPanel, bpy_types._GenericUI):
|
|
2434
2331
|
bl_context: typing.Any
|
|
2435
2332
|
bl_label: typing.Any
|
|
2436
|
-
bl_options: typing.Any
|
|
2437
|
-
bl_parent_id: typing.Any
|
|
2438
2333
|
bl_region_type: typing.Any
|
|
2439
2334
|
bl_rna: typing.Any
|
|
2440
2335
|
bl_space_type: typing.Any
|
|
@@ -2658,10 +2553,13 @@ class DATA_PT_gpencil_onion_skinning_display(DataButtonsPanel, bpy_types._Generi
|
|
|
2658
2553
|
"""
|
|
2659
2554
|
...
|
|
2660
2555
|
|
|
2661
|
-
class
|
|
2556
|
+
class DATA_PT_gpencil_onion_skinning_custom_colors(
|
|
2557
|
+
DataButtonsPanel, bpy_types._GenericUI
|
|
2558
|
+
):
|
|
2662
2559
|
bl_context: typing.Any
|
|
2663
2560
|
bl_label: typing.Any
|
|
2664
2561
|
bl_options: typing.Any
|
|
2562
|
+
bl_parent_id: typing.Any
|
|
2665
2563
|
bl_region_type: typing.Any
|
|
2666
2564
|
bl_rna: typing.Any
|
|
2667
2565
|
bl_space_type: typing.Any
|
|
@@ -2706,6 +2604,13 @@ class DATA_PT_gpencil_strokes(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
2706
2604
|
"""
|
|
2707
2605
|
...
|
|
2708
2606
|
|
|
2607
|
+
def draw_header(self, context):
|
|
2608
|
+
"""
|
|
2609
|
+
|
|
2610
|
+
:param context:
|
|
2611
|
+
"""
|
|
2612
|
+
...
|
|
2613
|
+
|
|
2709
2614
|
def driver_add(self) -> bpy.types.FCurve:
|
|
2710
2615
|
"""Adds driver(s) to the given property
|
|
2711
2616
|
|
|
@@ -2885,11 +2790,7 @@ class DATA_PT_gpencil_strokes(DataButtonsPanel, bpy_types._GenericUI):
|
|
|
2885
2790
|
"""
|
|
2886
2791
|
...
|
|
2887
2792
|
|
|
2888
|
-
class
|
|
2889
|
-
LayerDataButtonsPanel,
|
|
2890
|
-
bl_ui.properties_grease_pencil_common.GreasePencilLayerAdjustmentsPanel,
|
|
2891
|
-
bpy_types._GenericUI,
|
|
2892
|
-
):
|
|
2793
|
+
class DATA_PT_gpencil_onion_skinning_display(DataButtonsPanel, bpy_types._GenericUI):
|
|
2893
2794
|
bl_context: typing.Any
|
|
2894
2795
|
bl_label: typing.Any
|
|
2895
2796
|
bl_options: typing.Any
|
|
@@ -3117,15 +3018,10 @@ class DATA_PT_gpencil_layer_adjustments(
|
|
|
3117
3018
|
"""
|
|
3118
3019
|
...
|
|
3119
3020
|
|
|
3120
|
-
class
|
|
3121
|
-
LayerDataButtonsPanel,
|
|
3122
|
-
bl_ui.properties_grease_pencil_common.GreasePencilLayerDisplayPanel,
|
|
3123
|
-
bpy_types._GenericUI,
|
|
3124
|
-
):
|
|
3021
|
+
class DATA_PT_gpencil_strokes(DataButtonsPanel, bpy_types._GenericUI):
|
|
3125
3022
|
bl_context: typing.Any
|
|
3126
3023
|
bl_label: typing.Any
|
|
3127
3024
|
bl_options: typing.Any
|
|
3128
|
-
bl_parent_id: typing.Any
|
|
3129
3025
|
bl_region_type: typing.Any
|
|
3130
3026
|
bl_rna: typing.Any
|
|
3131
3027
|
bl_space_type: typing.Any
|
|
@@ -3349,15 +3245,10 @@ class DATA_PT_gpencil_layer_display(
|
|
|
3349
3245
|
"""
|
|
3350
3246
|
...
|
|
3351
3247
|
|
|
3352
|
-
class
|
|
3353
|
-
LayerDataButtonsPanel,
|
|
3354
|
-
bl_ui.properties_grease_pencil_common.GreasePencilLayerMasksPanel,
|
|
3355
|
-
bpy_types._GenericUI,
|
|
3356
|
-
):
|
|
3248
|
+
class DATA_PT_gpencil_vertex_groups(ObjectButtonsPanel, bpy_types._GenericUI):
|
|
3357
3249
|
bl_context: typing.Any
|
|
3358
3250
|
bl_label: typing.Any
|
|
3359
3251
|
bl_options: typing.Any
|
|
3360
|
-
bl_parent_id: typing.Any
|
|
3361
3252
|
bl_region_type: typing.Any
|
|
3362
3253
|
bl_rna: typing.Any
|
|
3363
3254
|
bl_space_type: typing.Any
|
|
@@ -3402,13 +3293,6 @@ class DATA_PT_gpencil_layer_masks(
|
|
|
3402
3293
|
"""
|
|
3403
3294
|
...
|
|
3404
3295
|
|
|
3405
|
-
def draw_header(self, context):
|
|
3406
|
-
"""
|
|
3407
|
-
|
|
3408
|
-
:param context:
|
|
3409
|
-
"""
|
|
3410
|
-
...
|
|
3411
|
-
|
|
3412
3296
|
def driver_add(self) -> bpy.types.FCurve:
|
|
3413
3297
|
"""Adds driver(s) to the given property
|
|
3414
3298
|
|
|
@@ -3588,18 +3472,21 @@ class DATA_PT_gpencil_layer_masks(
|
|
|
3588
3472
|
"""
|
|
3589
3473
|
...
|
|
3590
3474
|
|
|
3591
|
-
class
|
|
3592
|
-
LayerDataButtonsPanel,
|
|
3593
|
-
bl_ui.properties_grease_pencil_common.GreasePencilLayerRelationsPanel,
|
|
3594
|
-
bpy_types._GenericUI,
|
|
3595
|
-
):
|
|
3475
|
+
class DataButtonsPanel:
|
|
3596
3476
|
bl_context: typing.Any
|
|
3597
|
-
bl_label: typing.Any
|
|
3598
|
-
bl_options: typing.Any
|
|
3599
|
-
bl_parent_id: typing.Any
|
|
3600
3477
|
bl_region_type: typing.Any
|
|
3601
|
-
bl_rna: typing.Any
|
|
3602
3478
|
bl_space_type: typing.Any
|
|
3479
|
+
|
|
3480
|
+
def poll(self, context):
|
|
3481
|
+
"""
|
|
3482
|
+
|
|
3483
|
+
:param context:
|
|
3484
|
+
"""
|
|
3485
|
+
...
|
|
3486
|
+
|
|
3487
|
+
class GPENCIL_MT_gpencil_vertex_group(bpy_types._GenericUI):
|
|
3488
|
+
bl_label: typing.Any
|
|
3489
|
+
bl_rna: typing.Any
|
|
3603
3490
|
id_data: typing.Any
|
|
3604
3491
|
|
|
3605
3492
|
def append(self, draw_func):
|
|
@@ -3641,6 +3528,26 @@ class DATA_PT_gpencil_layer_relations(
|
|
|
3641
3528
|
"""
|
|
3642
3529
|
...
|
|
3643
3530
|
|
|
3531
|
+
def draw_collapsible(self, context, layout):
|
|
3532
|
+
"""
|
|
3533
|
+
|
|
3534
|
+
:param context:
|
|
3535
|
+
:param layout:
|
|
3536
|
+
"""
|
|
3537
|
+
...
|
|
3538
|
+
|
|
3539
|
+
def draw_preset(self, _context):
|
|
3540
|
+
"""Define these on the subclass:
|
|
3541
|
+
- preset_operator (string)
|
|
3542
|
+
- preset_subdir (string)Optionally:
|
|
3543
|
+
- preset_add_operator (string)
|
|
3544
|
+
- preset_extensions (set of strings)
|
|
3545
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3546
|
+
|
|
3547
|
+
:param _context:
|
|
3548
|
+
"""
|
|
3549
|
+
...
|
|
3550
|
+
|
|
3644
3551
|
def driver_add(self) -> bpy.types.FCurve:
|
|
3645
3552
|
"""Adds driver(s) to the given property
|
|
3646
3553
|
|
|
@@ -3759,17 +3666,44 @@ class DATA_PT_gpencil_layer_relations(
|
|
|
3759
3666
|
"""
|
|
3760
3667
|
...
|
|
3761
3668
|
|
|
3762
|
-
def
|
|
3763
|
-
|
|
3764
|
-
|
|
3669
|
+
def path_menu(
|
|
3670
|
+
self,
|
|
3671
|
+
searchpaths: list[str],
|
|
3672
|
+
operator: str,
|
|
3673
|
+
props_default: dict = None,
|
|
3674
|
+
prop_filepath: str | None = "filepath",
|
|
3675
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3676
|
+
filter_path=None,
|
|
3677
|
+
display_name: collections.abc.Callable | None = None,
|
|
3678
|
+
add_operator=None,
|
|
3679
|
+
add_operator_props=None,
|
|
3680
|
+
):
|
|
3681
|
+
"""Populate a menu from a list of paths.
|
|
3765
3682
|
|
|
3766
|
-
|
|
3767
|
-
|
|
3683
|
+
:param searchpaths: Paths to scan.
|
|
3684
|
+
:type searchpaths: list[str]
|
|
3685
|
+
:param operator: The operator id to use with each file.
|
|
3686
|
+
:type operator: str
|
|
3687
|
+
:param props_default: Properties to assign to each operator.
|
|
3688
|
+
:type props_default: dict
|
|
3689
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3690
|
+
:type prop_filepath: str | None
|
|
3691
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
3768
3692
|
|
|
3769
|
-
|
|
3693
|
+
Returning false excludes the file from the list.
|
|
3694
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3695
|
+
:param filter_path:
|
|
3696
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3697
|
+
:type display_name: collections.abc.Callable | None
|
|
3698
|
+
:param add_operator:
|
|
3699
|
+
:param add_operator_props:
|
|
3770
3700
|
"""
|
|
3771
3701
|
...
|
|
3772
3702
|
|
|
3703
|
+
def path_resolve(self):
|
|
3704
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
3705
|
+
...
|
|
3706
|
+
|
|
3773
3707
|
def pop(self):
|
|
3774
3708
|
"""Remove and return the value of the custom property assigned to key or default
|
|
3775
3709
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -3820,18 +3754,9 @@ class DATA_PT_gpencil_layer_relations(
|
|
|
3820
3754
|
"""
|
|
3821
3755
|
...
|
|
3822
3756
|
|
|
3823
|
-
class
|
|
3824
|
-
LayerDataButtonsPanel,
|
|
3825
|
-
bl_ui.properties_grease_pencil_common.GreasePencilLayerTransformPanel,
|
|
3826
|
-
bpy_types._GenericUI,
|
|
3827
|
-
):
|
|
3828
|
-
bl_context: typing.Any
|
|
3757
|
+
class GPENCIL_MT_layer_context_menu(bpy_types._GenericUI):
|
|
3829
3758
|
bl_label: typing.Any
|
|
3830
|
-
bl_options: typing.Any
|
|
3831
|
-
bl_parent_id: typing.Any
|
|
3832
|
-
bl_region_type: typing.Any
|
|
3833
3759
|
bl_rna: typing.Any
|
|
3834
|
-
bl_space_type: typing.Any
|
|
3835
3760
|
id_data: typing.Any
|
|
3836
3761
|
|
|
3837
3762
|
def append(self, draw_func):
|
|
@@ -3873,6 +3798,26 @@ class DATA_PT_gpencil_layer_transform(
|
|
|
3873
3798
|
"""
|
|
3874
3799
|
...
|
|
3875
3800
|
|
|
3801
|
+
def draw_collapsible(self, context, layout):
|
|
3802
|
+
"""
|
|
3803
|
+
|
|
3804
|
+
:param context:
|
|
3805
|
+
:param layout:
|
|
3806
|
+
"""
|
|
3807
|
+
...
|
|
3808
|
+
|
|
3809
|
+
def draw_preset(self, _context):
|
|
3810
|
+
"""Define these on the subclass:
|
|
3811
|
+
- preset_operator (string)
|
|
3812
|
+
- preset_subdir (string)Optionally:
|
|
3813
|
+
- preset_add_operator (string)
|
|
3814
|
+
- preset_extensions (set of strings)
|
|
3815
|
+
- preset_operator_defaults (dict of keyword args)
|
|
3816
|
+
|
|
3817
|
+
:param _context:
|
|
3818
|
+
"""
|
|
3819
|
+
...
|
|
3820
|
+
|
|
3876
3821
|
def driver_add(self) -> bpy.types.FCurve:
|
|
3877
3822
|
"""Adds driver(s) to the given property
|
|
3878
3823
|
|
|
@@ -3991,17 +3936,44 @@ class DATA_PT_gpencil_layer_transform(
|
|
|
3991
3936
|
"""
|
|
3992
3937
|
...
|
|
3993
3938
|
|
|
3994
|
-
def
|
|
3995
|
-
|
|
3996
|
-
|
|
3939
|
+
def path_menu(
|
|
3940
|
+
self,
|
|
3941
|
+
searchpaths: list[str],
|
|
3942
|
+
operator: str,
|
|
3943
|
+
props_default: dict = None,
|
|
3944
|
+
prop_filepath: str | None = "filepath",
|
|
3945
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
3946
|
+
filter_path=None,
|
|
3947
|
+
display_name: collections.abc.Callable | None = None,
|
|
3948
|
+
add_operator=None,
|
|
3949
|
+
add_operator_props=None,
|
|
3950
|
+
):
|
|
3951
|
+
"""Populate a menu from a list of paths.
|
|
3997
3952
|
|
|
3998
|
-
|
|
3999
|
-
|
|
3953
|
+
:param searchpaths: Paths to scan.
|
|
3954
|
+
:type searchpaths: list[str]
|
|
3955
|
+
:param operator: The operator id to use with each file.
|
|
3956
|
+
:type operator: str
|
|
3957
|
+
:param props_default: Properties to assign to each operator.
|
|
3958
|
+
:type props_default: dict
|
|
3959
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
3960
|
+
:type prop_filepath: str | None
|
|
3961
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
4000
3962
|
|
|
4001
|
-
|
|
3963
|
+
Returning false excludes the file from the list.
|
|
3964
|
+
:type filter_ext: collections.abc.Callable | None
|
|
3965
|
+
:param filter_path:
|
|
3966
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
3967
|
+
:type display_name: collections.abc.Callable | None
|
|
3968
|
+
:param add_operator:
|
|
3969
|
+
:param add_operator_props:
|
|
4002
3970
|
"""
|
|
4003
3971
|
...
|
|
4004
3972
|
|
|
3973
|
+
def path_resolve(self):
|
|
3974
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
3975
|
+
...
|
|
3976
|
+
|
|
4005
3977
|
def pop(self):
|
|
4006
3978
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4007
3979
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4052,13 +4024,8 @@ class DATA_PT_gpencil_layer_transform(
|
|
|
4052
4024
|
"""
|
|
4053
4025
|
...
|
|
4054
4026
|
|
|
4055
|
-
class
|
|
4056
|
-
bl_context: typing.Any
|
|
4057
|
-
bl_label: typing.Any
|
|
4058
|
-
bl_options: typing.Any
|
|
4059
|
-
bl_region_type: typing.Any
|
|
4027
|
+
class GPENCIL_UL_vgroups(bpy_types._GenericUI):
|
|
4060
4028
|
bl_rna: typing.Any
|
|
4061
|
-
bl_space_type: typing.Any
|
|
4062
4029
|
id_data: typing.Any
|
|
4063
4030
|
|
|
4064
4031
|
def append(self, draw_func):
|
|
@@ -4093,10 +4060,27 @@ class DATA_PT_gpencil_vertex_groups(ObjectButtonsPanel, bpy_types._GenericUI):
|
|
|
4093
4060
|
"""
|
|
4094
4061
|
...
|
|
4095
4062
|
|
|
4096
|
-
def
|
|
4063
|
+
def draw_item(
|
|
4064
|
+
self,
|
|
4065
|
+
_context,
|
|
4066
|
+
layout,
|
|
4067
|
+
_data,
|
|
4068
|
+
item,
|
|
4069
|
+
icon,
|
|
4070
|
+
_active_data,
|
|
4071
|
+
_active_propname,
|
|
4072
|
+
_index,
|
|
4073
|
+
):
|
|
4097
4074
|
"""
|
|
4098
4075
|
|
|
4099
|
-
:param
|
|
4076
|
+
:param _context:
|
|
4077
|
+
:param layout:
|
|
4078
|
+
:param _data:
|
|
4079
|
+
:param item:
|
|
4080
|
+
:param icon:
|
|
4081
|
+
:param _active_data:
|
|
4082
|
+
:param _active_propname:
|
|
4083
|
+
:param _index:
|
|
4100
4084
|
"""
|
|
4101
4085
|
...
|
|
4102
4086
|
|
|
@@ -4222,13 +4206,6 @@ class DATA_PT_gpencil_vertex_groups(ObjectButtonsPanel, bpy_types._GenericUI):
|
|
|
4222
4206
|
"""Returns the property from the path, raise an exception when not found."""
|
|
4223
4207
|
...
|
|
4224
4208
|
|
|
4225
|
-
def poll(self, context):
|
|
4226
|
-
"""
|
|
4227
|
-
|
|
4228
|
-
:param context:
|
|
4229
|
-
"""
|
|
4230
|
-
...
|
|
4231
|
-
|
|
4232
4209
|
def pop(self):
|
|
4233
4210
|
"""Remove and return the value of the custom property assigned to key or default
|
|
4234
4211
|
when not found (matches Python's dictionary function of the same name).
|
|
@@ -4278,3 +4255,27 @@ class DATA_PT_gpencil_vertex_groups(ObjectButtonsPanel, bpy_types._GenericUI):
|
|
|
4278
4255
|
:return: custom property values.
|
|
4279
4256
|
"""
|
|
4280
4257
|
...
|
|
4258
|
+
|
|
4259
|
+
class LayerDataButtonsPanel:
|
|
4260
|
+
bl_context: typing.Any
|
|
4261
|
+
bl_region_type: typing.Any
|
|
4262
|
+
bl_space_type: typing.Any
|
|
4263
|
+
|
|
4264
|
+
def poll(self, context):
|
|
4265
|
+
"""
|
|
4266
|
+
|
|
4267
|
+
:param context:
|
|
4268
|
+
"""
|
|
4269
|
+
...
|
|
4270
|
+
|
|
4271
|
+
class ObjectButtonsPanel:
|
|
4272
|
+
bl_context: typing.Any
|
|
4273
|
+
bl_region_type: typing.Any
|
|
4274
|
+
bl_space_type: typing.Any
|
|
4275
|
+
|
|
4276
|
+
def poll(self, context):
|
|
4277
|
+
"""
|
|
4278
|
+
|
|
4279
|
+
:param context:
|
|
4280
|
+
"""
|
|
4281
|
+
...
|