fake-bpy-module 20240524__py3-none-any.whl → 20240529__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_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -3
- bl_operators/__init__.pyi +3 -0
- bl_operators/connect_to_output/__init__.pyi +325 -0
- bl_operators/image_as_planes/__init__.pyi +463 -0
- bl_operators/node_editor/__init__.pyi +6 -0
- bl_operators/node_editor/node_functions/__init__.pyi +23 -0
- bl_operators/presets/__init__.pyi +12 -12
- bl_operators/userpref/__init__.pyi +0 -214
- bl_operators/wm/__init__.pyi +24 -24
- bl_ui/__init__.pyi +12 -12
- bl_ui/anim/__init__.pyi +6 -6
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/node_add_menu/__init__.pyi +6 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +108 -108
- bl_ui/node_add_menu_geometry/__init__.pyi +288 -288
- bl_ui/node_add_menu_shader/__init__.pyi +60 -60
- bl_ui/node_add_menu_texture/__init__.pyi +54 -54
- bl_ui/properties_collection/__init__.pyi +6 -6
- bl_ui/properties_data_armature/__init__.pyi +12 -12
- bl_ui/properties_data_camera/__init__.pyi +12 -12
- bl_ui/properties_data_curves/__init__.pyi +6 -6
- bl_ui/properties_data_gpencil/__init__.pyi +12 -12
- bl_ui/properties_data_grease_pencil/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +24 -24
- bl_ui/properties_data_modifier/__init__.pyi +42 -42
- bl_ui/properties_data_pointcloud/__init__.pyi +6 -6
- bl_ui/properties_freestyle/__init__.pyi +6 -6
- bl_ui/properties_grease_pencil_common/__init__.pyi +72 -72
- bl_ui/properties_mask_common/__init__.pyi +36 -36
- bl_ui/properties_material/__init__.pyi +6 -6
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +6 -6
- bl_ui/properties_output/__init__.pyi +18 -18
- bl_ui/properties_paint_common/__init__.pyi +6 -6
- bl_ui/properties_particle/__init__.pyi +12 -12
- bl_ui/properties_physics_cloth/__init__.pyi +6 -6
- bl_ui/properties_physics_fluid/__init__.pyi +6 -6
- bl_ui/properties_render/__init__.pyi +7 -7
- bl_ui/properties_texture/__init__.pyi +6 -6
- bl_ui/properties_view_layer/__init__.pyi +6 -6
- bl_ui/space_clip/__init__.pyi +186 -186
- bl_ui/space_console/__init__.pyi +30 -30
- bl_ui/space_dopesheet/__init__.pyi +84 -84
- bl_ui/space_filebrowser/__init__.pyi +78 -78
- bl_ui/space_graph/__init__.pyi +96 -96
- bl_ui/space_image/__init__.pyi +138 -138
- bl_ui/space_info/__init__.pyi +30 -30
- bl_ui/space_nla/__init__.pyi +78 -78
- bl_ui/space_node/__init__.pyi +72 -72
- bl_ui/space_outliner/__init__.pyi +72 -72
- bl_ui/space_sequencer/__init__.pyi +204 -204
- bl_ui/space_text/__init__.pyi +72 -72
- bl_ui/space_time/__init__.pyi +24 -24
- bl_ui/space_toolsystem_toolbar/__init__.pyi +4 -0
- bl_ui/space_topbar/__init__.pyi +114 -114
- bl_ui/space_userpref/__init__.pyi +36 -36
- bl_ui/space_view3d/__init__.pyi +1446 -1176
- bl_ui/space_view3d_toolbar/__init__.pyi +30 -30
- bl_ui/utils/__init__.pyi +6 -6
- bmesh/geometry/__init__.pyi +2 -2
- bmesh/ops/__init__.pyi +55 -54
- bmesh/types/__init__.pyi +43 -33
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/__init__.pyi +5 -1
- bpy/app/handlers/__init__.pyi +37 -37
- bpy/app/icons/__init__.pyi +4 -4
- bpy/app/timers/__init__.pyi +6 -6
- bpy/ops/action/__init__.pyi +21 -0
- bpy/ops/anim/__init__.pyi +34 -0
- bpy/ops/armature/__init__.pyi +31 -0
- bpy/ops/asset/__init__.pyi +5 -0
- bpy/ops/bl_pkg/__init__.pyi +32 -21
- bpy/ops/boid/__init__.pyi +1 -0
- bpy/ops/brush/__init__.pyi +6 -0
- bpy/ops/buttons/__init__.pyi +2 -0
- bpy/ops/cachefile/__init__.pyi +3 -0
- bpy/ops/camera/__init__.pyi +2 -0
- bpy/ops/clip/__init__.pyi +49 -0
- bpy/ops/cloth/__init__.pyi +1 -0
- bpy/ops/collection/__init__.pyi +7 -0
- bpy/ops/console/__init__.pyi +11 -0
- bpy/ops/constraint/__init__.pyi +15 -0
- bpy/ops/curve/__init__.pyi +28 -0
- bpy/ops/curves/__init__.pyi +14 -0
- bpy/ops/cycles/__init__.pyi +2 -0
- bpy/ops/dpaint/__init__.pyi +2 -0
- bpy/ops/ed/__init__.pyi +3 -0
- bpy/ops/export_anim/__init__.pyi +1 -0
- bpy/ops/export_scene/__init__.pyi +20 -3
- bpy/ops/file/__init__.pyi +14 -0
- bpy/ops/fluid/__init__.pyi +1 -0
- bpy/ops/font/__init__.pyi +13 -0
- bpy/ops/geometry/__init__.pyi +7 -0
- bpy/ops/gizmogroup/__init__.pyi +1 -0
- bpy/ops/gpencil/__init__.pyi +106 -0
- bpy/ops/graph/__init__.pyi +47 -0
- bpy/ops/grease_pencil/__init__.pyi +52 -0
- bpy/ops/image/__init__.pyi +308 -0
- bpy/ops/import_anim/__init__.pyi +1 -0
- bpy/ops/import_curve/__init__.pyi +1 -0
- bpy/ops/import_scene/__init__.pyi +2 -0
- bpy/ops/info/__init__.pyi +3 -0
- bpy/ops/lattice/__init__.pyi +5 -0
- bpy/ops/marker/__init__.pyi +9 -0
- bpy/ops/mask/__init__.pyi +22 -0
- bpy/ops/mball/__init__.pyi +7 -0
- bpy/ops/mesh/__init__.pyi +134 -0
- bpy/ops/nla/__init__.pyi +20 -0
- bpy/ops/node/__init__.pyi +65 -0
- bpy/ops/object/__init__.pyi +174 -0
- bpy/ops/outliner/__init__.pyi +25 -0
- bpy/ops/paint/__init__.pyi +105 -0
- bpy/ops/paintcurve/__init__.pyi +4 -0
- bpy/ops/palette/__init__.pyi +4 -0
- bpy/ops/particle/__init__.pyi +17 -0
- bpy/ops/pose/__init__.pyi +24 -0
- bpy/ops/poselib/__init__.pyi +4 -0
- bpy/ops/preferences/__init__.pyi +28 -16
- bpy/ops/ptcache/__init__.pyi +2 -0
- bpy/ops/render/__init__.pyi +9 -0
- bpy/ops/rigidbody/__init__.pyi +7 -0
- bpy/ops/scene/__init__.pyi +16 -0
- bpy/ops/screen/__init__.pyi +21 -0
- bpy/ops/script/__init__.pyi +2 -0
- bpy/ops/sculpt/__init__.pyi +151 -0
- bpy/ops/sculpt_curves/__init__.pyi +3 -0
- bpy/ops/sequencer/__init__.pyi +57 -0
- bpy/ops/sound/__init__.pyi +4 -0
- bpy/ops/spreadsheet/__init__.pyi +2 -0
- bpy/ops/surface/__init__.pyi +6 -0
- bpy/ops/text/__init__.pyi +18 -0
- bpy/ops/text_editor/__init__.pyi +1 -0
- bpy/ops/texture/__init__.pyi +1 -0
- bpy/ops/transform/__init__.pyi +25 -0
- bpy/ops/ui/__init__.pyi +13 -0
- bpy/ops/uilist/__init__.pyi +3 -0
- bpy/ops/uv/__init__.pyi +40 -0
- bpy/ops/view2d/__init__.pyi +11 -0
- bpy/ops/view3d/__init__.pyi +30 -0
- bpy/ops/wm/__init__.pyi +114 -0
- bpy/ops/workspace/__init__.pyi +1 -0
- bpy/path/__init__.pyi +6 -6
- bpy/props/__init__.pyi +27 -15
- bpy/types/__init__.pyi +662 -388
- bpy/utils/__init__.pyi +12 -10
- bpy_extras/anim_utils/__init__.pyi +7 -7
- bpy_extras/io_utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +8 -8
- bpy_extras/view3d_utils/__init__.pyi +2 -0
- bpy_types/__init__.pyi +12 -12
- {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/RECORD +167 -163
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +64 -56
- gpu/matrix/__init__.pyi +6 -6
- gpu/types/__init__.pyi +14 -10
- gpu_extras/batch/__init__.pyi +1 -1
- gpu_extras/presets/__init__.pyi +1 -1
- imbuf/__init__.pyi +2 -2
- mathutils/__init__.pyi +176 -137
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +139 -139
- mathutils/kdtree/__init__.pyi +14 -10
- mathutils/noise/__init__.pyi +26 -26
- {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
import collections.abc
|
|
3
|
+
import bpy.types
|
|
4
|
+
import bpy_extras.io_utils
|
|
5
|
+
import bpy_extras.object_utils
|
|
6
|
+
import bpy_types
|
|
7
|
+
|
|
8
|
+
GenericType1 = typing.TypeVar("GenericType1")
|
|
9
|
+
GenericType2 = typing.TypeVar("GenericType2")
|
|
10
|
+
|
|
11
|
+
class IMAGE_OT_import_as_mesh_planes(
|
|
12
|
+
bpy_extras.io_utils.ImportHelper,
|
|
13
|
+
bpy_extras.object_utils.AddObjectHelper,
|
|
14
|
+
bpy_types.Operator,
|
|
15
|
+
):
|
|
16
|
+
"""Create mesh plane(s) from image files with the appropriate aspect ratio"""
|
|
17
|
+
|
|
18
|
+
AXIS_MODES: typing.Any
|
|
19
|
+
axis_id_to_vector: typing.Any
|
|
20
|
+
bl_idname: typing.Any
|
|
21
|
+
bl_label: typing.Any
|
|
22
|
+
bl_options: typing.Any
|
|
23
|
+
bl_rna: typing.Any
|
|
24
|
+
id_data: typing.Any
|
|
25
|
+
t: typing.Any
|
|
26
|
+
|
|
27
|
+
def align_plane(self, context, plane):
|
|
28
|
+
"""Pick an axis and align the plane to it
|
|
29
|
+
|
|
30
|
+
:param context:
|
|
31
|
+
:param plane:
|
|
32
|
+
"""
|
|
33
|
+
...
|
|
34
|
+
|
|
35
|
+
def align_update_callback(self, _context):
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
:param _context:
|
|
39
|
+
"""
|
|
40
|
+
...
|
|
41
|
+
|
|
42
|
+
def apply_image_options(self, image):
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
:param image:
|
|
46
|
+
"""
|
|
47
|
+
...
|
|
48
|
+
|
|
49
|
+
def apply_material_options(self, material, slot):
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
:param material:
|
|
53
|
+
:param slot:
|
|
54
|
+
"""
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
def apply_texture_options(self, texture, img_spec):
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
:param texture:
|
|
61
|
+
:param img_spec:
|
|
62
|
+
"""
|
|
63
|
+
...
|
|
64
|
+
|
|
65
|
+
def as_keywords(self, ignore=()):
|
|
66
|
+
"""Return a copy of the properties as a dictionary
|
|
67
|
+
|
|
68
|
+
:param ignore:
|
|
69
|
+
"""
|
|
70
|
+
...
|
|
71
|
+
|
|
72
|
+
def as_pointer(self) -> int:
|
|
73
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
74
|
+
|
|
75
|
+
:return: int (memory address).
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
...
|
|
79
|
+
|
|
80
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
:return: The RNA type or default when not found.
|
|
84
|
+
:rtype: bpy.types.Struct
|
|
85
|
+
"""
|
|
86
|
+
...
|
|
87
|
+
|
|
88
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
:return: The class or default when not found.
|
|
92
|
+
:rtype: typing.Any
|
|
93
|
+
"""
|
|
94
|
+
...
|
|
95
|
+
|
|
96
|
+
def check(self, _context):
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
:param _context:
|
|
100
|
+
"""
|
|
101
|
+
...
|
|
102
|
+
|
|
103
|
+
def compute_plane_size(self, context, img_spec):
|
|
104
|
+
"""Given the image size in pixels and location, determine size of plane
|
|
105
|
+
|
|
106
|
+
:param context:
|
|
107
|
+
:param img_spec:
|
|
108
|
+
"""
|
|
109
|
+
...
|
|
110
|
+
|
|
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
|
+
def create_image_plane(self, context, name, img_spec):
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
:param context:
|
|
131
|
+
:param name:
|
|
132
|
+
:param img_spec:
|
|
133
|
+
"""
|
|
134
|
+
...
|
|
135
|
+
|
|
136
|
+
def draw(self, context):
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
:param context:
|
|
140
|
+
"""
|
|
141
|
+
...
|
|
142
|
+
|
|
143
|
+
def draw_import_config(self, _context):
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
:param _context:
|
|
147
|
+
"""
|
|
148
|
+
...
|
|
149
|
+
|
|
150
|
+
def draw_material_config(self, context):
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
:param context:
|
|
154
|
+
"""
|
|
155
|
+
...
|
|
156
|
+
|
|
157
|
+
def draw_spatial_config(self, _context):
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
:param _context:
|
|
161
|
+
"""
|
|
162
|
+
...
|
|
163
|
+
|
|
164
|
+
def draw_texture_config(self, context):
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
:param context:
|
|
168
|
+
"""
|
|
169
|
+
...
|
|
170
|
+
|
|
171
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
172
|
+
"""Adds driver(s) to the given property
|
|
173
|
+
|
|
174
|
+
:return: The driver(s) added.
|
|
175
|
+
:rtype: bpy.types.FCurve
|
|
176
|
+
"""
|
|
177
|
+
...
|
|
178
|
+
|
|
179
|
+
def driver_remove(self) -> bool:
|
|
180
|
+
"""Remove driver(s) from the given property
|
|
181
|
+
|
|
182
|
+
:return: Success of driver removal.
|
|
183
|
+
:rtype: bool
|
|
184
|
+
"""
|
|
185
|
+
...
|
|
186
|
+
|
|
187
|
+
def execute(self, context):
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
:param context:
|
|
191
|
+
"""
|
|
192
|
+
...
|
|
193
|
+
|
|
194
|
+
def get(self):
|
|
195
|
+
"""Returns the value of the custom property assigned to key or default
|
|
196
|
+
when not found (matches Python's dictionary function of the same name).
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
...
|
|
200
|
+
|
|
201
|
+
def id_properties_clear(self):
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
205
|
+
"""
|
|
206
|
+
...
|
|
207
|
+
|
|
208
|
+
def id_properties_ensure(self):
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
212
|
+
"""
|
|
213
|
+
...
|
|
214
|
+
|
|
215
|
+
def id_properties_ui(self):
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
219
|
+
"""
|
|
220
|
+
...
|
|
221
|
+
|
|
222
|
+
def import_images(self, context):
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
:param context:
|
|
226
|
+
"""
|
|
227
|
+
...
|
|
228
|
+
|
|
229
|
+
def invoke(self, context, _event):
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
:param context:
|
|
233
|
+
:param _event:
|
|
234
|
+
"""
|
|
235
|
+
...
|
|
236
|
+
|
|
237
|
+
def invoke_popup(self, context, confirm_text=""):
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
:param context:
|
|
241
|
+
:param confirm_text:
|
|
242
|
+
"""
|
|
243
|
+
...
|
|
244
|
+
|
|
245
|
+
def is_property_hidden(self) -> bool:
|
|
246
|
+
"""Check if a property is hidden.
|
|
247
|
+
|
|
248
|
+
:return: True when the property is hidden.
|
|
249
|
+
:rtype: bool
|
|
250
|
+
"""
|
|
251
|
+
...
|
|
252
|
+
|
|
253
|
+
def is_property_overridable_library(self) -> bool:
|
|
254
|
+
"""Check if a property is overridable.
|
|
255
|
+
|
|
256
|
+
:return: True when the property is overridable.
|
|
257
|
+
:rtype: bool
|
|
258
|
+
"""
|
|
259
|
+
...
|
|
260
|
+
|
|
261
|
+
def is_property_readonly(self) -> bool:
|
|
262
|
+
"""Check if a property is readonly.
|
|
263
|
+
|
|
264
|
+
:return: True when the property is readonly (not writable).
|
|
265
|
+
:rtype: bool
|
|
266
|
+
"""
|
|
267
|
+
...
|
|
268
|
+
|
|
269
|
+
def is_property_set(self) -> bool:
|
|
270
|
+
"""Check if a property is set, use for testing operator properties.
|
|
271
|
+
|
|
272
|
+
:return: True when the property has been set.
|
|
273
|
+
:rtype: bool
|
|
274
|
+
"""
|
|
275
|
+
...
|
|
276
|
+
|
|
277
|
+
def items(self):
|
|
278
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
279
|
+
dictionary function of the same name).
|
|
280
|
+
|
|
281
|
+
:return: custom property key, value pairs.
|
|
282
|
+
"""
|
|
283
|
+
...
|
|
284
|
+
|
|
285
|
+
def keyframe_delete(self) -> bool:
|
|
286
|
+
"""Remove a keyframe from this properties fcurve.
|
|
287
|
+
|
|
288
|
+
:return: Success of keyframe deletion.
|
|
289
|
+
:rtype: bool
|
|
290
|
+
"""
|
|
291
|
+
...
|
|
292
|
+
|
|
293
|
+
def keyframe_insert(self) -> bool:
|
|
294
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
295
|
+
|
|
296
|
+
:return: Success of keyframe insertion.
|
|
297
|
+
:rtype: bool
|
|
298
|
+
"""
|
|
299
|
+
...
|
|
300
|
+
|
|
301
|
+
def keys(self):
|
|
302
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
303
|
+
dictionary function of the same name).
|
|
304
|
+
|
|
305
|
+
:return: custom property keys.
|
|
306
|
+
"""
|
|
307
|
+
...
|
|
308
|
+
|
|
309
|
+
def path_from_id(self) -> str:
|
|
310
|
+
"""Returns the data path from the ID to this object (string).
|
|
311
|
+
|
|
312
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
313
|
+
to this struct and property (when given).
|
|
314
|
+
:rtype: str
|
|
315
|
+
"""
|
|
316
|
+
...
|
|
317
|
+
|
|
318
|
+
def path_resolve(self):
|
|
319
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
320
|
+
...
|
|
321
|
+
|
|
322
|
+
def poll(self, context):
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
:param context:
|
|
326
|
+
"""
|
|
327
|
+
...
|
|
328
|
+
|
|
329
|
+
def poll_message_set(self):
|
|
330
|
+
"""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."""
|
|
331
|
+
...
|
|
332
|
+
|
|
333
|
+
def pop(self):
|
|
334
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
335
|
+
when not found (matches Python's dictionary function of the same name).
|
|
336
|
+
|
|
337
|
+
"""
|
|
338
|
+
...
|
|
339
|
+
|
|
340
|
+
def property_overridable_library_set(self) -> bool:
|
|
341
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
342
|
+
|
|
343
|
+
:return: True when the overridable status of the property was successfully set.
|
|
344
|
+
:rtype: bool
|
|
345
|
+
"""
|
|
346
|
+
...
|
|
347
|
+
|
|
348
|
+
def property_unset(self):
|
|
349
|
+
"""Unset a property, will use default value afterward."""
|
|
350
|
+
...
|
|
351
|
+
|
|
352
|
+
def single_image_spec_to_plane(self, context, img_spec):
|
|
353
|
+
"""
|
|
354
|
+
|
|
355
|
+
:param context:
|
|
356
|
+
:param img_spec:
|
|
357
|
+
"""
|
|
358
|
+
...
|
|
359
|
+
|
|
360
|
+
def type_recast(self):
|
|
361
|
+
"""Return a new instance, this is needed because types
|
|
362
|
+
such as textures can be changed at runtime.
|
|
363
|
+
|
|
364
|
+
:return: a new instance of this object with the type initialized again.
|
|
365
|
+
"""
|
|
366
|
+
...
|
|
367
|
+
|
|
368
|
+
def update_size_mode(self, _context):
|
|
369
|
+
"""If sizing relative to the camera, always face the camera
|
|
370
|
+
|
|
371
|
+
:param _context:
|
|
372
|
+
"""
|
|
373
|
+
...
|
|
374
|
+
|
|
375
|
+
def values(self):
|
|
376
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
377
|
+
dictionary function of the same name).
|
|
378
|
+
|
|
379
|
+
:return: custom property values.
|
|
380
|
+
"""
|
|
381
|
+
...
|
|
382
|
+
|
|
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
|
+
|
|
408
|
+
def auto_align_nodes(node_tree):
|
|
409
|
+
"""Given a shader node tree, arrange nodes neatly relative to the output node."""
|
|
410
|
+
|
|
411
|
+
...
|
|
412
|
+
|
|
413
|
+
def center_in_camera(camera, ob, axis=(1, 1)):
|
|
414
|
+
"""Center object along specified axis of the camera"""
|
|
415
|
+
|
|
416
|
+
...
|
|
417
|
+
|
|
418
|
+
def clean_node_tree(node_tree):
|
|
419
|
+
"""Clear all nodes in a shader node tree except the output.Returns the output node"""
|
|
420
|
+
|
|
421
|
+
...
|
|
422
|
+
|
|
423
|
+
def compute_camera_size(context, center, fill_mode, aspect):
|
|
424
|
+
"""Determine how large an object needs to be to fit or fill the camera's field of view."""
|
|
425
|
+
|
|
426
|
+
...
|
|
427
|
+
|
|
428
|
+
def find_image_sequences(files):
|
|
429
|
+
"""From a group of files, detect image sequences.This returns a generator of tuples, which contain the filename,
|
|
430
|
+
start frame, and length of the detected sequence
|
|
431
|
+
|
|
432
|
+
"""
|
|
433
|
+
|
|
434
|
+
...
|
|
435
|
+
|
|
436
|
+
def get_input_nodes(node, links):
|
|
437
|
+
"""Get nodes that are a inputs to the given node"""
|
|
438
|
+
|
|
439
|
+
...
|
|
440
|
+
|
|
441
|
+
def get_shadeless_node(dest_node_tree):
|
|
442
|
+
"""Return a "shadeless" cycles/EEVEE node, creating a node group if nonexistent"""
|
|
443
|
+
|
|
444
|
+
...
|
|
445
|
+
|
|
446
|
+
def load_images(
|
|
447
|
+
filenames, directory, force_reload=False, frame_start=1, find_sequences=False
|
|
448
|
+
):
|
|
449
|
+
"""Wrapper for bpy_extras.image_utils.load_image.Loads a set of images, movies, or even image sequences
|
|
450
|
+
Returns a generator of ImageSpec wrapper objects later used for texture setup
|
|
451
|
+
|
|
452
|
+
"""
|
|
453
|
+
|
|
454
|
+
...
|
|
455
|
+
|
|
456
|
+
def offset_planes(planes, gap, axis):
|
|
457
|
+
"""Offset planes from each other by gap amount along a _local_ vector axisFor example, offset_planes([obj1, obj2], 0.5, Vector(0, 0, 1)) will place
|
|
458
|
+
obj2 0.5 blender units away from obj1 along the local positive Z axis.This is in local space, not world space, so all planes should share
|
|
459
|
+
a common scale and rotation.
|
|
460
|
+
|
|
461
|
+
"""
|
|
462
|
+
|
|
463
|
+
...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
import collections.abc
|
|
3
|
+
|
|
4
|
+
GenericType1 = typing.TypeVar("GenericType1")
|
|
5
|
+
GenericType2 = typing.TypeVar("GenericType2")
|
|
6
|
+
|
|
7
|
+
class NodeEditorBase:
|
|
8
|
+
def poll(self, context):
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
:param context:
|
|
12
|
+
"""
|
|
13
|
+
...
|
|
14
|
+
|
|
15
|
+
def force_update(context): ...
|
|
16
|
+
def get_group_output_node(tree, output_node_idname="NodeGroupOutput"): ...
|
|
17
|
+
def get_internal_socket(socket): ...
|
|
18
|
+
def get_output_location(tree): ...
|
|
19
|
+
def is_viewer_link(link, output_node): ...
|
|
20
|
+
def is_viewer_socket(socket): ...
|
|
21
|
+
def is_visible_socket(socket): ...
|
|
22
|
+
def node_editor_poll(cls, context): ...
|
|
23
|
+
def node_space_type_poll(cls, context, types): ...
|
|
@@ -434,10 +434,10 @@ class WM_MT_operator_presets(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
434
434
|
searchpaths: list[str],
|
|
435
435
|
operator: str,
|
|
436
436
|
props_default: dict = None,
|
|
437
|
-
prop_filepath: str = "filepath",
|
|
438
|
-
filter_ext:
|
|
437
|
+
prop_filepath: str | None = "filepath",
|
|
438
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
439
439
|
filter_path=None,
|
|
440
|
-
display_name:
|
|
440
|
+
display_name: collections.abc.Callable | None = None,
|
|
441
441
|
add_operator=None,
|
|
442
442
|
add_operator_props=None,
|
|
443
443
|
):
|
|
@@ -450,14 +450,14 @@ class WM_MT_operator_presets(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
450
450
|
:param props_default: Properties to assign to each operator.
|
|
451
451
|
:type props_default: dict
|
|
452
452
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
453
|
-
:type prop_filepath: str
|
|
453
|
+
:type prop_filepath: str | None
|
|
454
454
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
455
455
|
|
|
456
456
|
Returning false excludes the file from the list.
|
|
457
|
-
:type filter_ext:
|
|
457
|
+
:type filter_ext: collections.abc.Callable | None
|
|
458
458
|
:param filter_path:
|
|
459
459
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
460
|
-
:type display_name:
|
|
460
|
+
:type display_name: collections.abc.Callable | None
|
|
461
461
|
:param add_operator:
|
|
462
462
|
:param add_operator_props:
|
|
463
463
|
"""
|
|
@@ -913,10 +913,10 @@ class WM_PT_operator_presets(
|
|
|
913
913
|
searchpaths: list[str],
|
|
914
914
|
operator: str,
|
|
915
915
|
props_default: dict = None,
|
|
916
|
-
prop_filepath: str = "filepath",
|
|
917
|
-
filter_ext:
|
|
916
|
+
prop_filepath: str | None = "filepath",
|
|
917
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
918
918
|
filter_path=None,
|
|
919
|
-
display_name:
|
|
919
|
+
display_name: collections.abc.Callable | None = None,
|
|
920
920
|
add_operator=None,
|
|
921
921
|
add_operator_props=None,
|
|
922
922
|
):
|
|
@@ -929,14 +929,14 @@ class WM_PT_operator_presets(
|
|
|
929
929
|
:param props_default: Properties to assign to each operator.
|
|
930
930
|
:type props_default: dict
|
|
931
931
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
932
|
-
:type prop_filepath: str
|
|
932
|
+
:type prop_filepath: str | None
|
|
933
933
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
934
934
|
|
|
935
935
|
Returning false excludes the file from the list.
|
|
936
|
-
:type filter_ext:
|
|
936
|
+
:type filter_ext: collections.abc.Callable | None
|
|
937
937
|
:param filter_path:
|
|
938
938
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
939
|
-
:type display_name:
|
|
939
|
+
:type display_name: collections.abc.Callable | None
|
|
940
940
|
:param add_operator:
|
|
941
941
|
:param add_operator_props:
|
|
942
942
|
"""
|