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

@@ -89,6 +89,14 @@ class NODE_OT_add_empty_group(NodeAddOperator, _bpy_types.Operator):
89
89
  :param idname:
90
90
  """
91
91
 
92
+ @classmethod
93
+ def description(cls, _context, properties) -> None:
94
+ """
95
+
96
+ :param _context:
97
+ :param properties:
98
+ """
99
+
92
100
  def execute(self, context) -> None:
93
101
  """
94
102
 
@@ -146,14 +154,6 @@ class NODE_OT_add_node(NodeAddOperator, _bpy_types.Operator):
146
154
  :rtype: typing.Any
147
155
  """
148
156
 
149
- @classmethod
150
- def description(cls, _context, properties) -> None:
151
- """
152
-
153
- :param _context:
154
- :param properties:
155
- """
156
-
157
157
  def execute(self, context) -> None:
158
158
  """
159
159
 
@@ -212,6 +212,28 @@ class NODE_OT_add_simulation_zone(NodeAddZoneOperator, _bpy_types.Operator):
212
212
  :rtype: typing.Any
213
213
  """
214
214
 
215
+ class NODE_OT_add_zone(NodeAddZoneOperator, _bpy_types.Operator):
216
+ add_default_geometry_link: typing.Any
217
+ bl_idname: typing.Any
218
+ bl_label: typing.Any
219
+ bl_options: typing.Any
220
+ bl_rna: typing.Any
221
+ id_data: typing.Any
222
+
223
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
224
+ """
225
+
226
+ :return: The RNA type or default when not found.
227
+ :rtype: bpy.types.Struct
228
+ """
229
+
230
+ def bl_rna_get_subclass_py(self) -> typing.Any:
231
+ """
232
+
233
+ :return: The class or default when not found.
234
+ :rtype: typing.Any
235
+ """
236
+
215
237
  class NODE_OT_collapse_hide_unused_toggle(_bpy_types.Operator):
216
238
  """Toggle collapsed nodes and hide unused sockets"""
217
239
 
@@ -432,6 +454,124 @@ class NODE_OT_interface_item_unlink_panel_toggle(
432
454
  :param context:
433
455
  """
434
456
 
457
+ class NODE_OT_swap_empty_group(NodeSwapOperator, _bpy_types.Operator):
458
+ bl_description: typing.Any
459
+ bl_idname: typing.Any
460
+ bl_label: typing.Any
461
+ bl_options: typing.Any
462
+ bl_rna: typing.Any
463
+ id_data: typing.Any
464
+ properties_to_pass: typing.Any
465
+
466
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
467
+ """
468
+
469
+ :return: The RNA type or default when not found.
470
+ :rtype: bpy.types.Struct
471
+ """
472
+
473
+ def bl_rna_get_subclass_py(self) -> typing.Any:
474
+ """
475
+
476
+ :return: The class or default when not found.
477
+ :rtype: typing.Any
478
+ """
479
+
480
+ @staticmethod
481
+ def create_empty_group(idname) -> None:
482
+ """
483
+
484
+ :param idname:
485
+ """
486
+
487
+ @classmethod
488
+ def description(cls, _context, properties) -> None:
489
+ """
490
+
491
+ :param _context:
492
+ :param properties:
493
+ """
494
+
495
+ def execute(self, context) -> None:
496
+ """
497
+
498
+ :param context:
499
+ """
500
+
501
+ class NODE_OT_swap_node(NodeSwapOperator, _bpy_types.Operator):
502
+ """Replace the selected nodes with the specified type"""
503
+
504
+ bl_idname: typing.Any
505
+ bl_label: typing.Any
506
+ bl_options: typing.Any
507
+ bl_rna: typing.Any
508
+ id_data: typing.Any
509
+ properties_to_pass: typing.Any
510
+
511
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
512
+ """
513
+
514
+ :return: The RNA type or default when not found.
515
+ :rtype: bpy.types.Struct
516
+ """
517
+
518
+ def bl_rna_get_subclass_py(self) -> typing.Any:
519
+ """
520
+
521
+ :return: The class or default when not found.
522
+ :rtype: typing.Any
523
+ """
524
+
525
+ def execute(self, context) -> None:
526
+ """
527
+
528
+ :param context:
529
+ """
530
+
531
+ @staticmethod
532
+ def get_zone_pair(tree, node) -> None:
533
+ """
534
+
535
+ :param tree:
536
+ :param node:
537
+ """
538
+
539
+ class NODE_OT_swap_zone(NodeSwapOperator, ZoneOperator, _bpy_types.Operator):
540
+ bl_idname: typing.Any
541
+ bl_label: typing.Any
542
+ bl_options: typing.Any
543
+ bl_rna: typing.Any
544
+ id_data: typing.Any
545
+ properties_to_pass: typing.Any
546
+
547
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
548
+ """
549
+
550
+ :return: The RNA type or default when not found.
551
+ :rtype: bpy.types.Struct
552
+ """
553
+
554
+ def bl_rna_get_subclass_py(self) -> typing.Any:
555
+ """
556
+
557
+ :return: The class or default when not found.
558
+ :rtype: typing.Any
559
+ """
560
+
561
+ def execute(self, context) -> None:
562
+ """
563
+
564
+ :param context:
565
+ """
566
+
567
+ @staticmethod
568
+ def get_zone_pair(tree, node) -> None:
569
+ """
570
+
571
+ :param tree:
572
+ :param node:
573
+ """
574
+
435
575
  class NODE_OT_tree_path_parent(_bpy_types.Operator):
