fake-bpy-module 20240504__py3-none-any.whl → 20240505__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_ui/space_filebrowser/__init__.pyi +16 -5
- bpy/ops/export_scene/__init__.pyi +2 -2
- bpy/ops/nla/__init__.pyi +2 -2
- bpy/ops/wm/__init__.pyi +6 -6
- bpy/types/__init__.pyi +28789 -28789
- bpy_extras/__init__.pyi +4 -0
- bpy_extras/anim_utils/__init__.pyi +81 -0
- bpy_extras/asset_utils/__init__.pyi +56 -1
- bpy_extras/bmesh_utils/__init__.pyi +13 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/__init__.pyi +4 -0
- bpy_extras/extensions/junction_module/__init__.pyi +49 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/__init__.pyi +15 -0
- bpy_extras/image_utils/__init__.pyi +16 -0
- bpy_extras/io_utils/__init__.pyi +54 -1
- bpy_extras/keyconfig_utils/__init__.pyi +15 -0
- bpy_extras/mesh_utils/__init__.pyi +35 -0
- bpy_extras/node_shader_utils/__init__.pyi +509 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/__init__.pyi +15 -0
- bpy_extras/object_utils/__init__.pyi +37 -0
- bpy_extras/view3d_utils/__init__.pyi +20 -0
- bpy_extras/wm_utils/__init__.pyi +4 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +107 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- {fake_bpy_module-20240504.dist-info → fake_bpy_module-20240505.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240504.dist-info → fake_bpy_module-20240505.dist-info}/RECORD +35 -23
- gpu_extras/__init__.pyi +0 -6
- gpu_extras/batch/__init__.pyi +0 -22
- gpu_extras/presets/__init__.pyi +0 -52
- {fake_bpy_module-20240504.dist-info → fake_bpy_module-20240505.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240504.dist-info → fake_bpy_module-20240505.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
GenericType = typing.TypeVar("GenericType")
|
|
4
|
+
|
|
5
|
+
class ShaderWrapper:
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
NODES_LIST: typing.Any
|
|
9
|
+
""" """
|
|
10
|
+
|
|
11
|
+
is_readonly: typing.Any
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
material: typing.Any
|
|
15
|
+
""" """
|
|
16
|
+
|
|
17
|
+
node_out: typing.Any
|
|
18
|
+
""" """
|
|
19
|
+
|
|
20
|
+
node_texcoords: typing.Any
|
|
21
|
+
""" """
|
|
22
|
+
|
|
23
|
+
use_nodes: typing.Any
|
|
24
|
+
""" """
|
|
25
|
+
|
|
26
|
+
def node_texcoords_get(self):
|
|
27
|
+
""" """
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
def update(self):
|
|
31
|
+
""" """
|
|
32
|
+
...
|
|
33
|
+
|
|
34
|
+
def use_nodes_get(self):
|
|
35
|
+
""" """
|
|
36
|
+
...
|
|
37
|
+
|
|
38
|
+
def use_nodes_set(self, val):
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
:param val:
|
|
42
|
+
"""
|
|
43
|
+
...
|
|
44
|
+
|
|
45
|
+
class ShaderImageTextureWrapper:
|
|
46
|
+
""" """
|
|
47
|
+
|
|
48
|
+
NODES_LIST: typing.Any
|
|
49
|
+
""" """
|
|
50
|
+
|
|
51
|
+
colorspace_is_data: typing.Any
|
|
52
|
+
""" """
|
|
53
|
+
|
|
54
|
+
colorspace_name: typing.Any
|
|
55
|
+
""" """
|
|
56
|
+
|
|
57
|
+
extension: typing.Any
|
|
58
|
+
""" """
|
|
59
|
+
|
|
60
|
+
grid_row_diff: typing.Any
|
|
61
|
+
""" """
|
|
62
|
+
|
|
63
|
+
image: typing.Any
|
|
64
|
+
""" """
|
|
65
|
+
|
|
66
|
+
is_readonly: typing.Any
|
|
67
|
+
""" """
|
|
68
|
+
|
|
69
|
+
node_dst: typing.Any
|
|
70
|
+
""" """
|
|
71
|
+
|
|
72
|
+
node_image: typing.Any
|
|
73
|
+
""" """
|
|
74
|
+
|
|
75
|
+
node_mapping: typing.Any
|
|
76
|
+
""" """
|
|
77
|
+
|
|
78
|
+
owner_shader: typing.Any
|
|
79
|
+
""" """
|
|
80
|
+
|
|
81
|
+
projection: typing.Any
|
|
82
|
+
""" """
|
|
83
|
+
|
|
84
|
+
rotation: typing.Any
|
|
85
|
+
""" """
|
|
86
|
+
|
|
87
|
+
scale: typing.Any
|
|
88
|
+
""" """
|
|
89
|
+
|
|
90
|
+
socket_dst: typing.Any
|
|
91
|
+
""" """
|
|
92
|
+
|
|
93
|
+
texcoords: typing.Any
|
|
94
|
+
""" """
|
|
95
|
+
|
|
96
|
+
translation: typing.Any
|
|
97
|
+
""" """
|
|
98
|
+
|
|
99
|
+
use_alpha: typing.Any
|
|
100
|
+
""" """
|
|
101
|
+
|
|
102
|
+
def copy_from(self, tex):
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
:param tex:
|
|
106
|
+
"""
|
|
107
|
+
...
|
|
108
|
+
|
|
109
|
+
def copy_mapping_from(self, tex):
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
:param tex:
|
|
113
|
+
"""
|
|
114
|
+
...
|
|
115
|
+
|
|
116
|
+
def extension_get(self):
|
|
117
|
+
""" """
|
|
118
|
+
...
|
|
119
|
+
|
|
120
|
+
def extension_set(self, extension):
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
:param extension:
|
|
124
|
+
"""
|
|
125
|
+
...
|
|
126
|
+
|
|
127
|
+
def has_mapping_node(self):
|
|
128
|
+
""" """
|
|
129
|
+
...
|
|
130
|
+
|
|
131
|
+
def image_get(self):
|
|
132
|
+
""" """
|
|
133
|
+
...
|
|
134
|
+
|
|
135
|
+
def image_set(self, image):
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
:param image:
|
|
139
|
+
"""
|
|
140
|
+
...
|
|
141
|
+
|
|
142
|
+
def node_image_get(self):
|
|
143
|
+
""" """
|
|
144
|
+
...
|
|
145
|
+
|
|
146
|
+
def node_mapping_get(self):
|
|
147
|
+
""" """
|
|
148
|
+
...
|
|
149
|
+
|
|
150
|
+
def projection_get(self):
|
|
151
|
+
""" """
|
|
152
|
+
...
|
|
153
|
+
|
|
154
|
+
def projection_set(self, projection):
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
:param projection:
|
|
158
|
+
"""
|
|
159
|
+
...
|
|
160
|
+
|
|
161
|
+
def rotation_get(self):
|
|
162
|
+
""" """
|
|
163
|
+
...
|
|
164
|
+
|
|
165
|
+
def rotation_set(self, rotation):
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
:param rotation:
|
|
169
|
+
"""
|
|
170
|
+
...
|
|
171
|
+
|
|
172
|
+
def scale_get(self):
|
|
173
|
+
""" """
|
|
174
|
+
...
|
|
175
|
+
|
|
176
|
+
def scale_set(self, scale):
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
:param scale:
|
|
180
|
+
"""
|
|
181
|
+
...
|
|
182
|
+
|
|
183
|
+
def texcoords_get(self):
|
|
184
|
+
""" """
|
|
185
|
+
...
|
|
186
|
+
|
|
187
|
+
def texcoords_set(self, texcoords):
|
|
188
|
+
"""
|
|
189
|
+
|
|
190
|
+
:param texcoords:
|
|
191
|
+
"""
|
|
192
|
+
...
|
|
193
|
+
|
|
194
|
+
def translation_get(self):
|
|
195
|
+
""" """
|
|
196
|
+
...
|
|
197
|
+
|
|
198
|
+
def translation_set(self, translation):
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
:param translation:
|
|
202
|
+
"""
|
|
203
|
+
...
|
|
204
|
+
|
|
205
|
+
class PrincipledBSDFWrapper(ShaderWrapper):
|
|
206
|
+
""" """
|
|
207
|
+
|
|
208
|
+
NODES_LIST: typing.Any
|
|
209
|
+
""" """
|
|
210
|
+
|
|
211
|
+
alpha: typing.Any
|
|
212
|
+
""" """
|
|
213
|
+
|
|
214
|
+
alpha_texture: typing.Any
|
|
215
|
+
""" """
|
|
216
|
+
|
|
217
|
+
base_color: typing.Any
|
|
218
|
+
""" """
|
|
219
|
+
|
|
220
|
+
base_color_texture: typing.Any
|
|
221
|
+
""" """
|
|
222
|
+
|
|
223
|
+
emission_color: typing.Any
|
|
224
|
+
""" """
|
|
225
|
+
|
|
226
|
+
emission_color_texture: typing.Any
|
|
227
|
+
""" """
|
|
228
|
+
|
|
229
|
+
emission_strength: typing.Any
|
|
230
|
+
""" """
|
|
231
|
+
|
|
232
|
+
emission_strength_texture: typing.Any
|
|
233
|
+
""" """
|
|
234
|
+
|
|
235
|
+
ior: typing.Any
|
|
236
|
+
""" """
|
|
237
|
+
|
|
238
|
+
ior_texture: typing.Any
|
|
239
|
+
""" """
|
|
240
|
+
|
|
241
|
+
is_readonly: typing.Any
|
|
242
|
+
""" """
|
|
243
|
+
|
|
244
|
+
material: typing.Any
|
|
245
|
+
""" """
|
|
246
|
+
|
|
247
|
+
metallic: typing.Any
|
|
248
|
+
""" """
|
|
249
|
+
|
|
250
|
+
metallic_texture: typing.Any
|
|
251
|
+
""" """
|
|
252
|
+
|
|
253
|
+
node_normalmap: typing.Any
|
|
254
|
+
""" """
|
|
255
|
+
|
|
256
|
+
node_out: typing.Any
|
|
257
|
+
""" """
|
|
258
|
+
|
|
259
|
+
node_principled_bsdf: typing.Any
|
|
260
|
+
""" """
|
|
261
|
+
|
|
262
|
+
node_texcoords: typing.Any
|
|
263
|
+
""" """
|
|
264
|
+
|
|
265
|
+
normalmap_strength: typing.Any
|
|
266
|
+
""" """
|
|
267
|
+
|
|
268
|
+
normalmap_texture: typing.Any
|
|
269
|
+
""" """
|
|
270
|
+
|
|
271
|
+
roughness: typing.Any
|
|
272
|
+
""" """
|
|
273
|
+
|
|
274
|
+
roughness_texture: typing.Any
|
|
275
|
+
""" """
|
|
276
|
+
|
|
277
|
+
specular: typing.Any
|
|
278
|
+
""" """
|
|
279
|
+
|
|
280
|
+
specular_texture: typing.Any
|
|
281
|
+
""" """
|
|
282
|
+
|
|
283
|
+
specular_tint: typing.Any
|
|
284
|
+
""" """
|
|
285
|
+
|
|
286
|
+
specular_tint_texture: typing.Any
|
|
287
|
+
""" """
|
|
288
|
+
|
|
289
|
+
transmission: typing.Any
|
|
290
|
+
""" """
|
|
291
|
+
|
|
292
|
+
transmission_texture: typing.Any
|
|
293
|
+
""" """
|
|
294
|
+
|
|
295
|
+
use_nodes: typing.Any
|
|
296
|
+
""" """
|
|
297
|
+
|
|
298
|
+
def alpha_get(self):
|
|
299
|
+
""" """
|
|
300
|
+
...
|
|
301
|
+
|
|
302
|
+
def alpha_set(self, value):
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
:param value:
|
|
306
|
+
"""
|
|
307
|
+
...
|
|
308
|
+
|
|
309
|
+
def alpha_texture_get(self):
|
|
310
|
+
""" """
|
|
311
|
+
...
|
|
312
|
+
|
|
313
|
+
def base_color_get(self):
|
|
314
|
+
""" """
|
|
315
|
+
...
|
|
316
|
+
|
|
317
|
+
def base_color_set(self, color):
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
:param color:
|
|
321
|
+
"""
|
|
322
|
+
...
|
|
323
|
+
|
|
324
|
+
def base_color_texture_get(self):
|
|
325
|
+
""" """
|
|
326
|
+
...
|
|
327
|
+
|
|
328
|
+
def emission_color_get(self):
|
|
329
|
+
""" """
|
|
330
|
+
...
|
|
331
|
+
|
|
332
|
+
def emission_color_set(self, color):
|
|
333
|
+
"""
|
|
334
|
+
|
|
335
|
+
:param color:
|
|
336
|
+
"""
|
|
337
|
+
...
|
|
338
|
+
|
|
339
|
+
def emission_color_texture_get(self):
|
|
340
|
+
""" """
|
|
341
|
+
...
|
|
342
|
+
|
|
343
|
+
def emission_strength_get(self):
|
|
344
|
+
""" """
|
|
345
|
+
...
|
|
346
|
+
|
|
347
|
+
def emission_strength_set(self, value):
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
:param value:
|
|
351
|
+
"""
|
|
352
|
+
...
|
|
353
|
+
|
|
354
|
+
def emission_strength_texture_get(self):
|
|
355
|
+
""" """
|
|
356
|
+
...
|
|
357
|
+
|
|
358
|
+
def ior_get(self):
|
|
359
|
+
""" """
|
|
360
|
+
...
|
|
361
|
+
|
|
362
|
+
def ior_set(self, value):
|
|
363
|
+
"""
|
|
364
|
+
|
|
365
|
+
:param value:
|
|
366
|
+
"""
|
|
367
|
+
...
|
|
368
|
+
|
|
369
|
+
def ior_texture_get(self):
|
|
370
|
+
""" """
|
|
371
|
+
...
|
|
372
|
+
|
|
373
|
+
def metallic_get(self):
|
|
374
|
+
""" """
|
|
375
|
+
...
|
|
376
|
+
|
|
377
|
+
def metallic_set(self, value):
|
|
378
|
+
"""
|
|
379
|
+
|
|
380
|
+
:param value:
|
|
381
|
+
"""
|
|
382
|
+
...
|
|
383
|
+
|
|
384
|
+
def metallic_texture_get(self):
|
|
385
|
+
""" """
|
|
386
|
+
...
|
|
387
|
+
|
|
388
|
+
def node_normalmap_get(self):
|
|
389
|
+
""" """
|
|
390
|
+
...
|
|
391
|
+
|
|
392
|
+
def node_texcoords_get(self):
|
|
393
|
+
""" """
|
|
394
|
+
...
|
|
395
|
+
|
|
396
|
+
def normalmap_strength_get(self):
|
|
397
|
+
""" """
|
|
398
|
+
...
|
|
399
|
+
|
|
400
|
+
def normalmap_strength_set(self, value):
|
|
401
|
+
"""
|
|
402
|
+
|
|
403
|
+
:param value:
|
|
404
|
+
"""
|
|
405
|
+
...
|
|
406
|
+
|
|
407
|
+
def normalmap_texture_get(self):
|
|
408
|
+
""" """
|
|
409
|
+
...
|
|
410
|
+
|
|
411
|
+
def roughness_get(self):
|
|
412
|
+
""" """
|
|
413
|
+
...
|
|
414
|
+
|
|
415
|
+
def roughness_set(self, value):
|
|
416
|
+
"""
|
|
417
|
+
|
|
418
|
+
:param value:
|
|
419
|
+
"""
|
|
420
|
+
...
|
|
421
|
+
|
|
422
|
+
def roughness_texture_get(self):
|
|
423
|
+
""" """
|
|
424
|
+
...
|
|
425
|
+
|
|
426
|
+
def specular_get(self):
|
|
427
|
+
""" """
|
|
428
|
+
...
|
|
429
|
+
|
|
430
|
+
def specular_set(self, value):
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
:param value:
|
|
434
|
+
"""
|
|
435
|
+
...
|
|
436
|
+
|
|
437
|
+
def specular_texture_get(self):
|
|
438
|
+
""" """
|
|
439
|
+
...
|
|
440
|
+
|
|
441
|
+
def specular_tint_get(self):
|
|
442
|
+
""" """
|
|
443
|
+
...
|
|
444
|
+
|
|
445
|
+
def specular_tint_set(self, color):
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
:param color:
|
|
449
|
+
"""
|
|
450
|
+
...
|
|
451
|
+
|
|
452
|
+
def specular_tint_texture_get(self):
|
|
453
|
+
""" """
|
|
454
|
+
...
|
|
455
|
+
|
|
456
|
+
def transmission_get(self):
|
|
457
|
+
""" """
|
|
458
|
+
...
|
|
459
|
+
|
|
460
|
+
def transmission_set(self, value):
|
|
461
|
+
"""
|
|
462
|
+
|
|
463
|
+
:param value:
|
|
464
|
+
"""
|
|
465
|
+
...
|
|
466
|
+
|
|
467
|
+
def transmission_texture_get(self):
|
|
468
|
+
""" """
|
|
469
|
+
...
|
|
470
|
+
|
|
471
|
+
def update(self):
|
|
472
|
+
""" """
|
|
473
|
+
...
|
|
474
|
+
|
|
475
|
+
def use_nodes_get(self):
|
|
476
|
+
""" """
|
|
477
|
+
...
|
|
478
|
+
|
|
479
|
+
def use_nodes_set(self, val):
|
|
480
|
+
"""
|
|
481
|
+
|
|
482
|
+
:param val:
|
|
483
|
+
"""
|
|
484
|
+
...
|
|
485
|
+
|
|
486
|
+
def node_input_value_get(node, input, default_value):
|
|
487
|
+
""" """
|
|
488
|
+
|
|
489
|
+
...
|
|
490
|
+
|
|
491
|
+
def node_input_value_set(node, input, value):
|
|
492
|
+
""" """
|
|
493
|
+
|
|
494
|
+
...
|
|
495
|
+
|
|
496
|
+
def rgb_to_rgba(rgb):
|
|
497
|
+
""" """
|
|
498
|
+
|
|
499
|
+
...
|
|
500
|
+
|
|
501
|
+
def rgba_to_rgb(rgba):
|
|
502
|
+
""" """
|
|
503
|
+
|
|
504
|
+
...
|
|
505
|
+
|
|
506
|
+
def values_clamp(val, minv, maxv):
|
|
507
|
+
""" """
|
|
508
|
+
|
|
509
|
+
...
|
|
File without changes
|
|
@@ -2,6 +2,21 @@ import typing
|
|
|
2
2
|
|
|
3
3
|
GenericType = typing.TypeVar("GenericType")
|
|
4
4
|
|
|
5
|
+
def connect_sockets(input, output):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
...
|
|
9
|
+
|
|
10
|
+
def find_base_socket_type(socket):
|
|
11
|
+
""" """
|
|
12
|
+
|
|
13
|
+
...
|
|
14
|
+
|
|
15
|
+
def find_node_input(node, name):
|
|
16
|
+
""" """
|
|
17
|
+
|
|
18
|
+
...
|
|
19
|
+
|
|
5
20
|
def find_node_input(node, name):
|
|
6
21
|
""" """
|
|
7
22
|
|
|
@@ -14,6 +14,13 @@ class AddObjectHelper:
|
|
|
14
14
|
"""
|
|
15
15
|
...
|
|
16
16
|
|
|
17
|
+
def poll(self, context):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
:param context:
|
|
21
|
+
"""
|
|
22
|
+
...
|
|
23
|
+
|
|
17
24
|
def add_object_align_init(
|
|
18
25
|
context: bpy.types.Context, operator: bpy.types.Operator
|
|
19
26
|
) -> mathutils.Matrix:
|
|
@@ -29,6 +36,11 @@ def add_object_align_init(
|
|
|
29
36
|
|
|
30
37
|
...
|
|
31
38
|
|
|
39
|
+
def add_object_align_init(context, operator):
|
|
40
|
+
""" """
|
|
41
|
+
|
|
42
|
+
...
|
|
43
|
+
|
|
32
44
|
def object_add_grid_scale(context):
|
|
33
45
|
"""Return scale which should be applied on object
|
|
34
46
|
data to align it to grid scale
|
|
@@ -37,11 +49,21 @@ def object_add_grid_scale(context):
|
|
|
37
49
|
|
|
38
50
|
...
|
|
39
51
|
|
|
52
|
+
def object_add_grid_scale(context):
|
|
53
|
+
""" """
|
|
54
|
+
|
|
55
|
+
...
|
|
56
|
+
|
|
40
57
|
def object_add_grid_scale_apply_operator(operator, context):
|
|
41
58
|
"""Scale an operators distance values by the grid size."""
|
|
42
59
|
|
|
43
60
|
...
|
|
44
61
|
|
|
62
|
+
def object_add_grid_scale_apply_operator(operator, context):
|
|
63
|
+
""" """
|
|
64
|
+
|
|
65
|
+
...
|
|
66
|
+
|
|
45
67
|
def object_data_add(
|
|
46
68
|
context: bpy.types.Context,
|
|
47
69
|
obdata,
|
|
@@ -64,6 +86,11 @@ def object_data_add(
|
|
|
64
86
|
|
|
65
87
|
...
|
|
66
88
|
|
|
89
|
+
def object_data_add(context, obdata, operator, name):
|
|
90
|
+
""" """
|
|
91
|
+
|
|
92
|
+
...
|
|
93
|
+
|
|
67
94
|
def object_report_if_active_shape_key_is_locked(
|
|
68
95
|
obj: bpy.types.Object, operator: bpy.types.Operator
|
|
69
96
|
):
|
|
@@ -78,6 +105,11 @@ def object_report_if_active_shape_key_is_locked(
|
|
|
78
105
|
|
|
79
106
|
...
|
|
80
107
|
|
|
108
|
+
def object_report_if_active_shape_key_is_locked(obj, operator):
|
|
109
|
+
""" """
|
|
110
|
+
|
|
111
|
+
...
|
|
112
|
+
|
|
81
113
|
def world_to_camera_view(
|
|
82
114
|
scene: bpy.types.Scene,
|
|
83
115
|
obj: bpy.types.Object,
|
|
@@ -102,3 +134,8 @@ def world_to_camera_view(
|
|
|
102
134
|
"""
|
|
103
135
|
|
|
104
136
|
...
|
|
137
|
+
|
|
138
|
+
def world_to_camera_view(scene, obj, coord):
|
|
139
|
+
""" """
|
|
140
|
+
|
|
141
|
+
...
|
|
@@ -26,6 +26,11 @@ def location_3d_to_region_2d(
|
|
|
26
26
|
|
|
27
27
|
...
|
|
28
28
|
|
|
29
|
+
def location_3d_to_region_2d(region, rv3d, coord, default):
|
|
30
|
+
""" """
|
|
31
|
+
|
|
32
|
+
...
|
|
33
|
+
|
|
29
34
|
def region_2d_to_location_3d(
|
|
30
35
|
region: bpy.types.Region,
|
|
31
36
|
rv3d: bpy.types.RegionView3D,
|
|
@@ -51,6 +56,11 @@ def region_2d_to_location_3d(
|
|
|
51
56
|
|
|
52
57
|
...
|
|
53
58
|
|
|
59
|
+
def region_2d_to_location_3d(region, rv3d, coord, depth_location):
|
|
60
|
+
""" """
|
|
61
|
+
|
|
62
|
+
...
|
|
63
|
+
|
|
54
64
|
def region_2d_to_origin_3d(
|
|
55
65
|
region: bpy.types.Region,
|
|
56
66
|
rv3d: bpy.types.RegionView3D,
|
|
@@ -75,6 +85,11 @@ def region_2d_to_origin_3d(
|
|
|
75
85
|
|
|
76
86
|
...
|
|
77
87
|
|
|
88
|
+
def region_2d_to_origin_3d(region, rv3d, coord, clamp):
|
|
89
|
+
""" """
|
|
90
|
+
|
|
91
|
+
...
|
|
92
|
+
|
|
78
93
|
def region_2d_to_vector_3d(
|
|
79
94
|
region: bpy.types.Region, rv3d: bpy.types.RegionView3D, coord: mathutils.Vector
|
|
80
95
|
) -> mathutils.Vector:
|
|
@@ -93,3 +108,8 @@ def region_2d_to_vector_3d(
|
|
|
93
108
|
"""
|
|
94
109
|
|
|
95
110
|
...
|
|
111
|
+
|
|
112
|
+
def region_2d_to_vector_3d(region, rv3d, coord):
|
|
113
|
+
""" """
|
|
114
|
+
|
|
115
|
+
...
|