fake-bpy-module 20240718__py3-none-any.whl → 20240720__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bl_operators/add_mesh_torus/__init__.pyi +1 -190
- bl_operators/anim/__init__.pyi +104 -1504
- bl_operators/assets/__init__.pyi +3 -535
- bl_operators/bone_selection_sets/__init__.pyi +187 -2680
- bl_operators/clip/__init__.pyi +144 -1894
- bl_operators/connect_to_output/__init__.pyi +3 -176
- bl_operators/console/__init__.pyi +5 -880
- bl_operators/constraint/__init__.pyi +4 -704
- bl_operators/file/__init__.pyi +3 -528
- bl_operators/freestyle/__init__.pyi +4 -704
- bl_operators/geometry_nodes/__init__.pyi +4 -704
- bl_operators/image/__init__.pyi +5 -869
- bl_operators/image_as_planes/__init__.pyi +4 -424
- bl_operators/mesh/__init__.pyi +3 -528
- bl_operators/node/__init__.pyi +159 -2065
- bl_operators/object/__init__.pyi +217 -2842
- bl_operators/object_align/__init__.pyi +1 -176
- bl_operators/object_quick_effects/__init__.pyi +4 -725
- bl_operators/object_randomize_transform/__init__.pyi +1 -176
- bl_operators/presets/__init__.pyi +405 -5487
- bl_operators/rigidbody/__init__.pyi +3 -528
- bl_operators/screen_play_rendered_anim/__init__.pyi +1 -176
- bl_operators/sequencer/__init__.pyi +119 -1507
- bl_operators/spreadsheet/__init__.pyi +1 -176
- bl_operators/userpref/__init__.pyi +383 -4757
- bl_operators/uvcalc_follow_active/__init__.pyi +1 -176
- bl_operators/uvcalc_lightmap/__init__.pyi +1 -176
- bl_operators/uvcalc_transform/__init__.pyi +2 -352
- bl_operators/vertexpaint_dirt/__init__.pyi +1 -176
- bl_operators/view3d/__init__.pyi +101 -1468
- bl_operators/wm/__init__.pyi +723 -8894
- bl_operators/world/__init__.pyi +1 -176
- bl_ui/__init__.pyi +3 -534
- bl_ui/anim/__init__.pyi +1 -244
- bl_ui/asset_shelf/__init__.pyi +1 -189
- bl_ui/generic_ui_list/__init__.pyi +3 -594
- bl_ui/node_add_menu/__init__.pyi +1 -244
- bl_ui/node_add_menu_compositor/__init__.pyi +226 -4600
- bl_ui/node_add_menu_geometry/__init__.pyi +654 -12802
- bl_ui/node_add_menu_shader/__init__.pyi +94 -2531
- bl_ui/node_add_menu_texture/__init__.pyi +81 -2268
- bl_ui/properties_collection/__init__.pyi +58 -1272
- bl_ui/properties_constraint/__init__.pyi +1508 -32656
- bl_ui/properties_data_armature/__init__.pyi +278 -3804
- bl_ui/properties_data_bone/__init__.pyi +151 -2062
- bl_ui/properties_data_camera/__init__.pyi +216 -3034
- bl_ui/properties_data_curve/__init__.pyi +214 -3117
- bl_ui/properties_data_curves/__init__.pyi +57 -1273
- bl_ui/properties_data_empty/__init__.pyi +2 -385
- bl_ui/properties_data_gpencil/__init__.pyi +285 -3922
- bl_ui/properties_data_grease_pencil/__init__.pyi +198 -3081
- bl_ui/properties_data_lattice/__init__.pyi +3 -595
- bl_ui/properties_data_light/__init__.pyi +200 -2502
- bl_ui/properties_data_lightprobe/__init__.pyi +212 -2704
- bl_ui/properties_data_mesh/__init__.pyi +323 -4380
- bl_ui/properties_data_metaball/__init__.pyi +38 -1011
- bl_ui/properties_data_modifier/__init__.pyi +157 -2451
- bl_ui/properties_data_pointcloud/__init__.pyi +68 -1087
- bl_ui/properties_data_shaderfx/__init__.pyi +1 -189
- bl_ui/properties_data_speaker/__init__.pyi +36 -1018
- bl_ui/properties_data_volume/__init__.pyi +104 -1660
- bl_ui/properties_freestyle/__init__.pyi +438 -5136
- bl_ui/properties_grease_pencil_common/__init__.pyi +197 -3852
- bl_ui/properties_mask_common/__init__.pyi +59 -1705
- bl_ui/properties_material/__init__.pyi +227 -3334
- bl_ui/properties_material_gpencil/__init__.pyi +187 -2221
- bl_ui/properties_object/__init__.pyi +197 -2908
- bl_ui/properties_output/__init__.pyi +286 -3895
- bl_ui/properties_paint_common/__init__.pyi +40 -923
- bl_ui/properties_particle/__init__.pyi +954 -10839
- bl_ui/properties_physics_cloth/__init__.pyi +219 -2979
- bl_ui/properties_physics_common/__init__.pyi +1 -196
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +429 -5411
- bl_ui/properties_physics_field/__init__.pyi +160 -2166
- bl_ui/properties_physics_fluid/__init__.pyi +541 -7352
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -189
- bl_ui/properties_physics_rigidbody/__init__.pyi +125 -1623
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +196 -2640
- bl_ui/properties_physics_softbody/__init__.pyi +238 -3135
- bl_ui/properties_render/__init__.pyi +1065 -11565
- bl_ui/properties_scene/__init__.pyi +209 -3090
- bl_ui/properties_texture/__init__.pyi +426 -5475
- bl_ui/properties_view_layer/__init__.pyi +264 -3827
- bl_ui/properties_workspace/__init__.pyi +7 -770
- bl_ui/properties_world/__init__.pyi +147 -2056
- bl_ui/space_clip/__init__.pyi +1013 -16279
- bl_ui/space_console/__init__.pyi +39 -1442
- bl_ui/space_dopesheet/__init__.pyi +450 -7213
- bl_ui/space_filebrowser/__init__.pyi +406 -6708
- bl_ui/space_graph/__init__.pyi +223 -4886
- bl_ui/space_image/__init__.pyi +1091 -16394
- bl_ui/space_info/__init__.pyi +39 -1442
- bl_ui/space_nla/__init__.pyi +216 -4157
- bl_ui/space_node/__init__.pyi +394 -6344
- bl_ui/space_outliner/__init__.pyi +156 -3448
- bl_ui/space_properties/__init__.pyi +3 -567
- bl_ui/space_sequencer/__init__.pyi +1224 -18036
- bl_ui/space_spreadsheet/__init__.pyi +1 -189
- bl_ui/space_statusbar/__init__.pyi +1 -189
- bl_ui/space_text/__init__.pyi +183 -3851
- bl_ui/space_time/__init__.pyi +69 -1622
- bl_ui/space_toolsystem_common/__init__.pyi +2 -118
- bl_ui/space_toolsystem_toolbar/__init__.pyi +13 -476
- bl_ui/space_topbar/__init__.pyi +322 -6269
- bl_ui/space_userpref/__init__.pyi +1758 -19735
- bl_ui/space_view3d/__init__.pyi +3853 -67593
- bl_ui/space_view3d_toolbar/__init__.pyi +1948 -23558
- bl_ui/temp_anim_layers/__init__.pyi +1 -189
- bl_ui/utils/__init__.pyi +0 -35
- bpy/ops/outliner/__init__.pyi +0 -1
- bpy/ops/sound/__init__.pyi +37 -7
- bpy/types/__init__.pyi +65 -8
- bpy_extras/node_shader_utils/__init__.pyi +0 -8
- {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240720.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240720.dist-info}/RECORD +120 -120
- {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240720.dist-info}/WHEEL +1 -1
- freestyle/utils/__init__.pyi +1 -1
- keyingsets_builtins/__init__.pyi +268 -4448
- nodeitems_builtins/__init__.pyi +1 -7
- {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240720.dist-info}/top_level.txt +0 -0
|
@@ -10,1977 +10,11 @@ import rna_prop_ui
|
|
|
10
10
|
GenericType1 = typing.TypeVar("GenericType1")
|
|
11
11
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
12
12
|
|
|
13
|
-
class GPENCIL_MT_material_context_menu(bpy_types._GenericUI):
|
|
13
|
+
class GPENCIL_MT_material_context_menu(bpy.types.Menu, bpy_types._GenericUI):
|
|
14
14
|
bl_label: typing.Any
|
|
15
15
|
bl_rna: typing.Any
|
|
16
16
|
id_data: typing.Any
|
|
17
17
|
|
|
18
|
-
def append(self, draw_func):
|
|
19
|
-
"""Append a draw function to this menu,
|
|
20
|
-
takes the same arguments as the menus draw function
|
|
21
|
-
|
|
22
|
-
:param draw_func:
|
|
23
|
-
"""
|
|
24
|
-
...
|
|
25
|
-
|
|
26
|
-
def as_pointer(self) -> int:
|
|
27
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
28
|
-
|
|
29
|
-
:return: int (memory address).
|
|
30
|
-
:rtype: int
|
|
31
|
-
"""
|
|
32
|
-
...
|
|
33
|
-
|
|
34
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
:return: The RNA type or default when not found.
|
|
38
|
-
:rtype: bpy.types.Struct
|
|
39
|
-
"""
|
|
40
|
-
...
|
|
41
|
-
|
|
42
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
:return: The class or default when not found.
|
|
46
|
-
:rtype: typing.Any
|
|
47
|
-
"""
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
def draw(self, _context):
|
|
51
|
-
"""
|
|
52
|
-
|
|
53
|
-
:param _context:
|
|
54
|
-
"""
|
|
55
|
-
...
|
|
56
|
-
|
|
57
|
-
def draw_collapsible(self, context, layout):
|
|
58
|
-
"""
|
|
59
|
-
|
|
60
|
-
:param context:
|
|
61
|
-
:param layout:
|
|
62
|
-
"""
|
|
63
|
-
...
|
|
64
|
-
|
|
65
|
-
def draw_preset(self, _context):
|
|
66
|
-
"""Define these on the subclass:
|
|
67
|
-
- preset_operator (string)
|
|
68
|
-
- preset_subdir (string)Optionally:
|
|
69
|
-
- preset_add_operator (string)
|
|
70
|
-
- preset_extensions (set of strings)
|
|
71
|
-
- preset_operator_defaults (dict of keyword args)
|
|
72
|
-
|
|
73
|
-
:param _context:
|
|
74
|
-
"""
|
|
75
|
-
...
|
|
76
|
-
|
|
77
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
78
|
-
"""Adds driver(s) to the given property
|
|
79
|
-
|
|
80
|
-
:return: The driver(s) added.
|
|
81
|
-
:rtype: bpy.types.FCurve
|
|
82
|
-
"""
|
|
83
|
-
...
|
|
84
|
-
|
|
85
|
-
def driver_remove(self) -> bool:
|
|
86
|
-
"""Remove driver(s) from the given property
|
|
87
|
-
|
|
88
|
-
:return: Success of driver removal.
|
|
89
|
-
:rtype: bool
|
|
90
|
-
"""
|
|
91
|
-
...
|
|
92
|
-
|
|
93
|
-
def get(self):
|
|
94
|
-
"""Returns the value of the custom property assigned to key or default
|
|
95
|
-
when not found (matches Python's dictionary function of the same name).
|
|
96
|
-
|
|
97
|
-
"""
|
|
98
|
-
...
|
|
99
|
-
|
|
100
|
-
def id_properties_clear(self):
|
|
101
|
-
"""
|
|
102
|
-
|
|
103
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
104
|
-
"""
|
|
105
|
-
...
|
|
106
|
-
|
|
107
|
-
def id_properties_ensure(self):
|
|
108
|
-
"""
|
|
109
|
-
|
|
110
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
111
|
-
"""
|
|
112
|
-
...
|
|
113
|
-
|
|
114
|
-
def id_properties_ui(self):
|
|
115
|
-
"""
|
|
116
|
-
|
|
117
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
118
|
-
"""
|
|
119
|
-
...
|
|
120
|
-
|
|
121
|
-
def is_extended(self): ...
|
|
122
|
-
def is_property_hidden(self) -> bool:
|
|
123
|
-
"""Check if a property is hidden.
|
|
124
|
-
|
|
125
|
-
:return: True when the property is hidden.
|
|
126
|
-
:rtype: bool
|
|
127
|
-
"""
|
|
128
|
-
...
|
|
129
|
-
|
|
130
|
-
def is_property_overridable_library(self) -> bool:
|
|
131
|
-
"""Check if a property is overridable.
|
|
132
|
-
|
|
133
|
-
:return: True when the property is overridable.
|
|
134
|
-
:rtype: bool
|
|
135
|
-
"""
|
|
136
|
-
...
|
|
137
|
-
|
|
138
|
-
def is_property_readonly(self) -> bool:
|
|
139
|
-
"""Check if a property is readonly.
|
|
140
|
-
|
|
141
|
-
:return: True when the property is readonly (not writable).
|
|
142
|
-
:rtype: bool
|
|
143
|
-
"""
|
|
144
|
-
...
|
|
145
|
-
|
|
146
|
-
def is_property_set(self) -> bool:
|
|
147
|
-
"""Check if a property is set, use for testing operator properties.
|
|
148
|
-
|
|
149
|
-
:return: True when the property has been set.
|
|
150
|
-
:rtype: bool
|
|
151
|
-
"""
|
|
152
|
-
...
|
|
153
|
-
|
|
154
|
-
def items(self):
|
|
155
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
156
|
-
dictionary function of the same name).
|
|
157
|
-
|
|
158
|
-
:return: custom property key, value pairs.
|
|
159
|
-
"""
|
|
160
|
-
...
|
|
161
|
-
|
|
162
|
-
def keyframe_delete(self) -> bool:
|
|
163
|
-
"""Remove a keyframe from this properties fcurve.
|
|
164
|
-
|
|
165
|
-
:return: Success of keyframe deletion.
|
|
166
|
-
:rtype: bool
|
|
167
|
-
"""
|
|
168
|
-
...
|
|
169
|
-
|
|
170
|
-
def keyframe_insert(self) -> bool:
|
|
171
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
172
|
-
|
|
173
|
-
:return: Success of keyframe insertion.
|
|
174
|
-
:rtype: bool
|
|
175
|
-
"""
|
|
176
|
-
...
|
|
177
|
-
|
|
178
|
-
def keys(self):
|
|
179
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
180
|
-
dictionary function of the same name).
|
|
181
|
-
|
|
182
|
-
:return: custom property keys.
|
|
183
|
-
"""
|
|
184
|
-
...
|
|
185
|
-
|
|
186
|
-
def path_from_id(self) -> str:
|
|
187
|
-
"""Returns the data path from the ID to this object (string).
|
|
188
|
-
|
|
189
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
190
|
-
to this struct and property (when given).
|
|
191
|
-
:rtype: str
|
|
192
|
-
"""
|
|
193
|
-
...
|
|
194
|
-
|
|
195
|
-
def path_menu(
|
|
196
|
-
self,
|
|
197
|
-
searchpaths: list[str],
|
|
198
|
-
operator: str,
|
|
199
|
-
*,
|
|
200
|
-
props_default: dict = None,
|
|
201
|
-
prop_filepath: str | None = "filepath",
|
|
202
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
203
|
-
filter_path=None,
|
|
204
|
-
display_name: collections.abc.Callable | None = None,
|
|
205
|
-
add_operator=None,
|
|
206
|
-
add_operator_props=None,
|
|
207
|
-
):
|
|
208
|
-
"""Populate a menu from a list of paths.
|
|
209
|
-
|
|
210
|
-
:param searchpaths: Paths to scan.
|
|
211
|
-
:type searchpaths: list[str]
|
|
212
|
-
:param operator: The operator id to use with each file.
|
|
213
|
-
:type operator: str
|
|
214
|
-
:param props_default: Properties to assign to each operator.
|
|
215
|
-
:type props_default: dict
|
|
216
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
217
|
-
:type prop_filepath: str | None
|
|
218
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
219
|
-
|
|
220
|
-
Returning false excludes the file from the list.
|
|
221
|
-
:type filter_ext: collections.abc.Callable | None
|
|
222
|
-
:param filter_path:
|
|
223
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
224
|
-
:type display_name: collections.abc.Callable | None
|
|
225
|
-
:param add_operator:
|
|
226
|
-
:param add_operator_props:
|
|
227
|
-
"""
|
|
228
|
-
...
|
|
229
|
-
|
|
230
|
-
def path_resolve(self):
|
|
231
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
232
|
-
...
|
|
233
|
-
|
|
234
|
-
def pop(self):
|
|
235
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
236
|
-
when not found (matches Python's dictionary function of the same name).
|
|
237
|
-
|
|
238
|
-
"""
|
|
239
|
-
...
|
|
240
|
-
|
|
241
|
-
def prepend(self, draw_func):
|
|
242
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
243
|
-
the menus draw function
|
|
244
|
-
|
|
245
|
-
:param draw_func:
|
|
246
|
-
"""
|
|
247
|
-
...
|
|
248
|
-
|
|
249
|
-
def property_overridable_library_set(self) -> bool:
|
|
250
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
251
|
-
|
|
252
|
-
:return: True when the overridable status of the property was successfully set.
|
|
253
|
-
:rtype: bool
|
|
254
|
-
"""
|
|
255
|
-
...
|
|
256
|
-
|
|
257
|
-
def property_unset(self):
|
|
258
|
-
"""Unset a property, will use default value afterward."""
|
|
259
|
-
...
|
|
260
|
-
|
|
261
|
-
def remove(self, draw_func):
|
|
262
|
-
"""Remove a draw function that has been added to this menu
|
|
263
|
-
|
|
264
|
-
:param draw_func:
|
|
265
|
-
"""
|
|
266
|
-
...
|
|
267
|
-
|
|
268
|
-
def type_recast(self):
|
|
269
|
-
"""Return a new instance, this is needed because types
|
|
270
|
-
such as textures can be changed at runtime.
|
|
271
|
-
|
|
272
|
-
:return: a new instance of this object with the type initialized again.
|
|
273
|
-
"""
|
|
274
|
-
...
|
|
275
|
-
|
|
276
|
-
def values(self):
|
|
277
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
278
|
-
dictionary function of the same name).
|
|
279
|
-
|
|
280
|
-
:return: custom property values.
|
|
281
|
-
"""
|
|
282
|
-
...
|
|
283
|
-
|
|
284
|
-
class GPENCIL_UL_matslots(bpy_types._GenericUI):
|
|
285
|
-
bl_rna: typing.Any
|
|
286
|
-
id_data: typing.Any
|
|
287
|
-
|
|
288
|
-
def append(self, draw_func):
|
|
289
|
-
"""Append a draw function to this menu,
|
|
290
|
-
takes the same arguments as the menus draw function
|
|
291
|
-
|
|
292
|
-
:param draw_func:
|
|
293
|
-
"""
|
|
294
|
-
...
|
|
295
|
-
|
|
296
|
-
def as_pointer(self) -> int:
|
|
297
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
298
|
-
|
|
299
|
-
:return: int (memory address).
|
|
300
|
-
:rtype: int
|
|
301
|
-
"""
|
|
302
|
-
...
|
|
303
|
-
|
|
304
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
305
|
-
"""
|
|
306
|
-
|
|
307
|
-
:return: The RNA type or default when not found.
|
|
308
|
-
:rtype: bpy.types.Struct
|
|
309
|
-
"""
|
|
310
|
-
...
|
|
311
|
-
|
|
312
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
313
|
-
"""
|
|
314
|
-
|
|
315
|
-
:return: The class or default when not found.
|
|
316
|
-
:rtype: typing.Any
|
|
317
|
-
"""
|
|
318
|
-
...
|
|
319
|
-
|
|
320
|
-
def draw_item(
|
|
321
|
-
self,
|
|
322
|
-
_context,
|
|
323
|
-
layout,
|
|
324
|
-
_data,
|
|
325
|
-
item,
|
|
326
|
-
icon,
|
|
327
|
-
_active_data,
|
|
328
|
-
_active_propname,
|
|
329
|
-
_index,
|
|
330
|
-
):
|
|
331
|
-
"""
|
|
332
|
-
|
|
333
|
-
:param _context:
|
|
334
|
-
:param layout:
|
|
335
|
-
:param _data:
|
|
336
|
-
:param item:
|
|
337
|
-
:param icon:
|
|
338
|
-
:param _active_data:
|
|
339
|
-
:param _active_propname:
|
|
340
|
-
:param _index:
|
|
341
|
-
"""
|
|
342
|
-
...
|
|
343
|
-
|
|
344
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
345
|
-
"""Adds driver(s) to the given property
|
|
346
|
-
|
|
347
|
-
:return: The driver(s) added.
|
|
348
|
-
:rtype: bpy.types.FCurve
|
|
349
|
-
"""
|
|
350
|
-
...
|
|
351
|
-
|
|
352
|
-
def driver_remove(self) -> bool:
|
|
353
|
-
"""Remove driver(s) from the given property
|
|
354
|
-
|
|
355
|
-
:return: Success of driver removal.
|
|
356
|
-
:rtype: bool
|
|
357
|
-
"""
|
|
358
|
-
...
|
|
359
|
-
|
|
360
|
-
def get(self):
|
|
361
|
-
"""Returns the value of the custom property assigned to key or default
|
|
362
|
-
when not found (matches Python's dictionary function of the same name).
|
|
363
|
-
|
|
364
|
-
"""
|
|
365
|
-
...
|
|
366
|
-
|
|
367
|
-
def id_properties_clear(self):
|
|
368
|
-
"""
|
|
369
|
-
|
|
370
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
371
|
-
"""
|
|
372
|
-
...
|
|
373
|
-
|
|
374
|
-
def id_properties_ensure(self):
|
|
375
|
-
"""
|
|
376
|
-
|
|
377
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
378
|
-
"""
|
|
379
|
-
...
|
|
380
|
-
|
|
381
|
-
def id_properties_ui(self):
|
|
382
|
-
"""
|
|
383
|
-
|
|
384
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
385
|
-
"""
|
|
386
|
-
...
|
|
387
|
-
|
|
388
|
-
def is_extended(self): ...
|
|
389
|
-
def is_property_hidden(self) -> bool:
|
|
390
|
-
"""Check if a property is hidden.
|
|
391
|
-
|
|
392
|
-
:return: True when the property is hidden.
|
|
393
|
-
:rtype: bool
|
|
394
|
-
"""
|
|
395
|
-
...
|
|
396
|
-
|
|
397
|
-
def is_property_overridable_library(self) -> bool:
|
|
398
|
-
"""Check if a property is overridable.
|
|
399
|
-
|
|
400
|
-
:return: True when the property is overridable.
|
|
401
|
-
:rtype: bool
|
|
402
|
-
"""
|
|
403
|
-
...
|
|
404
|
-
|
|
405
|
-
def is_property_readonly(self) -> bool:
|
|
406
|
-
"""Check if a property is readonly.
|
|
407
|
-
|
|
408
|
-
:return: True when the property is readonly (not writable).
|
|
409
|
-
:rtype: bool
|
|
410
|
-
"""
|
|
411
|
-
...
|
|
412
|
-
|
|
413
|
-
def is_property_set(self) -> bool:
|
|
414
|
-
"""Check if a property is set, use for testing operator properties.
|
|
415
|
-
|
|
416
|
-
:return: True when the property has been set.
|
|
417
|
-
:rtype: bool
|
|
418
|
-
"""
|
|
419
|
-
...
|
|
420
|
-
|
|
421
|
-
def items(self):
|
|
422
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
423
|
-
dictionary function of the same name).
|
|
424
|
-
|
|
425
|
-
:return: custom property key, value pairs.
|
|
426
|
-
"""
|
|
427
|
-
...
|
|
428
|
-
|
|
429
|
-
def keyframe_delete(self) -> bool:
|
|
430
|
-
"""Remove a keyframe from this properties fcurve.
|
|
431
|
-
|
|
432
|
-
:return: Success of keyframe deletion.
|
|
433
|
-
:rtype: bool
|
|
434
|
-
"""
|
|
435
|
-
...
|
|
436
|
-
|
|
437
|
-
def keyframe_insert(self) -> bool:
|
|
438
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
439
|
-
|
|
440
|
-
:return: Success of keyframe insertion.
|
|
441
|
-
:rtype: bool
|
|
442
|
-
"""
|
|
443
|
-
...
|
|
444
|
-
|
|
445
|
-
def keys(self):
|
|
446
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
447
|
-
dictionary function of the same name).
|
|
448
|
-
|
|
449
|
-
:return: custom property keys.
|
|
450
|
-
"""
|
|
451
|
-
...
|
|
452
|
-
|
|
453
|
-
def path_from_id(self) -> str:
|
|
454
|
-
"""Returns the data path from the ID to this object (string).
|
|
455
|
-
|
|
456
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
457
|
-
to this struct and property (when given).
|
|
458
|
-
:rtype: str
|
|
459
|
-
"""
|
|
460
|
-
...
|
|
461
|
-
|
|
462
|
-
def path_resolve(self):
|
|
463
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
464
|
-
...
|
|
465
|
-
|
|
466
|
-
def pop(self):
|
|
467
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
468
|
-
when not found (matches Python's dictionary function of the same name).
|
|
469
|
-
|
|
470
|
-
"""
|
|
471
|
-
...
|
|
472
|
-
|
|
473
|
-
def prepend(self, draw_func):
|
|
474
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
475
|
-
the menus draw function
|
|
476
|
-
|
|
477
|
-
:param draw_func:
|
|
478
|
-
"""
|
|
479
|
-
...
|
|
480
|
-
|
|
481
|
-
def property_overridable_library_set(self) -> bool:
|
|
482
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
483
|
-
|
|
484
|
-
:return: True when the overridable status of the property was successfully set.
|
|
485
|
-
:rtype: bool
|
|
486
|
-
"""
|
|
487
|
-
...
|
|
488
|
-
|
|
489
|
-
def property_unset(self):
|
|
490
|
-
"""Unset a property, will use default value afterward."""
|
|
491
|
-
...
|
|
492
|
-
|
|
493
|
-
def remove(self, draw_func):
|
|
494
|
-
"""Remove a draw function that has been added to this menu
|
|
495
|
-
|
|
496
|
-
:param draw_func:
|
|
497
|
-
"""
|
|
498
|
-
...
|
|
499
|
-
|
|
500
|
-
def type_recast(self):
|
|
501
|
-
"""Return a new instance, this is needed because types
|
|
502
|
-
such as textures can be changed at runtime.
|
|
503
|
-
|
|
504
|
-
:return: a new instance of this object with the type initialized again.
|
|
505
|
-
"""
|
|
506
|
-
...
|
|
507
|
-
|
|
508
|
-
def values(self):
|
|
509
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
510
|
-
dictionary function of the same name).
|
|
511
|
-
|
|
512
|
-
:return: custom property values.
|
|
513
|
-
"""
|
|
514
|
-
...
|
|
515
|
-
|
|
516
|
-
class GPMaterialButtonsPanel:
|
|
517
|
-
bl_context: typing.Any
|
|
518
|
-
bl_region_type: typing.Any
|
|
519
|
-
bl_space_type: typing.Any
|
|
520
|
-
|
|
521
|
-
@classmethod
|
|
522
|
-
def poll(cls, context):
|
|
523
|
-
"""
|
|
524
|
-
|
|
525
|
-
:param context:
|
|
526
|
-
"""
|
|
527
|
-
...
|
|
528
|
-
|
|
529
|
-
class MATERIAL_PT_gpencil_custom_props(
|
|
530
|
-
GPMaterialButtonsPanel, rna_prop_ui.PropertyPanel, bpy_types._GenericUI
|
|
531
|
-
):
|
|
532
|
-
"""The subclass should have its own poll function
|
|
533
|
-
and the variable '_context_path' MUST be set.
|
|
534
|
-
"""
|
|
535
|
-
|
|
536
|
-
COMPAT_ENGINES: typing.Any
|
|
537
|
-
bl_context: typing.Any
|
|
538
|
-
bl_label: typing.Any
|
|
539
|
-
bl_options: typing.Any
|
|
540
|
-
bl_order: typing.Any
|
|
541
|
-
bl_region_type: typing.Any
|
|
542
|
-
bl_rna: typing.Any
|
|
543
|
-
bl_space_type: typing.Any
|
|
544
|
-
id_data: typing.Any
|
|
545
|
-
|
|
546
|
-
def append(self, draw_func):
|
|
547
|
-
"""Append a draw function to this menu,
|
|
548
|
-
takes the same arguments as the menus draw function
|
|
549
|
-
|
|
550
|
-
:param draw_func:
|
|
551
|
-
"""
|
|
552
|
-
...
|
|
553
|
-
|
|
554
|
-
def as_pointer(self) -> int:
|
|
555
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
556
|
-
|
|
557
|
-
:return: int (memory address).
|
|
558
|
-
:rtype: int
|
|
559
|
-
"""
|
|
560
|
-
...
|
|
561
|
-
|
|
562
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
563
|
-
"""
|
|
564
|
-
|
|
565
|
-
:return: The RNA type or default when not found.
|
|
566
|
-
:rtype: bpy.types.Struct
|
|
567
|
-
"""
|
|
568
|
-
...
|
|
569
|
-
|
|
570
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
571
|
-
"""
|
|
572
|
-
|
|
573
|
-
:return: The class or default when not found.
|
|
574
|
-
:rtype: typing.Any
|
|
575
|
-
"""
|
|
576
|
-
...
|
|
577
|
-
|
|
578
|
-
def draw(self, context):
|
|
579
|
-
"""
|
|
580
|
-
|
|
581
|
-
:param context:
|
|
582
|
-
"""
|
|
583
|
-
...
|
|
584
|
-
|
|
585
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
586
|
-
"""Adds driver(s) to the given property
|
|
587
|
-
|
|
588
|
-
:return: The driver(s) added.
|
|
589
|
-
:rtype: bpy.types.FCurve
|
|
590
|
-
"""
|
|
591
|
-
...
|
|
592
|
-
|
|
593
|
-
def driver_remove(self) -> bool:
|
|
594
|
-
"""Remove driver(s) from the given property
|
|
595
|
-
|
|
596
|
-
:return: Success of driver removal.
|
|
597
|
-
:rtype: bool
|
|
598
|
-
"""
|
|
599
|
-
...
|
|
600
|
-
|
|
601
|
-
def get(self):
|
|
602
|
-
"""Returns the value of the custom property assigned to key or default
|
|
603
|
-
when not found (matches Python's dictionary function of the same name).
|
|
604
|
-
|
|
605
|
-
"""
|
|
606
|
-
...
|
|
607
|
-
|
|
608
|
-
def id_properties_clear(self):
|
|
609
|
-
"""
|
|
610
|
-
|
|
611
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
612
|
-
"""
|
|
613
|
-
...
|
|
614
|
-
|
|
615
|
-
def id_properties_ensure(self):
|
|
616
|
-
"""
|
|
617
|
-
|
|
618
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
619
|
-
"""
|
|
620
|
-
...
|
|
621
|
-
|
|
622
|
-
def id_properties_ui(self):
|
|
623
|
-
"""
|
|
624
|
-
|
|
625
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
626
|
-
"""
|
|
627
|
-
...
|
|
628
|
-
|
|
629
|
-
def is_extended(self): ...
|
|
630
|
-
def is_property_hidden(self) -> bool:
|
|
631
|
-
"""Check if a property is hidden.
|
|
632
|
-
|
|
633
|
-
:return: True when the property is hidden.
|
|
634
|
-
:rtype: bool
|
|
635
|
-
"""
|
|
636
|
-
...
|
|
637
|
-
|
|
638
|
-
def is_property_overridable_library(self) -> bool:
|
|
639
|
-
"""Check if a property is overridable.
|
|
640
|
-
|
|
641
|
-
:return: True when the property is overridable.
|
|
642
|
-
:rtype: bool
|
|
643
|
-
"""
|
|
644
|
-
...
|
|
645
|
-
|
|
646
|
-
def is_property_readonly(self) -> bool:
|
|
647
|
-
"""Check if a property is readonly.
|
|
648
|
-
|
|
649
|
-
:return: True when the property is readonly (not writable).
|
|
650
|
-
:rtype: bool
|
|
651
|
-
"""
|
|
652
|
-
...
|
|
653
|
-
|
|
654
|
-
def is_property_set(self) -> bool:
|
|
655
|
-
"""Check if a property is set, use for testing operator properties.
|
|
656
|
-
|
|
657
|
-
:return: True when the property has been set.
|
|
658
|
-
:rtype: bool
|
|
659
|
-
"""
|
|
660
|
-
...
|
|
661
|
-
|
|
662
|
-
def items(self):
|
|
663
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
664
|
-
dictionary function of the same name).
|
|
665
|
-
|
|
666
|
-
:return: custom property key, value pairs.
|
|
667
|
-
"""
|
|
668
|
-
...
|
|
669
|
-
|
|
670
|
-
def keyframe_delete(self) -> bool:
|
|
671
|
-
"""Remove a keyframe from this properties fcurve.
|
|
672
|
-
|
|
673
|
-
:return: Success of keyframe deletion.
|
|
674
|
-
:rtype: bool
|
|
675
|
-
"""
|
|
676
|
-
...
|
|
677
|
-
|
|
678
|
-
def keyframe_insert(self) -> bool:
|
|
679
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
680
|
-
|
|
681
|
-
:return: Success of keyframe insertion.
|
|
682
|
-
:rtype: bool
|
|
683
|
-
"""
|
|
684
|
-
...
|
|
685
|
-
|
|
686
|
-
def keys(self):
|
|
687
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
688
|
-
dictionary function of the same name).
|
|
689
|
-
|
|
690
|
-
:return: custom property keys.
|
|
691
|
-
"""
|
|
692
|
-
...
|
|
693
|
-
|
|
694
|
-
def path_from_id(self) -> str:
|
|
695
|
-
"""Returns the data path from the ID to this object (string).
|
|
696
|
-
|
|
697
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
698
|
-
to this struct and property (when given).
|
|
699
|
-
:rtype: str
|
|
700
|
-
"""
|
|
701
|
-
...
|
|
702
|
-
|
|
703
|
-
def path_resolve(self):
|
|
704
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
705
|
-
...
|
|
706
|
-
|
|
707
|
-
def poll(self, context):
|
|
708
|
-
"""
|
|
709
|
-
|
|
710
|
-
:param context:
|
|
711
|
-
"""
|
|
712
|
-
...
|
|
713
|
-
|
|
714
|
-
def pop(self):
|
|
715
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
716
|
-
when not found (matches Python's dictionary function of the same name).
|
|
717
|
-
|
|
718
|
-
"""
|
|
719
|
-
...
|
|
720
|
-
|
|
721
|
-
def prepend(self, draw_func):
|
|
722
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
723
|
-
the menus draw function
|
|
724
|
-
|
|
725
|
-
:param draw_func:
|
|
726
|
-
"""
|
|
727
|
-
...
|
|
728
|
-
|
|
729
|
-
def property_overridable_library_set(self) -> bool:
|
|
730
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
731
|
-
|
|
732
|
-
:return: True when the overridable status of the property was successfully set.
|
|
733
|
-
:rtype: bool
|
|
734
|
-
"""
|
|
735
|
-
...
|
|
736
|
-
|
|
737
|
-
def property_unset(self):
|
|
738
|
-
"""Unset a property, will use default value afterward."""
|
|
739
|
-
...
|
|
740
|
-
|
|
741
|
-
def remove(self, draw_func):
|
|
742
|
-
"""Remove a draw function that has been added to this menu
|
|
743
|
-
|
|
744
|
-
:param draw_func:
|
|
745
|
-
"""
|
|
746
|
-
...
|
|
747
|
-
|
|
748
|
-
def type_recast(self):
|
|
749
|
-
"""Return a new instance, this is needed because types
|
|
750
|
-
such as textures can be changed at runtime.
|
|
751
|
-
|
|
752
|
-
:return: a new instance of this object with the type initialized again.
|
|
753
|
-
"""
|
|
754
|
-
...
|
|
755
|
-
|
|
756
|
-
def values(self):
|
|
757
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
758
|
-
dictionary function of the same name).
|
|
759
|
-
|
|
760
|
-
:return: custom property values.
|
|
761
|
-
"""
|
|
762
|
-
...
|
|
763
|
-
|
|
764
|
-
class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, bpy_types._GenericUI):
|
|
765
|
-
bl_context: typing.Any
|
|
766
|
-
bl_label: typing.Any
|
|
767
|
-
bl_parent_id: typing.Any
|
|
768
|
-
bl_region_type: typing.Any
|
|
769
|
-
bl_rna: typing.Any
|
|
770
|
-
bl_space_type: typing.Any
|
|
771
|
-
id_data: typing.Any
|
|
772
|
-
|
|
773
|
-
def append(self, draw_func):
|
|
774
|
-
"""Append a draw function to this menu,
|
|
775
|
-
takes the same arguments as the menus draw function
|
|
776
|
-
|
|
777
|
-
:param draw_func:
|
|
778
|
-
"""
|
|
779
|
-
...
|
|
780
|
-
|
|
781
|
-
def as_pointer(self) -> int:
|
|
782
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
783
|
-
|
|
784
|
-
:return: int (memory address).
|
|
785
|
-
:rtype: int
|
|
786
|
-
"""
|
|
787
|
-
...
|
|
788
|
-
|
|
789
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
790
|
-
"""
|
|
791
|
-
|
|
792
|
-
:return: The RNA type or default when not found.
|
|
793
|
-
:rtype: bpy.types.Struct
|
|
794
|
-
"""
|
|
795
|
-
...
|
|
796
|
-
|
|
797
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
798
|
-
"""
|
|
799
|
-
|
|
800
|
-
:return: The class or default when not found.
|
|
801
|
-
:rtype: typing.Any
|
|
802
|
-
"""
|
|
803
|
-
...
|
|
804
|
-
|
|
805
|
-
def draw(self, context):
|
|
806
|
-
"""
|
|
807
|
-
|
|
808
|
-
:param context:
|
|
809
|
-
"""
|
|
810
|
-
...
|
|
811
|
-
|
|
812
|
-
def draw_header(self, context):
|
|
813
|
-
"""
|
|
814
|
-
|
|
815
|
-
:param context:
|
|
816
|
-
"""
|
|
817
|
-
...
|
|
818
|
-
|
|
819
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
820
|
-
"""Adds driver(s) to the given property
|
|
821
|
-
|
|
822
|
-
:return: The driver(s) added.
|
|
823
|
-
:rtype: bpy.types.FCurve
|
|
824
|
-
"""
|
|
825
|
-
...
|
|
826
|
-
|
|
827
|
-
def driver_remove(self) -> bool:
|
|
828
|
-
"""Remove driver(s) from the given property
|
|
829
|
-
|
|
830
|
-
:return: Success of driver removal.
|
|
831
|
-
:rtype: bool
|
|
832
|
-
"""
|
|
833
|
-
...
|
|
834
|
-
|
|
835
|
-
def get(self):
|
|
836
|
-
"""Returns the value of the custom property assigned to key or default
|
|
837
|
-
when not found (matches Python's dictionary function of the same name).
|
|
838
|
-
|
|
839
|
-
"""
|
|
840
|
-
...
|
|
841
|
-
|
|
842
|
-
def id_properties_clear(self):
|
|
843
|
-
"""
|
|
844
|
-
|
|
845
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
846
|
-
"""
|
|
847
|
-
...
|
|
848
|
-
|
|
849
|
-
def id_properties_ensure(self):
|
|
850
|
-
"""
|
|
851
|
-
|
|
852
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
853
|
-
"""
|
|
854
|
-
...
|
|
855
|
-
|
|
856
|
-
def id_properties_ui(self):
|
|
857
|
-
"""
|
|
858
|
-
|
|
859
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
860
|
-
"""
|
|
861
|
-
...
|
|
862
|
-
|
|
863
|
-
def is_extended(self): ...
|
|
864
|
-
def is_property_hidden(self) -> bool:
|
|
865
|
-
"""Check if a property is hidden.
|
|
866
|
-
|
|
867
|
-
:return: True when the property is hidden.
|
|
868
|
-
:rtype: bool
|
|
869
|
-
"""
|
|
870
|
-
...
|
|
871
|
-
|
|
872
|
-
def is_property_overridable_library(self) -> bool:
|
|
873
|
-
"""Check if a property is overridable.
|
|
874
|
-
|
|
875
|
-
:return: True when the property is overridable.
|
|
876
|
-
:rtype: bool
|
|
877
|
-
"""
|
|
878
|
-
...
|
|
879
|
-
|
|
880
|
-
def is_property_readonly(self) -> bool:
|
|
881
|
-
"""Check if a property is readonly.
|
|
882
|
-
|
|
883
|
-
:return: True when the property is readonly (not writable).
|
|
884
|
-
:rtype: bool
|
|
885
|
-
"""
|
|
886
|
-
...
|
|
887
|
-
|
|
888
|
-
def is_property_set(self) -> bool:
|
|
889
|
-
"""Check if a property is set, use for testing operator properties.
|
|
890
|
-
|
|
891
|
-
:return: True when the property has been set.
|
|
892
|
-
:rtype: bool
|
|
893
|
-
"""
|
|
894
|
-
...
|
|
895
|
-
|
|
896
|
-
def items(self):
|
|
897
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
898
|
-
dictionary function of the same name).
|
|
899
|
-
|
|
900
|
-
:return: custom property key, value pairs.
|
|
901
|
-
"""
|
|
902
|
-
...
|
|
903
|
-
|
|
904
|
-
def keyframe_delete(self) -> bool:
|
|
905
|
-
"""Remove a keyframe from this properties fcurve.
|
|
906
|
-
|
|
907
|
-
:return: Success of keyframe deletion.
|
|
908
|
-
:rtype: bool
|
|
909
|
-
"""
|
|
910
|
-
...
|
|
911
|
-
|
|
912
|
-
def keyframe_insert(self) -> bool:
|
|
913
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
914
|
-
|
|
915
|
-
:return: Success of keyframe insertion.
|
|
916
|
-
:rtype: bool
|
|
917
|
-
"""
|
|
918
|
-
...
|
|
919
|
-
|
|
920
|
-
def keys(self):
|
|
921
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
922
|
-
dictionary function of the same name).
|
|
923
|
-
|
|
924
|
-
:return: custom property keys.
|
|
925
|
-
"""
|
|
926
|
-
...
|
|
927
|
-
|
|
928
|
-
def path_from_id(self) -> str:
|
|
929
|
-
"""Returns the data path from the ID to this object (string).
|
|
930
|
-
|
|
931
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
932
|
-
to this struct and property (when given).
|
|
933
|
-
:rtype: str
|
|
934
|
-
"""
|
|
935
|
-
...
|
|
936
|
-
|
|
937
|
-
def path_resolve(self):
|
|
938
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
939
|
-
...
|
|
940
|
-
|
|
941
|
-
def poll(self, context):
|
|
942
|
-
"""
|
|
943
|
-
|
|
944
|
-
:param context:
|
|
945
|
-
"""
|
|
946
|
-
...
|
|
947
|
-
|
|
948
|
-
def pop(self):
|
|
949
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
950
|
-
when not found (matches Python's dictionary function of the same name).
|
|
951
|
-
|
|
952
|
-
"""
|
|
953
|
-
...
|
|
954
|
-
|
|
955
|
-
def prepend(self, draw_func):
|
|
956
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
957
|
-
the menus draw function
|
|
958
|
-
|
|
959
|
-
:param draw_func:
|
|
960
|
-
"""
|
|
961
|
-
...
|
|
962
|
-
|
|
963
|
-
def property_overridable_library_set(self) -> bool:
|
|
964
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
965
|
-
|
|
966
|
-
:return: True when the overridable status of the property was successfully set.
|
|
967
|
-
:rtype: bool
|
|
968
|
-
"""
|
|
969
|
-
...
|
|
970
|
-
|
|
971
|
-
def property_unset(self):
|
|
972
|
-
"""Unset a property, will use default value afterward."""
|
|
973
|
-
...
|
|
974
|
-
|
|
975
|
-
def remove(self, draw_func):
|
|
976
|
-
"""Remove a draw function that has been added to this menu
|
|
977
|
-
|
|
978
|
-
:param draw_func:
|
|
979
|
-
"""
|
|
980
|
-
...
|
|
981
|
-
|
|
982
|
-
def type_recast(self):
|
|
983
|
-
"""Return a new instance, this is needed because types
|
|
984
|
-
such as textures can be changed at runtime.
|
|
985
|
-
|
|
986
|
-
:return: a new instance of this object with the type initialized again.
|
|
987
|
-
"""
|
|
988
|
-
...
|
|
989
|
-
|
|
990
|
-
def values(self):
|
|
991
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
992
|
-
dictionary function of the same name).
|
|
993
|
-
|
|
994
|
-
:return: custom property values.
|
|
995
|
-
"""
|
|
996
|
-
...
|
|
997
|
-
|
|
998
|
-
class MATERIAL_PT_gpencil_material_presets(
|
|
999
|
-
bl_ui.utils.PresetPanel, bpy_types._GenericUI
|
|
1000
|
-
):
|
|
1001
|
-
"""Material settings"""
|
|
1002
|
-
|
|
1003
|
-
bl_label: typing.Any
|
|
1004
|
-
bl_region_type: typing.Any
|
|
1005
|
-
bl_rna: typing.Any
|
|
1006
|
-
bl_space_type: typing.Any
|
|
1007
|
-
id_data: typing.Any
|
|
1008
|
-
preset_add_operator: typing.Any
|
|
1009
|
-
preset_operator: typing.Any
|
|
1010
|
-
preset_subdir: typing.Any
|
|
1011
|
-
|
|
1012
|
-
def append(self, draw_func):
|
|
1013
|
-
"""Append a draw function to this menu,
|
|
1014
|
-
takes the same arguments as the menus draw function
|
|
1015
|
-
|
|
1016
|
-
:param draw_func:
|
|
1017
|
-
"""
|
|
1018
|
-
...
|
|
1019
|
-
|
|
1020
|
-
def as_pointer(self) -> int:
|
|
1021
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1022
|
-
|
|
1023
|
-
:return: int (memory address).
|
|
1024
|
-
:rtype: int
|
|
1025
|
-
"""
|
|
1026
|
-
...
|
|
1027
|
-
|
|
1028
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1029
|
-
"""
|
|
1030
|
-
|
|
1031
|
-
:return: The RNA type or default when not found.
|
|
1032
|
-
:rtype: bpy.types.Struct
|
|
1033
|
-
"""
|
|
1034
|
-
...
|
|
1035
|
-
|
|
1036
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1037
|
-
"""
|
|
1038
|
-
|
|
1039
|
-
:return: The class or default when not found.
|
|
1040
|
-
:rtype: typing.Any
|
|
1041
|
-
"""
|
|
1042
|
-
...
|
|
1043
|
-
|
|
1044
|
-
def draw(self, context):
|
|
1045
|
-
"""
|
|
1046
|
-
|
|
1047
|
-
:param context:
|
|
1048
|
-
"""
|
|
1049
|
-
...
|
|
1050
|
-
|
|
1051
|
-
def draw_menu(self, layout, text=None):
|
|
1052
|
-
"""
|
|
1053
|
-
|
|
1054
|
-
:param layout:
|
|
1055
|
-
:param text:
|
|
1056
|
-
"""
|
|
1057
|
-
...
|
|
1058
|
-
|
|
1059
|
-
def draw_panel_header(self, layout):
|
|
1060
|
-
"""
|
|
1061
|
-
|
|
1062
|
-
:param layout:
|
|
1063
|
-
"""
|
|
1064
|
-
...
|
|
1065
|
-
|
|
1066
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
1067
|
-
"""Adds driver(s) to the given property
|
|
1068
|
-
|
|
1069
|
-
:return: The driver(s) added.
|
|
1070
|
-
:rtype: bpy.types.FCurve
|
|
1071
|
-
"""
|
|
1072
|
-
...
|
|
1073
|
-
|
|
1074
|
-
def driver_remove(self) -> bool:
|
|
1075
|
-
"""Remove driver(s) from the given property
|
|
1076
|
-
|
|
1077
|
-
:return: Success of driver removal.
|
|
1078
|
-
:rtype: bool
|
|
1079
|
-
"""
|
|
1080
|
-
...
|
|
1081
|
-
|
|
1082
|
-
def get(self):
|
|
1083
|
-
"""Returns the value of the custom property assigned to key or default
|
|
1084
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1085
|
-
|
|
1086
|
-
"""
|
|
1087
|
-
...
|
|
1088
|
-
|
|
1089
|
-
def id_properties_clear(self):
|
|
1090
|
-
"""
|
|
1091
|
-
|
|
1092
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1093
|
-
"""
|
|
1094
|
-
...
|
|
1095
|
-
|
|
1096
|
-
def id_properties_ensure(self):
|
|
1097
|
-
"""
|
|
1098
|
-
|
|
1099
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1100
|
-
"""
|
|
1101
|
-
...
|
|
1102
|
-
|
|
1103
|
-
def id_properties_ui(self):
|
|
1104
|
-
"""
|
|
1105
|
-
|
|
1106
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
1107
|
-
"""
|
|
1108
|
-
...
|
|
1109
|
-
|
|
1110
|
-
def is_extended(self): ...
|
|
1111
|
-
def is_property_hidden(self) -> bool:
|
|
1112
|
-
"""Check if a property is hidden.
|
|
1113
|
-
|
|
1114
|
-
:return: True when the property is hidden.
|
|
1115
|
-
:rtype: bool
|
|
1116
|
-
"""
|
|
1117
|
-
...
|
|
1118
|
-
|
|
1119
|
-
def is_property_overridable_library(self) -> bool:
|
|
1120
|
-
"""Check if a property is overridable.
|
|
1121
|
-
|
|
1122
|
-
:return: True when the property is overridable.
|
|
1123
|
-
:rtype: bool
|
|
1124
|
-
"""
|
|
1125
|
-
...
|
|
1126
|
-
|
|
1127
|
-
def is_property_readonly(self) -> bool:
|
|
1128
|
-
"""Check if a property is readonly.
|
|
1129
|
-
|
|
1130
|
-
:return: True when the property is readonly (not writable).
|
|
1131
|
-
:rtype: bool
|
|
1132
|
-
"""
|
|
1133
|
-
...
|
|
1134
|
-
|
|
1135
|
-
def is_property_set(self) -> bool:
|
|
1136
|
-
"""Check if a property is set, use for testing operator properties.
|
|
1137
|
-
|
|
1138
|
-
:return: True when the property has been set.
|
|
1139
|
-
:rtype: bool
|
|
1140
|
-
"""
|
|
1141
|
-
...
|
|
1142
|
-
|
|
1143
|
-
def items(self):
|
|
1144
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
1145
|
-
dictionary function of the same name).
|
|
1146
|
-
|
|
1147
|
-
:return: custom property key, value pairs.
|
|
1148
|
-
"""
|
|
1149
|
-
...
|
|
1150
|
-
|
|
1151
|
-
def keyframe_delete(self) -> bool:
|
|
1152
|
-
"""Remove a keyframe from this properties fcurve.
|
|
1153
|
-
|
|
1154
|
-
:return: Success of keyframe deletion.
|
|
1155
|
-
:rtype: bool
|
|
1156
|
-
"""
|
|
1157
|
-
...
|
|
1158
|
-
|
|
1159
|
-
def keyframe_insert(self) -> bool:
|
|
1160
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1161
|
-
|
|
1162
|
-
:return: Success of keyframe insertion.
|
|
1163
|
-
:rtype: bool
|
|
1164
|
-
"""
|
|
1165
|
-
...
|
|
1166
|
-
|
|
1167
|
-
def keys(self):
|
|
1168
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
1169
|
-
dictionary function of the same name).
|
|
1170
|
-
|
|
1171
|
-
:return: custom property keys.
|
|
1172
|
-
"""
|
|
1173
|
-
...
|
|
1174
|
-
|
|
1175
|
-
def path_from_id(self) -> str:
|
|
1176
|
-
"""Returns the data path from the ID to this object (string).
|
|
1177
|
-
|
|
1178
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1179
|
-
to this struct and property (when given).
|
|
1180
|
-
:rtype: str
|
|
1181
|
-
"""
|
|
1182
|
-
...
|
|
1183
|
-
|
|
1184
|
-
def path_menu(
|
|
1185
|
-
self,
|
|
1186
|
-
searchpaths: list[str],
|
|
1187
|
-
operator: str,
|
|
1188
|
-
*,
|
|
1189
|
-
props_default: dict = None,
|
|
1190
|
-
prop_filepath: str | None = "filepath",
|
|
1191
|
-
filter_ext: collections.abc.Callable | None = None,
|
|
1192
|
-
filter_path=None,
|
|
1193
|
-
display_name: collections.abc.Callable | None = None,
|
|
1194
|
-
add_operator=None,
|
|
1195
|
-
add_operator_props=None,
|
|
1196
|
-
):
|
|
1197
|
-
"""Populate a menu from a list of paths.
|
|
1198
|
-
|
|
1199
|
-
:param searchpaths: Paths to scan.
|
|
1200
|
-
:type searchpaths: list[str]
|
|
1201
|
-
:param operator: The operator id to use with each file.
|
|
1202
|
-
:type operator: str
|
|
1203
|
-
:param props_default: Properties to assign to each operator.
|
|
1204
|
-
:type props_default: dict
|
|
1205
|
-
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1206
|
-
:type prop_filepath: str | None
|
|
1207
|
-
:param filter_ext: Optional callback that takes the file extensions.
|
|
1208
|
-
|
|
1209
|
-
Returning false excludes the file from the list.
|
|
1210
|
-
:type filter_ext: collections.abc.Callable | None
|
|
1211
|
-
:param filter_path:
|
|
1212
|
-
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1213
|
-
:type display_name: collections.abc.Callable | None
|
|
1214
|
-
:param add_operator:
|
|
1215
|
-
:param add_operator_props:
|
|
1216
|
-
"""
|
|
1217
|
-
...
|
|
1218
|
-
|
|
1219
|
-
def path_resolve(self):
|
|
1220
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
1221
|
-
...
|
|
1222
|
-
|
|
1223
|
-
def pop(self):
|
|
1224
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
1225
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1226
|
-
|
|
1227
|
-
"""
|
|
1228
|
-
...
|
|
1229
|
-
|
|
1230
|
-
def prepend(self, draw_func):
|
|
1231
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1232
|
-
the menus draw function
|
|
1233
|
-
|
|
1234
|
-
:param draw_func:
|
|
1235
|
-
"""
|
|
1236
|
-
...
|
|
1237
|
-
|
|
1238
|
-
def property_overridable_library_set(self) -> bool:
|
|
1239
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
1240
|
-
|
|
1241
|
-
:return: True when the overridable status of the property was successfully set.
|
|
1242
|
-
:rtype: bool
|
|
1243
|
-
"""
|
|
1244
|
-
...
|
|
1245
|
-
|
|
1246
|
-
def property_unset(self):
|
|
1247
|
-
"""Unset a property, will use default value afterward."""
|
|
1248
|
-
...
|
|
1249
|
-
|
|
1250
|
-
def remove(self, draw_func):
|
|
1251
|
-
"""Remove a draw function that has been added to this menu
|
|
1252
|
-
|
|
1253
|
-
:param draw_func:
|
|
1254
|
-
"""
|
|
1255
|
-
...
|
|
1256
|
-
|
|
1257
|
-
def type_recast(self):
|
|
1258
|
-
"""Return a new instance, this is needed because types
|
|
1259
|
-
such as textures can be changed at runtime.
|
|
1260
|
-
|
|
1261
|
-
:return: a new instance of this object with the type initialized again.
|
|
1262
|
-
"""
|
|
1263
|
-
...
|
|
1264
|
-
|
|
1265
|
-
def values(self):
|
|
1266
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
1267
|
-
dictionary function of the same name).
|
|
1268
|
-
|
|
1269
|
-
:return: custom property values.
|
|
1270
|
-
"""
|
|
1271
|
-
...
|
|
1272
|
-
|
|
1273
|
-
class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, bpy_types._GenericUI):
|
|
1274
|
-
COMPAT_ENGINES: typing.Any
|
|
1275
|
-
bl_context: typing.Any
|
|
1276
|
-
bl_label: typing.Any
|
|
1277
|
-
bl_options: typing.Any
|
|
1278
|
-
bl_region_type: typing.Any
|
|
1279
|
-
bl_rna: typing.Any
|
|
1280
|
-
bl_space_type: typing.Any
|
|
1281
|
-
id_data: typing.Any
|
|
1282
|
-
|
|
1283
|
-
def append(self, draw_func):
|
|
1284
|
-
"""Append a draw function to this menu,
|
|
1285
|
-
takes the same arguments as the menus draw function
|
|
1286
|
-
|
|
1287
|
-
:param draw_func:
|
|
1288
|
-
"""
|
|
1289
|
-
...
|
|
1290
|
-
|
|
1291
|
-
def as_pointer(self) -> int:
|
|
1292
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1293
|
-
|
|
1294
|
-
:return: int (memory address).
|
|
1295
|
-
:rtype: int
|
|
1296
|
-
"""
|
|
1297
|
-
...
|
|
1298
|
-
|
|
1299
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1300
|
-
"""
|
|
1301
|
-
|
|
1302
|
-
:return: The RNA type or default when not found.
|
|
1303
|
-
:rtype: bpy.types.Struct
|
|
1304
|
-
"""
|
|
1305
|
-
...
|
|
1306
|
-
|
|
1307
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1308
|
-
"""
|
|
1309
|
-
|
|
1310
|
-
:return: The class or default when not found.
|
|
1311
|
-
:rtype: typing.Any
|
|
1312
|
-
"""
|
|
1313
|
-
...
|
|
1314
|
-
|
|
1315
|
-
def draw(self, context):
|
|
1316
|
-
"""
|
|
1317
|
-
|
|
1318
|
-
:param context:
|
|
1319
|
-
"""
|
|
1320
|
-
...
|
|
1321
|
-
|
|
1322
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
1323
|
-
"""Adds driver(s) to the given property
|
|
1324
|
-
|
|
1325
|
-
:return: The driver(s) added.
|
|
1326
|
-
:rtype: bpy.types.FCurve
|
|
1327
|
-
"""
|
|
1328
|
-
...
|
|
1329
|
-
|
|
1330
|
-
def driver_remove(self) -> bool:
|
|
1331
|
-
"""Remove driver(s) from the given property
|
|
1332
|
-
|
|
1333
|
-
:return: Success of driver removal.
|
|
1334
|
-
:rtype: bool
|
|
1335
|
-
"""
|
|
1336
|
-
...
|
|
1337
|
-
|
|
1338
|
-
def get(self):
|
|
1339
|
-
"""Returns the value of the custom property assigned to key or default
|
|
1340
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1341
|
-
|
|
1342
|
-
"""
|
|
1343
|
-
...
|
|
1344
|
-
|
|
1345
|
-
def id_properties_clear(self):
|
|
1346
|
-
"""
|
|
1347
|
-
|
|
1348
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1349
|
-
"""
|
|
1350
|
-
...
|
|
1351
|
-
|
|
1352
|
-
def id_properties_ensure(self):
|
|
1353
|
-
"""
|
|
1354
|
-
|
|
1355
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1356
|
-
"""
|
|
1357
|
-
...
|
|
1358
|
-
|
|
1359
|
-
def id_properties_ui(self):
|
|
1360
|
-
"""
|
|
1361
|
-
|
|
1362
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
1363
|
-
"""
|
|
1364
|
-
...
|
|
1365
|
-
|
|
1366
|
-
def is_extended(self): ...
|
|
1367
|
-
def is_property_hidden(self) -> bool:
|
|
1368
|
-
"""Check if a property is hidden.
|
|
1369
|
-
|
|
1370
|
-
:return: True when the property is hidden.
|
|
1371
|
-
:rtype: bool
|
|
1372
|
-
"""
|
|
1373
|
-
...
|
|
1374
|
-
|
|
1375
|
-
def is_property_overridable_library(self) -> bool:
|
|
1376
|
-
"""Check if a property is overridable.
|
|
1377
|
-
|
|
1378
|
-
:return: True when the property is overridable.
|
|
1379
|
-
:rtype: bool
|
|
1380
|
-
"""
|
|
1381
|
-
...
|
|
1382
|
-
|
|
1383
|
-
def is_property_readonly(self) -> bool:
|
|
1384
|
-
"""Check if a property is readonly.
|
|
1385
|
-
|
|
1386
|
-
:return: True when the property is readonly (not writable).
|
|
1387
|
-
:rtype: bool
|
|
1388
|
-
"""
|
|
1389
|
-
...
|
|
1390
|
-
|
|
1391
|
-
def is_property_set(self) -> bool:
|
|
1392
|
-
"""Check if a property is set, use for testing operator properties.
|
|
1393
|
-
|
|
1394
|
-
:return: True when the property has been set.
|
|
1395
|
-
:rtype: bool
|
|
1396
|
-
"""
|
|
1397
|
-
...
|
|
1398
|
-
|
|
1399
|
-
def items(self):
|
|
1400
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
1401
|
-
dictionary function of the same name).
|
|
1402
|
-
|
|
1403
|
-
:return: custom property key, value pairs.
|
|
1404
|
-
"""
|
|
1405
|
-
...
|
|
1406
|
-
|
|
1407
|
-
def keyframe_delete(self) -> bool:
|
|
1408
|
-
"""Remove a keyframe from this properties fcurve.
|
|
1409
|
-
|
|
1410
|
-
:return: Success of keyframe deletion.
|
|
1411
|
-
:rtype: bool
|
|
1412
|
-
"""
|
|
1413
|
-
...
|
|
1414
|
-
|
|
1415
|
-
def keyframe_insert(self) -> bool:
|
|
1416
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1417
|
-
|
|
1418
|
-
:return: Success of keyframe insertion.
|
|
1419
|
-
:rtype: bool
|
|
1420
|
-
"""
|
|
1421
|
-
...
|
|
1422
|
-
|
|
1423
|
-
def keys(self):
|
|
1424
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
1425
|
-
dictionary function of the same name).
|
|
1426
|
-
|
|
1427
|
-
:return: custom property keys.
|
|
1428
|
-
"""
|
|
1429
|
-
...
|
|
1430
|
-
|
|
1431
|
-
def path_from_id(self) -> str:
|
|
1432
|
-
"""Returns the data path from the ID to this object (string).
|
|
1433
|
-
|
|
1434
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1435
|
-
to this struct and property (when given).
|
|
1436
|
-
:rtype: str
|
|
1437
|
-
"""
|
|
1438
|
-
...
|
|
1439
|
-
|
|
1440
|
-
def path_resolve(self):
|
|
1441
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
1442
|
-
...
|
|
1443
|
-
|
|
1444
|
-
def poll(self, context):
|
|
1445
|
-
"""
|
|
1446
|
-
|
|
1447
|
-
:param context:
|
|
1448
|
-
"""
|
|
1449
|
-
...
|
|
1450
|
-
|
|
1451
|
-
def pop(self):
|
|
1452
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
1453
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1454
|
-
|
|
1455
|
-
"""
|
|
1456
|
-
...
|
|
1457
|
-
|
|
1458
|
-
def prepend(self, draw_func):
|
|
1459
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1460
|
-
the menus draw function
|
|
1461
|
-
|
|
1462
|
-
:param draw_func:
|
|
1463
|
-
"""
|
|
1464
|
-
...
|
|
1465
|
-
|
|
1466
|
-
def property_overridable_library_set(self) -> bool:
|
|
1467
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
1468
|
-
|
|
1469
|
-
:return: True when the overridable status of the property was successfully set.
|
|
1470
|
-
:rtype: bool
|
|
1471
|
-
"""
|
|
1472
|
-
...
|
|
1473
|
-
|
|
1474
|
-
def property_unset(self):
|
|
1475
|
-
"""Unset a property, will use default value afterward."""
|
|
1476
|
-
...
|
|
1477
|
-
|
|
1478
|
-
def remove(self, draw_func):
|
|
1479
|
-
"""Remove a draw function that has been added to this menu
|
|
1480
|
-
|
|
1481
|
-
:param draw_func:
|
|
1482
|
-
"""
|
|
1483
|
-
...
|
|
1484
|
-
|
|
1485
|
-
def type_recast(self):
|
|
1486
|
-
"""Return a new instance, this is needed because types
|
|
1487
|
-
such as textures can be changed at runtime.
|
|
1488
|
-
|
|
1489
|
-
:return: a new instance of this object with the type initialized again.
|
|
1490
|
-
"""
|
|
1491
|
-
...
|
|
1492
|
-
|
|
1493
|
-
def values(self):
|
|
1494
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
1495
|
-
dictionary function of the same name).
|
|
1496
|
-
|
|
1497
|
-
:return: custom property values.
|
|
1498
|
-
"""
|
|
1499
|
-
...
|
|
1500
|
-
|
|
1501
|
-
class MATERIAL_PT_gpencil_settings(GPMaterialButtonsPanel, bpy_types._GenericUI):
|
|
1502
|
-
bl_context: typing.Any
|
|
1503
|
-
bl_label: typing.Any
|
|
1504
|
-
bl_options: typing.Any
|
|
1505
|
-
bl_region_type: typing.Any
|
|
1506
|
-
bl_rna: typing.Any
|
|
1507
|
-
bl_space_type: typing.Any
|
|
1508
|
-
id_data: typing.Any
|
|
1509
|
-
|
|
1510
|
-
def append(self, draw_func):
|
|
1511
|
-
"""Append a draw function to this menu,
|
|
1512
|
-
takes the same arguments as the menus draw function
|
|
1513
|
-
|
|
1514
|
-
:param draw_func:
|
|
1515
|
-
"""
|
|
1516
|
-
...
|
|
1517
|
-
|
|
1518
|
-
def as_pointer(self) -> int:
|
|
1519
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1520
|
-
|
|
1521
|
-
:return: int (memory address).
|
|
1522
|
-
:rtype: int
|
|
1523
|
-
"""
|
|
1524
|
-
...
|
|
1525
|
-
|
|
1526
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1527
|
-
"""
|
|
1528
|
-
|
|
1529
|
-
:return: The RNA type or default when not found.
|
|
1530
|
-
:rtype: bpy.types.Struct
|
|
1531
|
-
"""
|
|
1532
|
-
...
|
|
1533
|
-
|
|
1534
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1535
|
-
"""
|
|
1536
|
-
|
|
1537
|
-
:return: The class or default when not found.
|
|
1538
|
-
:rtype: typing.Any
|
|
1539
|
-
"""
|
|
1540
|
-
...
|
|
1541
|
-
|
|
1542
|
-
def draw(self, context):
|
|
1543
|
-
"""
|
|
1544
|
-
|
|
1545
|
-
:param context:
|
|
1546
|
-
"""
|
|
1547
|
-
...
|
|
1548
|
-
|
|
1549
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
1550
|
-
"""Adds driver(s) to the given property
|
|
1551
|
-
|
|
1552
|
-
:return: The driver(s) added.
|
|
1553
|
-
:rtype: bpy.types.FCurve
|
|
1554
|
-
"""
|
|
1555
|
-
...
|
|
1556
|
-
|
|
1557
|
-
def driver_remove(self) -> bool:
|
|
1558
|
-
"""Remove driver(s) from the given property
|
|
1559
|
-
|
|
1560
|
-
:return: Success of driver removal.
|
|
1561
|
-
:rtype: bool
|
|
1562
|
-
"""
|
|
1563
|
-
...
|
|
1564
|
-
|
|
1565
|
-
def get(self):
|
|
1566
|
-
"""Returns the value of the custom property assigned to key or default
|
|
1567
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1568
|
-
|
|
1569
|
-
"""
|
|
1570
|
-
...
|
|
1571
|
-
|
|
1572
|
-
def id_properties_clear(self):
|
|
1573
|
-
"""
|
|
1574
|
-
|
|
1575
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1576
|
-
"""
|
|
1577
|
-
...
|
|
1578
|
-
|
|
1579
|
-
def id_properties_ensure(self):
|
|
1580
|
-
"""
|
|
1581
|
-
|
|
1582
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1583
|
-
"""
|
|
1584
|
-
...
|
|
1585
|
-
|
|
1586
|
-
def id_properties_ui(self):
|
|
1587
|
-
"""
|
|
1588
|
-
|
|
1589
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
1590
|
-
"""
|
|
1591
|
-
...
|
|
1592
|
-
|
|
1593
|
-
def is_extended(self): ...
|
|
1594
|
-
def is_property_hidden(self) -> bool:
|
|
1595
|
-
"""Check if a property is hidden.
|
|
1596
|
-
|
|
1597
|
-
:return: True when the property is hidden.
|
|
1598
|
-
:rtype: bool
|
|
1599
|
-
"""
|
|
1600
|
-
...
|
|
1601
|
-
|
|
1602
|
-
def is_property_overridable_library(self) -> bool:
|
|
1603
|
-
"""Check if a property is overridable.
|
|
1604
|
-
|
|
1605
|
-
:return: True when the property is overridable.
|
|
1606
|
-
:rtype: bool
|
|
1607
|
-
"""
|
|
1608
|
-
...
|
|
1609
|
-
|
|
1610
|
-
def is_property_readonly(self) -> bool:
|
|
1611
|
-
"""Check if a property is readonly.
|
|
1612
|
-
|
|
1613
|
-
:return: True when the property is readonly (not writable).
|
|
1614
|
-
:rtype: bool
|
|
1615
|
-
"""
|
|
1616
|
-
...
|
|
1617
|
-
|
|
1618
|
-
def is_property_set(self) -> bool:
|
|
1619
|
-
"""Check if a property is set, use for testing operator properties.
|
|
1620
|
-
|
|
1621
|
-
:return: True when the property has been set.
|
|
1622
|
-
:rtype: bool
|
|
1623
|
-
"""
|
|
1624
|
-
...
|
|
1625
|
-
|
|
1626
|
-
def items(self):
|
|
1627
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
1628
|
-
dictionary function of the same name).
|
|
1629
|
-
|
|
1630
|
-
:return: custom property key, value pairs.
|
|
1631
|
-
"""
|
|
1632
|
-
...
|
|
1633
|
-
|
|
1634
|
-
def keyframe_delete(self) -> bool:
|
|
1635
|
-
"""Remove a keyframe from this properties fcurve.
|
|
1636
|
-
|
|
1637
|
-
:return: Success of keyframe deletion.
|
|
1638
|
-
:rtype: bool
|
|
1639
|
-
"""
|
|
1640
|
-
...
|
|
1641
|
-
|
|
1642
|
-
def keyframe_insert(self) -> bool:
|
|
1643
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1644
|
-
|
|
1645
|
-
:return: Success of keyframe insertion.
|
|
1646
|
-
:rtype: bool
|
|
1647
|
-
"""
|
|
1648
|
-
...
|
|
1649
|
-
|
|
1650
|
-
def keys(self):
|
|
1651
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
1652
|
-
dictionary function of the same name).
|
|
1653
|
-
|
|
1654
|
-
:return: custom property keys.
|
|
1655
|
-
"""
|
|
1656
|
-
...
|
|
1657
|
-
|
|
1658
|
-
def path_from_id(self) -> str:
|
|
1659
|
-
"""Returns the data path from the ID to this object (string).
|
|
1660
|
-
|
|
1661
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1662
|
-
to this struct and property (when given).
|
|
1663
|
-
:rtype: str
|
|
1664
|
-
"""
|
|
1665
|
-
...
|
|
1666
|
-
|
|
1667
|
-
def path_resolve(self):
|
|
1668
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
1669
|
-
...
|
|
1670
|
-
|
|
1671
|
-
def poll(self, context):
|
|
1672
|
-
"""
|
|
1673
|
-
|
|
1674
|
-
:param context:
|
|
1675
|
-
"""
|
|
1676
|
-
...
|
|
1677
|
-
|
|
1678
|
-
def pop(self):
|
|
1679
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
1680
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1681
|
-
|
|
1682
|
-
"""
|
|
1683
|
-
...
|
|
1684
|
-
|
|
1685
|
-
def prepend(self, draw_func):
|
|
1686
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1687
|
-
the menus draw function
|
|
1688
|
-
|
|
1689
|
-
:param draw_func:
|
|
1690
|
-
"""
|
|
1691
|
-
...
|
|
1692
|
-
|
|
1693
|
-
def property_overridable_library_set(self) -> bool:
|
|
1694
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
1695
|
-
|
|
1696
|
-
:return: True when the overridable status of the property was successfully set.
|
|
1697
|
-
:rtype: bool
|
|
1698
|
-
"""
|
|
1699
|
-
...
|
|
1700
|
-
|
|
1701
|
-
def property_unset(self):
|
|
1702
|
-
"""Unset a property, will use default value afterward."""
|
|
1703
|
-
...
|
|
1704
|
-
|
|
1705
|
-
def remove(self, draw_func):
|
|
1706
|
-
"""Remove a draw function that has been added to this menu
|
|
1707
|
-
|
|
1708
|
-
:param draw_func:
|
|
1709
|
-
"""
|
|
1710
|
-
...
|
|
1711
|
-
|
|
1712
|
-
def type_recast(self):
|
|
1713
|
-
"""Return a new instance, this is needed because types
|
|
1714
|
-
such as textures can be changed at runtime.
|
|
1715
|
-
|
|
1716
|
-
:return: a new instance of this object with the type initialized again.
|
|
1717
|
-
"""
|
|
1718
|
-
...
|
|
1719
|
-
|
|
1720
|
-
def values(self):
|
|
1721
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
1722
|
-
dictionary function of the same name).
|
|
1723
|
-
|
|
1724
|
-
:return: custom property values.
|
|
1725
|
-
"""
|
|
1726
|
-
...
|
|
1727
|
-
|
|
1728
|
-
class MATERIAL_PT_gpencil_slots(
|
|
1729
|
-
bl_ui.properties_grease_pencil_common.GreasePencilMaterialsPanel,
|
|
1730
|
-
bpy_types._GenericUI,
|
|
1731
|
-
):
|
|
1732
|
-
bl_context: typing.Any
|
|
1733
|
-
bl_label: typing.Any
|
|
1734
|
-
bl_options: typing.Any
|
|
1735
|
-
bl_region_type: typing.Any
|
|
1736
|
-
bl_rna: typing.Any
|
|
1737
|
-
bl_space_type: typing.Any
|
|
1738
|
-
id_data: typing.Any
|
|
1739
|
-
|
|
1740
|
-
def append(self, draw_func):
|
|
1741
|
-
"""Append a draw function to this menu,
|
|
1742
|
-
takes the same arguments as the menus draw function
|
|
1743
|
-
|
|
1744
|
-
:param draw_func:
|
|
1745
|
-
"""
|
|
1746
|
-
...
|
|
1747
|
-
|
|
1748
|
-
def as_pointer(self) -> int:
|
|
1749
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1750
|
-
|
|
1751
|
-
:return: int (memory address).
|
|
1752
|
-
:rtype: int
|
|
1753
|
-
"""
|
|
1754
|
-
...
|
|
1755
|
-
|
|
1756
|
-
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1757
|
-
"""
|
|
1758
|
-
|
|
1759
|
-
:return: The RNA type or default when not found.
|
|
1760
|
-
:rtype: bpy.types.Struct
|
|
1761
|
-
"""
|
|
1762
|
-
...
|
|
1763
|
-
|
|
1764
|
-
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
1765
|
-
"""
|
|
1766
|
-
|
|
1767
|
-
:return: The class or default when not found.
|
|
1768
|
-
:rtype: typing.Any
|
|
1769
|
-
"""
|
|
1770
|
-
...
|
|
1771
|
-
|
|
1772
|
-
def draw(self, context):
|
|
1773
|
-
"""
|
|
1774
|
-
|
|
1775
|
-
:param context:
|
|
1776
|
-
"""
|
|
1777
|
-
...
|
|
1778
|
-
|
|
1779
|
-
def driver_add(self) -> bpy.types.FCurve:
|
|
1780
|
-
"""Adds driver(s) to the given property
|
|
1781
|
-
|
|
1782
|
-
:return: The driver(s) added.
|
|
1783
|
-
:rtype: bpy.types.FCurve
|
|
1784
|
-
"""
|
|
1785
|
-
...
|
|
1786
|
-
|
|
1787
|
-
def driver_remove(self) -> bool:
|
|
1788
|
-
"""Remove driver(s) from the given property
|
|
1789
|
-
|
|
1790
|
-
:return: Success of driver removal.
|
|
1791
|
-
:rtype: bool
|
|
1792
|
-
"""
|
|
1793
|
-
...
|
|
1794
|
-
|
|
1795
|
-
def get(self):
|
|
1796
|
-
"""Returns the value of the custom property assigned to key or default
|
|
1797
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1798
|
-
|
|
1799
|
-
"""
|
|
1800
|
-
...
|
|
1801
|
-
|
|
1802
|
-
def id_properties_clear(self):
|
|
1803
|
-
"""
|
|
1804
|
-
|
|
1805
|
-
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
1806
|
-
"""
|
|
1807
|
-
...
|
|
1808
|
-
|
|
1809
|
-
def id_properties_ensure(self):
|
|
1810
|
-
"""
|
|
1811
|
-
|
|
1812
|
-
:return: the parent group for an RNA struct's custom IDProperties.
|
|
1813
|
-
"""
|
|
1814
|
-
...
|
|
1815
|
-
|
|
1816
|
-
def id_properties_ui(self):
|
|
1817
|
-
"""
|
|
1818
|
-
|
|
1819
|
-
:return: Return an object used to manage an IDProperty's UI data.
|
|
1820
|
-
"""
|
|
1821
|
-
...
|
|
1822
|
-
|
|
1823
|
-
def is_extended(self): ...
|
|
1824
|
-
def is_property_hidden(self) -> bool:
|
|
1825
|
-
"""Check if a property is hidden.
|
|
1826
|
-
|
|
1827
|
-
:return: True when the property is hidden.
|
|
1828
|
-
:rtype: bool
|
|
1829
|
-
"""
|
|
1830
|
-
...
|
|
1831
|
-
|
|
1832
|
-
def is_property_overridable_library(self) -> bool:
|
|
1833
|
-
"""Check if a property is overridable.
|
|
1834
|
-
|
|
1835
|
-
:return: True when the property is overridable.
|
|
1836
|
-
:rtype: bool
|
|
1837
|
-
"""
|
|
1838
|
-
...
|
|
1839
|
-
|
|
1840
|
-
def is_property_readonly(self) -> bool:
|
|
1841
|
-
"""Check if a property is readonly.
|
|
1842
|
-
|
|
1843
|
-
:return: True when the property is readonly (not writable).
|
|
1844
|
-
:rtype: bool
|
|
1845
|
-
"""
|
|
1846
|
-
...
|
|
1847
|
-
|
|
1848
|
-
def is_property_set(self) -> bool:
|
|
1849
|
-
"""Check if a property is set, use for testing operator properties.
|
|
1850
|
-
|
|
1851
|
-
:return: True when the property has been set.
|
|
1852
|
-
:rtype: bool
|
|
1853
|
-
"""
|
|
1854
|
-
...
|
|
1855
|
-
|
|
1856
|
-
def items(self):
|
|
1857
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
1858
|
-
dictionary function of the same name).
|
|
1859
|
-
|
|
1860
|
-
:return: custom property key, value pairs.
|
|
1861
|
-
"""
|
|
1862
|
-
...
|
|
1863
|
-
|
|
1864
|
-
def keyframe_delete(self) -> bool:
|
|
1865
|
-
"""Remove a keyframe from this properties fcurve.
|
|
1866
|
-
|
|
1867
|
-
:return: Success of keyframe deletion.
|
|
1868
|
-
:rtype: bool
|
|
1869
|
-
"""
|
|
1870
|
-
...
|
|
1871
|
-
|
|
1872
|
-
def keyframe_insert(self) -> bool:
|
|
1873
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
1874
|
-
|
|
1875
|
-
:return: Success of keyframe insertion.
|
|
1876
|
-
:rtype: bool
|
|
1877
|
-
"""
|
|
1878
|
-
...
|
|
1879
|
-
|
|
1880
|
-
def keys(self):
|
|
1881
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
1882
|
-
dictionary function of the same name).
|
|
1883
|
-
|
|
1884
|
-
:return: custom property keys.
|
|
1885
|
-
"""
|
|
1886
|
-
...
|
|
1887
|
-
|
|
1888
|
-
def path_from_id(self) -> str:
|
|
1889
|
-
"""Returns the data path from the ID to this object (string).
|
|
1890
|
-
|
|
1891
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
1892
|
-
to this struct and property (when given).
|
|
1893
|
-
:rtype: str
|
|
1894
|
-
"""
|
|
1895
|
-
...
|
|
1896
|
-
|
|
1897
|
-
def path_resolve(self):
|
|
1898
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
1899
|
-
...
|
|
1900
|
-
|
|
1901
|
-
@classmethod
|
|
1902
|
-
def poll(cls, context):
|
|
1903
|
-
"""
|
|
1904
|
-
|
|
1905
|
-
:param context:
|
|
1906
|
-
"""
|
|
1907
|
-
...
|
|
1908
|
-
|
|
1909
|
-
def pop(self):
|
|
1910
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
1911
|
-
when not found (matches Python's dictionary function of the same name).
|
|
1912
|
-
|
|
1913
|
-
"""
|
|
1914
|
-
...
|
|
1915
|
-
|
|
1916
|
-
def prepend(self, draw_func):
|
|
1917
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
1918
|
-
the menus draw function
|
|
1919
|
-
|
|
1920
|
-
:param draw_func:
|
|
1921
|
-
"""
|
|
1922
|
-
...
|
|
1923
|
-
|
|
1924
|
-
def property_overridable_library_set(self) -> bool:
|
|
1925
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
1926
|
-
|
|
1927
|
-
:return: True when the overridable status of the property was successfully set.
|
|
1928
|
-
:rtype: bool
|
|
1929
|
-
"""
|
|
1930
|
-
...
|
|
1931
|
-
|
|
1932
|
-
def property_unset(self):
|
|
1933
|
-
"""Unset a property, will use default value afterward."""
|
|
1934
|
-
...
|
|
1935
|
-
|
|
1936
|
-
def remove(self, draw_func):
|
|
1937
|
-
"""Remove a draw function that has been added to this menu
|
|
1938
|
-
|
|
1939
|
-
:param draw_func:
|
|
1940
|
-
"""
|
|
1941
|
-
...
|
|
1942
|
-
|
|
1943
|
-
def type_recast(self):
|
|
1944
|
-
"""Return a new instance, this is needed because types
|
|
1945
|
-
such as textures can be changed at runtime.
|
|
1946
|
-
|
|
1947
|
-
:return: a new instance of this object with the type initialized again.
|
|
1948
|
-
"""
|
|
1949
|
-
...
|
|
1950
|
-
|
|
1951
|
-
def values(self):
|
|
1952
|
-
"""Returns the values of this objects custom properties (matches Python's
|
|
1953
|
-
dictionary function of the same name).
|
|
1954
|
-
|
|
1955
|
-
:return: custom property values.
|
|
1956
|
-
"""
|
|
1957
|
-
...
|
|
1958
|
-
|
|
1959
|
-
class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, bpy_types._GenericUI):
|
|
1960
|
-
bl_context: typing.Any
|
|
1961
|
-
bl_label: typing.Any
|
|
1962
|
-
bl_parent_id: typing.Any
|
|
1963
|
-
bl_region_type: typing.Any
|
|
1964
|
-
bl_rna: typing.Any
|
|
1965
|
-
bl_space_type: typing.Any
|
|
1966
|
-
id_data: typing.Any
|
|
1967
|
-
|
|
1968
|
-
def append(self, draw_func):
|
|
1969
|
-
"""Append a draw function to this menu,
|
|
1970
|
-
takes the same arguments as the menus draw function
|
|
1971
|
-
|
|
1972
|
-
:param draw_func:
|
|
1973
|
-
"""
|
|
1974
|
-
...
|
|
1975
|
-
|
|
1976
|
-
def as_pointer(self) -> int:
|
|
1977
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
1978
|
-
|
|
1979
|
-
:return: int (memory address).
|
|
1980
|
-
:rtype: int
|
|
1981
|
-
"""
|
|
1982
|
-
...
|
|
1983
|
-
|
|
1984
18
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
1985
19
|
"""
|
|
1986
20
|
|
|
@@ -1997,223 +31,189 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, bpy_types._Generic
|
|
|
1997
31
|
"""
|
|
1998
32
|
...
|
|
1999
33
|
|
|
2000
|
-
def draw(self,
|
|
34
|
+
def draw(self, _context):
|
|
2001
35
|
"""
|
|
2002
36
|
|
|
2003
|
-
:param
|
|
37
|
+
:param _context:
|
|
2004
38
|
"""
|
|
2005
39
|
...
|
|
2006
40
|
|
|
2007
|
-
|
|
2008
|
-
|
|
41
|
+
class GPENCIL_UL_matslots(bpy.types.UIList, bpy_types._GenericUI):
|
|
42
|
+
bl_rna: typing.Any
|
|
43
|
+
id_data: typing.Any
|
|
2009
44
|
|
|
2010
|
-
|
|
45
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2011
46
|
"""
|
|
2012
|
-
...
|
|
2013
47
|
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
:return: The driver(s) added.
|
|
2018
|
-
:rtype: bpy.types.FCurve
|
|
48
|
+
:return: The RNA type or default when not found.
|
|
49
|
+
:rtype: bpy.types.Struct
|
|
2019
50
|
"""
|
|
2020
51
|
...
|
|
2021
52
|
|
|
2022
|
-
def
|
|
2023
|
-
"""Remove driver(s) from the given property
|
|
2024
|
-
|
|
2025
|
-
:return: Success of driver removal.
|
|
2026
|
-
:rtype: bool
|
|
53
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2027
54
|
"""
|
|
2028
|
-
...
|
|
2029
|
-
|
|
2030
|
-
def get(self):
|
|
2031
|
-
"""Returns the value of the custom property assigned to key or default
|
|
2032
|
-
when not found (matches Python's dictionary function of the same name).
|
|
2033
55
|
|
|
56
|
+
:return: The class or default when not found.
|
|
57
|
+
:rtype: typing.Any
|
|
2034
58
|
"""
|
|
2035
59
|
...
|
|
2036
60
|
|
|
2037
|
-
def
|
|
61
|
+
def draw_item(
|
|
62
|
+
self,
|
|
63
|
+
_context,
|
|
64
|
+
layout,
|
|
65
|
+
_data,
|
|
66
|
+
item,
|
|
67
|
+
icon,
|
|
68
|
+
_active_data,
|
|
69
|
+
_active_propname,
|
|
70
|
+
_index,
|
|
71
|
+
):
|
|
2038
72
|
"""
|
|
2039
73
|
|
|
2040
|
-
:
|
|
74
|
+
:param _context:
|
|
75
|
+
:param layout:
|
|
76
|
+
:param _data:
|
|
77
|
+
:param item:
|
|
78
|
+
:param icon:
|
|
79
|
+
:param _active_data:
|
|
80
|
+
:param _active_propname:
|
|
81
|
+
:param _index:
|
|
2041
82
|
"""
|
|
2042
83
|
...
|
|
2043
84
|
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
"""
|
|
2049
|
-
...
|
|
85
|
+
class GPMaterialButtonsPanel:
|
|
86
|
+
bl_context: typing.Any
|
|
87
|
+
bl_region_type: typing.Any
|
|
88
|
+
bl_space_type: typing.Any
|
|
2050
89
|
|
|
2051
|
-
|
|
90
|
+
@classmethod
|
|
91
|
+
def poll(cls, context):
|
|
2052
92
|
"""
|
|
2053
93
|
|
|
2054
|
-
:
|
|
94
|
+
:param context:
|
|
2055
95
|
"""
|
|
2056
96
|
...
|
|
2057
97
|
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
98
|
+
class MATERIAL_PT_gpencil_custom_props(
|
|
99
|
+
bpy.types.Panel,
|
|
100
|
+
GPMaterialButtonsPanel,
|
|
101
|
+
rna_prop_ui.PropertyPanel,
|
|
102
|
+
bpy_types._GenericUI,
|
|
103
|
+
):
|
|
104
|
+
"""The subclass should have its own poll function
|
|
105
|
+
and the variable '_context_path' MUST be set.
|
|
106
|
+
"""
|
|
2066
107
|
|
|
2067
|
-
|
|
2068
|
-
|
|
108
|
+
COMPAT_ENGINES: typing.Any
|
|
109
|
+
bl_context: typing.Any
|
|
110
|
+
bl_label: typing.Any
|
|
111
|
+
bl_options: typing.Any
|
|
112
|
+
bl_order: typing.Any
|
|
113
|
+
bl_region_type: typing.Any
|
|
114
|
+
bl_rna: typing.Any
|
|
115
|
+
bl_space_type: typing.Any
|
|
116
|
+
id_data: typing.Any
|
|
2069
117
|
|
|
2070
|
-
|
|
2071
|
-
:rtype: bool
|
|
118
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2072
119
|
"""
|
|
2073
|
-
...
|
|
2074
|
-
|
|
2075
|
-
def is_property_readonly(self) -> bool:
|
|
2076
|
-
"""Check if a property is readonly.
|
|
2077
120
|
|
|
2078
|
-
:return:
|
|
2079
|
-
:rtype:
|
|
121
|
+
:return: The RNA type or default when not found.
|
|
122
|
+
:rtype: bpy.types.Struct
|
|
2080
123
|
"""
|
|
2081
124
|
...
|
|
2082
125
|
|
|
2083
|
-
def
|
|
2084
|
-
"""Check if a property is set, use for testing operator properties.
|
|
2085
|
-
|
|
2086
|
-
:return: True when the property has been set.
|
|
2087
|
-
:rtype: bool
|
|
126
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2088
127
|
"""
|
|
2089
|
-
...
|
|
2090
|
-
|
|
2091
|
-
def items(self):
|
|
2092
|
-
"""Returns the items of this objects custom properties (matches Python's
|
|
2093
|
-
dictionary function of the same name).
|
|
2094
128
|
|
|
2095
|
-
|
|
129
|
+
:return: The class or default when not found.
|
|
130
|
+
:rtype: typing.Any
|
|
2096
131
|
"""
|
|
2097
132
|
...
|
|
2098
133
|
|
|
2099
|
-
|
|
2100
|
-
|
|
134
|
+
class MATERIAL_PT_gpencil_fillcolor(
|
|
135
|
+
bpy.types.Panel, GPMaterialButtonsPanel, bpy_types._GenericUI
|
|
136
|
+
):
|
|
137
|
+
bl_context: typing.Any
|
|
138
|
+
bl_label: typing.Any
|
|
139
|
+
bl_parent_id: typing.Any
|
|
140
|
+
bl_region_type: typing.Any
|
|
141
|
+
bl_rna: typing.Any
|
|
142
|
+
bl_space_type: typing.Any
|
|
143
|
+
id_data: typing.Any
|
|
2101
144
|
|
|
2102
|
-
|
|
2103
|
-
:rtype: bool
|
|
145
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2104
146
|
"""
|
|
2105
|
-
...
|
|
2106
147
|
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
:return: Success of keyframe insertion.
|
|
2111
|
-
:rtype: bool
|
|
148
|
+
:return: The RNA type or default when not found.
|
|
149
|
+
:rtype: bpy.types.Struct
|
|
2112
150
|
"""
|
|
2113
151
|
...
|
|
2114
152
|
|
|
2115
|
-
def
|
|
2116
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
2117
|
-
dictionary function of the same name).
|
|
2118
|
-
|
|
2119
|
-
:return: custom property keys.
|
|
153
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2120
154
|
"""
|
|
2121
|
-
...
|
|
2122
155
|
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2127
|
-
to this struct and property (when given).
|
|
2128
|
-
:rtype: str
|
|
156
|
+
:return: The class or default when not found.
|
|
157
|
+
:rtype: typing.Any
|
|
2129
158
|
"""
|
|
2130
159
|
...
|
|
2131
160
|
|
|
2132
|
-
def
|
|
2133
|
-
"""Returns the property from the path, raise an exception when not found."""
|
|
2134
|
-
...
|
|
2135
|
-
|
|
2136
|
-
def poll(self, context):
|
|
161
|
+
def draw(self, context):
|
|
2137
162
|
"""
|
|
2138
163
|
|
|
2139
164
|
:param context:
|
|
2140
165
|
"""
|
|
2141
166
|
...
|
|
2142
167
|
|
|
2143
|
-
def
|
|
2144
|
-
"""Remove and return the value of the custom property assigned to key or default
|
|
2145
|
-
when not found (matches Python's dictionary function of the same name).
|
|
2146
|
-
|
|
2147
|
-
"""
|
|
2148
|
-
...
|
|
2149
|
-
|
|
2150
|
-
def prepend(self, draw_func):
|
|
2151
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2152
|
-
the menus draw function
|
|
2153
|
-
|
|
2154
|
-
:param draw_func:
|
|
168
|
+
def draw_header(self, context):
|
|
2155
169
|
"""
|
|
2156
|
-
...
|
|
2157
|
-
|
|
2158
|
-
def property_overridable_library_set(self) -> bool:
|
|
2159
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
2160
170
|
|
|
2161
|
-
:
|
|
2162
|
-
:rtype: bool
|
|
171
|
+
:param context:
|
|
2163
172
|
"""
|
|
2164
173
|
...
|
|
2165
174
|
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
175
|
+
class MATERIAL_PT_gpencil_material_presets(
|
|
176
|
+
bpy.types.Panel, bl_ui.utils.PresetPanel, bpy_types._GenericUI
|
|
177
|
+
):
|
|
178
|
+
"""Material settings"""
|
|
2169
179
|
|
|
2170
|
-
|
|
2171
|
-
|
|
180
|
+
bl_label: typing.Any
|
|
181
|
+
bl_region_type: typing.Any
|
|
182
|
+
bl_rna: typing.Any
|
|
183
|
+
bl_space_type: typing.Any
|
|
184
|
+
id_data: typing.Any
|
|
185
|
+
preset_add_operator: typing.Any
|
|
186
|
+
preset_operator: typing.Any
|
|
187
|
+
preset_subdir: typing.Any
|
|
2172
188
|
|
|
2173
|
-
|
|
189
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2174
190
|
"""
|
|
2175
|
-
...
|
|
2176
|
-
|
|
2177
|
-
def type_recast(self):
|
|
2178
|
-
"""Return a new instance, this is needed because types
|
|
2179
|
-
such as textures can be changed at runtime.
|
|
2180
191
|
|
|
2181
|
-
|
|
192
|
+
:return: The RNA type or default when not found.
|
|
193
|
+
:rtype: bpy.types.Struct
|
|
2182
194
|
"""
|
|
2183
195
|
...
|
|
2184
196
|
|
|
2185
|
-
def
|
|
2186
|
-
"""
|
|
2187
|
-
dictionary function of the same name).
|
|
197
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
198
|
+
"""
|
|
2188
199
|
|
|
2189
|
-
|
|
200
|
+
:return: The class or default when not found.
|
|
201
|
+
:rtype: typing.Any
|
|
2190
202
|
"""
|
|
2191
203
|
...
|
|
2192
204
|
|
|
2193
|
-
class
|
|
205
|
+
class MATERIAL_PT_gpencil_preview(
|
|
206
|
+
bpy.types.Panel, GPMaterialButtonsPanel, bpy_types._GenericUI
|
|
207
|
+
):
|
|
208
|
+
COMPAT_ENGINES: typing.Any
|
|
2194
209
|
bl_context: typing.Any
|
|
2195
210
|
bl_label: typing.Any
|
|
211
|
+
bl_options: typing.Any
|
|
2196
212
|
bl_region_type: typing.Any
|
|
2197
213
|
bl_rna: typing.Any
|
|
2198
214
|
bl_space_type: typing.Any
|
|
2199
215
|
id_data: typing.Any
|
|
2200
216
|
|
|
2201
|
-
def append(self, draw_func):
|
|
2202
|
-
"""Append a draw function to this menu,
|
|
2203
|
-
takes the same arguments as the menus draw function
|
|
2204
|
-
|
|
2205
|
-
:param draw_func:
|
|
2206
|
-
"""
|
|
2207
|
-
...
|
|
2208
|
-
|
|
2209
|
-
def as_pointer(self) -> int:
|
|
2210
|
-
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
2211
|
-
|
|
2212
|
-
:return: int (memory address).
|
|
2213
|
-
:rtype: int
|
|
2214
|
-
"""
|
|
2215
|
-
...
|
|
2216
|
-
|
|
2217
217
|
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2218
218
|
"""
|
|
2219
219
|
|
|
@@ -2230,195 +230,161 @@ class MATERIAL_PT_gpencil_surface(GPMaterialButtonsPanel, bpy_types._GenericUI):
|
|
|
2230
230
|
"""
|
|
2231
231
|
...
|
|
2232
232
|
|
|
2233
|
-
def draw(self,
|
|
233
|
+
def draw(self, context):
|
|
2234
234
|
"""
|
|
2235
235
|
|
|
2236
|
-
:param
|
|
236
|
+
:param context:
|
|
2237
237
|
"""
|
|
2238
238
|
...
|
|
2239
239
|
|
|
2240
|
-
|
|
2241
|
-
|
|
240
|
+
class MATERIAL_PT_gpencil_settings(
|
|
241
|
+
bpy.types.Panel, GPMaterialButtonsPanel, bpy_types._GenericUI
|
|
242
|
+
):
|
|
243
|
+
bl_context: typing.Any
|
|
244
|
+
bl_label: typing.Any
|
|
245
|
+
bl_options: typing.Any
|
|
246
|
+
bl_region_type: typing.Any
|
|
247
|
+
bl_rna: typing.Any
|
|
248
|
+
bl_space_type: typing.Any
|
|
249
|
+
id_data: typing.Any
|
|
2242
250
|
|
|
2243
|
-
|
|
251
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2244
252
|
"""
|
|
2245
|
-
...
|
|
2246
253
|
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
:return: The driver(s) added.
|
|
2251
|
-
:rtype: bpy.types.FCurve
|
|
254
|
+
:return: The RNA type or default when not found.
|
|
255
|
+
:rtype: bpy.types.Struct
|
|
2252
256
|
"""
|
|
2253
257
|
...
|
|
2254
258
|
|
|
2255
|
-
def
|
|
2256
|
-
"""Remove driver(s) from the given property
|
|
2257
|
-
|
|
2258
|
-
:return: Success of driver removal.
|
|
2259
|
-
:rtype: bool
|
|
259
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2260
260
|
"""
|
|
2261
|
-
...
|
|
2262
|
-
|
|
2263
|
-
def get(self):
|
|
2264
|
-
"""Returns the value of the custom property assigned to key or default
|
|
2265
|
-
when not found (matches Python's dictionary function of the same name).
|
|
2266
261
|
|
|
262
|
+
:return: The class or default when not found.
|
|
263
|
+
:rtype: typing.Any
|
|
2267
264
|
"""
|
|
2268
265
|
...
|
|
2269
266
|
|
|
2270
|
-
def
|
|
267
|
+
def draw(self, context):
|
|
2271
268
|
"""
|
|
2272
269
|
|
|
2273
|
-
:
|
|
270
|
+
:param context:
|
|
2274
271
|
"""
|
|
2275
272
|
...
|
|
2276
273
|
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
274
|
+
class MATERIAL_PT_gpencil_slots(
|
|
275
|
+
bpy.types.Panel,
|
|
276
|
+
bl_ui.properties_grease_pencil_common.GreasePencilMaterialsPanel,
|
|
277
|
+
bpy_types._GenericUI,
|
|
278
|
+
):
|
|
279
|
+
bl_context: typing.Any
|
|
280
|
+
bl_label: typing.Any
|
|
281
|
+
bl_options: typing.Any
|
|
282
|
+
bl_region_type: typing.Any
|
|
283
|
+
bl_rna: typing.Any
|
|
284
|
+
bl_space_type: typing.Any
|
|
285
|
+
id_data: typing.Any
|
|
2283
286
|
|
|
2284
|
-
def
|
|
287
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2285
288
|
"""
|
|
2286
289
|
|
|
2287
|
-
:return:
|
|
290
|
+
:return: The RNA type or default when not found.
|
|
291
|
+
:rtype: bpy.types.Struct
|
|
2288
292
|
"""
|
|
2289
293
|
...
|
|
2290
294
|
|
|
2291
|
-
def
|
|
2292
|
-
def is_property_hidden(self) -> bool:
|
|
2293
|
-
"""Check if a property is hidden.
|
|
2294
|
-
|
|
2295
|
-
:return: True when the property is hidden.
|
|
2296
|
-
:rtype: bool
|
|
295
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2297
296
|
"""
|
|
2298
|
-
...
|
|
2299
297
|
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
:return: True when the property is overridable.
|
|
2304
|
-
:rtype: bool
|
|
298
|
+
:return: The class or default when not found.
|
|
299
|
+
:rtype: typing.Any
|
|
2305
300
|
"""
|
|
2306
301
|
...
|
|
2307
302
|
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
:return: True when the property is readonly (not writable).
|
|
2312
|
-
:rtype: bool
|
|
303
|
+
@classmethod
|
|
304
|
+
def poll(cls, context):
|
|
2313
305
|
"""
|
|
2314
|
-
...
|
|
2315
|
-
|
|
2316
|
-
def is_property_set(self) -> bool:
|
|
2317
|
-
"""Check if a property is set, use for testing operator properties.
|
|
2318
306
|
|
|
2319
|
-
:
|
|
2320
|
-
:rtype: bool
|
|
307
|
+
:param context:
|
|
2321
308
|
"""
|
|
2322
309
|
...
|
|
2323
310
|
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
311
|
+
class MATERIAL_PT_gpencil_strokecolor(
|
|
312
|
+
bpy.types.Panel, GPMaterialButtonsPanel, bpy_types._GenericUI
|
|
313
|
+
):
|
|
314
|
+
bl_context: typing.Any
|
|
315
|
+
bl_label: typing.Any
|
|
316
|
+
bl_parent_id: typing.Any
|
|
317
|
+
bl_region_type: typing.Any
|
|
318
|
+
bl_rna: typing.Any
|
|
319
|
+
bl_space_type: typing.Any
|
|
320
|
+
id_data: typing.Any
|
|
2327
321
|
|
|
2328
|
-
|
|
322
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2329
323
|
"""
|
|
2330
|
-
...
|
|
2331
|
-
|
|
2332
|
-
def keyframe_delete(self) -> bool:
|
|
2333
|
-
"""Remove a keyframe from this properties fcurve.
|
|
2334
324
|
|
|
2335
|
-
:return:
|
|
2336
|
-
:rtype:
|
|
325
|
+
:return: The RNA type or default when not found.
|
|
326
|
+
:rtype: bpy.types.Struct
|
|
2337
327
|
"""
|
|
2338
328
|
...
|
|
2339
329
|
|
|
2340
|
-
def
|
|
2341
|
-
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
2342
|
-
|
|
2343
|
-
:return: Success of keyframe insertion.
|
|
2344
|
-
:rtype: bool
|
|
330
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2345
331
|
"""
|
|
2346
|
-
...
|
|
2347
|
-
|
|
2348
|
-
def keys(self):
|
|
2349
|
-
"""Returns the keys of this objects custom properties (matches Python's
|
|
2350
|
-
dictionary function of the same name).
|
|
2351
332
|
|
|
2352
|
-
|
|
333
|
+
:return: The class or default when not found.
|
|
334
|
+
:rtype: typing.Any
|
|
2353
335
|
"""
|
|
2354
336
|
...
|
|
2355
337
|
|
|
2356
|
-
def
|
|
2357
|
-
"""Returns the data path from the ID to this object (string).
|
|
2358
|
-
|
|
2359
|
-
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
2360
|
-
to this struct and property (when given).
|
|
2361
|
-
:rtype: str
|
|
338
|
+
def draw(self, context):
|
|
2362
339
|
"""
|
|
2363
|
-
...
|
|
2364
340
|
|
|
2365
|
-
|
|
2366
|
-
"""
|
|
341
|
+
:param context:
|
|
342
|
+
"""
|
|
2367
343
|
...
|
|
2368
344
|
|
|
2369
|
-
def
|
|
345
|
+
def draw_header(self, context):
|
|
2370
346
|
"""
|
|
2371
347
|
|
|
2372
348
|
:param context:
|
|
2373
349
|
"""
|
|
2374
350
|
...
|
|
2375
351
|
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
352
|
+
class MATERIAL_PT_gpencil_surface(
|
|
353
|
+
bpy.types.Panel, GPMaterialButtonsPanel, bpy_types._GenericUI
|
|
354
|
+
):
|
|
355
|
+
bl_context: typing.Any
|
|
356
|
+
bl_label: typing.Any
|
|
357
|
+
bl_region_type: typing.Any
|
|
358
|
+
bl_rna: typing.Any
|
|
359
|
+
bl_space_type: typing.Any
|
|
360
|
+
id_data: typing.Any
|
|
2379
361
|
|
|
362
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
2380
363
|
"""
|
|
2381
|
-
...
|
|
2382
|
-
|
|
2383
|
-
def prepend(self, draw_func):
|
|
2384
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
2385
|
-
the menus draw function
|
|
2386
364
|
|
|
2387
|
-
|
|
365
|
+
:return: The RNA type or default when not found.
|
|
366
|
+
:rtype: bpy.types.Struct
|
|
2388
367
|
"""
|
|
2389
368
|
...
|
|
2390
369
|
|
|
2391
|
-
def
|
|
2392
|
-
"""Define a property as overridable or not (only for custom properties!).
|
|
2393
|
-
|
|
2394
|
-
:return: True when the overridable status of the property was successfully set.
|
|
2395
|
-
:rtype: bool
|
|
370
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
2396
371
|
"""
|
|
2397
|
-
...
|
|
2398
|
-
|
|
2399
|
-
def property_unset(self):
|
|
2400
|
-
"""Unset a property, will use default value afterward."""
|
|
2401
|
-
...
|
|
2402
|
-
|
|
2403
|
-
def remove(self, draw_func):
|
|
2404
|
-
"""Remove a draw function that has been added to this menu
|
|
2405
372
|
|
|
2406
|
-
:
|
|
373
|
+
:return: The class or default when not found.
|
|
374
|
+
:rtype: typing.Any
|
|
2407
375
|
"""
|
|
2408
376
|
...
|
|
2409
377
|
|
|
2410
|
-
def
|
|
2411
|
-
"""
|
|
2412
|
-
such as textures can be changed at runtime.
|
|
378
|
+
def draw(self, _context):
|
|
379
|
+
"""
|
|
2413
380
|
|
|
2414
|
-
|
|
381
|
+
:param _context:
|
|
2415
382
|
"""
|
|
2416
383
|
...
|
|
2417
384
|
|
|
2418
|
-
def
|
|
2419
|
-
"""
|
|
2420
|
-
dictionary function of the same name).
|
|
385
|
+
def draw_header_preset(self, _context):
|
|
386
|
+
"""
|
|
2421
387
|
|
|
2422
|
-
|
|
388
|
+
:param _context:
|
|
2423
389
|
"""
|
|
2424
390
|
...
|