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

@@ -27,7 +27,7 @@ class I18n:
27
27
  """
28
28
  ...
29
29
 
30
- def parse(self, kind, src, langs=None()):
30
+ def parse(self, kind, src, langs=set()):
31
31
  """
32
32
 
33
33
  :param kind:
@@ -36,7 +36,7 @@ class I18n:
36
36
  """
37
37
  ...
38
38
 
39
- def parse_from_po(self, src, langs=None()):
39
+ def parse_from_po(self, src, langs=set()):
40
40
  """
41
41
 
42
42
  :param src:
@@ -44,7 +44,7 @@ class I18n:
44
44
  """
45
45
  ...
46
46
 
47
- def parse_from_py(self, src, langs=None()):
47
+ def parse_from_py(self, src, langs=set()):
48
48
  """src must be a valid path, either a py file or a module directory (in which case all py files inside it
49
49
  will be checked, first file matching will win!).
50
50
  if langs set is void, all languages found are loaded.
@@ -71,7 +71,7 @@ class I18n:
71
71
  ...
72
72
 
73
73
  def update_info(self): ...
74
- def write(self, kind, langs=None()):
74
+ def write(self, kind, langs=set()):
75
75
  """
76
76
 
77
77
  :param kind:
@@ -79,14 +79,14 @@ class I18n:
79
79
  """
80
80
  ...
81
81
 
82
- def write_to_po(self, langs=None()):
82
+ def write_to_po(self, langs=set()):
83
83
  """
84
84
 
85
85
  :param langs:
86
86
  """
87
87
  ...
88
88
 
89
- def write_to_py(self, langs=None()):
89
+ def write_to_py(self, langs=set()):
90
90
  """
91
91
 
92
92
  :param langs:
@@ -312,7 +312,7 @@ def find_best_isocode_matches(uid, iso_codes):
312
312
  ...
313
313
 
314
314
  def get_best_similar(data): ...
315
- def get_po_files_from_dir(root_dir, langs=None()):
315
+ def get_po_files_from_dir(root_dir, langs=set()):
316
316
  """Yield tuples (uid, po_path) of translations for each po file found in the given directory, which should be either
317
317
  a directory containing po files using language uid's as names (e.g. fr.po, es_ES.po, etc.), or
318
318
  a directory containing directories which names are language uids, and containing po files of the same names.
