fake-bpy-module 20240421__py3-none-any.whl → 20240423__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bl_operators/add_mesh_torus/__init__.pyi +2 -1
- bl_operators/assets/__init__.pyi +12 -12
- bl_operators/geometry_nodes/__init__.pyi +256 -238
- bl_operators/node/__init__.pyi +262 -260
- bl_operators/object_quick_effects/__init__.pyi +19 -19
- bl_operators/presets/__init__.pyi +371 -368
- bl_operators/wm/__init__.pyi +4 -4
- bl_ui/__init__.pyi +3 -3
- bl_ui/anim/__init__.pyi +1 -1
- bl_ui/asset_shelf/__init__.pyi +1 -1
- bl_ui/generic_ui_list/__init__.pyi +3 -3
- bl_ui/node_add_menu/__init__.pyi +1 -1
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +50 -48
- bl_ui/node_add_menu_shader/__init__.pyi +10 -10
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_collection/__init__.pyi +39 -25
- bl_ui/properties_constraint/__init__.pyi +1257 -1041
- bl_ui/properties_data_armature/__init__.pyi +120 -96
- bl_ui/properties_data_bone/__init__.pyi +36 -29
- bl_ui/properties_data_camera/__init__.pyi +32 -14
- bl_ui/properties_data_curve/__init__.pyi +143 -116
- bl_ui/properties_data_curves/__init__.pyi +30 -25
- bl_ui/properties_data_empty/__init__.pyi +21 -21
- bl_ui/properties_data_gpencil/__init__.pyi +297 -260
- bl_ui/properties_data_grease_pencil/__init__.pyi +228 -205
- bl_ui/properties_data_lattice/__init__.pyi +25 -22
- bl_ui/properties_data_light/__init__.pyi +44 -31
- bl_ui/properties_data_lightprobe/__init__.pyi +54 -32
- bl_ui/properties_data_mesh/__init__.pyi +579 -570
- bl_ui/properties_data_metaball/__init__.pyi +29 -24
- bl_ui/properties_data_modifier/__init__.pyi +55 -43
- bl_ui/properties_data_pointcloud/__init__.pyi +146 -139
- bl_ui/properties_data_shaderfx/__init__.pyi +13 -13
- bl_ui/properties_data_speaker/__init__.pyi +27 -24
- bl_ui/properties_data_volume/__init__.pyi +75 -68
- bl_ui/properties_freestyle/__init__.pyi +407 -284
- bl_ui/properties_grease_pencil_common/__init__.pyi +13 -13
- bl_ui/properties_mask_common/__init__.pyi +7 -7
- bl_ui/properties_material/__init__.pyi +186 -162
- bl_ui/properties_material_gpencil/__init__.pyi +111 -87
- bl_ui/properties_object/__init__.pyi +102 -84
- bl_ui/properties_output/__init__.pyi +255 -228
- bl_ui/properties_paint_common/__init__.pyi +9 -9
- bl_ui/properties_particle/__init__.pyi +341 -254
- bl_ui/properties_physics_cloth/__init__.pyi +54 -33
- bl_ui/properties_physics_common/__init__.pyi +20 -20
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +231 -193
- bl_ui/properties_physics_field/__init__.pyi +52 -36
- bl_ui/properties_physics_fluid/__init__.pyi +119 -96
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +1 -1
- bl_ui/properties_physics_rigidbody/__init__.pyi +36 -20
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +51 -25
- bl_ui/properties_physics_softbody/__init__.pyi +62 -34
- bl_ui/properties_render/__init__.pyi +275 -187
- bl_ui/properties_scene/__init__.pyi +173 -154
- bl_ui/properties_texture/__init__.pyi +251 -205
- bl_ui/properties_view_layer/__init__.pyi +126 -93
- bl_ui/properties_workspace/__init__.pyi +82 -76
- bl_ui/properties_world/__init__.pyi +31 -26
- bl_ui/space_clip/__init__.pyi +495 -433
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +209 -174
- bl_ui/space_filebrowser/__init__.pyi +691 -679
- bl_ui/space_graph/__init__.pyi +25 -20
- bl_ui/space_image/__init__.pyi +959 -845
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +26 -17
- bl_ui/space_node/__init__.pyi +49 -36
- bl_ui/space_outliner/__init__.pyi +14 -14
- bl_ui/space_properties/__init__.pyi +3 -3
- bl_ui/space_sequencer/__init__.pyi +510 -444
- bl_ui/space_spreadsheet/__init__.pyi +1 -1
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +16 -16
- bl_ui/space_time/__init__.pyi +27 -23
- bl_ui/space_toolsystem_common/__init__.pyi +1 -1
- bl_ui/space_toolsystem_toolbar/__init__.pyi +52 -4
- bl_ui/space_topbar/__init__.pyi +26 -26
- bl_ui/space_userpref/__init__.pyi +795 -658
- bl_ui/space_view3d/__init__.pyi +1460 -1428
- bl_ui/space_view3d_toolbar/__init__.pyi +2968 -2657
- bl_ui/temp_anim_layers/__init__.pyi +1 -1
- bmesh/types/__init__.pyi +13 -6
- bpy/app/__init__.pyi +4 -4
- bpy/app/icons/__init__.pyi +8 -6
- bpy/app/timers/__init__.pyi +10 -8
- bpy/app/translations/__init__.pyi +22 -20
- bpy/msgbus/__init__.pyi +4 -2
- bpy/ops/action/__init__.pyi +319 -316
- bpy/ops/anim/__init__.pyi +428 -428
- bpy/ops/armature/__init__.pyi +359 -358
- bpy/ops/asset/__init__.pyi +146 -146
- bpy/ops/boid/__init__.pyi +50 -50
- bpy/ops/brush/__init__.pyi +72 -72
- bpy/ops/buttons/__init__.pyi +128 -128
- bpy/ops/cachefile/__init__.pyi +124 -124
- bpy/ops/camera/__init__.pyi +22 -22
- bpy/ops/clip/__init__.pyi +773 -768
- bpy/ops/cloth/__init__.pyi +10 -10
- bpy/ops/collection/__init__.pyi +64 -64
- bpy/ops/console/__init__.pyi +150 -150
- bpy/ops/constraint/__init__.pyi +150 -150
- bpy/ops/curve/__init__.pyi +475 -472
- bpy/ops/curves/__init__.pyi +247 -244
- bpy/ops/cycles/__init__.pyi +18 -18
- bpy/ops/dpaint/__init__.pyi +34 -34
- bpy/ops/ed/__init__.pyi +122 -122
- bpy/ops/export_anim/__init__.pyi +18 -18
- bpy/ops/export_mesh/__init__.pyi +26 -26
- bpy/ops/export_scene/__init__.pyi +333 -307
- bpy/ops/file/__init__.pyi +340 -340
- bpy/ops/fluid/__init__.pyi +88 -88
- bpy/ops/font/__init__.pyi +252 -252
- bpy/ops/geometry/__init__.pyi +86 -86
- bpy/ops/gizmogroup/__init__.pyi +22 -22
- bpy/ops/gpencil/__init__.pyi +1459 -1444
- bpy/ops/graph/__init__.pyi +645 -642
- bpy/ops/grease_pencil/__init__.pyi +580 -436
- bpy/ops/image/__init__.pyi +614 -612
- bpy/ops/import_anim/__init__.pyi +26 -26
- bpy/ops/import_curve/__init__.pyi +6 -6
- bpy/ops/import_mesh/__init__.pyi +20 -18
- bpy/ops/import_scene/__init__.pyi +92 -86
- bpy/ops/info/__init__.pyi +60 -60
- bpy/ops/lattice/__init__.pyi +64 -64
- bpy/ops/marker/__init__.pyi +106 -106
- bpy/ops/mask/__init__.pyi +321 -318
- bpy/ops/material/__init__.pyi +18 -18
- bpy/ops/mball/__init__.pyi +71 -70
- bpy/ops/mesh/__init__.pyi +1997 -1990
- bpy/ops/nla/__init__.pyi +331 -330
- bpy/ops/node/__init__.pyi +867 -852
- bpy/ops/object/__init__.pyi +2433 -2430
- bpy/ops/outliner/__init__.pyi +498 -498
- bpy/ops/paint/__init__.pyi +554 -544
- bpy/ops/paintcurve/__init__.pyi +64 -64
- bpy/ops/palette/__init__.pyi +48 -48
- bpy/ops/particle/__init__.pyi +266 -264
- bpy/ops/pose/__init__.pyi +336 -336
- bpy/ops/poselib/__init__.pyi +70 -70
- bpy/ops/preferences/__init__.pyi +338 -336
- bpy/ops/ptcache/__init__.pyi +46 -46
- bpy/ops/render/__init__.pyi +114 -114
- bpy/ops/rigidbody/__init__.pyi +102 -102
- bpy/ops/scene/__init__.pyi +270 -270
- bpy/ops/screen/__init__.pyi +378 -378
- bpy/ops/script/__init__.pyi +18 -18
- bpy/ops/sculpt/__init__.pyi +411 -405
- bpy/ops/sculpt_curves/__init__.pyi +42 -40
- bpy/ops/sequencer/__init__.pyi +1053 -1040
- bpy/ops/sound/__init__.pyi +208 -208
- bpy/ops/spreadsheet/__init__.pyi +30 -30
- bpy/ops/surface/__init__.pyi +108 -108
- bpy/ops/text/__init__.pyi +382 -382
- bpy/ops/text_editor/__init__.pyi +10 -10
- bpy/ops/texture/__init__.pyi +26 -26
- bpy/ops/transform/__init__.pyi +826 -790
- bpy/ops/ui/__init__.pyi +216 -216
- bpy/ops/uilist/__init__.pyi +20 -20
- bpy/ops/uv/__init__.pyi +605 -600
- bpy/ops/view2d/__init__.pyi +156 -156
- bpy/ops/view3d/__init__.pyi +578 -576
- bpy/ops/wm/__init__.pyi +2418 -2376
- bpy/ops/workspace/__init__.pyi +42 -42
- bpy/ops/world/__init__.pyi +6 -6
- bpy/path/__init__.pyi +48 -33
- bpy/props/__init__.pyi +263 -261
- bpy/types/__init__.pyi +105733 -102298
- bpy/utils/__init__.pyi +87 -52
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +21 -18
- bpy_extras/anim_utils/__init__.pyi +9 -2
- bpy_extras/io_utils/__init__.pyi +2 -1
- bpy_extras/view3d_utils/__init__.pyi +2 -1
- bpy_types/__init__.pyi +236 -236
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/RECORD +187 -187
- freestyle/chainingiterators/__init__.pyi +7 -2
- freestyle/types/__init__.pyi +8 -3
- gpu_extras/presets/__init__.pyi +14 -2
- keyingsets_builtins/__init__.pyi +92 -92
- mathutils/__init__.pyi +9 -5
- mathutils/geometry/__init__.pyi +8 -4
- nodeitems_builtins/__init__.pyi +7 -7
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.dist-info}/top_level.txt +0 -0
bpy/ops/armature/__init__.pyi
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import bpy.ops.transform
|
|
2
3
|
import bpy.types
|
|
3
4
|
|
|
4
5
|
GenericType = typing.TypeVar("GenericType")
|
|
5
6
|
|
|
6
7
|
def align(
|
|
7
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
-
execution_context: typing.Union[str, int] = None,
|
|
9
|
-
undo: bool = None,
|
|
8
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
9
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
10
|
+
undo: typing.Optional[bool] = None,
|
|
10
11
|
):
|
|
11
12
|
"""Align selected bones to the active bone (or to their parent)
|
|
12
13
|
|
|
13
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
14
|
-
:type execution_context: typing.Union[str, int]
|
|
15
|
-
:type undo: bool
|
|
14
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
15
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
16
|
+
:type undo: typing.Optional[bool]
|
|
16
17
|
"""
|
|
17
18
|
|
|
18
19
|
...
|
|
19
20
|
|
|
20
21
|
def assign_to_collection(
|
|
21
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
22
|
-
execution_context: typing.Union[str, int] = None,
|
|
23
|
-
undo: bool = None,
|
|
24
|
-
collection_index: typing.Any = -1,
|
|
22
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
23
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
24
|
+
undo: typing.Optional[bool] = None,
|
|
25
|
+
collection_index: typing.Optional[typing.Any] = -1,
|
|
25
26
|
new_collection_name: typing.Union[str, typing.Any] = "",
|
|
26
27
|
):
|
|
27
28
|
"""Assign all selected bones to a collection, or unassign them, depending on whether the active bone is already assigned or not
|
|
28
29
|
|
|
29
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
30
|
-
:type execution_context: typing.Union[str, int]
|
|
31
|
-
:type undo: bool
|
|
30
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
31
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
32
|
+
:type undo: typing.Optional[bool]
|
|
32
33
|
:param collection_index: Collection Index, Index of the collection to assign selected bones to. When the operator should create a new bone collection, use new_collection_name to define the collection name, and set this parameter to the parent index of the new bone collection
|
|
33
|
-
:type collection_index: typing.Any
|
|
34
|
+
:type collection_index: typing.Optional[typing.Any]
|
|
34
35
|
:param new_collection_name: Name, Name of a to-be-added bone collection. Only pass this if you want to create a new bone collection and assign the selected bones to it. To assign to an existing collection, do not include this parameter and use collection_index
|
|
35
36
|
:type new_collection_name: typing.Union[str, typing.Any]
|
|
36
37
|
"""
|
|
@@ -38,16 +39,16 @@ def assign_to_collection(
|
|
|
38
39
|
...
|
|
39
40
|
|
|
40
41
|
def autoside_names(
|
|
41
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
42
|
-
execution_context: typing.Union[str, int] = None,
|
|
43
|
-
undo: bool = None,
|
|
44
|
-
type: typing.Any = "XAXIS",
|
|
42
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
43
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
44
|
+
undo: typing.Optional[bool] = None,
|
|
45
|
+
type: typing.Optional[typing.Any] = "XAXIS",
|
|
45
46
|
):
|
|
46
47
|
"""Automatically renames the selected bones according to which side of the target axis they fall on
|
|
47
48
|
|
|
48
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
49
|
-
:type execution_context: typing.Union[str, int]
|
|
50
|
-
:type undo: bool
|
|
49
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
50
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
51
|
+
:type undo: typing.Optional[bool]
|
|
51
52
|
:param type: Axis, Axis to tag names with
|
|
52
53
|
|
|
53
54
|
XAXIS
|
|
@@ -58,22 +59,22 @@ def autoside_names(
|
|
|
58
59
|
|
|
59
60
|
ZAXIS
|
|
60
61
|
Z-Axis -- Top/Bottom.
|
|
61
|
-
:type type: typing.Any
|
|
62
|
+
:type type: typing.Optional[typing.Any]
|
|
62
63
|
"""
|
|
63
64
|
|
|
64
65
|
...
|
|
65
66
|
|
|
66
67
|
def bone_primitive_add(
|
|
67
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
68
|
-
execution_context: typing.Union[str, int] = None,
|
|
69
|
-
undo: bool = None,
|
|
68
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
69
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
70
|
+
undo: typing.Optional[bool] = None,
|
|
70
71
|
name: typing.Union[str, typing.Any] = "",
|
|
71
72
|
):
|
|
72
73
|
"""Add a new bone located at the 3D cursor
|
|
73
74
|
|
|
74
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
75
|
-
:type execution_context: typing.Union[str, int]
|
|
76
|
-
:type undo: bool
|
|
75
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
76
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
77
|
+
:type undo: typing.Optional[bool]
|
|
77
78
|
:param name: Name, Name of the newly created bone
|
|
78
79
|
:type name: typing.Union[str, typing.Any]
|
|
79
80
|
"""
|
|
@@ -81,67 +82,67 @@ def bone_primitive_add(
|
|
|
81
82
|
...
|
|
82
83
|
|
|
83
84
|
def calculate_roll(
|
|
84
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
85
|
-
execution_context: typing.Union[str, int] = None,
|
|
86
|
-
undo: bool = None,
|
|
87
|
-
type: typing.Any = "POS_X",
|
|
88
|
-
axis_flip: typing.Union[bool, typing.Any] = False,
|
|
89
|
-
axis_only: typing.Union[bool, typing.Any] = False,
|
|
85
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
86
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
87
|
+
undo: typing.Optional[bool] = None,
|
|
88
|
+
type: typing.Optional[typing.Any] = "POS_X",
|
|
89
|
+
axis_flip: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
90
|
+
axis_only: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
90
91
|
):
|
|
91
92
|
"""Automatically fix alignment of select bones' axes
|
|
92
93
|
|
|
93
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
94
|
-
:type execution_context: typing.Union[str, int]
|
|
95
|
-
:type undo: bool
|
|
94
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
95
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
96
|
+
:type undo: typing.Optional[bool]
|
|
96
97
|
:param type: Type
|
|
97
|
-
:type type: typing.Any
|
|
98
|
+
:type type: typing.Optional[typing.Any]
|
|
98
99
|
:param axis_flip: Flip Axis, Negate the alignment axis
|
|
99
|
-
:type axis_flip: typing.Union[bool, typing.Any]
|
|
100
|
+
:type axis_flip: typing.Optional[typing.Union[bool, typing.Any]]
|
|
100
101
|
:param axis_only: Shortest Rotation, Ignore the axis direction, use the shortest rotation to align
|
|
101
|
-
:type axis_only: typing.Union[bool, typing.Any]
|
|
102
|
+
:type axis_only: typing.Optional[typing.Union[bool, typing.Any]]
|
|
102
103
|
"""
|
|
103
104
|
|
|
104
105
|
...
|
|
105
106
|
|
|
106
107
|
def click_extrude(
|
|
107
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
108
|
-
execution_context: typing.Union[str, int] = None,
|
|
109
|
-
undo: bool = None,
|
|
108
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
109
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
110
|
+
undo: typing.Optional[bool] = None,
|
|
110
111
|
):
|
|
111
112
|
"""Create a new bone going from the last selected joint to the mouse position
|
|
112
113
|
|
|
113
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
114
|
-
:type execution_context: typing.Union[str, int]
|
|
115
|
-
:type undo: bool
|
|
114
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
115
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
116
|
+
:type undo: typing.Optional[bool]
|
|
116
117
|
"""
|
|
117
118
|
|
|
118
119
|
...
|
|
119
120
|
|
|
120
121
|
def collection_add(
|
|
121
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
122
|
-
execution_context: typing.Union[str, int] = None,
|
|
123
|
-
undo: bool = None,
|
|
122
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
123
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
124
|
+
undo: typing.Optional[bool] = None,
|
|
124
125
|
):
|
|
125
126
|
"""Add a new bone collection
|
|
126
127
|
|
|
127
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
128
|
-
:type execution_context: typing.Union[str, int]
|
|
129
|
-
:type undo: bool
|
|
128
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
129
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
130
|
+
:type undo: typing.Optional[bool]
|
|
130
131
|
"""
|
|
131
132
|
|
|
132
133
|
...
|
|
133
134
|
|
|
134
135
|
def collection_assign(
|
|
135
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
136
|
-
execution_context: typing.Union[str, int] = None,
|
|
137
|
-
undo: bool = None,
|
|
136
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
137
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
138
|
+
undo: typing.Optional[bool] = None,
|
|
138
139
|
name: typing.Union[str, typing.Any] = "",
|
|
139
140
|
):
|
|
140
141
|
"""Add selected bones to the chosen bone collection
|
|
141
142
|
|
|
142
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
143
|
-
:type execution_context: typing.Union[str, int]
|
|
144
|
-
:type undo: bool
|
|
143
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
144
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
145
|
+
:type undo: typing.Optional[bool]
|
|
145
146
|
:param name: Bone Collection, Name of the bone collection to assign this bone to; empty to assign to the active bone collection
|
|
146
147
|
:type name: typing.Union[str, typing.Any]
|
|
147
148
|
"""
|
|
@@ -149,16 +150,16 @@ def collection_assign(
|
|
|
149
150
|
...
|
|
150
151
|
|
|
151
152
|
def collection_create_and_assign(
|
|
152
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
153
|
-
execution_context: typing.Union[str, int] = None,
|
|
154
|
-
undo: bool = None,
|
|
153
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
154
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
155
|
+
undo: typing.Optional[bool] = None,
|
|
155
156
|
name: typing.Union[str, typing.Any] = "",
|
|
156
157
|
):
|
|
157
158
|
"""Create a new bone collection and assign all selected bones
|
|
158
159
|
|
|
159
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
160
|
-
:type execution_context: typing.Union[str, int]
|
|
161
|
-
:type undo: bool
|
|
160
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
161
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
162
|
+
:type undo: typing.Optional[bool]
|
|
162
163
|
:param name: Bone Collection, Name of the bone collection to create
|
|
163
164
|
:type name: typing.Union[str, typing.Any]
|
|
164
165
|
"""
|
|
@@ -166,103 +167,103 @@ def collection_create_and_assign(
|
|
|
166
167
|
...
|
|
167
168
|
|
|
168
169
|
def collection_deselect(
|
|
169
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
170
|
-
execution_context: typing.Union[str, int] = None,
|
|
171
|
-
undo: bool = None,
|
|
170
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
171
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
172
|
+
undo: typing.Optional[bool] = None,
|
|
172
173
|
):
|
|
173
174
|
"""Deselect bones of active Bone Collection
|
|
174
175
|
|
|
175
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
176
|
-
:type execution_context: typing.Union[str, int]
|
|
177
|
-
:type undo: bool
|
|
176
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
177
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
178
|
+
:type undo: typing.Optional[bool]
|
|
178
179
|
"""
|
|
179
180
|
|
|
180
181
|
...
|
|
181
182
|
|
|
182
183
|
def collection_move(
|
|
183
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
184
|
-
execution_context: typing.Union[str, int] = None,
|
|
185
|
-
undo: bool = None,
|
|
186
|
-
direction: typing.Any = "UP",
|
|
184
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
185
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
186
|
+
undo: typing.Optional[bool] = None,
|
|
187
|
+
direction: typing.Optional[typing.Any] = "UP",
|
|
187
188
|
):
|
|
188
189
|
"""Change position of active Bone Collection in list of Bone collections
|
|
189
190
|
|
|
190
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
191
|
-
:type execution_context: typing.Union[str, int]
|
|
192
|
-
:type undo: bool
|
|
191
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
192
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
193
|
+
:type undo: typing.Optional[bool]
|
|
193
194
|
:param direction: Direction, Direction to move the active Bone Collection towards
|
|
194
|
-
:type direction: typing.Any
|
|
195
|
+
:type direction: typing.Optional[typing.Any]
|
|
195
196
|
"""
|
|
196
197
|
|
|
197
198
|
...
|
|
198
199
|
|
|
199
200
|
def collection_remove(
|
|
200
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
201
|
-
execution_context: typing.Union[str, int] = None,
|
|
202
|
-
undo: bool = None,
|
|
201
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
202
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
203
|
+
undo: typing.Optional[bool] = None,
|
|
203
204
|
):
|
|
204
205
|
"""Remove the active bone collection
|
|
205
206
|
|
|
206
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
207
|
-
:type execution_context: typing.Union[str, int]
|
|
208
|
-
:type undo: bool
|
|
207
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
208
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
209
|
+
:type undo: typing.Optional[bool]
|
|
209
210
|
"""
|
|
210
211
|
|
|
211
212
|
...
|
|
212
213
|
|
|
213
214
|
def collection_remove_unused(
|
|
214
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
215
|
-
execution_context: typing.Union[str, int] = None,
|
|
216
|
-
undo: bool = None,
|
|
215
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
216
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
217
|
+
undo: typing.Optional[bool] = None,
|
|
217
218
|
):
|
|
218
219
|
"""Remove all bone collections that have neither bones nor children. This is done recursively, so bone collections that only have unused children are also removed
|
|
219
220
|
|
|
220
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
221
|
-
:type execution_context: typing.Union[str, int]
|
|
222
|
-
:type undo: bool
|
|
221
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
222
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
223
|
+
:type undo: typing.Optional[bool]
|
|
223
224
|
"""
|
|
224
225
|
|
|
225
226
|
...
|
|
226
227
|
|
|
227
228
|
def collection_select(
|
|
228
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
229
|
-
execution_context: typing.Union[str, int] = None,
|
|
230
|
-
undo: bool = None,
|
|
229
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
230
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
231
|
+
undo: typing.Optional[bool] = None,
|
|
231
232
|
):
|
|
232
233
|
"""Select bones in active Bone Collection
|
|
233
234
|
|
|
234
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
235
|
-
:type execution_context: typing.Union[str, int]
|
|
236
|
-
:type undo: bool
|
|
235
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
236
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
237
|
+
:type undo: typing.Optional[bool]
|
|
237
238
|
"""
|
|
238
239
|
|
|
239
240
|
...
|
|
240
241
|
|
|
241
242
|
def collection_show_all(
|
|
242
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
243
|
-
execution_context: typing.Union[str, int] = None,
|
|
244
|
-
undo: bool = None,
|
|
243
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
244
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
245
|
+
undo: typing.Optional[bool] = None,
|
|
245
246
|
):
|
|
246
247
|
"""Show all bone collections
|
|
247
248
|
|
|
248
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
249
|
-
:type execution_context: typing.Union[str, int]
|
|
250
|
-
:type undo: bool
|
|
249
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
250
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
251
|
+
:type undo: typing.Optional[bool]
|
|
251
252
|
"""
|
|
252
253
|
|
|
253
254
|
...
|
|
254
255
|
|
|
255
256
|
def collection_unassign(
|
|
256
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
257
|
-
execution_context: typing.Union[str, int] = None,
|
|
258
|
-
undo: bool = None,
|
|
257
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
258
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
259
|
+
undo: typing.Optional[bool] = None,
|
|
259
260
|
name: typing.Union[str, typing.Any] = "",
|
|
260
261
|
):
|
|
261
262
|
"""Remove selected bones from the active bone collection
|
|
262
263
|
|
|
263
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
264
|
-
:type execution_context: typing.Union[str, int]
|
|
265
|
-
:type undo: bool
|
|
264
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
265
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
266
|
+
:type undo: typing.Optional[bool]
|
|
266
267
|
:param name: Bone Collection, Name of the bone collection to unassign this bone from; empty to unassign from the active bone collection
|
|
267
268
|
:type name: typing.Union[str, typing.Any]
|
|
268
269
|
"""
|
|
@@ -270,17 +271,17 @@ def collection_unassign(
|
|
|
270
271
|
...
|
|
271
272
|
|
|
272
273
|
def collection_unassign_named(
|
|
273
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
274
|
-
execution_context: typing.Union[str, int] = None,
|
|
275
|
-
undo: bool = None,
|
|
274
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
275
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
276
|
+
undo: typing.Optional[bool] = None,
|
|
276
277
|
name: typing.Union[str, typing.Any] = "",
|
|
277
278
|
bone_name: typing.Union[str, typing.Any] = "",
|
|
278
279
|
):
|
|
279
280
|
"""Unassign the named bone from this bone collection
|
|
280
281
|
|
|
281
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
282
|
-
:type execution_context: typing.Union[str, int]
|
|
283
|
-
:type undo: bool
|
|
282
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
283
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
284
|
+
:type undo: typing.Optional[bool]
|
|
284
285
|
:param name: Bone Collection, Name of the bone collection to unassign this bone from; empty to unassign from the active bone collection
|
|
285
286
|
:type name: typing.Union[str, typing.Any]
|
|
286
287
|
:param bone_name: Bone Name, Name of the bone to unassign from the collection; empty to use the active bone
|
|
@@ -290,30 +291,30 @@ def collection_unassign_named(
|
|
|
290
291
|
...
|
|
291
292
|
|
|
292
293
|
def collection_unsolo_all(
|
|
293
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
294
|
-
execution_context: typing.Union[str, int] = None,
|
|
295
|
-
undo: bool = None,
|
|
294
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
295
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
296
|
+
undo: typing.Optional[bool] = None,
|
|
296
297
|
):
|
|
297
298
|
"""Clear the 'solo' setting on all bone collections
|
|
298
299
|
|
|
299
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
300
|
-
:type execution_context: typing.Union[str, int]
|
|
301
|
-
:type undo: bool
|
|
300
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
301
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
302
|
+
:type undo: typing.Optional[bool]
|
|
302
303
|
"""
|
|
303
304
|
|
|
304
305
|
...
|
|
305
306
|
|
|
306
307
|
def copy_bone_color_to_selected(
|
|
307
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
308
|
-
execution_context: typing.Union[str, int] = None,
|
|
309
|
-
undo: bool = None,
|
|
310
|
-
bone_type: typing.Any = "EDIT",
|
|
308
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
309
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
310
|
+
undo: typing.Optional[bool] = None,
|
|
311
|
+
bone_type: typing.Optional[typing.Any] = "EDIT",
|
|
311
312
|
):
|
|
312
313
|
"""Copy the bone color of the active bone to all selected bones
|
|
313
314
|
|
|
314
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
315
|
-
:type execution_context: typing.Union[str, int]
|
|
316
|
-
:type undo: bool
|
|
315
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
316
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
317
|
+
:type undo: typing.Optional[bool]
|
|
317
318
|
:param bone_type: Type
|
|
318
319
|
|
|
319
320
|
EDIT
|
|
@@ -321,198 +322,198 @@ def copy_bone_color_to_selected(
|
|
|
321
322
|
|
|
322
323
|
POSE
|
|
323
324
|
Pose Bone -- Copy Pose Bone colors from the active pose bone to all selected pose bones.
|
|
324
|
-
:type bone_type: typing.Any
|
|
325
|
+
:type bone_type: typing.Optional[typing.Any]
|
|
325
326
|
"""
|
|
326
327
|
|
|
327
328
|
...
|
|
328
329
|
|
|
329
330
|
def delete(
|
|
330
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
331
|
-
execution_context: typing.Union[str, int] = None,
|
|
332
|
-
undo: bool = None,
|
|
333
|
-
confirm: typing.Union[bool, typing.Any] = True,
|
|
331
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
332
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
333
|
+
undo: typing.Optional[bool] = None,
|
|
334
|
+
confirm: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
334
335
|
):
|
|
335
336
|
"""Remove selected bones from the armature
|
|
336
337
|
|
|
337
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
338
|
-
:type execution_context: typing.Union[str, int]
|
|
339
|
-
:type undo: bool
|
|
338
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
339
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
340
|
+
:type undo: typing.Optional[bool]
|
|
340
341
|
:param confirm: Confirm, Prompt for confirmation
|
|
341
|
-
:type confirm: typing.Union[bool, typing.Any]
|
|
342
|
+
:type confirm: typing.Optional[typing.Union[bool, typing.Any]]
|
|
342
343
|
"""
|
|
343
344
|
|
|
344
345
|
...
|
|
345
346
|
|
|
346
347
|
def dissolve(
|
|
347
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
348
|
-
execution_context: typing.Union[str, int] = None,
|
|
349
|
-
undo: bool = None,
|
|
348
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
349
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
350
|
+
undo: typing.Optional[bool] = None,
|
|
350
351
|
):
|
|
351
352
|
"""Dissolve selected bones from the armature
|
|
352
353
|
|
|
353
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
354
|
-
:type execution_context: typing.Union[str, int]
|
|
355
|
-
:type undo: bool
|
|
354
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
355
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
356
|
+
:type undo: typing.Optional[bool]
|
|
356
357
|
"""
|
|
357
358
|
|
|
358
359
|
...
|
|
359
360
|
|
|
360
361
|
def duplicate(
|
|
361
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
362
|
-
execution_context: typing.Union[str, int] = None,
|
|
363
|
-
undo: bool = None,
|
|
364
|
-
do_flip_names: typing.Union[bool, typing.Any] = False,
|
|
362
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
363
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
364
|
+
undo: typing.Optional[bool] = None,
|
|
365
|
+
do_flip_names: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
365
366
|
):
|
|
366
367
|
"""Make copies of the selected bones within the same armature
|
|
367
368
|
|
|
368
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
369
|
-
:type execution_context: typing.Union[str, int]
|
|
370
|
-
:type undo: bool
|
|
369
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
370
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
371
|
+
:type undo: typing.Optional[bool]
|
|
371
372
|
:param do_flip_names: Flip Names, Try to flip names of the bones, if possible, instead of adding a number extension
|
|
372
|
-
:type do_flip_names: typing.Union[bool, typing.Any]
|
|
373
|
+
:type do_flip_names: typing.Optional[typing.Union[bool, typing.Any]]
|
|
373
374
|
"""
|
|
374
375
|
|
|
375
376
|
...
|
|
376
377
|
|
|
377
378
|
def duplicate_move(
|
|
378
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
379
|
-
execution_context: typing.Union[str, int] = None,
|
|
380
|
-
undo: bool = None,
|
|
381
|
-
ARMATURE_OT_duplicate: typing.
|
|
382
|
-
TRANSFORM_OT_translate: typing.
|
|
379
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
380
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
381
|
+
undo: typing.Optional[bool] = None,
|
|
382
|
+
ARMATURE_OT_duplicate: typing.Optional[duplicate] = None,
|
|
383
|
+
TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate] = None,
|
|
383
384
|
):
|
|
384
385
|
"""Make copies of the selected bones within the same armature and move them
|
|
385
386
|
|
|
386
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
387
|
-
:type execution_context: typing.Union[str, int]
|
|
388
|
-
:type undo: bool
|
|
387
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
388
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
389
|
+
:type undo: typing.Optional[bool]
|
|
389
390
|
:param ARMATURE_OT_duplicate: Duplicate Selected Bone(s), Make copies of the selected bones within the same armature
|
|
390
|
-
:type ARMATURE_OT_duplicate: typing.
|
|
391
|
+
:type ARMATURE_OT_duplicate: typing.Optional[duplicate]
|
|
391
392
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
392
|
-
:type TRANSFORM_OT_translate: typing.
|
|
393
|
+
:type TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate]
|
|
393
394
|
"""
|
|
394
395
|
|
|
395
396
|
...
|
|
396
397
|
|
|
397
398
|
def extrude(
|
|
398
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
399
|
-
execution_context: typing.Union[str, int] = None,
|
|
400
|
-
undo: bool = None,
|
|
401
|
-
forked: typing.Union[bool, typing.Any] = False,
|
|
399
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
400
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
401
|
+
undo: typing.Optional[bool] = None,
|
|
402
|
+
forked: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
402
403
|
):
|
|
403
404
|
"""Create new bones from the selected joints
|
|
404
405
|
|
|
405
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
406
|
-
:type execution_context: typing.Union[str, int]
|
|
407
|
-
:type undo: bool
|
|
406
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
407
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
408
|
+
:type undo: typing.Optional[bool]
|
|
408
409
|
:param forked: Forked
|
|
409
|
-
:type forked: typing.Union[bool, typing.Any]
|
|
410
|
+
:type forked: typing.Optional[typing.Union[bool, typing.Any]]
|
|
410
411
|
"""
|
|
411
412
|
|
|
412
413
|
...
|
|
413
414
|
|
|
414
415
|
def extrude_forked(
|
|
415
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
416
|
-
execution_context: typing.Union[str, int] = None,
|
|
417
|
-
undo: bool = None,
|
|
418
|
-
ARMATURE_OT_extrude: typing.
|
|
419
|
-
TRANSFORM_OT_translate: typing.
|
|
416
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
417
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
418
|
+
undo: typing.Optional[bool] = None,
|
|
419
|
+
ARMATURE_OT_extrude: typing.Optional[extrude] = None,
|
|
420
|
+
TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate] = None,
|
|
420
421
|
):
|
|
421
422
|
"""Create new bones from the selected joints and move them
|
|
422
423
|
|
|
423
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
424
|
-
:type execution_context: typing.Union[str, int]
|
|
425
|
-
:type undo: bool
|
|
424
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
425
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
426
|
+
:type undo: typing.Optional[bool]
|
|
426
427
|
:param ARMATURE_OT_extrude: Extrude, Create new bones from the selected joints
|
|
427
|
-
:type ARMATURE_OT_extrude: typing.
|
|
428
|
+
:type ARMATURE_OT_extrude: typing.Optional[extrude]
|
|
428
429
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
429
|
-
:type TRANSFORM_OT_translate: typing.
|
|
430
|
+
:type TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate]
|
|
430
431
|
"""
|
|
431
432
|
|
|
432
433
|
...
|
|
433
434
|
|
|
434
435
|
def extrude_move(
|
|
435
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
436
|
-
execution_context: typing.Union[str, int] = None,
|
|
437
|
-
undo: bool = None,
|
|
438
|
-
ARMATURE_OT_extrude: typing.
|
|
439
|
-
TRANSFORM_OT_translate: typing.
|
|
436
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
437
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
438
|
+
undo: typing.Optional[bool] = None,
|
|
439
|
+
ARMATURE_OT_extrude: typing.Optional[extrude] = None,
|
|
440
|
+
TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate] = None,
|
|
440
441
|
):
|
|
441
442
|
"""Create new bones from the selected joints and move them
|
|
442
443
|
|
|
443
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
444
|
-
:type execution_context: typing.Union[str, int]
|
|
445
|
-
:type undo: bool
|
|
444
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
445
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
446
|
+
:type undo: typing.Optional[bool]
|
|
446
447
|
:param ARMATURE_OT_extrude: Extrude, Create new bones from the selected joints
|
|
447
|
-
:type ARMATURE_OT_extrude: typing.
|
|
448
|
+
:type ARMATURE_OT_extrude: typing.Optional[extrude]
|
|
448
449
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
449
|
-
:type TRANSFORM_OT_translate: typing.
|
|
450
|
+
:type TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate]
|
|
450
451
|
"""
|
|
451
452
|
|
|
452
453
|
...
|
|
453
454
|
|
|
454
455
|
def fill(
|
|
455
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
456
|
-
execution_context: typing.Union[str, int] = None,
|
|
457
|
-
undo: bool = None,
|
|
456
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
457
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
458
|
+
undo: typing.Optional[bool] = None,
|
|
458
459
|
):
|
|
459
460
|
"""Add bone between selected joint(s) and/or 3D cursor
|
|
460
461
|
|
|
461
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
462
|
-
:type execution_context: typing.Union[str, int]
|
|
463
|
-
:type undo: bool
|
|
462
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
463
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
464
|
+
:type undo: typing.Optional[bool]
|
|
464
465
|
"""
|
|
465
466
|
|
|
466
467
|
...
|
|
467
468
|
|
|
468
469
|
def flip_names(
|
|
469
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
470
|
-
execution_context: typing.Union[str, int] = None,
|
|
471
|
-
undo: bool = None,
|
|
472
|
-
do_strip_numbers: typing.Union[bool, typing.Any] = False,
|
|
470
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
471
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
472
|
+
undo: typing.Optional[bool] = None,
|
|
473
|
+
do_strip_numbers: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
473
474
|
):
|
|
474
475
|
"""Flips (and corrects) the axis suffixes of the names of selected bones
|
|
475
476
|
|
|
476
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
477
|
-
:type execution_context: typing.Union[str, int]
|
|
478
|
-
:type undo: bool
|
|
477
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
478
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
479
|
+
:type undo: typing.Optional[bool]
|
|
479
480
|
:param do_strip_numbers: Strip Numbers, Try to remove right-most dot-number from flipped names.Warning: May result in incoherent naming in some cases
|
|
480
|
-
:type do_strip_numbers: typing.Union[bool, typing.Any]
|
|
481
|
+
:type do_strip_numbers: typing.Optional[typing.Union[bool, typing.Any]]
|
|
481
482
|
"""
|
|
482
483
|
|
|
483
484
|
...
|
|
484
485
|
|
|
485
486
|
def hide(
|
|
486
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
487
|
-
execution_context: typing.Union[str, int] = None,
|
|
488
|
-
undo: bool = None,
|
|
489
|
-
unselected: typing.Union[bool, typing.Any] = False,
|
|
487
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
488
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
489
|
+
undo: typing.Optional[bool] = None,
|
|
490
|
+
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
490
491
|
):
|
|
491
492
|
"""Tag selected bones to not be visible in Edit Mode
|
|
492
493
|
|
|
493
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
494
|
-
:type execution_context: typing.Union[str, int]
|
|
495
|
-
:type undo: bool
|
|
494
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
495
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
496
|
+
:type undo: typing.Optional[bool]
|
|
496
497
|
:param unselected: Unselected, Hide unselected rather than selected
|
|
497
|
-
:type unselected: typing.Union[bool, typing.Any]
|
|
498
|
+
:type unselected: typing.Optional[typing.Union[bool, typing.Any]]
|
|
498
499
|
"""
|
|
499
500
|
|
|
500
501
|
...
|
|
501
502
|
|
|
502
503
|
def move_to_collection(
|
|
503
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
504
|
-
execution_context: typing.Union[str, int] = None,
|
|
505
|
-
undo: bool = None,
|
|
506
|
-
collection_index: typing.Any = -1,
|
|
504
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
505
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
506
|
+
undo: typing.Optional[bool] = None,
|
|
507
|
+
collection_index: typing.Optional[typing.Any] = -1,
|
|
507
508
|
new_collection_name: typing.Union[str, typing.Any] = "",
|
|
508
509
|
):
|
|
509
510
|
"""Move bones to a collection
|
|
510
511
|
|
|
511
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
512
|
-
:type execution_context: typing.Union[str, int]
|
|
513
|
-
:type undo: bool
|
|
512
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
513
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
514
|
+
:type undo: typing.Optional[bool]
|
|
514
515
|
:param collection_index: Collection Index, Index of the collection to move selected bones to. When the operator should create a new bone collection, do not include this parameter and pass new_collection_name
|
|
515
|
-
:type collection_index: typing.Any
|
|
516
|
+
:type collection_index: typing.Optional[typing.Any]
|
|
516
517
|
:param new_collection_name: Name, Name of a to-be-added bone collection. Only pass this if you want to create a new bone collection and move the selected bones to it. To move to an existing collection, do not include this parameter and use collection_index
|
|
517
518
|
:type new_collection_name: typing.Union[str, typing.Any]
|
|
518
519
|
"""
|
|
@@ -520,84 +521,84 @@ def move_to_collection(
|
|
|
520
521
|
...
|
|
521
522
|
|
|
522
523
|
def parent_clear(
|
|
523
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
524
|
-
execution_context: typing.Union[str, int] = None,
|
|
525
|
-
undo: bool = None,
|
|
526
|
-
type: typing.Any = "CLEAR",
|
|
524
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
525
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
526
|
+
undo: typing.Optional[bool] = None,
|
|
527
|
+
type: typing.Optional[typing.Any] = "CLEAR",
|
|
527
528
|
):
|
|
528
529
|
"""Remove the parent-child relationship between selected bones and their parents
|
|
529
530
|
|
|
530
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
531
|
-
:type execution_context: typing.Union[str, int]
|
|
532
|
-
:type undo: bool
|
|
531
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
532
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
533
|
+
:type undo: typing.Optional[bool]
|
|
533
534
|
:param type: Clear Type, What way to clear parenting
|
|
534
|
-
:type type: typing.Any
|
|
535
|
+
:type type: typing.Optional[typing.Any]
|
|
535
536
|
"""
|
|
536
537
|
|
|
537
538
|
...
|
|
538
539
|
|
|
539
540
|
def parent_set(
|
|
540
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
541
|
-
execution_context: typing.Union[str, int] = None,
|
|
542
|
-
undo: bool = None,
|
|
543
|
-
type: typing.Any = "CONNECTED",
|
|
541
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
542
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
543
|
+
undo: typing.Optional[bool] = None,
|
|
544
|
+
type: typing.Optional[typing.Any] = "CONNECTED",
|
|
544
545
|
):
|
|
545
546
|
"""Set the active bone as the parent of the selected bones
|
|
546
547
|
|
|
547
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
548
|
-
:type execution_context: typing.Union[str, int]
|
|
549
|
-
:type undo: bool
|
|
548
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
549
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
550
|
+
:type undo: typing.Optional[bool]
|
|
550
551
|
:param type: Parent Type, Type of parenting
|
|
551
|
-
:type type: typing.Any
|
|
552
|
+
:type type: typing.Optional[typing.Any]
|
|
552
553
|
"""
|
|
553
554
|
|
|
554
555
|
...
|
|
555
556
|
|
|
556
557
|
def reveal(
|
|
557
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
558
|
-
execution_context: typing.Union[str, int] = None,
|
|
559
|
-
undo: bool = None,
|
|
560
|
-
select: typing.Union[bool, typing.Any] = True,
|
|
558
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
559
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
560
|
+
undo: typing.Optional[bool] = None,
|
|
561
|
+
select: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
561
562
|
):
|
|
562
563
|
"""Reveal all bones hidden in Edit Mode
|
|
563
564
|
|
|
564
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
565
|
-
:type execution_context: typing.Union[str, int]
|
|
566
|
-
:type undo: bool
|
|
565
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
566
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
567
|
+
:type undo: typing.Optional[bool]
|
|
567
568
|
:param select: Select
|
|
568
|
-
:type select: typing.Union[bool, typing.Any]
|
|
569
|
+
:type select: typing.Optional[typing.Union[bool, typing.Any]]
|
|
569
570
|
"""
|
|
570
571
|
|
|
571
572
|
...
|
|
572
573
|
|
|
573
574
|
def roll_clear(
|
|
574
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
575
|
-
execution_context: typing.Union[str, int] = None,
|
|
576
|
-
undo: bool = None,
|
|
577
|
-
roll: typing.Any = 0.0,
|
|
575
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
576
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
577
|
+
undo: typing.Optional[bool] = None,
|
|
578
|
+
roll: typing.Optional[typing.Any] = 0.0,
|
|
578
579
|
):
|
|
579
580
|
"""Clear roll for selected bones
|
|
580
581
|
|
|
581
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
582
|
-
:type execution_context: typing.Union[str, int]
|
|
583
|
-
:type undo: bool
|
|
582
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
583
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
584
|
+
:type undo: typing.Optional[bool]
|
|
584
585
|
:param roll: Roll
|
|
585
|
-
:type roll: typing.Any
|
|
586
|
+
:type roll: typing.Optional[typing.Any]
|
|
586
587
|
"""
|
|
587
588
|
|
|
588
589
|
...
|
|
589
590
|
|
|
590
591
|
def select_all(
|
|
591
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
592
|
-
execution_context: typing.Union[str, int] = None,
|
|
593
|
-
undo: bool = None,
|
|
594
|
-
action: typing.Any = "TOGGLE",
|
|
592
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
593
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
594
|
+
undo: typing.Optional[bool] = None,
|
|
595
|
+
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
595
596
|
):
|
|
596
597
|
"""Toggle selection status of all bones
|
|
597
598
|
|
|
598
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
599
|
-
:type execution_context: typing.Union[str, int]
|
|
600
|
-
:type undo: bool
|
|
599
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
600
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
601
|
+
:type undo: typing.Optional[bool]
|
|
601
602
|
:param action: Action, Selection action to execute
|
|
602
603
|
|
|
603
604
|
TOGGLE
|
|
@@ -611,222 +612,222 @@ def select_all(
|
|
|
611
612
|
|
|
612
613
|
INVERT
|
|
613
614
|
Invert -- Invert selection of all elements.
|
|
614
|
-
:type action: typing.Any
|
|
615
|
+
:type action: typing.Optional[typing.Any]
|
|
615
616
|
"""
|
|
616
617
|
|
|
617
618
|
...
|
|
618
619
|
|
|
619
620
|
def select_hierarchy(
|
|
620
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
621
|
-
execution_context: typing.Union[str, int] = None,
|
|
622
|
-
undo: bool = None,
|
|
623
|
-
direction: typing.Any = "PARENT",
|
|
624
|
-
extend: typing.Union[bool, typing.Any] = False,
|
|
621
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
622
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
623
|
+
undo: typing.Optional[bool] = None,
|
|
624
|
+
direction: typing.Optional[typing.Any] = "PARENT",
|
|
625
|
+
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
625
626
|
):
|
|
626
627
|
"""Select immediate parent/children of selected bones
|
|
627
628
|
|
|
628
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
629
|
-
:type execution_context: typing.Union[str, int]
|
|
630
|
-
:type undo: bool
|
|
629
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
630
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
631
|
+
:type undo: typing.Optional[bool]
|
|
631
632
|
:param direction: Direction
|
|
632
|
-
:type direction: typing.Any
|
|
633
|
+
:type direction: typing.Optional[typing.Any]
|
|
633
634
|
:param extend: Extend, Extend the selection
|
|
634
|
-
:type extend: typing.Union[bool, typing.Any]
|
|
635
|
+
:type extend: typing.Optional[typing.Union[bool, typing.Any]]
|
|
635
636
|
"""
|
|
636
637
|
|
|
637
638
|
...
|
|
638
639
|
|
|
639
640
|
def select_less(
|
|
640
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
641
|
-
execution_context: typing.Union[str, int] = None,
|
|
642
|
-
undo: bool = None,
|
|
641
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
642
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
643
|
+
undo: typing.Optional[bool] = None,
|
|
643
644
|
):
|
|
644
645
|
"""Deselect those bones at the boundary of each selection region
|
|
645
646
|
|
|
646
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
647
|
-
:type execution_context: typing.Union[str, int]
|
|
648
|
-
:type undo: bool
|
|
647
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
648
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
649
|
+
:type undo: typing.Optional[bool]
|
|
649
650
|
"""
|
|
650
651
|
|
|
651
652
|
...
|
|
652
653
|
|
|
653
654
|
def select_linked(
|
|
654
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
655
|
-
execution_context: typing.Union[str, int] = None,
|
|
656
|
-
undo: bool = None,
|
|
657
|
-
all_forks: typing.Union[bool, typing.Any] = False,
|
|
655
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
656
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
657
|
+
undo: typing.Optional[bool] = None,
|
|
658
|
+
all_forks: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
658
659
|
):
|
|
659
660
|
"""Select all bones linked by parent/child connections to the current selection
|
|
660
661
|
|
|
661
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
662
|
-
:type execution_context: typing.Union[str, int]
|
|
663
|
-
:type undo: bool
|
|
662
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
663
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
664
|
+
:type undo: typing.Optional[bool]
|
|
664
665
|
:param all_forks: All Forks, Follow forks in the parents chain
|
|
665
|
-
:type all_forks: typing.Union[bool, typing.Any]
|
|
666
|
+
:type all_forks: typing.Optional[typing.Union[bool, typing.Any]]
|
|
666
667
|
"""
|
|
667
668
|
|
|
668
669
|
...
|
|
669
670
|
|
|
670
671
|
def select_linked_pick(
|
|
671
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
672
|
-
execution_context: typing.Union[str, int] = None,
|
|
673
|
-
undo: bool = None,
|
|
674
|
-
deselect: typing.Union[bool, typing.Any] = False,
|
|
675
|
-
all_forks: typing.Union[bool, typing.Any] = False,
|
|
672
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
673
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
674
|
+
undo: typing.Optional[bool] = None,
|
|
675
|
+
deselect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
676
|
+
all_forks: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
676
677
|
):
|
|
677
678
|
"""(De)select bones linked by parent/child connections under the mouse cursor
|
|
678
679
|
|
|
679
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
680
|
-
:type execution_context: typing.Union[str, int]
|
|
681
|
-
:type undo: bool
|
|
680
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
681
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
682
|
+
:type undo: typing.Optional[bool]
|
|
682
683
|
:param deselect: Deselect
|
|
683
|
-
:type deselect: typing.Union[bool, typing.Any]
|
|
684
|
+
:type deselect: typing.Optional[typing.Union[bool, typing.Any]]
|
|
684
685
|
:param all_forks: All Forks, Follow forks in the parents chain
|
|
685
|
-
:type all_forks: typing.Union[bool, typing.Any]
|
|
686
|
+
:type all_forks: typing.Optional[typing.Union[bool, typing.Any]]
|
|
686
687
|
"""
|
|
687
688
|
|
|
688
689
|
...
|
|
689
690
|
|
|
690
691
|
def select_mirror(
|
|
691
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
692
|
-
execution_context: typing.Union[str, int] = None,
|
|
693
|
-
undo: bool = None,
|
|
694
|
-
only_active: typing.Union[bool, typing.Any] = False,
|
|
695
|
-
extend: typing.Union[bool, typing.Any] = False,
|
|
692
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
693
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
694
|
+
undo: typing.Optional[bool] = None,
|
|
695
|
+
only_active: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
696
|
+
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
696
697
|
):
|
|
697
698
|
"""Mirror the bone selection
|
|
698
699
|
|
|
699
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
700
|
-
:type execution_context: typing.Union[str, int]
|
|
701
|
-
:type undo: bool
|
|
700
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
701
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
702
|
+
:type undo: typing.Optional[bool]
|
|
702
703
|
:param only_active: Active Only, Only operate on the active bone
|
|
703
|
-
:type only_active: typing.Union[bool, typing.Any]
|
|
704
|
+
:type only_active: typing.Optional[typing.Union[bool, typing.Any]]
|
|
704
705
|
:param extend: Extend, Extend the selection
|
|
705
|
-
:type extend: typing.Union[bool, typing.Any]
|
|
706
|
+
:type extend: typing.Optional[typing.Union[bool, typing.Any]]
|
|
706
707
|
"""
|
|
707
708
|
|
|
708
709
|
...
|
|
709
710
|
|
|
710
711
|
def select_more(
|
|
711
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
712
|
-
execution_context: typing.Union[str, int] = None,
|
|
713
|
-
undo: bool = None,
|
|
712
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
713
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
714
|
+
undo: typing.Optional[bool] = None,
|
|
714
715
|
):
|
|
715
716
|
"""Select those bones connected to the initial selection
|
|
716
717
|
|
|
717
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
718
|
-
:type execution_context: typing.Union[str, int]
|
|
719
|
-
:type undo: bool
|
|
718
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
719
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
720
|
+
:type undo: typing.Optional[bool]
|
|
720
721
|
"""
|
|
721
722
|
|
|
722
723
|
...
|
|
723
724
|
|
|
724
725
|
def select_similar(
|
|
725
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
726
|
-
execution_context: typing.Union[str, int] = None,
|
|
727
|
-
undo: bool = None,
|
|
728
|
-
type: typing.Any = "LENGTH",
|
|
729
|
-
threshold: typing.Any = 0.1,
|
|
726
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
727
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
728
|
+
undo: typing.Optional[bool] = None,
|
|
729
|
+
type: typing.Optional[typing.Any] = "LENGTH",
|
|
730
|
+
threshold: typing.Optional[typing.Any] = 0.1,
|
|
730
731
|
):
|
|
731
732
|
"""Select similar bones by property types
|
|
732
733
|
|
|
733
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
734
|
-
:type execution_context: typing.Union[str, int]
|
|
735
|
-
:type undo: bool
|
|
734
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
735
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
736
|
+
:type undo: typing.Optional[bool]
|
|
736
737
|
:param type: Type
|
|
737
|
-
:type type: typing.Any
|
|
738
|
+
:type type: typing.Optional[typing.Any]
|
|
738
739
|
:param threshold: Threshold
|
|
739
|
-
:type threshold: typing.Any
|
|
740
|
+
:type threshold: typing.Optional[typing.Any]
|
|
740
741
|
"""
|
|
741
742
|
|
|
742
743
|
...
|
|
743
744
|
|
|
744
745
|
def separate(
|
|
745
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
746
|
-
execution_context: typing.Union[str, int] = None,
|
|
747
|
-
undo: bool = None,
|
|
746
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
747
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
748
|
+
undo: typing.Optional[bool] = None,
|
|
748
749
|
):
|
|
749
750
|
"""Isolate selected bones into a separate armature
|
|
750
751
|
|
|
751
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
752
|
-
:type execution_context: typing.Union[str, int]
|
|
753
|
-
:type undo: bool
|
|
752
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
753
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
754
|
+
:type undo: typing.Optional[bool]
|
|
754
755
|
"""
|
|
755
756
|
|
|
756
757
|
...
|
|
757
758
|
|
|
758
759
|
def shortest_path_pick(
|
|
759
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
760
|
-
execution_context: typing.Union[str, int] = None,
|
|
761
|
-
undo: bool = None,
|
|
760
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
761
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
762
|
+
undo: typing.Optional[bool] = None,
|
|
762
763
|
):
|
|
763
764
|
"""Select shortest path between two bones
|
|
764
765
|
|
|
765
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
766
|
-
:type execution_context: typing.Union[str, int]
|
|
767
|
-
:type undo: bool
|
|
766
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
767
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
768
|
+
:type undo: typing.Optional[bool]
|
|
768
769
|
"""
|
|
769
770
|
|
|
770
771
|
...
|
|
771
772
|
|
|
772
773
|
def split(
|
|
773
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
774
|
-
execution_context: typing.Union[str, int] = None,
|
|
775
|
-
undo: bool = None,
|
|
774
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
775
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
776
|
+
undo: typing.Optional[bool] = None,
|
|
776
777
|
):
|
|
777
778
|
"""Split off selected bones from connected unselected bones
|
|
778
779
|
|
|
779
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
780
|
-
:type execution_context: typing.Union[str, int]
|
|
781
|
-
:type undo: bool
|
|
780
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
781
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
782
|
+
:type undo: typing.Optional[bool]
|
|
782
783
|
"""
|
|
783
784
|
|
|
784
785
|
...
|
|
785
786
|
|
|
786
787
|
def subdivide(
|
|
787
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
788
|
-
execution_context: typing.Union[str, int] = None,
|
|
789
|
-
undo: bool = None,
|
|
790
|
-
number_cuts: typing.Any = 1,
|
|
788
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
789
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
790
|
+
undo: typing.Optional[bool] = None,
|
|
791
|
+
number_cuts: typing.Optional[typing.Any] = 1,
|
|
791
792
|
):
|
|
792
793
|
"""Break selected bones into chains of smaller bones
|
|
793
794
|
|
|
794
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
795
|
-
:type execution_context: typing.Union[str, int]
|
|
796
|
-
:type undo: bool
|
|
795
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
796
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
797
|
+
:type undo: typing.Optional[bool]
|
|
797
798
|
:param number_cuts: Number of Cuts
|
|
798
|
-
:type number_cuts: typing.Any
|
|
799
|
+
:type number_cuts: typing.Optional[typing.Any]
|
|
799
800
|
"""
|
|
800
801
|
|
|
801
802
|
...
|
|
802
803
|
|
|
803
804
|
def switch_direction(
|
|
804
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
805
|
-
execution_context: typing.Union[str, int] = None,
|
|
806
|
-
undo: bool = None,
|
|
805
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
806
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
807
|
+
undo: typing.Optional[bool] = None,
|
|
807
808
|
):
|
|
808
809
|
"""Change the direction that a chain of bones points in (head and tail swap)
|
|
809
810
|
|
|
810
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
811
|
-
:type execution_context: typing.Union[str, int]
|
|
812
|
-
:type undo: bool
|
|
811
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
812
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
813
|
+
:type undo: typing.Optional[bool]
|
|
813
814
|
"""
|
|
814
815
|
|
|
815
816
|
...
|
|
816
817
|
|
|
817
818
|
def symmetrize(
|
|
818
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
819
|
-
execution_context: typing.Union[str, int] = None,
|
|
820
|
-
undo: bool = None,
|
|
821
|
-
direction: typing.Any = "NEGATIVE_X",
|
|
819
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
820
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
821
|
+
undo: typing.Optional[bool] = None,
|
|
822
|
+
direction: typing.Optional[typing.Any] = "NEGATIVE_X",
|
|
822
823
|
):
|
|
823
824
|
"""Enforce symmetry, make copies of the selection or use existing
|
|
824
825
|
|
|
825
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
826
|
-
:type execution_context: typing.Union[str, int]
|
|
827
|
-
:type undo: bool
|
|
826
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
827
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
828
|
+
:type undo: typing.Optional[bool]
|
|
828
829
|
:param direction: Direction, Which sides to copy from and to (when both are selected)
|
|
829
|
-
:type direction: typing.Any
|
|
830
|
+
:type direction: typing.Optional[typing.Any]
|
|
830
831
|
"""
|
|
831
832
|
|
|
832
833
|
...
|