fake-bpy-module 20240718__py3-none-any.whl → 20240719__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.

Files changed (119) hide show
  1. bl_operators/add_mesh_torus/__init__.pyi +1 -190
  2. bl_operators/anim/__init__.pyi +104 -1504
  3. bl_operators/assets/__init__.pyi +3 -535
  4. bl_operators/bone_selection_sets/__init__.pyi +187 -2680
  5. bl_operators/clip/__init__.pyi +144 -1894
  6. bl_operators/connect_to_output/__init__.pyi +3 -176
  7. bl_operators/console/__init__.pyi +5 -880
  8. bl_operators/constraint/__init__.pyi +4 -704
  9. bl_operators/file/__init__.pyi +3 -528
  10. bl_operators/freestyle/__init__.pyi +4 -704
  11. bl_operators/geometry_nodes/__init__.pyi +4 -704
  12. bl_operators/image/__init__.pyi +5 -869
  13. bl_operators/image_as_planes/__init__.pyi +4 -424
  14. bl_operators/mesh/__init__.pyi +3 -528
  15. bl_operators/node/__init__.pyi +159 -2065
  16. bl_operators/object/__init__.pyi +217 -2842
  17. bl_operators/object_align/__init__.pyi +1 -176
  18. bl_operators/object_quick_effects/__init__.pyi +4 -725
  19. bl_operators/object_randomize_transform/__init__.pyi +1 -176
  20. bl_operators/presets/__init__.pyi +405 -5487
  21. bl_operators/rigidbody/__init__.pyi +3 -528
  22. bl_operators/screen_play_rendered_anim/__init__.pyi +1 -176
  23. bl_operators/sequencer/__init__.pyi +119 -1507
  24. bl_operators/spreadsheet/__init__.pyi +1 -176
  25. bl_operators/userpref/__init__.pyi +383 -4757
  26. bl_operators/uvcalc_follow_active/__init__.pyi +1 -176
  27. bl_operators/uvcalc_lightmap/__init__.pyi +1 -176
  28. bl_operators/uvcalc_transform/__init__.pyi +2 -352
  29. bl_operators/vertexpaint_dirt/__init__.pyi +1 -176
  30. bl_operators/view3d/__init__.pyi +101 -1468
  31. bl_operators/wm/__init__.pyi +723 -8894
  32. bl_operators/world/__init__.pyi +1 -176
  33. bl_ui/__init__.pyi +3 -534
  34. bl_ui/anim/__init__.pyi +1 -244
  35. bl_ui/asset_shelf/__init__.pyi +1 -189
  36. bl_ui/generic_ui_list/__init__.pyi +3 -594
  37. bl_ui/node_add_menu/__init__.pyi +1 -244
  38. bl_ui/node_add_menu_compositor/__init__.pyi +226 -4600
  39. bl_ui/node_add_menu_geometry/__init__.pyi +654 -12802
  40. bl_ui/node_add_menu_shader/__init__.pyi +94 -2531
  41. bl_ui/node_add_menu_texture/__init__.pyi +81 -2268
  42. bl_ui/properties_collection/__init__.pyi +58 -1272
  43. bl_ui/properties_constraint/__init__.pyi +1508 -32656
  44. bl_ui/properties_data_armature/__init__.pyi +278 -3804
  45. bl_ui/properties_data_bone/__init__.pyi +151 -2062
  46. bl_ui/properties_data_camera/__init__.pyi +216 -3034
  47. bl_ui/properties_data_curve/__init__.pyi +214 -3117
  48. bl_ui/properties_data_curves/__init__.pyi +57 -1273
  49. bl_ui/properties_data_empty/__init__.pyi +2 -385
  50. bl_ui/properties_data_gpencil/__init__.pyi +285 -3922
  51. bl_ui/properties_data_grease_pencil/__init__.pyi +198 -3081
  52. bl_ui/properties_data_lattice/__init__.pyi +3 -595
  53. bl_ui/properties_data_light/__init__.pyi +200 -2502
  54. bl_ui/properties_data_lightprobe/__init__.pyi +212 -2704
  55. bl_ui/properties_data_mesh/__init__.pyi +323 -4380
  56. bl_ui/properties_data_metaball/__init__.pyi +38 -1011
  57. bl_ui/properties_data_modifier/__init__.pyi +157 -2451
  58. bl_ui/properties_data_pointcloud/__init__.pyi +68 -1087
  59. bl_ui/properties_data_shaderfx/__init__.pyi +1 -189
  60. bl_ui/properties_data_speaker/__init__.pyi +36 -1018
  61. bl_ui/properties_data_volume/__init__.pyi +104 -1660
  62. bl_ui/properties_freestyle/__init__.pyi +438 -5136
  63. bl_ui/properties_grease_pencil_common/__init__.pyi +197 -3852
  64. bl_ui/properties_mask_common/__init__.pyi +59 -1705
  65. bl_ui/properties_material/__init__.pyi +227 -3334
  66. bl_ui/properties_material_gpencil/__init__.pyi +187 -2221
  67. bl_ui/properties_object/__init__.pyi +197 -2908
  68. bl_ui/properties_output/__init__.pyi +286 -3895
  69. bl_ui/properties_paint_common/__init__.pyi +40 -923
  70. bl_ui/properties_particle/__init__.pyi +954 -10839
  71. bl_ui/properties_physics_cloth/__init__.pyi +219 -2979
  72. bl_ui/properties_physics_common/__init__.pyi +1 -196
  73. bl_ui/properties_physics_dynamicpaint/__init__.pyi +429 -5411
  74. bl_ui/properties_physics_field/__init__.pyi +160 -2166
  75. bl_ui/properties_physics_fluid/__init__.pyi +541 -7352
  76. bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -189
  77. bl_ui/properties_physics_rigidbody/__init__.pyi +125 -1623
  78. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +196 -2640
  79. bl_ui/properties_physics_softbody/__init__.pyi +238 -3135
  80. bl_ui/properties_render/__init__.pyi +1065 -11565
  81. bl_ui/properties_scene/__init__.pyi +209 -3090
  82. bl_ui/properties_texture/__init__.pyi +426 -5475
  83. bl_ui/properties_view_layer/__init__.pyi +264 -3827
  84. bl_ui/properties_workspace/__init__.pyi +7 -770
  85. bl_ui/properties_world/__init__.pyi +147 -2056
  86. bl_ui/space_clip/__init__.pyi +1013 -16279
  87. bl_ui/space_console/__init__.pyi +39 -1442
  88. bl_ui/space_dopesheet/__init__.pyi +450 -7213
  89. bl_ui/space_filebrowser/__init__.pyi +406 -6708
  90. bl_ui/space_graph/__init__.pyi +223 -4886
  91. bl_ui/space_image/__init__.pyi +1091 -16394
  92. bl_ui/space_info/__init__.pyi +39 -1442
  93. bl_ui/space_nla/__init__.pyi +216 -4157
  94. bl_ui/space_node/__init__.pyi +394 -6344
  95. bl_ui/space_outliner/__init__.pyi +156 -3448
  96. bl_ui/space_properties/__init__.pyi +3 -567
  97. bl_ui/space_sequencer/__init__.pyi +1224 -18036
  98. bl_ui/space_spreadsheet/__init__.pyi +1 -189
  99. bl_ui/space_statusbar/__init__.pyi +1 -189
  100. bl_ui/space_text/__init__.pyi +183 -3851
  101. bl_ui/space_time/__init__.pyi +69 -1622
  102. bl_ui/space_toolsystem_common/__init__.pyi +2 -118
  103. bl_ui/space_toolsystem_toolbar/__init__.pyi +13 -476
  104. bl_ui/space_topbar/__init__.pyi +322 -6269
  105. bl_ui/space_userpref/__init__.pyi +1758 -19735
  106. bl_ui/space_view3d/__init__.pyi +3853 -67593
  107. bl_ui/space_view3d_toolbar/__init__.pyi +1948 -23558
  108. bl_ui/temp_anim_layers/__init__.pyi +1 -189
  109. bl_ui/utils/__init__.pyi +0 -35
  110. bpy/ops/outliner/__init__.pyi +0 -1
  111. bpy/types/__init__.pyi +65 -1
  112. bpy_extras/node_shader_utils/__init__.pyi +0 -8
  113. {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240719.dist-info}/METADATA +1 -1
  114. {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240719.dist-info}/RECORD +119 -119
  115. {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240719.dist-info}/WHEEL +1 -1
  116. freestyle/utils/__init__.pyi +1 -1
  117. keyingsets_builtins/__init__.pyi +268 -4448
  118. nodeitems_builtins/__init__.pyi +1 -7
  119. {fake_bpy_module-20240718.dist-info → fake_bpy_module-20240719.dist-info}/top_level.txt +0 -0
