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.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- 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
bpy/ops/uv/__init__.pyi
CHANGED
|
@@ -1,1294 +1,1382 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
|
-
import bpy.types
|
|
4
2
|
import bpy.ops.transform
|
|
3
|
+
import bpy.types
|
|
5
4
|
|
|
6
5
|
GenericType = typing.TypeVar("GenericType")
|
|
7
6
|
|
|
8
7
|
def align(
|
|
9
|
-
override_context: typing.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
undo: typing.Optional[bool] = None,
|
|
14
|
-
*,
|
|
15
|
-
axis: typing.Optional[typing.Any] = "ALIGN_AUTO",
|
|
8
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
9
|
+
execution_context: typing.Union[str, int] = None,
|
|
10
|
+
undo: bool = None,
|
|
11
|
+
axis: typing.Any = "ALIGN_AUTO",
|
|
16
12
|
):
|
|
17
13
|
"""Aligns selected UV vertices on a line
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
16
|
+
:type execution_context: typing.Union[str, int]
|
|
17
|
+
:type undo: bool
|
|
18
|
+
:param axis: Axis, Axis to align UV locations on
|
|
19
|
+
|
|
20
|
+
ALIGN_S
|
|
21
|
+
Straighten -- Align UV vertices along the line defined by the endpoints.
|
|
22
|
+
|
|
23
|
+
ALIGN_T
|
|
24
|
+
Straighten X -- Align UV vertices, moving them horizontally to the line defined by the endpoints.
|
|
25
|
+
|
|
26
|
+
ALIGN_U
|
|
27
|
+
Straighten Y -- Align UV vertices, moving them vertically to the line defined by the endpoints.
|
|
28
|
+
|
|
29
|
+
ALIGN_AUTO
|
|
30
|
+
Align Auto -- Automatically choose the direction on which there is most alignment already.
|
|
31
|
+
|
|
32
|
+
ALIGN_X
|
|
33
|
+
Align Vertically -- Align UV vertices on a vertical line.
|
|
34
|
+
|
|
35
|
+
ALIGN_Y
|
|
36
|
+
Align Horizontally -- Align UV vertices on a horizontal line.
|
|
37
|
+
:type axis: typing.Any
|
|
24
38
|
"""
|
|
25
39
|
|
|
26
40
|
...
|
|
27
41
|
|
|
28
42
|
def align_rotation(
|
|
29
|
-
override_context: typing.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
method: typing.Optional[typing.Any] = "AUTO",
|
|
36
|
-
axis: typing.Optional[typing.Any] = "X",
|
|
37
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
43
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
44
|
+
execution_context: typing.Union[str, int] = None,
|
|
45
|
+
undo: bool = None,
|
|
46
|
+
method: typing.Any = "AUTO",
|
|
47
|
+
axis: typing.Any = "X",
|
|
48
|
+
correct_aspect: typing.Union[bool, typing.Any] = False,
|
|
38
49
|
):
|
|
39
|
-
"""Align the UV island's rotation
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
"""Align the UV island's rotation
|
|
51
|
+
|
|
52
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
53
|
+
:type execution_context: typing.Union[str, int]
|
|
54
|
+
:type undo: bool
|
|
55
|
+
:param method: Method, Method to calculate rotation angle
|
|
56
|
+
|
|
57
|
+
AUTO
|
|
58
|
+
Auto -- Align from all edges.
|
|
59
|
+
|
|
60
|
+
EDGE
|
|
61
|
+
Edge -- Only selected edges.
|
|
62
|
+
|
|
63
|
+
GEOMETRY
|
|
64
|
+
Geometry -- Align to Geometry axis.
|
|
65
|
+
:type method: typing.Any
|
|
66
|
+
:param axis: Axis, Axis to align to
|
|
67
|
+
|
|
68
|
+
X
|
|
69
|
+
X -- X axis.
|
|
70
|
+
|
|
71
|
+
Y
|
|
72
|
+
Y -- Y axis.
|
|
73
|
+
|
|
74
|
+
Z
|
|
75
|
+
Z -- Z axis.
|
|
76
|
+
:type axis: typing.Any
|
|
77
|
+
:param correct_aspect: Correct Aspect, Take image aspect ratio into account
|
|
78
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
50
79
|
"""
|
|
51
80
|
|
|
52
81
|
...
|
|
53
82
|
|
|
54
83
|
def average_islands_scale(
|
|
55
|
-
override_context: typing.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
*,
|
|
61
|
-
scale_uv: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
62
|
-
shear: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
84
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
85
|
+
execution_context: typing.Union[str, int] = None,
|
|
86
|
+
undo: bool = None,
|
|
87
|
+
scale_uv: typing.Union[bool, typing.Any] = False,
|
|
88
|
+
shear: typing.Union[bool, typing.Any] = False,
|
|
63
89
|
):
|
|
64
90
|
"""Average the size of separate UV islands, based on their area in 3D space
|
|
65
91
|
|
|
66
|
-
:type override_context: typing.
|
|
67
|
-
:type execution_context: typing.
|
|
68
|
-
:type undo:
|
|
92
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
93
|
+
:type execution_context: typing.Union[str, int]
|
|
94
|
+
:type undo: bool
|
|
69
95
|
:param scale_uv: Non-Uniform, Scale U and V independently
|
|
70
|
-
:type scale_uv: typing.
|
|
96
|
+
:type scale_uv: typing.Union[bool, typing.Any]
|
|
71
97
|
:param shear: Shear, Reduce shear within islands
|
|
72
|
-
:type shear: typing.
|
|
98
|
+
:type shear: typing.Union[bool, typing.Any]
|
|
73
99
|
"""
|
|
74
100
|
|
|
75
101
|
...
|
|
76
102
|
|
|
77
103
|
def copy(
|
|
78
|
-
override_context: typing.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
82
|
-
undo: typing.Optional[bool] = None,
|
|
104
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
105
|
+
execution_context: typing.Union[str, int] = None,
|
|
106
|
+
undo: bool = None,
|
|
83
107
|
):
|
|
84
108
|
"""Copy selected UV vertices
|
|
85
109
|
|
|
86
|
-
:type override_context: typing.
|
|
87
|
-
:type execution_context: typing.
|
|
88
|
-
:type undo:
|
|
110
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
111
|
+
:type execution_context: typing.Union[str, int]
|
|
112
|
+
:type undo: bool
|
|
89
113
|
"""
|
|
90
114
|
|
|
91
115
|
...
|
|
92
116
|
|
|
93
117
|
def cube_project(
|
|
94
|
-
override_context: typing.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
102
|
-
clip_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
103
|
-
scale_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
118
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
119
|
+
execution_context: typing.Union[str, int] = None,
|
|
120
|
+
undo: bool = None,
|
|
121
|
+
cube_size: typing.Any = 1.0,
|
|
122
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
123
|
+
clip_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
124
|
+
scale_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
104
125
|
):
|
|
105
126
|
"""Project the UV vertices of the mesh over the six faces of a cube
|
|
106
127
|
|
|
107
|
-
:type override_context: typing.
|
|
108
|
-
:type execution_context: typing.
|
|
109
|
-
:type undo:
|
|
128
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
129
|
+
:type execution_context: typing.Union[str, int]
|
|
130
|
+
:type undo: bool
|
|
110
131
|
:param cube_size: Cube Size, Size of the cube to project on
|
|
111
|
-
:type cube_size: typing.
|
|
132
|
+
:type cube_size: typing.Any
|
|
112
133
|
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
113
|
-
:type correct_aspect: typing.
|
|
134
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
114
135
|
:param clip_to_bounds: Clip to Bounds, Clip UV coordinates to bounds after unwrapping
|
|
115
|
-
:type clip_to_bounds: typing.
|
|
136
|
+
:type clip_to_bounds: typing.Union[bool, typing.Any]
|
|
116
137
|
:param scale_to_bounds: Scale to Bounds, Scale UV coordinates to bounds after unwrapping
|
|
117
|
-
:type scale_to_bounds: typing.
|
|
138
|
+
:type scale_to_bounds: typing.Union[bool, typing.Any]
|
|
118
139
|
"""
|
|
119
140
|
|
|
120
141
|
...
|
|
121
142
|
|
|
122
143
|
def cursor_set(
|
|
123
|
-
override_context: typing.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
undo: typing.Optional[bool] = None,
|
|
128
|
-
*,
|
|
129
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
144
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
145
|
+
execution_context: typing.Union[str, int] = None,
|
|
146
|
+
undo: bool = None,
|
|
147
|
+
location: typing.Any = (0.0, 0.0),
|
|
130
148
|
):
|
|
131
149
|
"""Set 2D cursor location
|
|
132
150
|
|
|
133
|
-
:type override_context: typing.
|
|
134
|
-
:type execution_context: typing.
|
|
135
|
-
:type undo:
|
|
151
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
152
|
+
:type execution_context: typing.Union[str, int]
|
|
153
|
+
:type undo: bool
|
|
136
154
|
:param location: Location, Cursor location in normalized (0.0 to 1.0) coordinates
|
|
137
|
-
:type location: typing.
|
|
155
|
+
:type location: typing.Any
|
|
138
156
|
"""
|
|
139
157
|
|
|
140
158
|
...
|
|
141
159
|
|
|
142
160
|
def cylinder_project(
|
|
143
|
-
override_context: typing.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
155
|
-
clip_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
156
|
-
scale_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
161
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
162
|
+
execution_context: typing.Union[str, int] = None,
|
|
163
|
+
undo: bool = None,
|
|
164
|
+
direction: typing.Any = "VIEW_ON_EQUATOR",
|
|
165
|
+
align: typing.Any = "POLAR_ZX",
|
|
166
|
+
pole: typing.Any = "PINCH",
|
|
167
|
+
seam: typing.Union[bool, typing.Any] = False,
|
|
168
|
+
radius: typing.Any = 1.0,
|
|
169
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
170
|
+
clip_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
171
|
+
scale_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
157
172
|
):
|
|
158
173
|
"""Project the UV vertices of the mesh over the curved wall of a cylinder
|
|
159
174
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
176
|
+
:type execution_context: typing.Union[str, int]
|
|
177
|
+
:type undo: bool
|
|
178
|
+
:param direction: Direction, Direction of the sphere or cylinder
|
|
179
|
+
|
|
180
|
+
VIEW_ON_EQUATOR
|
|
181
|
+
View on Equator -- 3D view is on the equator.
|
|
182
|
+
|
|
183
|
+
VIEW_ON_POLES
|
|
184
|
+
View on Poles -- 3D view is on the poles.
|
|
185
|
+
|
|
186
|
+
ALIGN_TO_OBJECT
|
|
187
|
+
Align to Object -- Align according to object transform.
|
|
188
|
+
:type direction: typing.Any
|
|
189
|
+
:param align: Align, How to determine rotation around the pole
|
|
190
|
+
|
|
191
|
+
POLAR_ZX
|
|
192
|
+
Polar ZX -- Polar 0 is X.
|
|
193
|
+
|
|
194
|
+
POLAR_ZY
|
|
195
|
+
Polar ZY -- Polar 0 is Y.
|
|
196
|
+
:type align: typing.Any
|
|
197
|
+
:param pole: Pole, How to handle faces at the poles
|
|
198
|
+
|
|
199
|
+
PINCH
|
|
200
|
+
Pinch -- UVs are pinched at the poles.
|
|
201
|
+
|
|
202
|
+
FAN
|
|
203
|
+
Fan -- UVs are fanned at the poles.
|
|
204
|
+
:type pole: typing.Any
|
|
205
|
+
:param seam: Preserve Seams, Separate projections by islands isolated by seams
|
|
206
|
+
:type seam: typing.Union[bool, typing.Any]
|
|
207
|
+
:param radius: Radius, Radius of the sphere or cylinder
|
|
208
|
+
:type radius: typing.Any
|
|
209
|
+
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
210
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
211
|
+
:param clip_to_bounds: Clip to Bounds, Clip UV coordinates to bounds after unwrapping
|
|
212
|
+
:type clip_to_bounds: typing.Union[bool, typing.Any]
|
|
213
|
+
:param scale_to_bounds: Scale to Bounds, Scale UV coordinates to bounds after unwrapping
|
|
214
|
+
:type scale_to_bounds: typing.Union[bool, typing.Any]
|
|
179
215
|
"""
|
|
180
216
|
|
|
181
217
|
...
|
|
182
218
|
|
|
183
219
|
def export_layout(
|
|
184
|
-
override_context: typing.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
188
|
-
undo: typing.Optional[bool] = None,
|
|
189
|
-
*,
|
|
220
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
221
|
+
execution_context: typing.Union[str, int] = None,
|
|
222
|
+
undo: bool = None,
|
|
190
223
|
filepath: typing.Union[str, typing.Any] = "",
|
|
191
|
-
export_all: typing.
|
|
192
|
-
export_tiles: typing.
|
|
193
|
-
modified: typing.
|
|
194
|
-
mode: typing.
|
|
195
|
-
size: typing.
|
|
196
|
-
opacity: typing.
|
|
197
|
-
check_existing: typing.
|
|
224
|
+
export_all: typing.Union[bool, typing.Any] = False,
|
|
225
|
+
export_tiles: typing.Any = "NONE",
|
|
226
|
+
modified: typing.Union[bool, typing.Any] = False,
|
|
227
|
+
mode: typing.Any = "PNG",
|
|
228
|
+
size: typing.Any = (1024, 1024),
|
|
229
|
+
opacity: typing.Any = 0.25,
|
|
230
|
+
check_existing: typing.Union[bool, typing.Any] = True,
|
|
198
231
|
):
|
|
199
|
-
"""Export UV layout to file
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
232
|
+
"""Export UV layout to file
|
|
233
|
+
|
|
234
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
235
|
+
:type execution_context: typing.Union[str, int]
|
|
236
|
+
:type undo: bool
|
|
237
|
+
:param filepath: filepath
|
|
238
|
+
:type filepath: typing.Union[str, typing.Any]
|
|
239
|
+
:param export_all: All UVs, Export all UVs in this mesh (not just visible ones)
|
|
240
|
+
:type export_all: typing.Union[bool, typing.Any]
|
|
241
|
+
:param export_tiles: Export Tiles, Choose whether to export only the [0, 1] range, or all UV tiles
|
|
242
|
+
|
|
243
|
+
NONE
|
|
244
|
+
None -- Export only UVs in the [0, 1] range.
|
|
245
|
+
|
|
246
|
+
UDIM
|
|
247
|
+
UDIM -- Export tiles in the UDIM numbering scheme: 1001 + u_tile + 10*v_tile.
|
|
248
|
+
|
|
249
|
+
UV
|
|
250
|
+
UVTILE -- Export tiles in the UVTILE numbering scheme: u(u_tile + 1)_v(v_tile + 1).
|
|
251
|
+
:type export_tiles: typing.Any
|
|
252
|
+
:param modified: Modified, Exports UVs from the modified mesh
|
|
253
|
+
:type modified: typing.Union[bool, typing.Any]
|
|
254
|
+
:param mode: Format, File format to export the UV layout to
|
|
255
|
+
|
|
256
|
+
SVG
|
|
257
|
+
Scalable Vector Graphic (.svg) -- Export the UV layout to a vector SVG file.
|
|
258
|
+
|
|
259
|
+
EPS
|
|
260
|
+
Encapsulated PostScript (.eps) -- Export the UV layout to a vector EPS file.
|
|
261
|
+
|
|
262
|
+
PNG
|
|
263
|
+
PNG Image (.png) -- Export the UV layout to a bitmap image.
|
|
264
|
+
:type mode: typing.Any
|
|
265
|
+
:param size: Size, Dimensions of the exported file
|
|
266
|
+
:type size: typing.Any
|
|
267
|
+
:param opacity: Fill Opacity, Set amount of opacity for exported UV layout
|
|
268
|
+
:type opacity: typing.Any
|
|
269
|
+
:param check_existing: check_existing
|
|
270
|
+
:type check_existing: typing.Union[bool, typing.Any]
|
|
220
271
|
"""
|
|
221
272
|
|
|
222
273
|
...
|
|
223
274
|
|
|
224
275
|
def follow_active_quads(
|
|
225
|
-
override_context: typing.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
undo: typing.Optional[bool] = None,
|
|
230
|
-
*,
|
|
231
|
-
mode: typing.Optional[typing.Any] = "LENGTH_AVERAGE",
|
|
276
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
277
|
+
execution_context: typing.Union[str, int] = None,
|
|
278
|
+
undo: bool = None,
|
|
279
|
+
mode: typing.Any = "LENGTH_AVERAGE",
|
|
232
280
|
):
|
|
233
|
-
"""Follow UVs from active quads along continuous face loops
|
|
281
|
+
"""Follow UVs from active quads along continuous face loops
|
|
282
|
+
|
|
283
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
284
|
+
:type execution_context: typing.Union[str, int]
|
|
285
|
+
:type undo: bool
|
|
286
|
+
:param mode: Edge Length Mode, Method to space UV edge loops
|
|
287
|
+
|
|
288
|
+
EVEN
|
|
289
|
+
Even -- Space all UVs evenly.
|
|
290
|
+
|
|
291
|
+
LENGTH
|
|
292
|
+
Length -- Average space UVs edge length of each loop.
|
|
234
293
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
:param mode: Edge Length Mode, Method to space UV edge loops * ``EVEN`` Even -- Space all UVs evenly. * ``LENGTH`` Length -- Average space UVs edge length of each loop. * ``LENGTH_AVERAGE`` Length Average -- Average space UVs edge length of each loop.
|
|
239
|
-
:type mode: typing.Optional[typing.Any]
|
|
294
|
+
LENGTH_AVERAGE
|
|
295
|
+
Length Average -- Average space UVs edge length of each loop.
|
|
296
|
+
:type mode: typing.Any
|
|
240
297
|
"""
|
|
241
298
|
|
|
242
299
|
...
|
|
243
300
|
|
|
244
301
|
def hide(
|
|
245
|
-
override_context: typing.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
undo: typing.Optional[bool] = None,
|
|
250
|
-
*,
|
|
251
|
-
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
302
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
303
|
+
execution_context: typing.Union[str, int] = None,
|
|
304
|
+
undo: bool = None,
|
|
305
|
+
unselected: typing.Union[bool, typing.Any] = False,
|
|
252
306
|
):
|
|
253
307
|
"""Hide (un)selected UV vertices
|
|
254
308
|
|
|
255
|
-
:type override_context: typing.
|
|
256
|
-
:type execution_context: typing.
|
|
257
|
-
:type undo:
|
|
309
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
310
|
+
:type execution_context: typing.Union[str, int]
|
|
311
|
+
:type undo: bool
|
|
258
312
|
:param unselected: Unselected, Hide unselected rather than selected
|
|
259
|
-
:type unselected: typing.
|
|
313
|
+
:type unselected: typing.Union[bool, typing.Any]
|
|
260
314
|
"""
|
|
261
315
|
|
|
262
316
|
...
|
|
263
317
|
|
|
264
318
|
def lightmap_pack(
|
|
265
|
-
override_context: typing.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
PREF_NEW_UVLAYER: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
274
|
-
PREF_BOX_DIV: typing.Optional[typing.Any] = 12,
|
|
275
|
-
PREF_MARGIN_DIV: typing.Optional[typing.Any] = 0.1,
|
|
319
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
320
|
+
execution_context: typing.Union[str, int] = None,
|
|
321
|
+
undo: bool = None,
|
|
322
|
+
PREF_CONTEXT: typing.Any = "SEL_FACES",
|
|
323
|
+
PREF_PACK_IN_ONE: typing.Union[bool, typing.Any] = True,
|
|
324
|
+
PREF_NEW_UVLAYER: typing.Union[bool, typing.Any] = False,
|
|
325
|
+
PREF_BOX_DIV: typing.Any = 12,
|
|
326
|
+
PREF_MARGIN_DIV: typing.Any = 0.1,
|
|
276
327
|
):
|
|
277
|
-
"""Pack each face's UVs into the UV bounds
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
328
|
+
"""Pack each face's UVs into the UV bounds
|
|
329
|
+
|
|
330
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
331
|
+
:type execution_context: typing.Union[str, int]
|
|
332
|
+
:type undo: bool
|
|
333
|
+
:param PREF_CONTEXT: Selection
|
|
334
|
+
|
|
335
|
+
SEL_FACES
|
|
336
|
+
Selected Faces -- Space all UVs evenly.
|
|
337
|
+
|
|
338
|
+
ALL_FACES
|
|
339
|
+
All Faces -- Average space UVs edge length of each loop.
|
|
340
|
+
:type PREF_CONTEXT: typing.Any
|
|
341
|
+
:param PREF_PACK_IN_ONE: Share Texture Space, Objects share texture space, map all objects into a single UV map
|
|
342
|
+
:type PREF_PACK_IN_ONE: typing.Union[bool, typing.Any]
|
|
343
|
+
:param PREF_NEW_UVLAYER: New UV Map, Create a new UV map for every mesh packed
|
|
344
|
+
:type PREF_NEW_UVLAYER: typing.Union[bool, typing.Any]
|
|
345
|
+
:param PREF_BOX_DIV: Pack Quality, Quality of the packing. Higher values will be slower but waste less space
|
|
346
|
+
:type PREF_BOX_DIV: typing.Any
|
|
347
|
+
:param PREF_MARGIN_DIV: Margin, Size of the margin as a division of the UV
|
|
348
|
+
:type PREF_MARGIN_DIV: typing.Any
|
|
292
349
|
"""
|
|
293
350
|
|
|
294
351
|
...
|
|
295
352
|
|
|
296
353
|
def mark_seam(
|
|
297
|
-
override_context: typing.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
undo: typing.Optional[bool] = None,
|
|
302
|
-
*,
|
|
303
|
-
clear: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
354
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
355
|
+
execution_context: typing.Union[str, int] = None,
|
|
356
|
+
undo: bool = None,
|
|
357
|
+
clear: typing.Union[bool, typing.Any] = False,
|
|
304
358
|
):
|
|
305
359
|
"""Mark selected UV edges as seams
|
|
306
360
|
|
|
307
|
-
:type override_context: typing.
|
|
308
|
-
:type execution_context: typing.
|
|
309
|
-
:type undo:
|
|
361
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
362
|
+
:type execution_context: typing.Union[str, int]
|
|
363
|
+
:type undo: bool
|
|
310
364
|
:param clear: Clear Seams, Clear instead of marking seams
|
|
311
|
-
:type clear: typing.
|
|
365
|
+
:type clear: typing.Union[bool, typing.Any]
|
|
312
366
|
"""
|
|
313
367
|
|
|
314
368
|
...
|
|
315
369
|
|
|
316
370
|
def minimize_stretch(
|
|
317
|
-
override_context: typing.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
fill_holes: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
324
|
-
blend: typing.Optional[typing.Any] = 0.0,
|
|
325
|
-
iterations: typing.Optional[typing.Any] = 0,
|
|
371
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
372
|
+
execution_context: typing.Union[str, int] = None,
|
|
373
|
+
undo: bool = None,
|
|
374
|
+
fill_holes: typing.Union[bool, typing.Any] = True,
|
|
375
|
+
blend: typing.Any = 0.0,
|
|
376
|
+
iterations: typing.Any = 0,
|
|
326
377
|
):
|
|
327
378
|
"""Reduce UV stretching by relaxing angles
|
|
328
379
|
|
|
329
|
-
:type override_context: typing.
|
|
330
|
-
:type execution_context: typing.
|
|
331
|
-
:type undo:
|
|
380
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
381
|
+
:type execution_context: typing.Union[str, int]
|
|
382
|
+
:type undo: bool
|
|
332
383
|
:param fill_holes: Fill Holes, Virtually fill holes in mesh before unwrapping, to better avoid overlaps and preserve symmetry
|
|
333
|
-
:type fill_holes: typing.
|
|
384
|
+
:type fill_holes: typing.Union[bool, typing.Any]
|
|
334
385
|
:param blend: Blend, Blend factor between stretch minimized and original
|
|
335
|
-
:type blend: typing.
|
|
386
|
+
:type blend: typing.Any
|
|
336
387
|
:param iterations: Iterations, Number of iterations to run, 0 is unlimited when run interactively
|
|
337
|
-
:type iterations: typing.
|
|
388
|
+
:type iterations: typing.Any
|
|
338
389
|
"""
|
|
339
390
|
|
|
340
391
|
...
|
|
341
392
|
|
|
342
393
|
def pack_islands(
|
|
343
|
-
override_context: typing.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
pin: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
357
|
-
pin_method: typing.Optional[typing.Any] = "LOCKED",
|
|
358
|
-
shape_method: typing.Optional[typing.Any] = "CONCAVE",
|
|
394
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
395
|
+
execution_context: typing.Union[str, int] = None,
|
|
396
|
+
undo: bool = None,
|
|
397
|
+
udim_source: typing.Any = "CLOSEST_UDIM",
|
|
398
|
+
rotate: typing.Union[bool, typing.Any] = True,
|
|
399
|
+
rotate_method: typing.Any = "ANY",
|
|
400
|
+
scale: typing.Union[bool, typing.Any] = True,
|
|
401
|
+
merge_overlap: typing.Union[bool, typing.Any] = False,
|
|
402
|
+
margin_method: typing.Any = "SCALED",
|
|
403
|
+
margin: typing.Any = 0.001,
|
|
404
|
+
pin: typing.Union[bool, typing.Any] = False,
|
|
405
|
+
pin_method: typing.Any = "LOCKED",
|
|
406
|
+
shape_method: typing.Any = "CONCAVE",
|
|
359
407
|
):
|
|
360
408
|
"""Transform all islands so that they fill up the UV/UDIM space as much as possible
|
|
361
409
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
410
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
411
|
+
:type execution_context: typing.Union[str, int]
|
|
412
|
+
:type undo: bool
|
|
413
|
+
:param udim_source: Pack to
|
|
414
|
+
|
|
415
|
+
CLOSEST_UDIM
|
|
416
|
+
Closest UDIM -- Pack islands to closest UDIM.
|
|
417
|
+
|
|
418
|
+
ACTIVE_UDIM
|
|
419
|
+
Active UDIM -- Pack islands to active UDIM image tile or UDIM grid tile where 2D cursor is located.
|
|
420
|
+
|
|
421
|
+
ORIGINAL_AABB
|
|
422
|
+
Original bounding box -- Pack to starting bounding box of islands.
|
|
423
|
+
:type udim_source: typing.Any
|
|
424
|
+
:param rotate: Rotate, Rotate islands to improve layout
|
|
425
|
+
:type rotate: typing.Union[bool, typing.Any]
|
|
426
|
+
:param rotate_method: Rotation Method
|
|
427
|
+
|
|
428
|
+
ANY
|
|
429
|
+
Any -- Any angle is allowed for rotation.
|
|
430
|
+
|
|
431
|
+
CARDINAL
|
|
432
|
+
Cardinal -- Only 90 degree rotations are allowed.
|
|
433
|
+
|
|
434
|
+
AXIS_ALIGNED
|
|
435
|
+
Axis-aligned -- Rotated to a minimal rectangle, either vertical or horizontal.
|
|
436
|
+
|
|
437
|
+
AXIS_ALIGNED_X
|
|
438
|
+
Axis-aligned (Horizontal) -- Rotate islands to be aligned horizontally.
|
|
439
|
+
|
|
440
|
+
AXIS_ALIGNED_Y
|
|
441
|
+
Axis-aligned (Vertical) -- Rotate islands to be aligned vertically.
|
|
442
|
+
:type rotate_method: typing.Any
|
|
443
|
+
:param scale: Scale, Scale islands to fill unit square
|
|
444
|
+
:type scale: typing.Union[bool, typing.Any]
|
|
445
|
+
:param merge_overlap: Merge Overlapping, Overlapping islands stick together
|
|
446
|
+
:type merge_overlap: typing.Union[bool, typing.Any]
|
|
447
|
+
:param margin_method: Margin Method
|
|
448
|
+
|
|
449
|
+
SCALED
|
|
450
|
+
Scaled -- Use scale of existing UVs to multiply margin.
|
|
451
|
+
|
|
452
|
+
ADD
|
|
453
|
+
Add -- Just add the margin, ignoring any UV scale.
|
|
454
|
+
|
|
455
|
+
FRACTION
|
|
456
|
+
Fraction -- Specify a precise fraction of final UV output.
|
|
457
|
+
:type margin_method: typing.Any
|
|
458
|
+
:param margin: Margin, Space between islands
|
|
459
|
+
:type margin: typing.Any
|
|
460
|
+
:param pin: Lock Pinned Islands, Constrain islands containing any pinned UV's
|
|
461
|
+
:type pin: typing.Union[bool, typing.Any]
|
|
462
|
+
:param pin_method: Pin Method
|
|
463
|
+
|
|
464
|
+
SCALE
|
|
465
|
+
Scale -- Pinned islands won't rescale.
|
|
466
|
+
|
|
467
|
+
ROTATION
|
|
468
|
+
Rotation -- Pinned islands won't rotate.
|
|
469
|
+
|
|
470
|
+
ROTATION_SCALE
|
|
471
|
+
Rotation and Scale -- Pinned islands will translate only.
|
|
472
|
+
|
|
473
|
+
LOCKED
|
|
474
|
+
All -- Pinned islands are locked in place.
|
|
475
|
+
:type pin_method: typing.Any
|
|
476
|
+
:param shape_method: Shape Method
|
|
477
|
+
|
|
478
|
+
CONCAVE
|
|
479
|
+
Exact Shape (Concave) -- Uses exact geometry.
|
|
480
|
+
|
|
481
|
+
CONVEX
|
|
482
|
+
Boundary Shape (Convex) -- Uses convex hull.
|
|
483
|
+
|
|
484
|
+
AABB
|
|
485
|
+
Bounding Box -- Uses bounding boxes.
|
|
486
|
+
:type shape_method: typing.Any
|
|
385
487
|
"""
|
|
386
488
|
|
|
387
489
|
...
|
|
388
490
|
|
|
389
491
|
def paste(
|
|
390
|
-
override_context: typing.
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
394
|
-
undo: typing.Optional[bool] = None,
|
|
492
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
493
|
+
execution_context: typing.Union[str, int] = None,
|
|
494
|
+
undo: bool = None,
|
|
395
495
|
):
|
|
396
496
|
"""Paste selected UV vertices
|
|
397
497
|
|
|
398
|
-
:type override_context: typing.
|
|
399
|
-
:type execution_context: typing.
|
|
400
|
-
:type undo:
|
|
498
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
499
|
+
:type execution_context: typing.Union[str, int]
|
|
500
|
+
:type undo: bool
|
|
401
501
|
"""
|
|
402
502
|
|
|
403
503
|
...
|
|
404
504
|
|
|
405
505
|
def pin(
|
|
406
|
-
override_context: typing.
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
*,
|
|
412
|
-
clear: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
413
|
-
invert: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
506
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
507
|
+
execution_context: typing.Union[str, int] = None,
|
|
508
|
+
undo: bool = None,
|
|
509
|
+
clear: typing.Union[bool, typing.Any] = False,
|
|
510
|
+
invert: typing.Union[bool, typing.Any] = False,
|
|
414
511
|
):
|
|
415
512
|
"""Set/clear selected UV vertices as anchored between multiple unwrap operations
|
|
416
513
|
|
|
417
|
-
:type override_context: typing.
|
|
418
|
-
:type execution_context: typing.
|
|
419
|
-
:type undo:
|
|
514
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
515
|
+
:type execution_context: typing.Union[str, int]
|
|
516
|
+
:type undo: bool
|
|
420
517
|
:param clear: Clear, Clear pinning for the selection instead of setting it
|
|
421
|
-
:type clear: typing.
|
|
518
|
+
:type clear: typing.Union[bool, typing.Any]
|
|
422
519
|
:param invert: Invert, Invert pinning for the selection instead of setting it
|
|
423
|
-
:type invert: typing.
|
|
520
|
+
:type invert: typing.Union[bool, typing.Any]
|
|
424
521
|
"""
|
|
425
522
|
|
|
426
523
|
...
|
|
427
524
|
|
|
428
525
|
def project_from_view(
|
|
429
|
-
override_context: typing.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
438
|
-
clip_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
439
|
-
scale_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
526
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
527
|
+
execution_context: typing.Union[str, int] = None,
|
|
528
|
+
undo: bool = None,
|
|
529
|
+
orthographic: typing.Union[bool, typing.Any] = False,
|
|
530
|
+
camera_bounds: typing.Union[bool, typing.Any] = True,
|
|
531
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
532
|
+
clip_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
533
|
+
scale_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
440
534
|
):
|
|
441
535
|
"""Project the UV vertices of the mesh as seen in current 3D view
|
|
442
536
|
|
|
443
|
-
:type override_context: typing.
|
|
444
|
-
:type execution_context: typing.
|
|
445
|
-
:type undo:
|
|
537
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
538
|
+
:type execution_context: typing.Union[str, int]
|
|
539
|
+
:type undo: bool
|
|
446
540
|
:param orthographic: Orthographic, Use orthographic projection
|
|
447
|
-
:type orthographic: typing.
|
|
541
|
+
:type orthographic: typing.Union[bool, typing.Any]
|
|
448
542
|
:param camera_bounds: Camera Bounds, Map UVs to the camera region taking resolution and aspect into account
|
|
449
|
-
:type camera_bounds: typing.
|
|
543
|
+
:type camera_bounds: typing.Union[bool, typing.Any]
|
|
450
544
|
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
451
|
-
:type correct_aspect: typing.
|
|
545
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
452
546
|
:param clip_to_bounds: Clip to Bounds, Clip UV coordinates to bounds after unwrapping
|
|
453
|
-
:type clip_to_bounds: typing.
|
|
547
|
+
:type clip_to_bounds: typing.Union[bool, typing.Any]
|
|
454
548
|
:param scale_to_bounds: Scale to Bounds, Scale UV coordinates to bounds after unwrapping
|
|
455
|
-
:type scale_to_bounds: typing.
|
|
549
|
+
:type scale_to_bounds: typing.Union[bool, typing.Any]
|
|
456
550
|
"""
|
|
457
551
|
|
|
458
552
|
...
|
|
459
553
|
|
|
460
554
|
def randomize_uv_transform(
|
|
461
|
-
override_context: typing.
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
use_scale: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
473
|
-
scale_even: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
474
|
-
scale: typing.Optional[typing.Any] = (1.0, 1.0),
|
|
555
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
556
|
+
execution_context: typing.Union[str, int] = None,
|
|
557
|
+
undo: bool = None,
|
|
558
|
+
random_seed: typing.Any = 0,
|
|
559
|
+
use_loc: typing.Union[bool, typing.Any] = True,
|
|
560
|
+
loc: typing.Any = (0.0, 0.0),
|
|
561
|
+
use_rot: typing.Union[bool, typing.Any] = True,
|
|
562
|
+
rot: typing.Any = 0.0,
|
|
563
|
+
use_scale: typing.Union[bool, typing.Any] = True,
|
|
564
|
+
scale_even: typing.Union[bool, typing.Any] = False,
|
|
565
|
+
scale: typing.Any = (1.0, 1.0),
|
|
475
566
|
):
|
|
476
|
-
"""Randomize the UV island's location, rotation, and scale
|
|
567
|
+
"""Randomize the UV island's location, rotation, and scale
|
|
477
568
|
|
|
478
|
-
:type override_context: typing.
|
|
479
|
-
:type execution_context: typing.
|
|
480
|
-
:type undo:
|
|
569
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
570
|
+
:type execution_context: typing.Union[str, int]
|
|
571
|
+
:type undo: bool
|
|
481
572
|
:param random_seed: Random Seed, Seed value for the random generator
|
|
482
|
-
:type random_seed: typing.
|
|
573
|
+
:type random_seed: typing.Any
|
|
483
574
|
:param use_loc: Randomize Location, Randomize the location values
|
|
484
|
-
:type use_loc: typing.
|
|
575
|
+
:type use_loc: typing.Union[bool, typing.Any]
|
|
485
576
|
:param loc: Location, Maximum distance the objects can spread over each axis
|
|
486
|
-
:type loc: typing.
|
|
577
|
+
:type loc: typing.Any
|
|
487
578
|
:param use_rot: Randomize Rotation, Randomize the rotation value
|
|
488
|
-
:type use_rot: typing.
|
|
579
|
+
:type use_rot: typing.Union[bool, typing.Any]
|
|
489
580
|
:param rot: Rotation, Maximum rotation
|
|
490
|
-
:type rot: typing.
|
|
581
|
+
:type rot: typing.Any
|
|
491
582
|
:param use_scale: Randomize Scale, Randomize the scale values
|
|
492
|
-
:type use_scale: typing.
|
|
583
|
+
:type use_scale: typing.Union[bool, typing.Any]
|
|
493
584
|
:param scale_even: Scale Even, Use the same scale value for both axes
|
|
494
|
-
:type scale_even: typing.
|
|
585
|
+
:type scale_even: typing.Union[bool, typing.Any]
|
|
495
586
|
:param scale: Scale, Maximum scale randomization over each axis
|
|
496
|
-
:type scale: typing.
|
|
587
|
+
:type scale: typing.Any
|
|
497
588
|
"""
|
|
498
589
|
|
|
499
590
|
...
|
|
500
591
|
|
|
501
592
|
def remove_doubles(
|
|
502
|
-
override_context: typing.
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
*,
|
|
508
|
-
threshold: typing.Optional[typing.Any] = 0.02,
|
|
509
|
-
use_unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
593
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
594
|
+
execution_context: typing.Union[str, int] = None,
|
|
595
|
+
undo: bool = None,
|
|
596
|
+
threshold: typing.Any = 0.02,
|
|
597
|
+
use_unselected: typing.Union[bool, typing.Any] = False,
|
|
510
598
|
):
|
|
511
599
|
"""Selected UV vertices that are within a radius of each other are welded together
|
|
512
600
|
|
|
513
|
-
:type override_context: typing.
|
|
514
|
-
:type execution_context: typing.
|
|
515
|
-
:type undo:
|
|
601
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
602
|
+
:type execution_context: typing.Union[str, int]
|
|
603
|
+
:type undo: bool
|
|
516
604
|
:param threshold: Merge Distance, Maximum distance between welded vertices
|
|
517
|
-
:type threshold: typing.
|
|
605
|
+
:type threshold: typing.Any
|
|
518
606
|
:param use_unselected: Unselected, Merge selected to other unselected vertices
|
|
519
|
-
:type use_unselected: typing.
|
|
607
|
+
:type use_unselected: typing.Union[bool, typing.Any]
|
|
520
608
|
"""
|
|
521
609
|
|
|
522
610
|
...
|
|
523
611
|
|
|
524
612
|
def reset(
|
|
525
|
-
override_context: typing.
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
529
|
-
undo: typing.Optional[bool] = None,
|
|
613
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
614
|
+
execution_context: typing.Union[str, int] = None,
|
|
615
|
+
undo: bool = None,
|
|
530
616
|
):
|
|
531
617
|
"""Reset UV projection
|
|
532
618
|
|
|
533
|
-
:type override_context: typing.
|
|
534
|
-
:type execution_context: typing.
|
|
535
|
-
:type undo:
|
|
619
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
620
|
+
:type execution_context: typing.Union[str, int]
|
|
621
|
+
:type undo: bool
|
|
536
622
|
"""
|
|
537
623
|
|
|
538
624
|
...
|
|
539
625
|
|
|
540
626
|
def reveal(
|
|
541
|
-
override_context: typing.
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
undo: typing.Optional[bool] = None,
|
|
546
|
-
*,
|
|
547
|
-
select: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
627
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
628
|
+
execution_context: typing.Union[str, int] = None,
|
|
629
|
+
undo: bool = None,
|
|
630
|
+
select: typing.Union[bool, typing.Any] = True,
|
|
548
631
|
):
|
|
549
632
|
"""Reveal all hidden UV vertices
|
|
550
633
|
|
|
551
|
-
:type override_context: typing.
|
|
552
|
-
:type execution_context: typing.
|
|
553
|
-
:type undo:
|
|
634
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
635
|
+
:type execution_context: typing.Union[str, int]
|
|
636
|
+
:type undo: bool
|
|
554
637
|
:param select: Select
|
|
555
|
-
:type select: typing.
|
|
638
|
+
:type select: typing.Union[bool, typing.Any]
|
|
556
639
|
"""
|
|
557
640
|
|
|
558
641
|
...
|
|
559
642
|
|
|
560
643
|
def rip(
|
|
561
|
-
override_context: typing.
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
release_confirm: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
569
|
-
use_accurate: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
570
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
644
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
645
|
+
execution_context: typing.Union[str, int] = None,
|
|
646
|
+
undo: bool = None,
|
|
647
|
+
mirror: typing.Union[bool, typing.Any] = False,
|
|
648
|
+
release_confirm: typing.Union[bool, typing.Any] = False,
|
|
649
|
+
use_accurate: typing.Union[bool, typing.Any] = False,
|
|
650
|
+
location: typing.Any = (0.0, 0.0),
|
|
571
651
|
):
|
|
572
652
|
"""Rip selected vertices or a selected region
|
|
573
653
|
|
|
574
|
-
:type override_context: typing.
|
|
575
|
-
:type execution_context: typing.
|
|
576
|
-
:type undo:
|
|
654
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
655
|
+
:type execution_context: typing.Union[str, int]
|
|
656
|
+
:type undo: bool
|
|
577
657
|
:param mirror: Mirror Editing
|
|
578
|
-
:type mirror: typing.
|
|
658
|
+
:type mirror: typing.Union[bool, typing.Any]
|
|
579
659
|
:param release_confirm: Confirm on Release, Always confirm operation when releasing button
|
|
580
|
-
:type release_confirm: typing.
|
|
660
|
+
:type release_confirm: typing.Union[bool, typing.Any]
|
|
581
661
|
:param use_accurate: Accurate, Use accurate transformation
|
|
582
|
-
:type use_accurate: typing.
|
|
662
|
+
:type use_accurate: typing.Union[bool, typing.Any]
|
|
583
663
|
:param location: Location, Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds
|
|
584
|
-
:type location: typing.
|
|
664
|
+
:type location: typing.Any
|
|
585
665
|
"""
|
|
586
666
|
|
|
587
667
|
...
|
|
588
668
|
|
|
589
669
|
def rip_move(
|
|
590
|
-
override_context: typing.
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
*,
|
|
596
|
-
UV_OT_rip: typing.Optional["rip"] = None,
|
|
597
|
-
TRANSFORM_OT_translate: typing.Optional["bpy.ops.transform.translate"] = None,
|
|
670
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
671
|
+
execution_context: typing.Union[str, int] = None,
|
|
672
|
+
undo: bool = None,
|
|
673
|
+
UV_OT_rip: rip = None,
|
|
674
|
+
TRANSFORM_OT_translate: bpy.ops.transform.translate = None,
|
|
598
675
|
):
|
|
599
676
|
"""Unstitch UVs and move the result
|
|
600
677
|
|
|
601
|
-
:type override_context: typing.
|
|
602
|
-
:type execution_context: typing.
|
|
603
|
-
:type undo:
|
|
678
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
679
|
+
:type execution_context: typing.Union[str, int]
|
|
680
|
+
:type undo: bool
|
|
604
681
|
:param UV_OT_rip: UV Rip, Rip selected vertices or a selected region
|
|
605
|
-
:type UV_OT_rip:
|
|
682
|
+
:type UV_OT_rip: rip
|
|
606
683
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
607
|
-
:type TRANSFORM_OT_translate:
|
|
684
|
+
:type TRANSFORM_OT_translate: bpy.ops.transform.translate
|
|
608
685
|
"""
|
|
609
686
|
|
|
610
687
|
...
|
|
611
688
|
|
|
612
689
|
def seams_from_islands(
|
|
613
|
-
override_context: typing.
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
*,
|
|
619
|
-
mark_seams: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
620
|
-
mark_sharp: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
690
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
691
|
+
execution_context: typing.Union[str, int] = None,
|
|
692
|
+
undo: bool = None,
|
|
693
|
+
mark_seams: typing.Union[bool, typing.Any] = True,
|
|
694
|
+
mark_sharp: typing.Union[bool, typing.Any] = False,
|
|
621
695
|
):
|
|
622
696
|
"""Set mesh seams according to island setup in the UV editor
|
|
623
697
|
|
|
624
|
-
:type override_context: typing.
|
|
625
|
-
:type execution_context: typing.
|
|
626
|
-
:type undo:
|
|
698
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
699
|
+
:type execution_context: typing.Union[str, int]
|
|
700
|
+
:type undo: bool
|
|
627
701
|
:param mark_seams: Mark Seams, Mark boundary edges as seams
|
|
628
|
-
:type mark_seams: typing.
|
|
702
|
+
:type mark_seams: typing.Union[bool, typing.Any]
|
|
629
703
|
:param mark_sharp: Mark Sharp, Mark boundary edges as sharp
|
|
630
|
-
:type mark_sharp: typing.
|
|
704
|
+
:type mark_sharp: typing.Union[bool, typing.Any]
|
|
631
705
|
"""
|
|
632
706
|
|
|
633
707
|
...
|
|
634
708
|
|
|
635
709
|
def select(
|
|
636
|
-
override_context: typing.
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
deselect_all: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
646
|
-
select_passthrough: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
647
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
710
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
711
|
+
execution_context: typing.Union[str, int] = None,
|
|
712
|
+
undo: bool = None,
|
|
713
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
714
|
+
deselect: typing.Union[bool, typing.Any] = False,
|
|
715
|
+
toggle: typing.Union[bool, typing.Any] = False,
|
|
716
|
+
deselect_all: typing.Union[bool, typing.Any] = False,
|
|
717
|
+
select_passthrough: typing.Union[bool, typing.Any] = False,
|
|
718
|
+
location: typing.Any = (0.0, 0.0),
|
|
648
719
|
):
|
|
649
720
|
"""Select UV vertices
|
|
650
721
|
|
|
651
|
-
:type override_context: typing.
|
|
652
|
-
:type execution_context: typing.
|
|
653
|
-
:type undo:
|
|
722
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
723
|
+
:type execution_context: typing.Union[str, int]
|
|
724
|
+
:type undo: bool
|
|
654
725
|
:param extend: Extend, Extend selection instead of deselecting everything first
|
|
655
|
-
:type extend: typing.
|
|
726
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
656
727
|
:param deselect: Deselect, Remove from selection
|
|
657
|
-
:type deselect: typing.
|
|
728
|
+
:type deselect: typing.Union[bool, typing.Any]
|
|
658
729
|
:param toggle: Toggle Selection, Toggle the selection
|
|
659
|
-
:type toggle: typing.
|
|
730
|
+
:type toggle: typing.Union[bool, typing.Any]
|
|
660
731
|
:param deselect_all: Deselect On Nothing, Deselect all when nothing under the cursor
|
|
661
|
-
:type deselect_all: typing.
|
|
732
|
+
:type deselect_all: typing.Union[bool, typing.Any]
|
|
662
733
|
:param select_passthrough: Only Select Unselected, Ignore the select action when the element is already selected
|
|
663
|
-
:type select_passthrough: typing.
|
|
734
|
+
:type select_passthrough: typing.Union[bool, typing.Any]
|
|
664
735
|
:param location: Location, Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds
|
|
665
|
-
:type location: typing.
|
|
736
|
+
:type location: typing.Any
|
|
666
737
|
"""
|
|
667
738
|
|
|
668
739
|
...
|
|
669
740
|
|
|
670
741
|
def select_all(
|
|
671
|
-
override_context: typing.
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
undo: typing.Optional[bool] = None,
|
|
676
|
-
*,
|
|
677
|
-
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
742
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
743
|
+
execution_context: typing.Union[str, int] = None,
|
|
744
|
+
undo: bool = None,
|
|
745
|
+
action: typing.Any = "TOGGLE",
|
|
678
746
|
):
|
|
679
747
|
"""Change selection of all UV vertices
|
|
680
748
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
749
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
750
|
+
:type execution_context: typing.Union[str, int]
|
|
751
|
+
:type undo: bool
|
|
752
|
+
:param action: Action, Selection action to execute
|
|
753
|
+
|
|
754
|
+
TOGGLE
|
|
755
|
+
Toggle -- Toggle selection for all elements.
|
|
756
|
+
|
|
757
|
+
SELECT
|
|
758
|
+
Select -- Select all elements.
|
|
759
|
+
|
|
760
|
+
DESELECT
|
|
761
|
+
Deselect -- Deselect all elements.
|
|
762
|
+
|
|
763
|
+
INVERT
|
|
764
|
+
Invert -- Invert selection of all elements.
|
|
765
|
+
:type action: typing.Any
|
|
686
766
|
"""
|
|
687
767
|
|
|
688
768
|
...
|
|
689
769
|
|
|
690
770
|
def select_box(
|
|
691
|
-
override_context: typing.
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
ymax: typing.Optional[typing.Any] = 0,
|
|
702
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
703
|
-
mode: typing.Optional[typing.Any] = "SET",
|
|
771
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
772
|
+
execution_context: typing.Union[str, int] = None,
|
|
773
|
+
undo: bool = None,
|
|
774
|
+
pinned: typing.Union[bool, typing.Any] = False,
|
|
775
|
+
xmin: typing.Any = 0,
|
|
776
|
+
xmax: typing.Any = 0,
|
|
777
|
+
ymin: typing.Any = 0,
|
|
778
|
+
ymax: typing.Any = 0,
|
|
779
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
780
|
+
mode: typing.Any = "SET",
|
|
704
781
|
):
|
|
705
782
|
"""Select UV vertices using box selection
|
|
706
783
|
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
784
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
785
|
+
:type execution_context: typing.Union[str, int]
|
|
786
|
+
:type undo: bool
|
|
787
|
+
:param pinned: Pinned, Border select pinned UVs only
|
|
788
|
+
:type pinned: typing.Union[bool, typing.Any]
|
|
789
|
+
:param xmin: X Min
|
|
790
|
+
:type xmin: typing.Any
|
|
791
|
+
:param xmax: X Max
|
|
792
|
+
:type xmax: typing.Any
|
|
793
|
+
:param ymin: Y Min
|
|
794
|
+
:type ymin: typing.Any
|
|
795
|
+
:param ymax: Y Max
|
|
796
|
+
:type ymax: typing.Any
|
|
797
|
+
:param wait_for_input: Wait for Input
|
|
798
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
799
|
+
:param mode: Mode
|
|
800
|
+
|
|
801
|
+
SET
|
|
802
|
+
Set -- Set a new selection.
|
|
803
|
+
|
|
804
|
+
ADD
|
|
805
|
+
Extend -- Extend existing selection.
|
|
806
|
+
|
|
807
|
+
SUB
|
|
808
|
+
Subtract -- Subtract existing selection.
|
|
809
|
+
:type mode: typing.Any
|
|
724
810
|
"""
|
|
725
811
|
|
|
726
812
|
...
|
|
727
813
|
|
|
728
814
|
def select_circle(
|
|
729
|
-
override_context: typing.
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
radius: typing.Optional[typing.Any] = 25,
|
|
738
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
739
|
-
mode: typing.Optional[typing.Any] = "SET",
|
|
815
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
816
|
+
execution_context: typing.Union[str, int] = None,
|
|
817
|
+
undo: bool = None,
|
|
818
|
+
x: typing.Any = 0,
|
|
819
|
+
y: typing.Any = 0,
|
|
820
|
+
radius: typing.Any = 25,
|
|
821
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
822
|
+
mode: typing.Any = "SET",
|
|
740
823
|
):
|
|
741
824
|
"""Select UV vertices using circle selection
|
|
742
825
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
826
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
827
|
+
:type execution_context: typing.Union[str, int]
|
|
828
|
+
:type undo: bool
|
|
829
|
+
:param x: X
|
|
830
|
+
:type x: typing.Any
|
|
831
|
+
:param y: Y
|
|
832
|
+
:type y: typing.Any
|
|
833
|
+
:param radius: Radius
|
|
834
|
+
:type radius: typing.Any
|
|
835
|
+
:param wait_for_input: Wait for Input
|
|
836
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
837
|
+
:param mode: Mode
|
|
838
|
+
|
|
839
|
+
SET
|
|
840
|
+
Set -- Set a new selection.
|
|
841
|
+
|
|
842
|
+
ADD
|
|
843
|
+
Extend -- Extend existing selection.
|
|
844
|
+
|
|
845
|
+
SUB
|
|
846
|
+
Subtract -- Subtract existing selection.
|
|
847
|
+
:type mode: typing.Any
|
|
756
848
|
"""
|
|
757
849
|
|
|
758
850
|
...
|
|
759
851
|
|
|
760
852
|
def select_edge_ring(
|
|
761
|
-
override_context: typing.
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
*,
|
|
767
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
768
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
853
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
854
|
+
execution_context: typing.Union[str, int] = None,
|
|
855
|
+
undo: bool = None,
|
|
856
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
857
|
+
location: typing.Any = (0.0, 0.0),
|
|
769
858
|
):
|
|
770
859
|
"""Select an edge ring of connected UV vertices
|
|
771
860
|
|
|
772
|
-
:type override_context: typing.
|
|
773
|
-
:type execution_context: typing.
|
|
774
|
-
:type undo:
|
|
861
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
862
|
+
:type execution_context: typing.Union[str, int]
|
|
863
|
+
:type undo: bool
|
|
775
864
|
:param extend: Extend, Extend selection rather than clearing the existing selection
|
|
776
|
-
:type extend: typing.
|
|
865
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
777
866
|
:param location: Location, Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds
|
|
778
|
-
:type location: typing.
|
|
867
|
+
:type location: typing.Any
|
|
779
868
|
"""
|
|
780
869
|
|
|
781
870
|
...
|
|
782
871
|
|
|
783
872
|
def select_lasso(
|
|
784
|
-
override_context: typing.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
*,
|
|
790
|
-
path: typing.Optional[
|
|
791
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorMousePath"]
|
|
792
|
-
] = None,
|
|
793
|
-
mode: typing.Optional[typing.Any] = "SET",
|
|
873
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
874
|
+
execution_context: typing.Union[str, int] = None,
|
|
875
|
+
undo: bool = None,
|
|
876
|
+
path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath] = None,
|
|
877
|
+
mode: typing.Any = "SET",
|
|
794
878
|
):
|
|
795
879
|
"""Select UVs using lasso selection
|
|
796
880
|
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
881
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
882
|
+
:type execution_context: typing.Union[str, int]
|
|
883
|
+
:type undo: bool
|
|
884
|
+
:param path: Path
|
|
885
|
+
:type path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath]
|
|
886
|
+
:param mode: Mode
|
|
887
|
+
|
|
888
|
+
SET
|
|
889
|
+
Set -- Set a new selection.
|
|
890
|
+
|
|
891
|
+
ADD
|
|
892
|
+
Extend -- Extend existing selection.
|
|
893
|
+
|
|
894
|
+
SUB
|
|
895
|
+
Subtract -- Subtract existing selection.
|
|
896
|
+
:type mode: typing.Any
|
|
804
897
|
"""
|
|
805
898
|
|
|
806
899
|
...
|
|
807
900
|
|
|
808
901
|
def select_less(
|
|
809
|
-
override_context: typing.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
813
|
-
undo: typing.Optional[bool] = None,
|
|
902
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
903
|
+
execution_context: typing.Union[str, int] = None,
|
|
904
|
+
undo: bool = None,
|
|
814
905
|
):
|
|
815
906
|
"""Deselect UV vertices at the boundary of each selection region
|
|
816
907
|
|
|
817
|
-
:type override_context: typing.
|
|
818
|
-
:type execution_context: typing.
|
|
819
|
-
:type undo:
|
|
908
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
909
|
+
:type execution_context: typing.Union[str, int]
|
|
910
|
+
:type undo: bool
|
|
820
911
|
"""
|
|
821
912
|
|
|
822
913
|
...
|
|
823
914
|
|
|
824
915
|
def select_linked(
|
|
825
|
-
override_context: typing.
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
829
|
-
undo: typing.Optional[bool] = None,
|
|
916
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
917
|
+
execution_context: typing.Union[str, int] = None,
|
|
918
|
+
undo: bool = None,
|
|
830
919
|
):
|
|
831
920
|
"""Select all UV vertices linked to the active UV map
|
|
832
921
|
|
|
833
|
-
:type override_context: typing.
|
|
834
|
-
:type execution_context: typing.
|
|
835
|
-
:type undo:
|
|
922
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
923
|
+
:type execution_context: typing.Union[str, int]
|
|
924
|
+
:type undo: bool
|
|
836
925
|
"""
|
|
837
926
|
|
|
838
927
|
...
|
|
839
928
|
|
|
840
929
|
def select_linked_pick(
|
|
841
|
-
override_context: typing.
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
848
|
-
deselect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
849
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
930
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
931
|
+
execution_context: typing.Union[str, int] = None,
|
|
932
|
+
undo: bool = None,
|
|
933
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
934
|
+
deselect: typing.Union[bool, typing.Any] = False,
|
|
935
|
+
location: typing.Any = (0.0, 0.0),
|
|
850
936
|
):
|
|
851
937
|
"""Select all UV vertices linked under the mouse
|
|
852
938
|
|
|
853
|
-
:type override_context: typing.
|
|
854
|
-
:type execution_context: typing.
|
|
855
|
-
:type undo:
|
|
939
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
940
|
+
:type execution_context: typing.Union[str, int]
|
|
941
|
+
:type undo: bool
|
|
856
942
|
:param extend: Extend, Extend selection rather than clearing the existing selection
|
|
857
|
-
:type extend: typing.
|
|
943
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
858
944
|
:param deselect: Deselect, Deselect linked UV vertices rather than selecting them
|
|
859
|
-
:type deselect: typing.
|
|
945
|
+
:type deselect: typing.Union[bool, typing.Any]
|
|
860
946
|
:param location: Location, Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds
|
|
861
|
-
:type location: typing.
|
|
947
|
+
:type location: typing.Any
|
|
862
948
|
"""
|
|
863
949
|
|
|
864
950
|
...
|
|
865
951
|
|
|
866
952
|
def select_loop(
|
|
867
|
-
override_context: typing.
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
*,
|
|
873
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
874
|
-
location: typing.Optional[typing.Any] = (0.0, 0.0),
|
|
953
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
954
|
+
execution_context: typing.Union[str, int] = None,
|
|
955
|
+
undo: bool = None,
|
|
956
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
957
|
+
location: typing.Any = (0.0, 0.0),
|
|
875
958
|
):
|
|
876
959
|
"""Select a loop of connected UV vertices
|
|
877
960
|
|
|
878
|
-
:type override_context: typing.
|
|
879
|
-
:type execution_context: typing.
|
|
880
|
-
:type undo:
|
|
961
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
962
|
+
:type execution_context: typing.Union[str, int]
|
|
963
|
+
:type undo: bool
|
|
881
964
|
:param extend: Extend, Extend selection rather than clearing the existing selection
|
|
882
|
-
:type extend: typing.
|
|
965
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
883
966
|
:param location: Location, Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds
|
|
884
|
-
:type location: typing.
|
|
967
|
+
:type location: typing.Any
|
|
885
968
|
"""
|
|
886
969
|
|
|
887
970
|
...
|
|
888
971
|
|
|
889
972
|
def select_mode(
|
|
890
|
-
override_context: typing.
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
undo: typing.Optional[bool] = None,
|
|
895
|
-
*,
|
|
896
|
-
type: typing.Optional[typing.Union[str, int]] = "VERTEX",
|
|
973
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
974
|
+
execution_context: typing.Union[str, int] = None,
|
|
975
|
+
undo: bool = None,
|
|
976
|
+
type: typing.Any = "VERTEX",
|
|
897
977
|
):
|
|
898
978
|
"""Change UV selection mode
|
|
899
979
|
|
|
900
|
-
:type override_context: typing.
|
|
901
|
-
:type execution_context: typing.
|
|
902
|
-
:type undo:
|
|
980
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
981
|
+
:type execution_context: typing.Union[str, int]
|
|
982
|
+
:type undo: bool
|
|
903
983
|
:param type: Type
|
|
904
|
-
:type type: typing.
|
|
984
|
+
:type type: typing.Any
|
|
905
985
|
"""
|
|
906
986
|
|
|
907
987
|
...
|
|
908
988
|
|
|
909
989
|
def select_more(
|
|
910
|
-
override_context: typing.
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
914
|
-
undo: typing.Optional[bool] = None,
|
|
990
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
991
|
+
execution_context: typing.Union[str, int] = None,
|
|
992
|
+
undo: bool = None,
|
|
915
993
|
):
|
|
916
994
|
"""Select more UV vertices connected to initial selection
|
|
917
995
|
|
|
918
|
-
:type override_context: typing.
|
|
919
|
-
:type execution_context: typing.
|
|
920
|
-
:type undo:
|
|
996
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
997
|
+
:type execution_context: typing.Union[str, int]
|
|
998
|
+
:type undo: bool
|
|
921
999
|
"""
|
|
922
1000
|
|
|
923
1001
|
...
|
|
924
1002
|
|
|
925
1003
|
def select_overlap(
|
|
926
|
-
override_context: typing.
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
undo: typing.Optional[bool] = None,
|
|
931
|
-
*,
|
|
932
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1004
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1005
|
+
execution_context: typing.Union[str, int] = None,
|
|
1006
|
+
undo: bool = None,
|
|
1007
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
933
1008
|
):
|
|
934
1009
|
"""Select all UV faces which overlap each other
|
|
935
1010
|
|
|
936
|
-
:type override_context: typing.
|
|
937
|
-
:type execution_context: typing.
|
|
938
|
-
:type undo:
|
|
1011
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1012
|
+
:type execution_context: typing.Union[str, int]
|
|
1013
|
+
:type undo: bool
|
|
939
1014
|
:param extend: Extend, Extend selection rather than clearing the existing selection
|
|
940
|
-
:type extend: typing.
|
|
1015
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
941
1016
|
"""
|
|
942
1017
|
|
|
943
1018
|
...
|
|
944
1019
|
|
|
945
1020
|
def select_pinned(
|
|
946
|
-
override_context: typing.
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
950
|
-
undo: typing.Optional[bool] = None,
|
|
1021
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1022
|
+
execution_context: typing.Union[str, int] = None,
|
|
1023
|
+
undo: bool = None,
|
|
951
1024
|
):
|
|
952
1025
|
"""Select all pinned UV vertices
|
|
953
1026
|
|
|
954
|
-
:type override_context: typing.
|
|
955
|
-
:type execution_context: typing.
|
|
956
|
-
:type undo:
|
|
1027
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1028
|
+
:type execution_context: typing.Union[str, int]
|
|
1029
|
+
:type undo: bool
|
|
957
1030
|
"""
|
|
958
1031
|
|
|
959
1032
|
...
|
|
960
1033
|
|
|
961
1034
|
def select_similar(
|
|
962
|
-
override_context: typing.
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
type: typing.Optional[typing.Any] = "PIN",
|
|
969
|
-
compare: typing.Optional[typing.Any] = "EQUAL",
|
|
970
|
-
threshold: typing.Optional[typing.Any] = 0.0,
|
|
1035
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1036
|
+
execution_context: typing.Union[str, int] = None,
|
|
1037
|
+
undo: bool = None,
|
|
1038
|
+
type: typing.Any = "PIN",
|
|
1039
|
+
compare: typing.Any = "EQUAL",
|
|
1040
|
+
threshold: typing.Any = 0.0,
|
|
971
1041
|
):
|
|
972
1042
|
"""Select similar UVs by property types
|
|
973
1043
|
|
|
974
|
-
:type override_context: typing.
|
|
975
|
-
:type execution_context: typing.
|
|
976
|
-
:type undo:
|
|
1044
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1045
|
+
:type execution_context: typing.Union[str, int]
|
|
1046
|
+
:type undo: bool
|
|
977
1047
|
:param type: Type
|
|
978
|
-
:type type: typing.
|
|
1048
|
+
:type type: typing.Any
|
|
979
1049
|
:param compare: Compare
|
|
980
|
-
:type compare: typing.
|
|
1050
|
+
:type compare: typing.Any
|
|
981
1051
|
:param threshold: Threshold
|
|
982
|
-
:type threshold: typing.
|
|
1052
|
+
:type threshold: typing.Any
|
|
983
1053
|
"""
|
|
984
1054
|
|
|
985
1055
|
...
|
|
986
1056
|
|
|
987
1057
|
def select_split(
|
|
988
|
-
override_context: typing.
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
992
|
-
undo: typing.Optional[bool] = None,
|
|
1058
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1059
|
+
execution_context: typing.Union[str, int] = None,
|
|
1060
|
+
undo: bool = None,
|
|
993
1061
|
):
|
|
994
1062
|
"""Select only entirely selected faces
|
|
995
1063
|
|
|
996
|
-
:type override_context: typing.
|
|
997
|
-
:type execution_context: typing.
|
|
998
|
-
:type undo:
|
|
1064
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1065
|
+
:type execution_context: typing.Union[str, int]
|
|
1066
|
+
:type undo: bool
|
|
999
1067
|
"""
|
|
1000
1068
|
|
|
1001
1069
|
...
|
|
1002
1070
|
|
|
1003
1071
|
def shortest_path_pick(
|
|
1004
|
-
override_context: typing.
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
offset: typing.Optional[typing.Any] = 0,
|
|
1016
|
-
object_index: typing.Optional[typing.Any] = -1,
|
|
1017
|
-
index: typing.Optional[typing.Any] = -1,
|
|
1072
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1073
|
+
execution_context: typing.Union[str, int] = None,
|
|
1074
|
+
undo: bool = None,
|
|
1075
|
+
use_face_step: typing.Union[bool, typing.Any] = False,
|
|
1076
|
+
use_topology_distance: typing.Union[bool, typing.Any] = False,
|
|
1077
|
+
use_fill: typing.Union[bool, typing.Any] = False,
|
|
1078
|
+
skip: typing.Any = 0,
|
|
1079
|
+
nth: typing.Any = 1,
|
|
1080
|
+
offset: typing.Any = 0,
|
|
1081
|
+
object_index: typing.Any = -1,
|
|
1082
|
+
index: typing.Any = -1,
|
|
1018
1083
|
):
|
|
1019
1084
|
"""Select shortest path between two selections
|
|
1020
1085
|
|
|
1021
|
-
:type override_context: typing.
|
|
1022
|
-
:type execution_context: typing.
|
|
1023
|
-
:type undo:
|
|
1086
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1087
|
+
:type execution_context: typing.Union[str, int]
|
|
1088
|
+
:type undo: bool
|
|
1024
1089
|
:param use_face_step: Face Stepping, Traverse connected faces (includes diagonals and edge-rings)
|
|
1025
|
-
:type use_face_step: typing.
|
|
1090
|
+
:type use_face_step: typing.Union[bool, typing.Any]
|
|
1026
1091
|
:param use_topology_distance: Topology Distance, Find the minimum number of steps, ignoring spatial distance
|
|
1027
|
-
:type use_topology_distance: typing.
|
|
1092
|
+
:type use_topology_distance: typing.Union[bool, typing.Any]
|
|
1028
1093
|
:param use_fill: Fill Region, Select all paths between the source/destination elements
|
|
1029
|
-
:type use_fill: typing.
|
|
1094
|
+
:type use_fill: typing.Union[bool, typing.Any]
|
|
1030
1095
|
:param skip: Deselected, Number of deselected elements in the repetitive sequence
|
|
1031
|
-
:type skip: typing.
|
|
1096
|
+
:type skip: typing.Any
|
|
1032
1097
|
:param nth: Selected, Number of selected elements in the repetitive sequence
|
|
1033
|
-
:type nth: typing.
|
|
1098
|
+
:type nth: typing.Any
|
|
1034
1099
|
:param offset: Offset, Offset from the starting point
|
|
1035
|
-
:type offset: typing.
|
|
1036
|
-
:type object_index: typing.
|
|
1037
|
-
:type index: typing.
|
|
1100
|
+
:type offset: typing.Any
|
|
1101
|
+
:type object_index: typing.Any
|
|
1102
|
+
:type index: typing.Any
|
|
1038
1103
|
"""
|
|
1039
1104
|
|
|
1040
1105
|
...
|
|
1041
1106
|
|
|
1042
1107
|
def shortest_path_select(
|
|
1043
|
-
override_context: typing.
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
skip: typing.Optional[typing.Any] = 0,
|
|
1053
|
-
nth: typing.Optional[typing.Any] = 1,
|
|
1054
|
-
offset: typing.Optional[typing.Any] = 0,
|
|
1108
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1109
|
+
execution_context: typing.Union[str, int] = None,
|
|
1110
|
+
undo: bool = None,
|
|
1111
|
+
use_face_step: typing.Union[bool, typing.Any] = False,
|
|
1112
|
+
use_topology_distance: typing.Union[bool, typing.Any] = False,
|
|
1113
|
+
use_fill: typing.Union[bool, typing.Any] = False,
|
|
1114
|
+
skip: typing.Any = 0,
|
|
1115
|
+
nth: typing.Any = 1,
|
|
1116
|
+
offset: typing.Any = 0,
|
|
1055
1117
|
):
|
|
1056
1118
|
"""Selected shortest path between two vertices/edges/faces
|
|
1057
1119
|
|
|
1058
|
-
:type override_context: typing.
|
|
1059
|
-
:type execution_context: typing.
|
|
1060
|
-
:type undo:
|
|
1120
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1121
|
+
:type execution_context: typing.Union[str, int]
|
|
1122
|
+
:type undo: bool
|
|
1061
1123
|
:param use_face_step: Face Stepping, Traverse connected faces (includes diagonals and edge-rings)
|
|
1062
|
-
:type use_face_step: typing.
|
|
1124
|
+
:type use_face_step: typing.Union[bool, typing.Any]
|
|
1063
1125
|
:param use_topology_distance: Topology Distance, Find the minimum number of steps, ignoring spatial distance
|
|
1064
|
-
:type use_topology_distance: typing.
|
|
1126
|
+
:type use_topology_distance: typing.Union[bool, typing.Any]
|
|
1065
1127
|
:param use_fill: Fill Region, Select all paths between the source/destination elements
|
|
1066
|
-
:type use_fill: typing.
|
|
1128
|
+
:type use_fill: typing.Union[bool, typing.Any]
|
|
1067
1129
|
:param skip: Deselected, Number of deselected elements in the repetitive sequence
|
|
1068
|
-
:type skip: typing.
|
|
1130
|
+
:type skip: typing.Any
|
|
1069
1131
|
:param nth: Selected, Number of selected elements in the repetitive sequence
|
|
1070
|
-
:type nth: typing.
|
|
1132
|
+
:type nth: typing.Any
|
|
1071
1133
|
:param offset: Offset, Offset from the starting point
|
|
1072
|
-
:type offset: typing.
|
|
1134
|
+
:type offset: typing.Any
|
|
1073
1135
|
"""
|
|
1074
1136
|
|
|
1075
1137
|
...
|
|
1076
1138
|
|
|
1077
1139
|
def smart_project(
|
|
1078
|
-
override_context: typing.
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
area_weight: typing.Optional[typing.Any] = 0.0,
|
|
1089
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1090
|
-
scale_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1140
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1141
|
+
execution_context: typing.Union[str, int] = None,
|
|
1142
|
+
undo: bool = None,
|
|
1143
|
+
angle_limit: typing.Any = 1.15192,
|
|
1144
|
+
margin_method: typing.Any = "SCALED",
|
|
1145
|
+
rotate_method: typing.Any = "AXIS_ALIGNED_Y",
|
|
1146
|
+
island_margin: typing.Any = 0.0,
|
|
1147
|
+
area_weight: typing.Any = 0.0,
|
|
1148
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
1149
|
+
scale_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
1091
1150
|
):
|
|
1092
1151
|
"""Projection unwraps the selected faces of mesh objects
|
|
1093
1152
|
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1153
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1154
|
+
:type execution_context: typing.Union[str, int]
|
|
1155
|
+
:type undo: bool
|
|
1156
|
+
:param angle_limit: Angle Limit, Lower for more projection groups, higher for less distortion
|
|
1157
|
+
:type angle_limit: typing.Any
|
|
1158
|
+
:param margin_method: Margin Method
|
|
1159
|
+
|
|
1160
|
+
SCALED
|
|
1161
|
+
Scaled -- Use scale of existing UVs to multiply margin.
|
|
1162
|
+
|
|
1163
|
+
ADD
|
|
1164
|
+
Add -- Just add the margin, ignoring any UV scale.
|
|
1165
|
+
|
|
1166
|
+
FRACTION
|
|
1167
|
+
Fraction -- Specify a precise fraction of final UV output.
|
|
1168
|
+
:type margin_method: typing.Any
|
|
1169
|
+
:param rotate_method: Rotation Method
|
|
1170
|
+
|
|
1171
|
+
AXIS_ALIGNED
|
|
1172
|
+
Axis-aligned -- Rotated to a minimal rectangle, either vertical or horizontal.
|
|
1173
|
+
|
|
1174
|
+
AXIS_ALIGNED_X
|
|
1175
|
+
Axis-aligned (Horizontal) -- Rotate islands to be aligned horizontally.
|
|
1176
|
+
|
|
1177
|
+
AXIS_ALIGNED_Y
|
|
1178
|
+
Axis-aligned (Vertical) -- Rotate islands to be aligned vertically.
|
|
1179
|
+
:type rotate_method: typing.Any
|
|
1180
|
+
:param island_margin: Island Margin, Margin to reduce bleed from adjacent islands
|
|
1181
|
+
:type island_margin: typing.Any
|
|
1182
|
+
:param area_weight: Area Weight, Weight projection's vector by faces with larger areas
|
|
1183
|
+
:type area_weight: typing.Any
|
|
1184
|
+
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
1185
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
1186
|
+
:param scale_to_bounds: Scale to Bounds, Scale UV coordinates to bounds after unwrapping
|
|
1187
|
+
:type scale_to_bounds: typing.Union[bool, typing.Any]
|
|
1111
1188
|
"""
|
|
1112
1189
|
|
|
1113
1190
|
...
|
|
1114
1191
|
|
|
1115
1192
|
def snap_cursor(
|
|
1116
|
-
override_context: typing.
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
undo: typing.Optional[bool] = None,
|
|
1121
|
-
*,
|
|
1122
|
-
target: typing.Optional[typing.Any] = "PIXELS",
|
|
1193
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1194
|
+
execution_context: typing.Union[str, int] = None,
|
|
1195
|
+
undo: bool = None,
|
|
1196
|
+
target: typing.Any = "PIXELS",
|
|
1123
1197
|
):
|
|
1124
1198
|
"""Snap cursor to target type
|
|
1125
1199
|
|
|
1126
|
-
:type override_context: typing.
|
|
1127
|
-
:type execution_context: typing.
|
|
1128
|
-
:type undo:
|
|
1200
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1201
|
+
:type execution_context: typing.Union[str, int]
|
|
1202
|
+
:type undo: bool
|
|
1129
1203
|
:param target: Target, Target to snap the selected UVs to
|
|
1130
|
-
:type target: typing.
|
|
1204
|
+
:type target: typing.Any
|
|
1131
1205
|
"""
|
|
1132
1206
|
|
|
1133
1207
|
...
|
|
1134
1208
|
|
|
1135
1209
|
def snap_selected(
|
|
1136
|
-
override_context: typing.
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
undo: typing.Optional[bool] = None,
|
|
1141
|
-
*,
|
|
1142
|
-
target: typing.Optional[typing.Any] = "PIXELS",
|
|
1210
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1211
|
+
execution_context: typing.Union[str, int] = None,
|
|
1212
|
+
undo: bool = None,
|
|
1213
|
+
target: typing.Any = "PIXELS",
|
|
1143
1214
|
):
|
|
1144
1215
|
"""Snap selected UV vertices to target type
|
|
1145
1216
|
|
|
1146
|
-
:type override_context: typing.
|
|
1147
|
-
:type execution_context: typing.
|
|
1148
|
-
:type undo:
|
|
1217
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1218
|
+
:type execution_context: typing.Union[str, int]
|
|
1219
|
+
:type undo: bool
|
|
1149
1220
|
:param target: Target, Target to snap the selected UVs to
|
|
1150
|
-
:type target: typing.
|
|
1221
|
+
:type target: typing.Any
|
|
1151
1222
|
"""
|
|
1152
1223
|
|
|
1153
1224
|
...
|
|
1154
1225
|
|
|
1155
1226
|
def sphere_project(
|
|
1156
|
-
override_context: typing.
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
correct_aspect: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1167
|
-
clip_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1168
|
-
scale_to_bounds: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1227
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1228
|
+
execution_context: typing.Union[str, int] = None,
|
|
1229
|
+
undo: bool = None,
|
|
1230
|
+
direction: typing.Any = "VIEW_ON_EQUATOR",
|
|
1231
|
+
align: typing.Any = "POLAR_ZX",
|
|
1232
|
+
pole: typing.Any = "PINCH",
|
|
1233
|
+
seam: typing.Union[bool, typing.Any] = False,
|
|
1234
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
1235
|
+
clip_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
1236
|
+
scale_to_bounds: typing.Union[bool, typing.Any] = False,
|
|
1169
1237
|
):
|
|
1170
1238
|
"""Project the UV vertices of the mesh over the curved surface of a sphere
|
|
1171
1239
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1240
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1241
|
+
:type execution_context: typing.Union[str, int]
|
|
1242
|
+
:type undo: bool
|
|
1243
|
+
:param direction: Direction, Direction of the sphere or cylinder
|
|
1244
|
+
|
|
1245
|
+
VIEW_ON_EQUATOR
|
|
1246
|
+
View on Equator -- 3D view is on the equator.
|
|
1247
|
+
|
|
1248
|
+
VIEW_ON_POLES
|
|
1249
|
+
View on Poles -- 3D view is on the poles.
|
|
1250
|
+
|
|
1251
|
+
ALIGN_TO_OBJECT
|
|
1252
|
+
Align to Object -- Align according to object transform.
|
|
1253
|
+
:type direction: typing.Any
|
|
1254
|
+
:param align: Align, How to determine rotation around the pole
|
|
1255
|
+
|
|
1256
|
+
POLAR_ZX
|
|
1257
|
+
Polar ZX -- Polar 0 is X.
|
|
1258
|
+
|
|
1259
|
+
POLAR_ZY
|
|
1260
|
+
Polar ZY -- Polar 0 is Y.
|
|
1261
|
+
:type align: typing.Any
|
|
1262
|
+
:param pole: Pole, How to handle faces at the poles
|
|
1263
|
+
|
|
1264
|
+
PINCH
|
|
1265
|
+
Pinch -- UVs are pinched at the poles.
|
|
1266
|
+
|
|
1267
|
+
FAN
|
|
1268
|
+
Fan -- UVs are fanned at the poles.
|
|
1269
|
+
:type pole: typing.Any
|
|
1270
|
+
:param seam: Preserve Seams, Separate projections by islands isolated by seams
|
|
1271
|
+
:type seam: typing.Union[bool, typing.Any]
|
|
1272
|
+
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
1273
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
1274
|
+
:param clip_to_bounds: Clip to Bounds, Clip UV coordinates to bounds after unwrapping
|
|
1275
|
+
:type clip_to_bounds: typing.Union[bool, typing.Any]
|
|
1276
|
+
:param scale_to_bounds: Scale to Bounds, Scale UV coordinates to bounds after unwrapping
|
|
1277
|
+
:type scale_to_bounds: typing.Union[bool, typing.Any]
|
|
1189
1278
|
"""
|
|
1190
1279
|
|
|
1191
1280
|
...
|
|
1192
1281
|
|
|
1193
1282
|
def stitch(
|
|
1194
|
-
override_context: typing.
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
stored_mode: typing.Optional[typing.Any] = "VERTEX",
|
|
1209
|
-
selection: typing.Optional[
|
|
1210
|
-
bpy.types.bpy_prop_collection["bpy.types.SelectedUvElement"]
|
|
1211
|
-
] = None,
|
|
1212
|
-
objects_selection_count: typing.Optional[typing.Any] = (0, 0, 0, 0, 0, 0),
|
|
1283
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1284
|
+
execution_context: typing.Union[str, int] = None,
|
|
1285
|
+
undo: bool = None,
|
|
1286
|
+
use_limit: typing.Union[bool, typing.Any] = False,
|
|
1287
|
+
snap_islands: typing.Union[bool, typing.Any] = True,
|
|
1288
|
+
limit: typing.Any = 0.01,
|
|
1289
|
+
static_island: typing.Any = 0,
|
|
1290
|
+
active_object_index: typing.Any = 0,
|
|
1291
|
+
midpoint_snap: typing.Union[bool, typing.Any] = False,
|
|
1292
|
+
clear_seams: typing.Union[bool, typing.Any] = True,
|
|
1293
|
+
mode: typing.Any = "VERTEX",
|
|
1294
|
+
stored_mode: typing.Any = "VERTEX",
|
|
1295
|
+
selection: bpy.types.bpy_prop_collection[bpy.types.SelectedUvElement] = None,
|
|
1296
|
+
objects_selection_count: typing.Any = (0, 0, 0, 0, 0, 0),
|
|
1213
1297
|
):
|
|
1214
1298
|
"""Stitch selected UV vertices by proximity
|
|
1215
1299
|
|
|
1216
|
-
:type override_context: typing.
|
|
1217
|
-
:type execution_context: typing.
|
|
1218
|
-
:type undo:
|
|
1300
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1301
|
+
:type execution_context: typing.Union[str, int]
|
|
1302
|
+
:type undo: bool
|
|
1219
1303
|
:param use_limit: Use Limit, Stitch UVs within a specified limit distance
|
|
1220
|
-
:type use_limit: typing.
|
|
1304
|
+
:type use_limit: typing.Union[bool, typing.Any]
|
|
1221
1305
|
:param snap_islands: Snap Islands, Snap islands together (on edge stitch mode, rotates the islands too)
|
|
1222
|
-
:type snap_islands: typing.
|
|
1306
|
+
:type snap_islands: typing.Union[bool, typing.Any]
|
|
1223
1307
|
:param limit: Limit, Limit distance in normalized coordinates
|
|
1224
|
-
:type limit: typing.
|
|
1308
|
+
:type limit: typing.Any
|
|
1225
1309
|
:param static_island: Static Island, Island that stays in place when stitching islands
|
|
1226
|
-
:type static_island: typing.
|
|
1310
|
+
:type static_island: typing.Any
|
|
1227
1311
|
:param active_object_index: Active Object, Index of the active object
|
|
1228
|
-
:type active_object_index: typing.
|
|
1312
|
+
:type active_object_index: typing.Any
|
|
1229
1313
|
:param midpoint_snap: Snap at Midpoint, UVs are stitched at midpoint instead of at static island
|
|
1230
|
-
:type midpoint_snap: typing.
|
|
1314
|
+
:type midpoint_snap: typing.Union[bool, typing.Any]
|
|
1231
1315
|
:param clear_seams: Clear Seams, Clear seams of stitched edges
|
|
1232
|
-
:type clear_seams: typing.
|
|
1316
|
+
:type clear_seams: typing.Union[bool, typing.Any]
|
|
1233
1317
|
:param mode: Operation Mode, Use vertex or edge stitching
|
|
1234
|
-
:type mode: typing.
|
|
1318
|
+
:type mode: typing.Any
|
|
1235
1319
|
:param stored_mode: Stored Operation Mode, Use vertex or edge stitching
|
|
1236
|
-
:type stored_mode: typing.
|
|
1320
|
+
:type stored_mode: typing.Any
|
|
1237
1321
|
:param selection: Selection
|
|
1238
|
-
:type selection:
|
|
1322
|
+
:type selection: bpy.types.bpy_prop_collection[bpy.types.SelectedUvElement]
|
|
1239
1323
|
:param objects_selection_count: Objects Selection Count
|
|
1240
|
-
:type objects_selection_count: typing.
|
|
1324
|
+
:type objects_selection_count: typing.Any
|
|
1241
1325
|
"""
|
|
1242
1326
|
|
|
1243
1327
|
...
|
|
1244
1328
|
|
|
1245
1329
|
def unwrap(
|
|
1246
|
-
override_context: typing.
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
use_subsurf_data: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1256
|
-
margin_method: typing.Optional[typing.Any] = "SCALED",
|
|
1257
|
-
margin: typing.Optional[typing.Any] = 0.001,
|
|
1330
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1331
|
+
execution_context: typing.Union[str, int] = None,
|
|
1332
|
+
undo: bool = None,
|
|
1333
|
+
method: typing.Any = "ANGLE_BASED",
|
|
1334
|
+
fill_holes: typing.Union[bool, typing.Any] = True,
|
|
1335
|
+
correct_aspect: typing.Union[bool, typing.Any] = True,
|
|
1336
|
+
use_subsurf_data: typing.Union[bool, typing.Any] = False,
|
|
1337
|
+
margin_method: typing.Any = "SCALED",
|
|
1338
|
+
margin: typing.Any = 0.001,
|
|
1258
1339
|
):
|
|
1259
1340
|
"""Unwrap the mesh of the object being edited
|
|
1260
1341
|
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1342
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1343
|
+
:type execution_context: typing.Union[str, int]
|
|
1344
|
+
:type undo: bool
|
|
1345
|
+
:param method: Method, Unwrapping method (Angle Based usually gives better results than Conformal, while being somewhat slower)
|
|
1346
|
+
:type method: typing.Any
|
|
1347
|
+
:param fill_holes: Fill Holes, Virtually fill holes in mesh before unwrapping, to better avoid overlaps and preserve symmetry
|
|
1348
|
+
:type fill_holes: typing.Union[bool, typing.Any]
|
|
1349
|
+
:param correct_aspect: Correct Aspect, Map UVs taking image aspect ratio into account
|
|
1350
|
+
:type correct_aspect: typing.Union[bool, typing.Any]
|
|
1351
|
+
:param use_subsurf_data: Use Subdivision Surface, Map UVs taking vertex position after Subdivision Surface modifier has been applied
|
|
1352
|
+
:type use_subsurf_data: typing.Union[bool, typing.Any]
|
|
1353
|
+
:param margin_method: Margin Method
|
|
1354
|
+
|
|
1355
|
+
SCALED
|
|
1356
|
+
Scaled -- Use scale of existing UVs to multiply margin.
|
|
1357
|
+
|
|
1358
|
+
ADD
|
|
1359
|
+
Add -- Just add the margin, ignoring any UV scale.
|
|
1360
|
+
|
|
1361
|
+
FRACTION
|
|
1362
|
+
Fraction -- Specify a precise fraction of final UV output.
|
|
1363
|
+
:type margin_method: typing.Any
|
|
1364
|
+
:param margin: Margin, Space between islands
|
|
1365
|
+
:type margin: typing.Any
|
|
1276
1366
|
"""
|
|
1277
1367
|
|
|
1278
1368
|
...
|
|
1279
1369
|
|
|
1280
1370
|
def weld(
|
|
1281
|
-
override_context: typing.
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1285
|
-
undo: typing.Optional[bool] = None,
|
|
1371
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1372
|
+
execution_context: typing.Union[str, int] = None,
|
|
1373
|
+
undo: bool = None,
|
|
1286
1374
|
):
|
|
1287
1375
|
"""Weld selected UV vertices together
|
|
1288
1376
|
|
|
1289
|
-
:type override_context: typing.
|
|
1290
|
-
:type execution_context: typing.
|
|
1291
|
-
:type undo:
|
|
1377
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1378
|
+
:type execution_context: typing.Union[str, int]
|
|
1379
|
+
:type undo: bool
|
|
1292
1380
|
"""
|
|
1293
1381
|
|
|
1294
1382
|
...
|