436
576
  """Go to parent node tree"""
437
577
 
@@ -546,7 +686,13 @@ class NODE_OT_viewer_shortcut_set(_bpy_types.Operator):
546
686
  :param context:
547
687
  """
548
688
 
549
- class NodeAddOperator:
689
+ class NodeOperator:
690
+ def apply_node_settings(self, node) -> None:
691
+ """
692
+
693
+ :param node:
694
+ """
695
+
550
696
  def create_node(self, context, node_type) -> None:
551
697
  """
552
698
 
@@ -554,6 +700,14 @@ class NodeAddOperator:
554
700
  :param node_type:
555
701
  """
556
702
 
703
+ @classmethod
704
+ def description(cls, _context, properties) -> None:
705
+ """
706
+
707
+ :param _context:
708
+ :param properties:
709
+ """
710
+
557
711
  @staticmethod
558
712
  def deselect_nodes(context) -> None:
559
713
  """
@@ -561,6 +715,44 @@ class NodeAddOperator:
561
715
  :param context:
562
716
  """
563
717
 
718
+ class NodeInterfaceOperator:
719
+ @classmethod
720
+ def poll(cls, context) -> None:
721
+ """
722
+
723
+ :param context:
724
+ """
725
+
726
+ class NodeSetting(_bpy_types.PropertyGroup):
727
+ bl_rna: typing.Any
728
+ id_data: typing.Any
729
+
730
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
731
+ """
732
+
733
+ :return: The RNA type or default when not found.
734
+ :rtype: bpy.types.Struct
735
+ """
736
+
737
+ def bl_rna_get_subclass_py(self) -> typing.Any:
738
+ """
739
+
740
+ :return: The class or default when not found.
741
+ :rtype: typing.Any
742
+ """
743
+
744
+ class ZoneOperator:
745
+ @classmethod
746
+ def description(cls, _context, properties) -> None:
747
+ """
748
+
749
+ :param _context:
750
+ :param properties:
751
+ """
752
+
753
+ class temporary_unframe: ...
754
+
755
+ class NodeAddOperator(NodeOperator):
564
756
  def invoke(self, context, event) -> None:
565
757
  """
566
758
 
@@ -583,7 +775,16 @@ class NodeAddOperator:
583
775
  :param event:
584
776
  """
585
777
 
586
- class NodeInterfaceOperator:
778
+ class NodeSwapOperator(NodeOperator):
779
+ properties_to_pass: typing.Any
780
+
781
+ @staticmethod
782
+ def get_switch_items(node) -> None:
783
+ """
784
+
785
+ :param node:
786
+ """
787
+
587
788
  @classmethod
588
789
  def poll(cls, context) -> None:
589
790
  """