@@ -130,717 +130,27 @@ class UnifiedPaintPanel:
130
130
  """
131
131
  ...
132
132
 
133
- class VIEW3D_MT_tools_projectpaint_clone(bpy_types._GenericUI):
133
+ class VIEW3D_MT_tools_projectpaint_clone(bpy.types.Menu, bpy_types._GenericUI):
134
134
  bl_label: typing.Any
135
135
  bl_rna: typing.Any
136
136
  id_data: typing.Any
137
137
 
138
- def append(self, draw_func):
139
- """Append a draw function to this menu,
140
- takes the same arguments as the menus draw function
141
-
142
- :param draw_func:
143
- """
144
- ...
145
-
146
- def as_pointer(self) -> int:
147
- """Returns the memory address which holds a pointer to Blender's internal data
148
-
149
- :return: int (memory address).
150
- :rtype: int
151
- """
152
- ...
153
-
154
- def bl_rna_get_subclass(self) -> bpy.types.Struct:
155
- """
156
-
157
- :return: The RNA type or default when not found.
158
- :rtype: bpy.types.Struct
159
- """
160
- ...
161
-
162
- def bl_rna_get_subclass_py(self) -> typing.Any:
163
- """
164
-
165
- :return: The class or default when not found.
166
- :rtype: typing.Any
167
- """
168
- ...
169
-
170
- def draw(self, context):
171
- """
172
-
173
- :param context:
174
- """
175
- ...
176
-
177
- def draw_collapsible(self, context, layout):
178
- """
179
-
180
- :param context:
181
- :param layout:
182
- """
183
- ...
184
-
185
- def draw_preset(self, _context):
186
- """Define these on the subclass:
187
- - preset_operator (string)
188
- - preset_subdir (string)Optionally:
189
- - preset_add_operator (string)
190
- - preset_extensions (set of strings)
191
- - preset_operator_defaults (dict of keyword args)
192
-
193
- :param _context:
194
- """
195
- ...
196
-
197
- def driver_add(self) -> bpy.types.FCurve:
198
- """Adds driver(s) to the given property
199
-
200
- :return: The driver(s) added.
201
- :rtype: bpy.types.FCurve
202
- """
203
- ...
204
-
205
- def driver_remove(self) -> bool:
206
- """Remove driver(s) from the given property
207
-
208
- :return: Success of driver removal.
209
- :rtype: bool
210
- """
211
- ...
212
-
213
- def get(self):
214
- """Returns the value of the custom property assigned to key or default
215
- when not found (matches Python's dictionary function of the same name).
216
-
217
- """
218
- ...
219
-
220
- def id_properties_clear(self):
221
- """
222
-
223
- :return: Remove the parent group for an RNA struct's custom IDProperties.
224
- """
225
- ...
226
-
227
- def id_properties_ensure(self):
228
- """
229
-
230
- :return: the parent group for an RNA struct's custom IDProperties.
231
- """
232
- ...
233
-
234
- def id_properties_ui(self):
235
- """
236
-
237
- :return: Return an object used to manage an IDProperty's UI data.
238
- """
239
- ...
240
-
241
- def is_extended(self): ...
242
- def is_property_hidden(self) -> bool:
243
- """Check if a property is hidden.
244
-
245
- :return: True when the property is hidden.
246
- :rtype: bool
247
- """
248
- ...
249
-
250
- def is_property_overridable_library(self) -> bool:
251
- """Check if a property is overridable.
252
-
253
- :return: True when the property is overridable.
254
- :rtype: bool
255
- """
256
- ...
257
-
258
- def is_property_readonly(self) -> bool:
259
- """Check if a property is readonly.
260
-
261
- :return: True when the property is readonly (not writable).
262
- :rtype: bool
263
- """
264
- ...
265
-
266
- def is_property_set(self) -> bool:
267
- """Check if a property is set, use for testing operator properties.
268
-
269
- :return: True when the property has been set.
270
- :rtype: bool
271
- """
272
- ...
273
-
274
- def items(self):
275
- """Returns the items of this objects custom properties (matches Python's
276
- dictionary function of the same name).
277
-
278
- :return: custom property key, value pairs.
279
- """
280
- ...
281
-
282
- def keyframe_delete(self) -> bool:
283
- """Remove a keyframe from this properties fcurve.
284
-
285
- :return: Success of keyframe deletion.
286
- :rtype: bool
287
- """
288
- ...
289
-
290
- def keyframe_insert(self) -> bool:
291
- """Insert a keyframe on the property given, adding fcurves and animation data when necessary.
292
-
293
- :return: Success of keyframe insertion.
294
- :rtype: bool
295
- """
296
- ...
297
-
298
- def keys(self):
299
- """Returns the keys of this objects custom properties (matches Python's
300
- dictionary function of the same name).
301
-
302
- :return: custom property keys.
303
- """
304
- ...
305
-
306
- def path_from_id(self) -> str:
307
- """Returns the data path from the ID to this object (string).
308
-
309
- :return: The path from `bpy.types.bpy_struct.id_data`
310
- to this struct and property (when given).
311
- :rtype: str
312
- """
313
- ...
314
-
315
- def path_menu(
316
- self,
317
- searchpaths: list[str],
318
- operator: str,
319
- *,
320
- props_default: dict = None,
321
- prop_filepath: str | None = "filepath",
322
- filter_ext: collections.abc.Callable | None = None,
323
- filter_path=None,
324
- display_name: collections.abc.Callable | None = None,
325
- add_operator=None,
326
- add_operator_props=None,
327
- ):
328
- """Populate a menu from a list of paths.
329
-
330
- :param searchpaths: Paths to scan.
331
- :type searchpaths: list[str]
332
- :param operator: The operator id to use with each file.
333
- :type operator: str
334
- :param props_default: Properties to assign to each operator.
335
- :type props_default: dict
336
- :param prop_filepath: Optional operator filepath property (defaults to "filepath").
337
- :type prop_filepath: str | None
338
- :param filter_ext: Optional callback that takes the file extensions.
339
-
340
- Returning false excludes the file from the list.
341
- :type filter_ext: collections.abc.Callable | None
342
- :param filter_path:
343
- :param display_name: Optional callback that takes the full path, returns the name to display.
344
- :type display_name: collections.abc.Callable | None
345
- :param add_operator:
346
- :param add_operator_props:
347
- """
348
- ...
349
-
350
- def path_resolve(self):
351
- """Returns the property from the path, raise an exception when not found."""
352
- ...
353
-
354
- def pop(self):
355
- """Remove and return the value of the custom property assigned to key or default
356
- when not found (matches Python's dictionary function of the same name).
357
-
358
- """
359
- ...
360
-
361
- def prepend(self, draw_func):
362
- """Prepend a draw function to this menu, takes the same arguments as
363
- the menus draw function
364
-
365
- :param draw_func:
366
- """
367
- ...
368
-
369
- def property_overridable_library_set(self) -> bool:
370
- """Define a property as overridable or not (only for custom properties!).
371
-
372
- :return: True when the overridable status of the property was successfully set.
373
- :rtype: bool
374
- """
375
- ...
376
-
377
- def property_unset(self):
378
- """Unset a property, will use default value afterward."""
379
- ...
380
-
381
- def remove(self, draw_func):
382
- """Remove a draw function that has been added to this menu
383
-
384
- :param draw_func:
385
- """
386
- ...
387
-
388
- def type_recast(self):
389
- """Return a new instance, this is needed because types
390
- such as textures can be changed at runtime.
391
-
392
- :return: a new instance of this object with the type initialized again.
393
- """
394
- ...
395
-
396
- def values(self):
397
- """Returns the values of this objects custom properties (matches Python's
398
- dictionary function of the same name).
399
-
400
- :return: custom property values.
401
- """
402
- ...
403
-
404
- class BrushPanel(UnifiedPaintPanel):
405
- def get_brush_mode(self, context):
406
- """Get the correct mode for this context. For any context where this returns None,
407
- no brush options should be displayed.
408
-
409
- :param context:
410
- """
411
- ...
412
-
413
- def paint_settings(self, context):
414
- """
415
-
416
- :param context:
417
- """
418
- ...
419
-
420
- @classmethod
421
- def poll(cls, context):
422
- """
423
-
424
- :param context:
425
- """
426
- ...
427
-
428
- def prop_unified(
429
- self,
430
- layout,
431
- context,
432
- brush,
433
- prop_name,
434
- unified_name=None,
435
- pressure_name=None,
436
- icon="NONE",
437
- text=None,
438
- slider=False,
439
- header=False,
440
- ):
441
- """Generalized way of adding brush options to the UI,
442
- along with their pen pressure setting and global toggle, if they exist.
443
-
444
- :param layout:
445
- :param context:
446
- :param brush:
447
- :param prop_name:
448
- :param unified_name:
449
- :param pressure_name:
450
- :param icon:
451
- :param text:
452
- :param slider:
453
- :param header:
454
- """
455
- ...
456
-
457
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
458
- """
459
-
460
- :param parent:
461
- :param context:
462
- :param brush:
463
- :param prop_name:
464
- :param text:
465
- """
466
- ...
467
-
468
- def prop_unified_color_picker(
469
- self, parent, context, brush, prop_name, value_slider=True
470
- ):
471
- """
472
-
473
- :param parent:
474
- :param context:
475
- :param brush:
476
- :param prop_name:
477
- :param value_slider:
478
- """
479
- ...
480
-
481
- class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
482
- bl_label: typing.Any
483
-
484
- def draw(self, context):
485
- """
486
-
487
- :param context:
488
- """
489
- ...
490
-
491
- def get_brush_mode(self, context):
492
- """Get the correct mode for this context. For any context where this returns None,
493
- no brush options should be displayed.
494
-
495
- :param context:
496
- """
497
- ...
498
-
499
- def paint_settings(self, context):
500
- """
501
-
502
- :param context:
503
- """
504
- ...
505
-
506
- def poll(self, context):
507
- """
508
-
509
- :param context:
510
- """
511
- ...
512
-
513
- def prop_unified(
514
- self,
515
- layout,
516
- context,
517
- brush,
518
- prop_name,
519
- unified_name=None,
520
- pressure_name=None,
521
- icon="NONE",
522
- text=None,
523
- slider=False,
524
- header=False,
525
- ):
526
- """Generalized way of adding brush options to the UI,
527
- along with their pen pressure setting and global toggle, if they exist.
528
-
529
- :param layout:
530
- :param context:
531
- :param brush:
532
- :param prop_name:
533
- :param unified_name:
534
- :param pressure_name:
535
- :param icon:
536
- :param text:
537
- :param slider:
538
- :param header:
539
- """
540
- ...
541
-
542
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
543
- """
544
-
545
- :param parent:
546
- :param context:
547
- :param brush:
548
- :param prop_name:
549
- :param text:
550
- """
551
- ...
552
-
553
- def prop_unified_color_picker(
554
- self, parent, context, brush, prop_name, value_slider=True
555
- ):
556
- """
557
-
558
- :param parent:
559
- :param context:
560
- :param brush:
561
- :param prop_name:
562
- :param value_slider:
563
- """
564
- ...
565
-
566
- class ClonePanel(BrushPanel, UnifiedPaintPanel):
567
- bl_label: typing.Any
568
- bl_options: typing.Any
569
-
570
- def draw(self, context):
571
- """
572
-
573
- :param context:
574
- """
575
- ...
576
-
577
- def draw_header(self, context):
578
- """
579
-
580
- :param context:
581
- """
582
- ...
583
-
584
- def get_brush_mode(self, context):
585
- """Get the correct mode for this context. For any context where this returns None,
586
- no brush options should be displayed.
587
-
588
- :param context:
589
- """
590
- ...
591
-
592
- def paint_settings(self, context):
593
- """
594
-
595
- :param context:
596
- """
597
- ...
598
-
599
- @classmethod
600
- def poll(cls, context):
601
- """
602
-
603
- :param context:
604
- """
605
- ...
606
-
607
- def prop_unified(
608
- self,
609
- layout,
610
- context,
611
- brush,
612
- prop_name,
613
- unified_name=None,
614
- pressure_name=None,
615
- icon="NONE",
616
- text=None,
617
- slider=False,
618
- header=False,
619
- ):
620
- """Generalized way of adding brush options to the UI,
621
- along with their pen pressure setting and global toggle, if they exist.
622
-
623
- :param layout:
624
- :param context:
625
- :param brush:
626
- :param prop_name:
627
- :param unified_name:
628
- :param pressure_name:
629
- :param icon:
630
- :param text:
631
- :param slider:
632
- :param header:
633
- """
634
- ...
635
-
636
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
637
- """
638
-
639
- :param parent:
640
- :param context:
641
- :param brush:
642
- :param prop_name:
643
- :param text:
644
- """
645
- ...
646
-
647
- def prop_unified_color_picker(
648
- self, parent, context, brush, prop_name, value_slider=True
649
- ):
650
- """
651
-
652
- :param parent:
653
- :param context:
654
- :param brush:
655
- :param prop_name:
656
- :param value_slider:
657
- """
658
- ...
659
-
660
- class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
661
- bl_label: typing.Any
662
- bl_options: typing.Any
663
-
664
- def draw(self, context):
665
- """
666
-
667
- :param context:
668
- """
669
- ...
670
-
671
- def get_brush_mode(self, context):
672
- """Get the correct mode for this context. For any context where this returns None,
673
- no brush options should be displayed.
674
-
675
- :param context:
676
- """
677
- ...
678
-
679
- def paint_settings(self, context):
680
- """
681
-
682
- :param context:
683
- """
684
- ...
685
-
686
- @classmethod
687
- def poll(cls, context):
688
- """
689
-
690
- :param context:
691
- """
692
- ...
693
-
694
- def prop_unified(
695
- self,
696
- layout,
697
- context,
698
- brush,
699
- prop_name,
700
- unified_name=None,
701
- pressure_name=None,
702
- icon="NONE",
703
- text=None,
704
- slider=False,
705
- header=False,
706
- ):
707
- """Generalized way of adding brush options to the UI,
708
- along with their pen pressure setting and global toggle, if they exist.
709
-
710
- :param layout:
711
- :param context:
712
- :param brush:
713
- :param prop_name:
714
- :param unified_name:
715
- :param pressure_name:
716
- :param icon:
717
- :param text:
718
- :param slider:
719
- :param header:
720
- """
721
- ...
722
-
723
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
724
- """
725
-
726
- :param parent:
727
- :param context:
728
- :param brush:
729
- :param prop_name:
730
- :param text:
731
- """
732
- ...
733
-
734
- def prop_unified_color_picker(
735
- self, parent, context, brush, prop_name, value_slider=True
736
- ):
737
- """
738
-
739
- :param parent:
740
- :param context:
741
- :param brush:
742
- :param prop_name:
743
- :param value_slider:
744
- """
745
- ...
746
-
747
- class DisplayPanel(BrushPanel, UnifiedPaintPanel):
748
- bl_label: typing.Any
749
- bl_options: typing.Any
750
-
751
- def draw(self, context):
752
- """
753
-
754
- :param context:
755
- """
756
- ...
757
-
758
- def draw_header(self, context):
759
- """
760
-
761
- :param context:
762
- """
763
- ...
764
-
765
- def get_brush_mode(self, context):
766
- """Get the correct mode for this context. For any context where this returns None,
767
- no brush options should be displayed.
768
-
769
- :param context:
770
- """
771
- ...
772
-
773
- def paint_settings(self, context):
774
- """
775
-
776
- :param context:
777
- """
778
- ...
779
-
780
- def poll(self, context):
781
- """
782
-
783
- :param context:
784
- """
785
- ...
786
-
787
- def prop_unified(
788
- self,
789
- layout,
790
- context,
791
- brush,
792
- prop_name,
793
- unified_name=None,
794
- pressure_name=None,
795
- icon="NONE",
796
- text=None,
797
- slider=False,
798
- header=False,
799
- ):
800
- """Generalized way of adding brush options to the UI,
801
- along with their pen pressure setting and global toggle, if they exist.
802
-
803
- :param layout:
804
- :param context:
805
- :param brush:
806
- :param prop_name:
807
- :param unified_name:
808
- :param pressure_name:
809
- :param icon:
810
- :param text:
811
- :param slider:
812
- :param header:
813
- """
814
- ...
815
-
816
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
138
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
817
139
  """
818
140
 
819
- :param parent:
820
- :param context:
821
- :param brush:
822
- :param prop_name:
823
- :param text:
141
+ :return: The RNA type or default when not found.
142
+ :rtype: bpy.types.Struct
824
143
  """
825
144
  ...
826
145
 
827
- def prop_unified_color_picker(
828
- self, parent, context, brush, prop_name, value_slider=True
829
- ):
146
+ def bl_rna_get_subclass_py(self) -> typing.Any:
830
147
  """
831
148
 
832
- :param parent:
833
- :param context:
834
- :param brush:
835
- :param prop_name:
836
- :param value_slider:
149
+ :return: The class or default when not found.
150
+ :rtype: typing.Any
837
151
  """
838
152
  ...
839
153
 
840
- class FalloffPanel(BrushPanel, UnifiedPaintPanel):
841
- bl_label: typing.Any
842
- bl_options: typing.Any
843
-
844
154
  def draw(self, context):
845
155
  """
846
156
 
@@ -848,21 +158,7 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
848
158
  """
849
159
  ...
850
160
 
851
- def get_brush_mode(self, context):
852
- """Get the correct mode for this context. For any context where this returns None,
853
- no brush options should be displayed.
854
-
855
- :param context:
856
- """
857
- ...
858
-
859
- def paint_settings(self, context):
860
- """
861
-
862
- :param context:
863
- """
864
- ...
865
-
161
+ class BrushPanel(UnifiedPaintPanel):
866
162
  @classmethod
867
163
  def poll(cls, context):
868
164
  """
@@ -871,60 +167,17 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
871
167
  """
872
168
  ...
873
169
 
874
- def prop_unified(
875
- self,
876
- layout,
877
- context,
878
- brush,
879
- prop_name,
880
- unified_name=None,
881
- pressure_name=None,
882
- icon="NONE",
883
- text=None,
884
- slider=False,
885
- header=False,
886
- ):
887
- """Generalized way of adding brush options to the UI,
888
- along with their pen pressure setting and global toggle, if they exist.
889
-
890
- :param layout:
891
- :param context:
892
- :param brush:
893
- :param prop_name:
894
- :param unified_name:
895
- :param pressure_name:
896
- :param icon:
897
- :param text:
898
- :param slider:
899
- :param header:
900
- """
901
- ...
902
-
903
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
904
- """
905
-
906
- :param parent:
907
- :param context:
908
- :param brush:
909
- :param prop_name:
910
- :param text:
911
- """
912
- ...
170
+ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
171
+ bl_label: typing.Any
913
172
 
914
- def prop_unified_color_picker(
915
- self, parent, context, brush, prop_name, value_slider=True
916
- ):
173
+ def draw(self, context):
917
174
  """
918
175
 
919
- :param parent:
920
176
  :param context:
921
- :param brush:
922
- :param prop_name:
923
- :param value_slider:
924
177
  """
925
178
  ...
926
179
 
927
- class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
180
+ class ClonePanel(BrushPanel, UnifiedPaintPanel):
928
181
  bl_label: typing.Any
929
182
  bl_options: typing.Any
930
183
 
@@ -942,21 +195,6 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
942
195
  """
943
196
  ...
944
197
 
945
- def get_brush_mode(self, context):
946
- """Get the correct mode for this context. For any context where this returns None,
947
- no brush options should be displayed.
948
-
949
- :param context:
950
- """
951
- ...
952
-
953
- def paint_settings(self, context):
954
- """
955
-
956
- :param context:
957
- """
958
- ...
959
-
960
198
  @classmethod
961
199
  def poll(cls, context):
962
200
  """
@@ -965,63 +203,28 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
965
203
  """
966
204
  ...
967
205
 
968
- def prop_unified(
969
- self,
970
- layout,
971
- context,
972
- brush,
973
- prop_name,
974
- unified_name=None,
975
- pressure_name=None,
976
- icon="NONE",
977
- text=None,
978
- slider=False,
979
- header=False,
980
- ):
981
- """Generalized way of adding brush options to the UI,
982
- along with their pen pressure setting and global toggle, if they exist.
983
-
984
- :param layout:
985
- :param context:
986
- :param brush:
987
- :param prop_name:
988
- :param unified_name:
989
- :param pressure_name:
990
- :param icon:
991
- :param text:
992
- :param slider:
993
- :param header:
994
- """
995
- ...
206
+ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
207
+ bl_label: typing.Any
208
+ bl_options: typing.Any
996
209
 
997
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
210
+ def draw(self, context):
998
211
  """
999
212
 
1000
- :param parent:
1001
213
  :param context:
1002
- :param brush:
1003
- :param prop_name:
1004
- :param text:
1005
214
  """
1006
215
  ...
1007
216
 
1008
- def prop_unified_color_picker(
1009
- self, parent, context, brush, prop_name, value_slider=True
1010
- ):
217
+ @classmethod
218
+ def poll(cls, context):
1011
219
  """
1012
220
 
1013
- :param parent:
1014
221
  :param context:
1015
- :param brush:
1016
- :param prop_name:
1017
- :param value_slider:
1018
222
  """
1019
223
  ...
1020
224
 
1021
- class StrokePanel(BrushPanel, UnifiedPaintPanel):
225
+ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
1022
226
  bl_label: typing.Any
1023
227
  bl_options: typing.Any
1024
- bl_ui_units_x: typing.Any
1025
228
 
1026
229
  def draw(self, context):
1027
230
  """
@@ -1030,82 +233,33 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
1030
233
  """
1031
234
  ...
1032
235
 
1033
- def get_brush_mode(self, context):
1034
- """Get the correct mode for this context. For any context where this returns None,
1035
- no brush options should be displayed.
1036
-
1037
- :param context:
1038
- """
1039
- ...
1040
-
1041
- def paint_settings(self, context):
1042
- """
1043
-
1044
- :param context:
1045
- """
1046
- ...
1047
-
1048
- def poll(self, context):
236
+ def draw_header(self, context):
1049
237
  """
1050
238
 
1051
239
  :param context:
1052
240
  """
1053
241
  ...
1054
242
 
1055
- def prop_unified(
1056
- self,
1057
- layout,
1058
- context,
1059
- brush,
1060
- prop_name,
1061
- unified_name=None,
1062
- pressure_name=None,
1063
- icon="NONE",
1064
- text=None,
1065
- slider=False,
1066
- header=False,
1067
- ):
1068
- """Generalized way of adding brush options to the UI,
1069
- along with their pen pressure setting and global toggle, if they exist.
1070
-
1071
- :param layout:
1072
- :param context:
1073
- :param brush:
1074
- :param prop_name:
1075
- :param unified_name:
1076
- :param pressure_name:
1077
- :param icon:
1078
- :param text:
1079
- :param slider:
1080
- :param header:
1081
- """
1082
- ...
243
+ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
244
+ bl_label: typing.Any
245
+ bl_options: typing.Any
1083
246
 
1084
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
247
+ def draw(self, context):
1085
248
  """
1086
249
 
1087
- :param parent:
1088
250
  :param context:
1089
- :param brush:
1090
- :param prop_name:
1091
- :param text:
1092
251
  """
1093
252
  ...
1094
253
 
1095
- def prop_unified_color_picker(
1096
- self, parent, context, brush, prop_name, value_slider=True
1097
- ):
254
+ @classmethod
255
+ def poll(cls, context):
1098
256
  """
1099
257
 
1100
- :param parent:
1101
258
  :param context:
1102
- :param brush:
1103
- :param prop_name:
1104
- :param value_slider:
1105
259
  """
1106
260
  ...
1107
261
 
1108
- class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
262
+ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
1109
263
  bl_label: typing.Any
1110
264
  bl_options: typing.Any
1111
265
 
@@ -1116,78 +270,41 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
1116
270
  """
1117
271
  ...
1118
272
 
1119
- def get_brush_mode(self, context):
1120
- """Get the correct mode for this context. For any context where this returns None,
1121
- no brush options should be displayed.
1122
-
1123
- :param context:
1124
- """
1125
- ...
1126
-
1127
- def paint_settings(self, context):
273
+ def draw_header(self, context):
1128
274
  """
1129
275
 
1130
276
  :param context:
1131
277
  """
1132
278
  ...
1133
279
 
1134
- def poll(self, context):
280
+ @classmethod
281
+ def poll(cls, context):
1135
282
  """
1136
283
 
1137
284
  :param context:
1138
285
  """
1139
286
  ...
1140
287
 
1141
- def prop_unified(
1142
- self,
1143
- layout,
1144
- context,
1145
- brush,
1146
- prop_name,
1147
- unified_name=None,
1148
- pressure_name=None,
1149
- icon="NONE",
1150
- text=None,
1151
- slider=False,
1152
- header=False,
1153
- ):
1154
- """Generalized way of adding brush options to the UI,
1155
- along with their pen pressure setting and global toggle, if they exist.
1156
-
1157
- :param layout:
1158
- :param context:
1159
- :param brush:
1160
- :param prop_name:
1161
- :param unified_name:
1162
- :param pressure_name:
1163
- :param icon:
1164
- :param text:
1165
- :param slider:
1166
- :param header:
1167
- """
1168
- ...
288
+ class StrokePanel(BrushPanel, UnifiedPaintPanel):
289
+ bl_label: typing.Any
290
+ bl_options: typing.Any
291
+ bl_ui_units_x: typing.Any
1169
292
 
1170
- def prop_unified_color(self, parent, context, brush, prop_name, *, text=None):
293
+ def draw(self, context):
1171
294
  """
1172
295
 
1173
- :param parent:
1174
296
  :param context:
1175
- :param brush:
1176
- :param prop_name:
1177
- :param text:
1178
297
  """
1179
298
  ...
1180
299
 
1181
- def prop_unified_color_picker(
1182
- self, parent, context, brush, prop_name, value_slider=True
1183
- ):
300
+ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
301
+ bl_label: typing.Any
302
+ bl_options: typing.Any
303
+
304
+ def draw(self, context):
1184
305
  """
1185
306
 
1186
- :param parent:
1187
307
  :param context:
1188
- :param brush:
1189
- :param prop_name:
1190
- :param value_slider:
1191
308
  """
1192
309
  ...
1193
310