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