@@ -591,25 +792,38 @@ class NodeInterfaceOperator:
591
792
  :param context:
592
793
  """
593
794
 
594
- class NodeSetting(_bpy_types.PropertyGroup):
595
- bl_rna: typing.Any
596
- id_data: typing.Any
795
+ def transfer_input_values(self, old_node, new_node) -> None:
796
+ """
597
797
 
598
- def bl_rna_get_subclass(self) -> bpy.types.Struct:
798
+ :param old_node:
799
+ :param new_node:
599
800
  """
600
801
 
601
- :return: The RNA type or default when not found.
602
- :rtype: bpy.types.Struct
802
+ @staticmethod
803
+ def transfer_links(tree, old_node, new_node, is_input) -> None:
603
804
  """
604
805
 
605
- def bl_rna_get_subclass_py(self) -> typing.Any:
806
+ :param tree:
807
+ :param old_node:
808
+ :param new_node:
809
+ :param is_input:
606
810
  """
607
811
 
608
- :return: The class or default when not found.
609
- :rtype: typing.Any
812
+ def transfer_node_properties(self, old_node, new_node) -> None:
610
813
  """
611
814
 
612
- class NodeAddZoneOperator(NodeAddOperator):
815
+ :param old_node:
816
+ :param new_node:
817
+ """
818
+
819
+ def transfer_switch_data(self, old_node, new_node) -> None:
820
+ """
821
+
822
+ :param old_node:
823
+ :param new_node:
824
+ """
825
+
826
+ class NodeAddZoneOperator(ZoneOperator, NodeAddOperator):
613
827
  add_default_geometry_link: typing.Any
614
828
 
615
829
  def execute(self, context) -> None:
@@ -617,3 +831,5 @@ class NodeAddZoneOperator(NodeAddOperator):
617
831
 
618
832
  :param context:
619
833
  """
834
+
835
+ def cast_value(source, target) -> None: ...
@@ -120,7 +120,7 @@ class UILIST_OT_entry_remove(GenericUIListOperator, _bpy_types.Operator):
120
120
 
