fake-bpy-module 20240210__py3-none-any.whl → 20240326__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.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
|
-
def poly_3d_calc(veclist
|
|
5
|
+
def poly_3d_calc(veclist, pt):
|
|
7
6
|
"""Calculate barycentric weights for a point on a polygon.
|
|
8
7
|
|
|
9
|
-
:param veclist:
|
|
10
|
-
:
|
|
11
|
-
:param pt: list of per-vector weights
|
|
12
|
-
:type pt: typing.Any
|
|
8
|
+
:param veclist: list of vectors
|
|
9
|
+
:param pt: point :rtype: list of per-vector weights
|
|
13
10
|
"""
|
|
14
11
|
|
|
15
12
|
...
|
mathutils/kdtree/__init__.pyi
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import mathutils
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
6
|
class KDTree:
|
|
8
|
-
"""KdTree(size) -> new kd-tree initialized to hold
|
|
7
|
+
"""KdTree(size) -> new kd-tree initialized to hold size items."""
|
|
9
8
|
|
|
10
9
|
def balance(self):
|
|
11
10
|
"""Balance the tree."""
|
|
@@ -13,65 +12,63 @@ class KDTree:
|
|
|
13
12
|
|
|
14
13
|
def find(
|
|
15
14
|
self,
|
|
16
|
-
co: typing.Union[typing.Sequence[float],
|
|
15
|
+
co: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
17
16
|
filter: typing.Callable = None,
|
|
18
|
-
) -> typing.
|
|
19
|
-
"""Find nearest point to
|
|
17
|
+
) -> typing.Callable:
|
|
18
|
+
"""Find nearest point to co.
|
|
20
19
|
|
|
21
20
|
:param co: 3d coordinates.
|
|
22
|
-
:type co: typing.Union[typing.Sequence[float],
|
|
21
|
+
:type co: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
23
22
|
:param filter: function which takes an index and returns True for indices to include in the search.
|
|
24
23
|
:type filter: typing.Callable
|
|
25
|
-
:
|
|
26
|
-
:
|
|
24
|
+
:return: Returns (`Vector`, index, distance).
|
|
25
|
+
:rtype: tuple
|
|
27
26
|
"""
|
|
28
27
|
...
|
|
29
28
|
|
|
30
29
|
def find_n(
|
|
31
|
-
self, co: typing.Union[typing.Sequence[float],
|
|
32
|
-
) ->
|
|
33
|
-
"""Find nearest
|
|
30
|
+
self, co: typing.Union[typing.Sequence[float], mathutils.Vector], n: int
|
|
31
|
+
) -> int:
|
|
32
|
+
"""Find nearest n points to co.
|
|
34
33
|
|
|
35
34
|
:param co: 3d coordinates.
|
|
36
|
-
:type co: typing.Union[typing.Sequence[float],
|
|
35
|
+
:type co: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
37
36
|
:param n: Number of points to find.
|
|
38
37
|
:type n: int
|
|
39
|
-
:
|
|
40
|
-
:
|
|
38
|
+
:return: Returns a list of tuples (`Vector`, index, distance).
|
|
39
|
+
:rtype: list
|
|
41
40
|
"""
|
|
42
41
|
...
|
|
43
42
|
|
|
44
43
|
def find_range(
|
|
45
|
-
self,
|
|
46
|
-
|
|
47
|
-
radius
|
|
48
|
-
) -> typing.List:
|
|
49
|
-
"""Find all points within ``radius`` of ``co``.
|
|
44
|
+
self, co: typing.Union[typing.Sequence[float], mathutils.Vector], radius: float
|
|
45
|
+
) -> float:
|
|
46
|
+
"""Find all points within radius of co.
|
|
50
47
|
|
|
51
48
|
:param co: 3d coordinates.
|
|
52
|
-
:type co: typing.Union[typing.Sequence[float],
|
|
49
|
+
:type co: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
53
50
|
:param radius: Distance to search for points.
|
|
54
51
|
:type radius: float
|
|
55
|
-
:
|
|
56
|
-
:
|
|
52
|
+
:return: Returns a list of tuples (`Vector`, index, distance).
|
|
53
|
+
:rtype: list
|
|
57
54
|
"""
|
|
58
55
|
...
|
|
59
56
|
|
|
60
57
|
def insert(
|
|
61
|
-
self, co: typing.Union[typing.Sequence[float],
|
|
58
|
+
self, co: typing.Union[typing.Sequence[float], mathutils.Vector], index: int
|
|
62
59
|
):
|
|
63
60
|
"""Insert a point into the KDTree.
|
|
64
61
|
|
|
65
62
|
:param co: Point 3d position.
|
|
66
|
-
:type co: typing.Union[typing.Sequence[float],
|
|
63
|
+
:type co: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
67
64
|
:param index: The index of the point.
|
|
68
65
|
:type index: int
|
|
69
66
|
"""
|
|
70
67
|
...
|
|
71
68
|
|
|
72
|
-
def __init__(self, size)
|
|
69
|
+
def __init__(self, size):
|
|
73
70
|
"""
|
|
74
71
|
|
|
75
|
-
:
|
|
72
|
+
:param size:
|
|
76
73
|
"""
|
|
77
74
|
...
|
mathutils/noise/__init__.pyi
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import mathutils
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
|
-
def cell(position: typing.Union[typing.Sequence[float],
|
|
6
|
+
def cell(position: typing.Union[typing.Sequence[float], mathutils.Vector]) -> float:
|
|
8
7
|
"""Returns cell noise value at the specified position.
|
|
9
8
|
|
|
10
9
|
:param position: The position to evaluate the selected noise function.
|
|
11
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
12
|
-
:rtype: float
|
|
10
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
13
11
|
:return: The cell noise value.
|
|
12
|
+
:rtype: float
|
|
14
13
|
"""
|
|
15
14
|
|
|
16
15
|
...
|
|
17
16
|
|
|
18
17
|
def cell_vector(
|
|
19
|
-
position: typing.Union[typing.Sequence[float],
|
|
20
|
-
) ->
|
|
18
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
19
|
+
) -> mathutils.Vector:
|
|
21
20
|
"""Returns cell noise vector at the specified position.
|
|
22
21
|
|
|
23
22
|
:param position: The position to evaluate the selected noise function.
|
|
24
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
25
|
-
:rtype: 'mathutils.Vector'
|
|
23
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
26
24
|
:return: The cell noise vector.
|
|
25
|
+
:rtype: mathutils.Vector
|
|
27
26
|
"""
|
|
28
27
|
|
|
29
28
|
...
|
|
30
29
|
|
|
31
30
|
def fractal(
|
|
32
|
-
position: typing.Union[typing.Sequence[float],
|
|
31
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
33
32
|
H: float,
|
|
34
33
|
lacunarity: float,
|
|
35
34
|
octaves: int,
|
|
@@ -38,7 +37,7 @@ def fractal(
|
|
|
38
37
|
"""Returns the fractal Brownian motion (fBm) noise value from the noise basis at the specified position.
|
|
39
38
|
|
|
40
39
|
:param position: The position to evaluate the selected noise function.
|
|
41
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
40
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
42
41
|
:param H: The fractal increment factor.
|
|
43
42
|
:type H: float
|
|
44
43
|
:param lacunarity: The gap between successive frequencies.
|
|
@@ -47,14 +46,14 @@ def fractal(
|
|
|
47
46
|
:type octaves: int
|
|
48
47
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
49
48
|
:type noise_basis: str
|
|
50
|
-
:rtype: float
|
|
51
49
|
:return: The fractal Brownian motion noise value.
|
|
50
|
+
:rtype: float
|
|
52
51
|
"""
|
|
53
52
|
|
|
54
53
|
...
|
|
55
54
|
|
|
56
55
|
def hetero_terrain(
|
|
57
|
-
position: typing.Union[typing.Sequence[float],
|
|
56
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
58
57
|
H: float,
|
|
59
58
|
lacunarity: float,
|
|
60
59
|
octaves: int,
|
|
@@ -64,7 +63,7 @@ def hetero_terrain(
|
|
|
64
63
|
"""Returns the heterogeneous terrain value from the noise basis at the specified position.
|
|
65
64
|
|
|
66
65
|
:param position: The position to evaluate the selected noise function.
|
|
67
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
66
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
68
67
|
:param H: The fractal dimension of the roughest areas.
|
|
69
68
|
:type H: float
|
|
70
69
|
:param lacunarity: The gap between successive frequencies.
|
|
@@ -75,14 +74,14 @@ def hetero_terrain(
|
|
|
75
74
|
:type offset: float
|
|
76
75
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
77
76
|
:type noise_basis: str
|
|
78
|
-
:rtype: float
|
|
79
77
|
:return: The heterogeneous terrain value.
|
|
78
|
+
:rtype: float
|
|
80
79
|
"""
|
|
81
80
|
|
|
82
81
|
...
|
|
83
82
|
|
|
84
83
|
def hybrid_multi_fractal(
|
|
85
|
-
position: typing.Union[typing.Sequence[float],
|
|
84
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
86
85
|
H: float,
|
|
87
86
|
lacunarity: float,
|
|
88
87
|
octaves: int,
|
|
@@ -93,7 +92,7 @@ def hybrid_multi_fractal(
|
|
|
93
92
|
"""Returns hybrid multifractal value from the noise basis at the specified position.
|
|
94
93
|
|
|
95
94
|
:param position: The position to evaluate the selected noise function.
|
|
96
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
95
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
97
96
|
:param H: The fractal dimension of the roughest areas.
|
|
98
97
|
:type H: float
|
|
99
98
|
:param lacunarity: The gap between successive frequencies.
|
|
@@ -106,14 +105,14 @@ def hybrid_multi_fractal(
|
|
|
106
105
|
:type gain: float
|
|
107
106
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
108
107
|
:type noise_basis: str
|
|
109
|
-
:rtype: float
|
|
110
108
|
:return: The hybrid multifractal value.
|
|
109
|
+
:rtype: float
|
|
111
110
|
"""
|
|
112
111
|
|
|
113
112
|
...
|
|
114
113
|
|
|
115
114
|
def multi_fractal(
|
|
116
|
-
position: typing.Union[typing.Sequence[float],
|
|
115
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
117
116
|
H: float,
|
|
118
117
|
lacunarity: float,
|
|
119
118
|
octaves: int,
|
|
@@ -122,7 +121,7 @@ def multi_fractal(
|
|
|
122
121
|
"""Returns multifractal noise value from the noise basis at the specified position.
|
|
123
122
|
|
|
124
123
|
:param position: The position to evaluate the selected noise function.
|
|
125
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
124
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
126
125
|
:param H: The fractal increment factor.
|
|
127
126
|
:type H: float
|
|
128
127
|
:param lacunarity: The gap between successive frequencies.
|
|
@@ -131,40 +130,40 @@ def multi_fractal(
|
|
|
131
130
|
:type octaves: int
|
|
132
131
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
133
132
|
:type noise_basis: str
|
|
134
|
-
:rtype: float
|
|
135
133
|
:return: The multifractal noise value.
|
|
134
|
+
:rtype: float
|
|
136
135
|
"""
|
|
137
136
|
|
|
138
137
|
...
|
|
139
138
|
|
|
140
139
|
def noise(
|
|
141
|
-
position: typing.Union[typing.Sequence[float],
|
|
140
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
142
141
|
noise_basis: str = "PERLIN_ORIGINAL",
|
|
143
142
|
) -> float:
|
|
144
143
|
"""Returns noise value from the noise basis at the position specified.
|
|
145
144
|
|
|
146
145
|
:param position: The position to evaluate the selected noise function.
|
|
147
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
146
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
148
147
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
149
148
|
:type noise_basis: str
|
|
150
|
-
:rtype: float
|
|
151
149
|
:return: The noise value.
|
|
150
|
+
:rtype: float
|
|
152
151
|
"""
|
|
153
152
|
|
|
154
153
|
...
|
|
155
154
|
|
|
156
155
|
def noise_vector(
|
|
157
|
-
position: typing.Union[typing.Sequence[float],
|
|
156
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
158
157
|
noise_basis: str = "PERLIN_ORIGINAL",
|
|
159
|
-
) ->
|
|
158
|
+
) -> mathutils.Vector:
|
|
160
159
|
"""Returns the noise vector from the noise basis at the specified position.
|
|
161
160
|
|
|
162
161
|
:param position: The position to evaluate the selected noise function.
|
|
163
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
162
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
164
163
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
165
164
|
:type noise_basis: str
|
|
166
|
-
:rtype: 'mathutils.Vector'
|
|
167
165
|
:return: The noise vector.
|
|
166
|
+
:rtype: mathutils.Vector
|
|
168
167
|
"""
|
|
169
168
|
|
|
170
169
|
...
|
|
@@ -172,36 +171,36 @@ def noise_vector(
|
|
|
172
171
|
def random() -> float:
|
|
173
172
|
"""Returns a random number in the range [0, 1).
|
|
174
173
|
|
|
175
|
-
:rtype: float
|
|
176
174
|
:return: The random number.
|
|
175
|
+
:rtype: float
|
|
177
176
|
"""
|
|
178
177
|
|
|
179
178
|
...
|
|
180
179
|
|
|
181
|
-
def random_unit_vector(size: int = 3) ->
|
|
180
|
+
def random_unit_vector(size: int = 3) -> mathutils.Vector:
|
|
182
181
|
"""Returns a unit vector with random entries.
|
|
183
182
|
|
|
184
183
|
:param size: The size of the vector to be produced, in the range [2, 4].
|
|
185
184
|
:type size: int
|
|
186
|
-
:rtype: 'mathutils.Vector'
|
|
187
185
|
:return: The random unit vector.
|
|
186
|
+
:rtype: mathutils.Vector
|
|
188
187
|
"""
|
|
189
188
|
|
|
190
189
|
...
|
|
191
190
|
|
|
192
|
-
def random_vector(size: int = 3) ->
|
|
191
|
+
def random_vector(size: int = 3) -> mathutils.Vector:
|
|
193
192
|
"""Returns a vector with random entries in the range (-1, 1).
|
|
194
193
|
|
|
195
194
|
:param size: The size of the vector to be produced.
|
|
196
195
|
:type size: int
|
|
197
|
-
:rtype: 'mathutils.Vector'
|
|
198
196
|
:return: The random vector.
|
|
197
|
+
:rtype: mathutils.Vector
|
|
199
198
|
"""
|
|
200
199
|
|
|
201
200
|
...
|
|
202
201
|
|
|
203
202
|
def ridged_multi_fractal(
|
|
204
|
-
position: typing.Union[typing.Sequence[float],
|
|
203
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
205
204
|
H: float,
|
|
206
205
|
lacunarity: float,
|
|
207
206
|
octaves: int,
|
|
@@ -212,7 +211,7 @@ def ridged_multi_fractal(
|
|
|
212
211
|
"""Returns ridged multifractal value from the noise basis at the specified position.
|
|
213
212
|
|
|
214
213
|
:param position: The position to evaluate the selected noise function.
|
|
215
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
214
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
216
215
|
:param H: The fractal dimension of the roughest areas.
|
|
217
216
|
:type H: float
|
|
218
217
|
:param lacunarity: The gap between successive frequencies.
|
|
@@ -225,8 +224,8 @@ def ridged_multi_fractal(
|
|
|
225
224
|
:type gain: float
|
|
226
225
|
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
227
226
|
:type noise_basis: str
|
|
228
|
-
:rtype: float
|
|
229
227
|
:return: The ridged multifractal value.
|
|
228
|
+
:rtype: float
|
|
230
229
|
"""
|
|
231
230
|
|
|
232
231
|
...
|
|
@@ -234,14 +233,15 @@ def ridged_multi_fractal(
|
|
|
234
233
|
def seed_set(seed: int):
|
|
235
234
|
"""Sets the random seed used for random_unit_vector, and random.
|
|
236
235
|
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
:param seed: Seed used for the random generator.
|
|
237
|
+
When seed is zero, the current time will be used instead.
|
|
238
|
+
:type seed: int
|
|
239
239
|
"""
|
|
240
240
|
|
|
241
241
|
...
|
|
242
242
|
|
|
243
243
|
def turbulence(
|
|
244
|
-
position: typing.Union[typing.Sequence[float],
|
|
244
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
245
245
|
octaves: int,
|
|
246
246
|
hard: bool,
|
|
247
247
|
noise_basis: str = "PERLIN_ORIGINAL",
|
|
@@ -251,7 +251,7 @@ def turbulence(
|
|
|
251
251
|
"""Returns the turbulence value from the noise basis at the specified position.
|
|
252
252
|
|
|
253
253
|
:param position: The position to evaluate the selected noise function.
|
|
254
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
254
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
255
255
|
:param octaves: The number of different noise frequencies used.
|
|
256
256
|
:type octaves: int
|
|
257
257
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
@@ -262,24 +262,24 @@ def turbulence(
|
|
|
262
262
|
:type amplitude_scale: float
|
|
263
263
|
:param frequency_scale: The frequency scaling factor
|
|
264
264
|
:type frequency_scale: float
|
|
265
|
-
:rtype: float
|
|
266
265
|
:return: The turbulence value.
|
|
266
|
+
:rtype: float
|
|
267
267
|
"""
|
|
268
268
|
|
|
269
269
|
...
|
|
270
270
|
|
|
271
271
|
def turbulence_vector(
|
|
272
|
-
position: typing.Union[typing.Sequence[float],
|
|
272
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
273
273
|
octaves: int,
|
|
274
274
|
hard: bool,
|
|
275
275
|
noise_basis: str = "PERLIN_ORIGINAL",
|
|
276
276
|
amplitude_scale: float = 0.5,
|
|
277
277
|
frequency_scale: float = 2.0,
|
|
278
|
-
) ->
|
|
278
|
+
) -> mathutils.Vector:
|
|
279
279
|
"""Returns the turbulence vector from the noise basis at the specified position.
|
|
280
280
|
|
|
281
281
|
:param position: The position to evaluate the selected noise function.
|
|
282
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
282
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
283
283
|
:param octaves: The number of different noise frequencies used.
|
|
284
284
|
:type octaves: int
|
|
285
285
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
@@ -290,14 +290,14 @@ def turbulence_vector(
|
|
|
290
290
|
:type amplitude_scale: float
|
|
291
291
|
:param frequency_scale: The frequency scaling factor
|
|
292
292
|
:type frequency_scale: float
|
|
293
|
-
:rtype: 'mathutils.Vector'
|
|
294
293
|
:return: The turbulence vector.
|
|
294
|
+
:rtype: mathutils.Vector
|
|
295
295
|
"""
|
|
296
296
|
|
|
297
297
|
...
|
|
298
298
|
|
|
299
299
|
def variable_lacunarity(
|
|
300
|
-
position: typing.Union[typing.Sequence[float],
|
|
300
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
301
301
|
distortion: float,
|
|
302
302
|
noise_type1: str = "PERLIN_ORIGINAL",
|
|
303
303
|
noise_type2: str = "PERLIN_ORIGINAL",
|
|
@@ -305,33 +305,32 @@ def variable_lacunarity(
|
|
|
305
305
|
"""Returns variable lacunarity noise value, a distorted variety of noise, from noise type 1 distorted by noise type 2 at the specified position.
|
|
306
306
|
|
|
307
307
|
:param position: The position to evaluate the selected noise function.
|
|
308
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
308
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
309
309
|
:param distortion: The amount of distortion.
|
|
310
310
|
:type distortion: float
|
|
311
311
|
:param noise_type1: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
312
312
|
:type noise_type1: str
|
|
313
313
|
:param noise_type2: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
314
314
|
:type noise_type2: str
|
|
315
|
-
:rtype: float
|
|
316
315
|
:return: The variable lacunarity noise value.
|
|
316
|
+
:rtype: float
|
|
317
317
|
"""
|
|
318
318
|
|
|
319
319
|
...
|
|
320
320
|
|
|
321
321
|
def voronoi(
|
|
322
|
-
position: typing.Union[typing.Sequence[float],
|
|
322
|
+
position: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
323
323
|
distance_metric: str = "DISTANCE",
|
|
324
324
|
exponent: float = 2.5,
|
|
325
|
-
)
|
|
325
|
+
):
|
|
326
326
|
"""Returns a list of distances to the four closest features and their locations.
|
|
327
327
|
|
|
328
328
|
:param position: The position to evaluate the selected noise function.
|
|
329
|
-
:type position: typing.Union[typing.Sequence[float],
|
|
329
|
+
:type position: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
330
330
|
:param distance_metric: Enumerator in ['DISTANCE', 'DISTANCE_SQUARED', 'MANHATTAN', 'CHEBYCHEV', 'MINKOVSKY', 'MINKOVSKY_HALF', 'MINKOVSKY_FOUR'].
|
|
331
331
|
:type distance_metric: str
|
|
332
332
|
:param exponent: The exponent for Minkowski distance metric.
|
|
333
333
|
:type exponent: float
|
|
334
|
-
:rtype: typing.List['mathutils.Vector']
|
|
335
334
|
:return: A list of distances to the four closest features and their locations.
|
|
336
335
|
"""
|
|
337
336
|
|
nodeitems_builtins/__init__.pyi
CHANGED
|
@@ -1,20 +1,59 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import nodeitems_utils
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
6
|
+
class CompositorNodeCategory(nodeitems_utils.NodeCategory):
|
|
7
|
+
""" """
|
|
8
|
+
|
|
9
|
+
def poll(self, context):
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
:param context:
|
|
13
|
+
"""
|
|
14
|
+
...
|
|
15
|
+
|
|
16
|
+
class ShaderNodeCategory(nodeitems_utils.NodeCategory):
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
def poll(self, context):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
:param context:
|
|
23
|
+
"""
|
|
24
|
+
...
|
|
25
|
+
|
|
7
26
|
class SortedNodeCategory(nodeitems_utils.NodeCategory):
|
|
8
|
-
|
|
27
|
+
""" """
|
|
28
|
+
|
|
29
|
+
def poll(self, _context):
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
:param _context:
|
|
33
|
+
"""
|
|
34
|
+
...
|
|
35
|
+
|
|
36
|
+
def group_input_output_item_poll(context):
|
|
37
|
+
""" """
|
|
38
|
+
|
|
39
|
+
...
|
|
40
|
+
|
|
41
|
+
def group_tools_draw(_self, layout, _context):
|
|
42
|
+
""" """
|
|
43
|
+
|
|
44
|
+
...
|
|
45
|
+
|
|
46
|
+
def node_group_items(context):
|
|
47
|
+
""" """
|
|
48
|
+
|
|
49
|
+
...
|
|
50
|
+
|
|
51
|
+
def register():
|
|
52
|
+
""" """
|
|
9
53
|
|
|
10
|
-
|
|
11
|
-
def poll(self, context): ...
|
|
54
|
+
...
|
|
12
55
|
|
|
13
|
-
|
|
14
|
-
|
|
56
|
+
def unregister():
|
|
57
|
+
""" """
|
|
15
58
|
|
|
16
|
-
|
|
17
|
-
def group_tools_draw(_self, layout, _context): ...
|
|
18
|
-
def node_group_items(context): ...
|
|
19
|
-
def register(): ...
|
|
20
|
-
def unregister(): ...
|
|
59
|
+
...
|
nodeitems_utils/__init__.pyi
CHANGED
|
@@ -1,23 +1,70 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
5
4
|
|
|
6
5
|
class NodeCategory:
|
|
7
|
-
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
def poll(self, _context):
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
:param _context:
|
|
12
|
+
"""
|
|
13
|
+
...
|
|
8
14
|
|
|
9
15
|
class NodeItem:
|
|
16
|
+
""" """
|
|
17
|
+
|
|
10
18
|
label: typing.Any
|
|
19
|
+
""" """
|
|
20
|
+
|
|
11
21
|
translation_context: typing.Any
|
|
22
|
+
""" """
|
|
23
|
+
|
|
24
|
+
def draw(self, layout, _context):
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
:param layout:
|
|
28
|
+
:param _context:
|
|
29
|
+
"""
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
class NodeItemCustom:
|
|
33
|
+
""" """
|
|
34
|
+
|
|
35
|
+
...
|
|
36
|
+
|
|
37
|
+
def draw_node_categories_menu(context):
|
|
38
|
+
""" """
|
|
39
|
+
|
|
40
|
+
...
|
|
41
|
+
|
|
42
|
+
def has_node_categories(context):
|
|
43
|
+
""" """
|
|
44
|
+
|
|
45
|
+
...
|
|
46
|
+
|
|
47
|
+
def node_categories_iter(context):
|
|
48
|
+
""" """
|
|
49
|
+
|
|
50
|
+
...
|
|
51
|
+
|
|
52
|
+
def node_items_iter(context):
|
|
53
|
+
""" """
|
|
54
|
+
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
def register_node_categories(identifier, cat_list):
|
|
58
|
+
""" """
|
|
59
|
+
|
|
60
|
+
...
|
|
61
|
+
|
|
62
|
+
def unregister_node_cat_types(cats):
|
|
63
|
+
""" """
|
|
12
64
|
|
|
13
|
-
|
|
65
|
+
...
|
|
14
66
|
|
|
15
|
-
|
|
67
|
+
def unregister_node_categories(identifier):
|
|
68
|
+
""" """
|
|
16
69
|
|
|
17
|
-
|
|
18
|
-
def has_node_categories(context): ...
|
|
19
|
-
def node_categories_iter(context): ...
|
|
20
|
-
def node_items_iter(context): ...
|
|
21
|
-
def register_node_categories(identifier, cat_list): ...
|
|
22
|
-
def unregister_node_cat_types(cats): ...
|
|
23
|
-
def unregister_node_categories(identifier): ...
|
|
70
|
+
...
|