@@ -291,20 +291,20 @@ class NODE_OT_connect_to_output(
291
291
  """
292
292
  ...
293
293
 
294
- def scan_nodes(self, tree, sockets):
295
- """Recursively get all viewer sockets in a material tree
294
+ def search_connected_viewer_sockets(self, output_node, r_sockets, index=None):
295
+ """From an output node, recursively scan node tree for connected viewer sockets
296
296
 
297
- :param tree:
298
- :param sockets:
297
+ :param output_node:
298
+ :param r_sockets:
299
+ :param index:
299
300
  """
300
301
  ...
301
302
 
302
- def search_sockets(self, node, r_sockets, index=None):
303
- """Recursively scan nodes for viewer sockets and store them in a list
303
+ def search_viewer_sockets_in_tree(self, tree, r_sockets):
304
+ """Recursively get all viewer sockets in a node tree
304
305
 
305
- :param node:
306
+ :param tree:
306
307
  :param r_sockets:
307
- :param index:
308
308
  """
309
309
  ...
310
310
 
@@ -8,9 +8,300 @@ import bpy_types
8
8
  GenericType1 = typing.TypeVar("GenericType1")
9
9
  GenericType2 = typing.TypeVar("GenericType2")
10
10
 
11
+ class TextureProperties_MixIn:
12
+ t: typing.Any
13
+
14
+ def draw_texture_config(self, context):
15
+ """
16
+
17
+ :param context:
18
+ """
19
+ ...
20
+
21
+ class MaterialProperties_MixIn:
22
+ def draw_material_config(self, context):
23
+ """
24
+
25
+ :param context:
26
+ """
27
+ ...
28
+
29
+ class ImageSpec:
30
+ """ImageSpec(image, size, frame_start, frame_offset, frame_duration)"""
31
+
32
+ frame_duration: typing.Any
33
+ frame_offset: typing.Any
34
+ frame_start: typing.Any
35
+ image: typing.Any
36
+ size: typing.Any
37
+
38
+ def count(self, value):
39
+ """Return number of occurrences of value.
40
+
41
+ :param value:
42
+ """
43
+ ...
44
+
45
+ def index(self, value, start=0, stop=9223372036854775807):
46
+ """Return first index of value.Raises ValueError if the value is not present.
47
+
48
+ :param value:
49
+ :param start:
50
+ :param stop:
51
+ """
52
+ ...
53
+
54
+ class IMAGE_OT_convert_to_mesh_plane(
55
+ TextureProperties_MixIn, MaterialProperties_MixIn, bpy_types.Operator
56
+ ):
57
+ """Convert selected reference images to textured mesh plane"""
58
+
59
+ bl_idname: typing.Any
60
+ bl_label: typing.Any
61
+ bl_options: typing.Any
62
+ bl_rna: typing.Any
63
+ id_data: typing.Any
64
+ t: typing.Any
65
+
66
+ def as_keywords(self, ignore=()):
67
+ """Return a copy of the properties as a dictionary
68
+
69
+ :param ignore:
70
+ """
71
+ ...
72
+
73
+ def as_pointer(self) -> int:
74
+ """Returns the memory address which holds a pointer to Blender's internal data
75
+
76
+ :return: int (memory address).
77
+ :rtype: int
78
+ """
79
+ ...
80
+
81
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
82
+ """
83
+
84
+ :return: The RNA type or default when not found.
85
+ :rtype: bpy.types.Struct
86
+ """
87
+ ...
88
+
89
+ def bl_rna_get_subclass_py(self) -> typing.Any:
90
+ """
91
+
92
+ :return: The class or default when not found.
93
+ :rtype: typing.Any
94
+ """
95
+ ...
96
+
97
+ def draw(self, context):
98
+ """
99
+
100
+ :param context:
101
+ """
102
+ ...
103
+
104
+ def draw_material_config(self, context):
105
+ """
106
+
107
+ :param context:
108
+ """
109
+ ...
110
+
111
+ def draw_texture_config(self, context):
112
+ """
113
+
114
+ :param context:
115
+ """
116
+ ...
117
+
118
+ def driver_add(self) -> bpy.types.FCurve:
119
+ """Adds driver(s) to the given property
120
+
121
+ :return: The driver(s) added.
122
+ :rtype: bpy.types.FCurve
123
+ """
124
+ ...
125
+
126
+ def driver_remove(self) -> bool:
127
+ """Remove driver(s) from the given property
128
+
129
+ :return: Success of driver removal.
130
+ :rtype: bool
131
+ """
132
+ ...
133
+
134
+ def execute(self, context):
135
+ """
136
+
137
+ :param context:
138
+ """
139
+ ...
140
+
141
+ def get(self):
142
+ """Returns the value of the custom property assigned to key or default
143
+ when not found (matches Python's dictionary function of the same name).
144
+
145
+ """
146
+ ...
147
+
148
+ def id_properties_clear(self):
149
+ """
150
+
151
+ :return: Remove the parent group for an RNA struct's custom IDProperties.
152
+ """
153
+ ...
154
+
155
+ def id_properties_ensure(self):
156
+ """
157
+
158
+ :return: the parent group for an RNA struct's custom IDProperties.
159
+ """
160
+ ...
161
+
162
+ def id_properties_ui(self):
163
+ """
164
+
165
+ :return: Return an object used to manage an IDProperty's UI data.
166
+ """
167
+ ...
168
+
169
+ def invoke(self, context, _event):
170
+ """
171
+
172
+ :param context:
173
+ :param _event:
174
+ """
175
+ ...
176
+
177
+ def is_property_hidden(self) -> bool:
178
+ """Check if a property is hidden.
179
+
180
+ :return: True when the property is hidden.
181
+ :rtype: bool
182
+ """
183
+ ...
184
+
185
+ def is_property_overridable_library(self) -> bool:
186
+ """Check if a property is overridable.
187
+
188
+ :return: True when the property is overridable.
189
+ :rtype: bool
190
+ """
191
+ ...
192
+
193
+ def is_property_readonly(self) -> bool:
194
+ """Check if a property is readonly.
195
+
196
+ :return: True when the property is readonly (not writable).
197
+ :rtype: bool
198
+ """
199
+ ...
200
+
201
+ def is_property_set(self) -> bool:
202
+ """Check if a property is set, use for testing operator properties.
203
+
204
+ :return: True when the property has been set.
205
+ :rtype: bool
206
+ """
207
+ ...
208
+
209
+ def items(self):
210
+ """Returns the items of this objects custom properties (matches Python's
211
+ dictionary function of the same name).
212
+
213
+ :return: custom property key, value pairs.
214
+ """
215
+ ...
216
+
217
+ def keyframe_delete(self) -> bool:
218
+ """Remove a keyframe from this properties fcurve.
219
+
220
+ :return: Success of keyframe deletion.
221
+ :rtype: bool
222
+ """
223
+ ...
224
+
225
+ def keyframe_insert(self) -> bool:
226
+ """Insert a keyframe on the property given, adding fcurves and animation data when necessary.
227
+
228
+ :return: Success of keyframe insertion.
229
+ :rtype: bool
230
+ """
231
+ ...
232
+
233
+ def keys(self):
234
+ """Returns the keys of this objects custom properties (matches Python's
235
+ dictionary function of the same name).
236
+
237
+ :return: custom property keys.
238
+ """
239
+ ...
240
+
241
+ def path_from_id(self) -> str:
242
+ """Returns the data path from the ID to this object (string).
243
+
244
+ :return: The path from `bpy.types.bpy_struct.id_data`
245
+ to this struct and property (when given).
246
+ :rtype: str
247
+ """
248
+ ...
249
+
250
+ def path_resolve(self):
251
+ """Returns the property from the path, raise an exception when not found."""
252
+ ...
253
+
254
+ def poll(self, context):
255
+ """
256
+
257
+ :param context:
258
+ """
259
+ ...
260
+
261
+ def poll_message_set(self):
262
+ """Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
263
+ ...
264
+
265
+ def pop(self):
266
+ """Remove and return the value of the custom property assigned to key or default
267
+ when not found (matches Python's dictionary function of the same name).
268
+
269
+ """
270
+ ...
271
+
272
+ def property_overridable_library_set(self) -> bool:
273
+ """Define a property as overridable or not (only for custom properties!).
274
+
275
+ :return: True when the overridable status of the property was successfully set.
276
+ :rtype: bool
277
+ """
278
+ ...
279
+
280
+ def property_unset(self):
281
+ """Unset a property, will use default value afterward."""
282
+ ...
283
+
284
+ def type_recast(self):
285
+ """Return a new instance, this is needed because types
286
+ such as textures can be changed at runtime.
287
+
288
+ :return: a new instance of this object with the type initialized again.
289
+ """
290
+ ...
291
+
292
+ def values(self):
293
+ """Returns the values of this objects custom properties (matches Python's
294
+ dictionary function of the same name).
295
+
296
+ :return: custom property values.
297
+ """
298
+ ...
299
+
11
300
  class IMAGE_OT_import_as_mesh_planes(
301
+ TextureProperties_MixIn,
12
302
  bpy_extras.io_utils.ImportHelper,
13
303
  bpy_extras.object_utils.AddObjectHelper,
304
+ MaterialProperties_MixIn,
14
305
  bpy_types.Operator,
15
306
  ):
16
307
  """Create mesh plane(s) from image files with the appropriate aspect ratio"""
@@ -54,14 +345,6 @@ class IMAGE_OT_import_as_mesh_planes(
54
345
  """
55
346
  ...
56
347
 
57
- def apply_texture_options(self, texture, img_spec):
58
- """
59
-
60
- :param texture:
61
- :param img_spec:
62
- """
63
- ...
64
-
65
348
  def as_keywords(self, ignore=()):
66
349
  """Return a copy of the properties as a dictionary
67
350
 
@@ -108,22 +391,6 @@ class IMAGE_OT_import_as_mesh_planes(
108
391
  """
109
392
  ...
110
393
 
111
- def create_cycles_material(self, img_spec, name):
112
- """
113
-
114
- :param img_spec:
115
- :param name:
116
- """
117
- ...
118
-
119
- def create_cycles_texnode(self, node_tree, img_spec):
120
- """
121
-
122
- :param node_tree:
123
- :param img_spec:
124
- """
125
- ...
126
-
127
394
  def create_image_plane(self, context, name, img_spec):
128
395
  """
129
396
 
@@ -380,31 +647,7 @@ class IMAGE_OT_import_as_mesh_planes(
380
647
  """
381
648
  ...
382
649
 
383
- class ImageSpec:
384
- """ImageSpec(image, size, frame_start, frame_offset, frame_duration)"""
385
-
386
- frame_duration: typing.Any
387
- frame_offset: typing.Any
388
- frame_start: typing.Any
389
- image: typing.Any
390
- size: typing.Any
391
-
392
- def count(self, value):
393
- """Return number of occurrences of value.
394
-
395
- :param value:
396
- """
397
- ...
398
-
399
- def index(self, value, start=0, stop=9223372036854775807):
400
- """Return first index of value.Raises ValueError if the value is not present.
401
-
402
- :param value:
403
- :param start:
404
- :param stop:
405
- """
406
- ...
407
-
650
+ def apply_texture_options(texture, img_spec): ...
408
651
  def auto_align_nodes(node_tree):
409
652
  """Given a shader node tree, arrange nodes neatly relative to the output node."""
410
653
 
@@ -425,6 +668,8 @@ def compute_camera_size(context, center, fill_mode, aspect):
425
668
 
426
669
  ...
427
670
 
671
+ def create_cycles_material(context, img_spec, name): ...
672
+ def create_cycles_texnode(node_tree, img_spec): ...
428
673
  def find_image_sequences(files):
429
674
  """From a group of files, detect image sequences.This returns a generator of tuples, which contain the filename,
430
675
  start frame, and length of the detected sequence
@@ -438,6 +683,7 @@ def get_input_nodes(node, links):
438
683
 
439
684
  ...
440
685
 
686
+ def get_ref_object_space_coord(ob): ...
441
687
  def get_shadeless_node(dest_node_tree):
442
688
  """Return a "shadeless" cycles/EEVEE node, creating a node group if nonexistent"""
443
689
 
@@ -17,7 +17,6 @@ def get_group_output_node(tree, output_node_idname="NodeGroupOutput"): ...
17
17
  def get_internal_socket(socket): ...
18
18
  def get_output_location(tree): ...
19
19
  def is_viewer_link(link, output_node): ...
20
- def is_viewer_socket(socket): ...
21
20
  def is_visible_socket(socket): ...
22
21
  def node_editor_poll(cls, context): ...
23
22
  def node_space_type_poll(cls, context, types): ...
@@ -396,6 +396,201 @@ class VIEW3D_FH_empty_image(bpy_types.FileHandler):
396
396
  """
397
397
  ...
398
398
 
399
+ class VIEW3D_FH_vdb_volume(bpy_types.FileHandler):
400
+ bl_file_extensions: typing.Any
401
+ bl_idname: typing.Any
402
+ bl_import_operator: typing.Any
403
+ bl_label: typing.Any
404
+ bl_rna: typing.Any
405
+ id_data: typing.Any
406
+
407
+ def as_pointer(self) -> int:
408
+ """Returns the memory address which holds a pointer to Blender's internal data
409
+
410
+ :return: int (memory address).
411
+ :rtype: int
412
+ """
413
+ ...
414
+
415
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
416
+ """
417
+
418
+ :return: The RNA type or default when not found.
419
+ :rtype: bpy.types.Struct
420
+ """
421
+ ...
422
+
423
+ def bl_rna_get_subclass_py(self) -> typing.Any:
424
+ """
425
+
426
+ :return: The class or default when not found.
427
+ :rtype: typing.Any
428
+ """
429
+ ...
430
+
431
+ def driver_add(self) -> bpy.types.FCurve:
432
+ """Adds driver(s) to the given property
433
+
434
+ :return: The driver(s) added.
435
+ :rtype: bpy.types.FCurve
436
+ """
437
+ ...
438
+
439
+ def driver_remove(self) -> bool:
440
+ """Remove driver(s) from the given property
441
+
442
+ :return: Success of driver removal.
443
+ :rtype: bool
444
+ """
445
+ ...
446
+
447
+ def get(self):
448
+ """Returns the value of the custom property assigned to key or default
449
+ when not found (matches Python's dictionary function of the same name).
450
+
451
+ """
452
+ ...
453
+
454
+ def id_properties_clear(self):
455
+ """
456
+
457
+ :return: Remove the parent group for an RNA struct's custom IDProperties.
458
+ """
459
+ ...
460
+
461
+ def id_properties_ensure(self):
462
+ """
463
+
464
+ :return: the parent group for an RNA struct's custom IDProperties.
465
+ """
466
+ ...
467
+
468
+ def id_properties_ui(self):
469
+ """
470
+
471
+ :return: Return an object used to manage an IDProperty's UI data.
472
+ """
473
+ ...
474
+
475
+ def is_property_hidden(self) -> bool:
476
+ """Check if a property is hidden.
477
+
478
+ :return: True when the property is hidden.
479
+ :rtype: bool
480
+ """
481
+ ...
482
+
483
+ def is_property_overridable_library(self) -> bool:
484
+ """Check if a property is overridable.
485
+
486
+ :return: True when the property is overridable.
487
+ :rtype: bool
488
+ """
489
+ ...
490
+
491
+ def is_property_readonly(self) -> bool:
492
+ """Check if a property is readonly.
493
+
494
+ :return: True when the property is readonly (not writable).
495
+ :rtype: bool
496
+ """
497
+ ...
498
+
499
+ def is_property_set(self) -> bool:
500
+ """Check if a property is set, use for testing operator properties.
501
+
502
+ :return: True when the property has been set.
503
+ :rtype: bool
504
+ """
505
+ ...
506
+
507
+ def items(self):
508
+ """Returns the items of this objects custom properties (matches Python's
509
+ dictionary function of the same name).
510
+
511
+ :return: custom property key, value pairs.
512
+ """
513
+ ...
514
+
515
+ def keyframe_delete(self) -> bool:
516
+ """Remove a keyframe from this properties fcurve.
517
+
518
+ :return: Success of keyframe deletion.
519
+ :rtype: bool
520
+ """
521
+ ...
522
+
523
+ def keyframe_insert(self) -> bool:
524
+ """Insert a keyframe on the property given, adding fcurves and animation data when necessary.
525
+
526
+ :return: Success of keyframe insertion.
527
+ :rtype: bool
528
+ """
529
+ ...
530
+
531
+ def keys(self):
532
+ """Returns the keys of this objects custom properties (matches Python's
533
+ dictionary function of the same name).
534
+
535
+ :return: custom property keys.
536
+ """
537
+ ...
538
+
539
+ def path_from_id(self) -> str:
540
+ """Returns the data path from the ID to this object (string).
541
+
542
+ :return: The path from `bpy.types.bpy_struct.id_data`
543
+ to this struct and property (when given).
544
+ :rtype: str
545
+ """
546
+ ...
547
+
548
+ def path_resolve(self):
549
+ """Returns the property from the path, raise an exception when not found."""
550
+ ...
551
+
552
+ def poll_drop(self, context):
553
+ """
554
+
555
+ :param context:
556
+ """
557
+ ...
558
+
559
+ def pop(self):
560
+ """Remove and return the value of the custom property assigned to key or default
561
+ when not found (matches Python's dictionary function of the same name).
562
+
563
+ """
564
+ ...
565
+
566
+ def property_overridable_library_set(self) -> bool:
567
+ """Define a property as overridable or not (only for custom properties!).
568
+
569
+ :return: True when the overridable status of the property was successfully set.
570
+ :rtype: bool
571
+ """
572
+ ...
573
+
574
+ def property_unset(self):
575
+ """Unset a property, will use default value afterward."""
576
+ ...
577
+
578
+ def type_recast(self):
579
+ """Return a new instance, this is needed because types
580
+ such as textures can be changed at runtime.
581
+
582
+ :return: a new instance of this object with the type initialized again.
583
+ """
584
+ ...
585
+
586
+ def values(self):
587
+ """Returns the values of this objects custom properties (matches Python's
588
+ dictionary function of the same name).
589
+
590
+ :return: custom property values.
591
+ """
592
+ ...
593
+
399
594
  class VIEW3D_OT_edit_mesh_extrude_individual_move(bpy_types.Operator):
400
595
  """Extrude each individual face separately along local normals"""
401
596
 
@@ -9827,7 +9827,7 @@ class WM_OT_url_open_preset(bpy_types.Operator):
9827
9827
  def context_path_decompose(data_path): ...
9828
9828
  def context_path_to_rna_property(context, data_path): ...
9829
9829
  def context_path_validate(context, data_path): ...
9830
- def description_from_data_path(base, data_path, prefix, value=None): ...
9830
+ def description_from_data_path(base, data_path, prefix, value=Ellipsis): ...
9831
9831
  def execute_context_assign(context): ...
9832
9832
  def operator_path_is_undo(context, data_path): ...
9833
9833
  def operator_path_undo_return(context, data_path): ...