121
121
  def draw_ui_list(
122
122
  layout: bpy.types.UILayout,
123
- context: _bpy_types.Context,
123
+ context: bpy.types.Context,
124
124
  class_name: str = "UI_UL_list",
125
125
  *,
126
126
  unique_id: str,
@@ -136,7 +136,7 @@ def draw_ui_list(
136
136
  :param layout: UILayout to draw the list in.
137
137
  :type layout: bpy.types.UILayout
138
138
  :param context: Blender context to get the list data from.
139
- :type context: _bpy_types.Context
139
+ :type context: bpy.types.Context
140
140
  :param class_name: Name of the UIList class to draw. The default is the UIList class that ships with Blender.
141
141
  :type class_name: str
142
142
  :param unique_id: Unique identifier to differentiate this from other UI lists.
@@ -5,8 +5,229 @@ import numpy.typing as npt
5
5
  import _bpy_types
6
6
  import bpy.types
7
7
 
8
- class NODE_MT_category_layout(_bpy_types.Menu):
9
- bl_idname: typing.Any
8
+ class NodeMenu(_bpy_types.Menu):
9
+ """A baseclass defining the shared methods for AddNodeMenu and SwapNodeMenu."""
10
+
11
+ bl_rna: typing.Any
12
+ id_data: typing.Any
13
+
14
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
15
+ """
16
+
17
+ :return: The RNA type or default when not found.
18
+ :rtype: bpy.types.Struct
19
+ """
20
+
21
+ def bl_rna_get_subclass_py(self) -> typing.Any:
22
+ """
23
+
24
+ :return: The class or default when not found.
25
+ :rtype: typing.Any
26
+ """
27
+
28
+ @classmethod
29
+ def closure_zone(cls, layout, label) -> None:
30
+ """
31
+
32
+ :param layout:
33
+ :param label:
34
+ """
35
+
36
+ @classmethod
37
+ def color_mix_node(cls, context, layout) -> None:
38
+ """The Mix Color node, with its different blend modes available while in search.
39
+
40
+ :param context:
41
+ :param layout:
42
+ """
43
+
44
+ @classmethod
45
+ def draw_group_menu(cls, context, layout) -> None:
46
+ """Show operators used for interacting with node groups.
47
+
48
+ :param context:
49
+ :param layout:
50
+ """
51
+
52
+ @classmethod
53
+ def draw_menu(cls, layout, path) -> None:
54
+ """Takes the given menu path and draws the corresponding menu.
55
+ Menu paths are either explicitly defined, or based on bl_label if not.
56
+
57
+ :param layout:
58
+ :param path:
59
+ """
60
+
61
+ @classmethod
62
+ def draw_root_assets(cls, layout) -> None:
63
+ """
64
+
65
+ :param layout:
66
+ """
67
+
68
+ @classmethod
69
+ def for_each_element_zone(cls, layout, label) -> None:
70
+ """
71
+
72
+ :param layout:
73
+ :param label:
74
+ """
75
+
76
+ @classmethod
77
+ def new_empty_group(cls, layout) -> None:
78
+ """Group Node with a newly created empty group as its assigned nodetree.
79
+
80
+ :param layout:
81
+ """
82
+
83
+ @classmethod
84
+ def node_operator(
85
+ cls,
86
+ layout,
87
+ node_type,
88
+ *,
89
+ label=None,
90
+ poll=None,
91
+ search_weight=0.0,
92
+ translate=True,
93
+ ) -> None:
94
+ """The main operator defined for the node menu.(e.g. Add Node for AddNodeMenu, or Swap Node for SwapNodeMenu).
95
+
96
+ :param layout:
97
+ :param node_type:
98
+ :param label:
99
+ :param poll:
100
+ :param search_weight:
101
+ :param translate:
102
+ """
103
+
104
+ @classmethod
105
+ def node_operator_with_outputs(
106
+ cls, context, layout, node_type, subnames, *, label=None, search_weight=0.0
107
+ ) -> None:
108
+ """Similar to node_operator, but with extra entries based on a enum socket while in search.
109
+
110
+ :param context:
111
+ :param layout:
112
+ :param node_type:
113
+ :param subnames:
114
+ :param label:
115
+ :param search_weight:
116
+ """
117
+
118
+ @classmethod
119
+ def node_operator_with_searchable_enum(
120
+ cls, context, layout, node_idname, property_name, search_weight=0.0
121
+ ) -> None:
122
+ """Similar to node_operator, but with extra entries based on a enum property while in search.
123
+
124
+ :param context:
125
+ :param layout:
126
+ :param node_idname:
127
+ :param property_name:
128
+ :param search_weight:
129
+ """
130
+
131
+ @classmethod
132
+ def node_operator_with_searchable_enum_socket(
133
+ cls,
134
+ context,
135
+ layout,
136
+ node_idname,
137
+ socket_identifier,
138
+ enum_names,
139
+ search_weight=0.0,
140
+ ) -> None:
141
+ """Similar to node_operator, but with extra entries based on a enum socket while in search.
142
+
143
+ :param context:
144
+ :param layout:
145
+ :param node_idname:
146
+ :param socket_identifier:
147
+ :param enum_names:
148
+ :param search_weight:
149
+ """
150
+
151
+ @classmethod
152
+ def repeat_zone(cls, layout, label) -> None:
153
+ """
154
+
155
+ :param layout:
156
+ :param label:
157
+ """
158
+
159
+ @classmethod
160
+ def simulation_zone(cls, layout, label) -> None:
161
+ """
162
+
163
+ :param layout:
164
+ :param label:
165
+ """
166
+
167
+ class AddNodeMenu(NodeMenu):
168
+ """A baseclass defining the shared methods for AddNodeMenu and SwapNodeMenu."""
169
+
170
+ bl_rna: typing.Any
171
+ draw_assets: typing.Any
172
+ id_data: typing.Any
173
+ main_operator_id: typing.Any
174
+ new_empty_group_operator_id: typing.Any
175
+ root_asset_menu: typing.Any
176
+ use_transform: typing.Any
177
+ zone_operator_id: typing.Any
178
+
179
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
180
+ """
181
+
182
+ :return: The RNA type or default when not found.
183
+ :rtype: bpy.types.Struct
184
+ """
185
+
186
+ def bl_rna_get_subclass_py(self) -> typing.Any:
187
+ """
188
+
189
+ :return: The class or default when not found.
190
+ :rtype: typing.Any
191
+ """
192
+
193
+ @classmethod
194
+ def draw_assets_for_catalog(cls, layout, catalog_path) -> None:
195
+ """
196
+
197
+ :param layout:
198
+ :param catalog_path:
199
+ """
200
+
201
+ class NODE_MT_group_base(NodeMenu):
202
+ """A baseclass defining the shared methods for AddNodeMenu and SwapNodeMenu."""
203
+
204
+ bl_label: typing.Any
205
+ bl_rna: typing.Any
206
+ id_data: typing.Any
207
+
208
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
209
+ """
210
+
211
+ :return: The RNA type or default when not found.
212
+ :rtype: bpy.types.Struct
213
+ """
214
+
215
+ def bl_rna_get_subclass_py(self) -> typing.Any:
216
+ """
217
+
218
+ :return: The class or default when not found.
219
+ :rtype: typing.Any
220
+ """
221
+
222
+ def draw(self, context) -> None:
223
+ """
224
+
225
+ :param context:
226
+ """
227
+
228
+ class NODE_MT_layout_base(NodeMenu):
229
+ """A baseclass defining the shared methods for AddNodeMenu and SwapNodeMenu."""
230
+
10
231
  bl_label: typing.Any
11
232
  bl_rna: typing.Any
12
233
  id_data: typing.Any
@@ -31,6 +252,39 @@ class NODE_MT_category_layout(_bpy_types.Menu):
31
252
  :param _context:
32
253
  """
33
254
 
255
+ class SwapNodeMenu(NodeMenu):
256
+ """A baseclass defining the shared methods for AddNodeMenu and SwapNodeMenu."""
257
+
258
+ bl_rna: typing.Any
259
+ draw_assets: typing.Any
260
+ id_data: typing.Any
261
+ main_operator_id: typing.Any
262
+ new_empty_group_operator_id: typing.Any
263
+ root_asset_menu: typing.Any
264
+ zone_operator_id: typing.Any
265
+
266
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
267
+ """
268
+
269
+ :return: The RNA type or default when not found.
270
+ :rtype: bpy.types.Struct
271
+ """
272
+
273
+ def bl_rna_get_subclass_py(self) -> typing.Any:
274
+ """
275
+
276
+ :return: The class or default when not found.
277
+ :rtype: typing.Any
278
+ """
279
+
280
+ @classmethod
281
+ def draw_assets_for_catalog(cls, layout, catalog_path) -> None:
282
+ """
283
+
284
+ :param layout:
285
+ :param catalog_path:
286
+ """
287
+
34
288
  def add_closure_zone(layout, label) -> None: ...
35
289
  def add_color_mix_node(context, layout) -> None: ...
36
290
  def add_empty_group(layout) -> None: ...
@@ -53,8 +307,9 @@ def add_repeat_zone(layout, label) -> None: ...
53
307
  def add_simulation_zone(layout, label) -> None:
54
308
  """Add simulation zone to a menu."""
55
309
 
56
- def draw_assets_for_catalog(layout, catalog_path) -> None: ...
57
310
  def draw_node_group_add_menu(context, layout) -> None:
58
311
  """Add items to the layout used for interacting with node groups."""
59
312
 
60
- def draw_root_assets(layout) -> None: ...
313
+ def generate_menu(bl_idname, template, layout_base, pathing_dict=None) -> None: ...
314
+ def generate_menus(menus, template, base_dict) -> None: ...
315
+ def generate_pathing_dict(pathing_dict, menus) -> None: ...