File: selecting.rst

package info (click to toggle)
blender-doc 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 253,604 kB
  • sloc: python: 13,030; javascript: 322; makefile: 113; sh: 107
file content (236 lines) | stat: -rw-r--r-- 6,778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236

*********
Selecting
*********

You can select and edit bones of armatures in *Edit Mode* and in *Pose Mode*.
Here, we will see how to select bones in *Edit Mode*.
Selecting bones in *Pose Mode* is similar to selecting in *Edit Mode*
with a few specific differences that will be detailed in
the :doc:`posing part </animation/armatures/posing/selecting>`.

Similar to :doc:`vertex/edge selection </modeling/meshes/selecting/introduction>` in meshes,
there are two ways to select whole bones in *Edit Mode*:

#. Directly, by selecting the bone's body.
#. Selecting both of its joints (root and tip).

This is an important point to understand,
because selecting bones' joints only might lead to non-obvious behavior,
with respect to which bone you actually select.

Note that unlike the mesh display type, the armature display type has no effect on selection behavior.
In other words, you can select a bone's joint or body the same way regardless of
the bone visualization chosen.


.. _bpy.ops.armature.select_all:

Selecting Bone Joints
=====================

To select bones' joints you have the :doc:`standard selection </scene_layout/object/selecting>` methods.


Inverse Selection
-----------------

As stated above, you have to remember that these selection tools are for bones' joints only,
not the bones' bodies.

For example, the *Inverse* selection option :kbd:`Ctrl-I`
inverts the selection of bones' joints, not of bones (see *Inverse selection*).

Remember that a bone is selected only if both its joints are selected. So,
when the selection status of bones' joints is inverted, a new set of bones is selected.

.. list-table:: Inverse selection.

   * - .. figure:: /images/animation_armatures_bones_selecting_two-bones.png
          :width: 320px

          Two bones selected.

     - .. figure:: /images/animation_armatures_bones_selecting_three-ends.png
          :width: 320px

          The result of the inverse selection :kbd:`Ctrl-I`:
          The bones joints selection has been inverted, and not the bones selection.


Selecting Connected Bone Joints
-------------------------------

Another example is: when you select the root of a bone connected to its parent,
you also implicitly select the tip of its parent (and vice versa).

.. note::

   Remember that when selecting bones' joints,
   the tip of the parent bone is the "same thing" as the root of its children bones.


Selecting Bones
===============

By clicking on a bone's body, you will select it
(and hence you will implicitly select its root and tip).

Using :kbd:`Shift`-click, you can add to/remove from the selection.

You also have some *advanced selection* options, based on their relations.

Pick Shortest Path :kbd:`Ctrl`-click
   Selects the path from the active bone to the bone under the mouse.


Deselecting Connected Bones
---------------------------

There is a subtlety regarding connected bones.

When you have several connected bones selected, if you deselect one bone,
its tip will be deselected, but not its root, if it is also the tip of another selected bone.

To understand this, look at Fig. :ref:`fig-rig-bone-select-deselect`.

.. _fig-rig-bone-select-deselect:

.. list-table:: Bone deselection in a selected chain.

   * - .. figure:: /images/animation_armatures_bones_selecting_whole-chain.png
          :width: 320px

          A selected chain.

     - .. figure:: /images/animation_armatures_bones_selecting_two-bones.png
          :width: 320px

          Two selected bones.

After :kbd:`Shift`-clicking "Bone.003":

- "Bone.003" 's tip (which is same as "Bone.004" 's root) is deselected.
- "Bone" is "Bone.003" 's parent. Therefore, "Bone.003" 's root is the same as the tip of "Bone".
  Since "Bone" is still selected, its tip is selected. Thus the root of "Bone.003" remains selected.


.. _bpy.ops.armature.select_mirror:

Select Mirror
=============

.. reference::

   :Mode:      Edit Mode
   :Menu:      :menuselection:`Select --> Select Mirror`
   :Shortcut:  :kbd:`Shift-Ctrl-M`

Flip the selection from one side to another.


.. _bpy.ops.armature.select_more:
.. _bpy.ops.armature.select_less:

More/Less
=========

.. reference::

   :Mode:      Edit Mode
   :Menu:      :menuselection:`Select --> More/Less`

More :kbd:`Ctrl-NumpadPlus`
   Expand the current selection to the connected bones.
Less :kbd:`Ctrl-NumpadMinus`
   Contrast the selection, deselect bones at the boundaries of each selection region.


.. _bpy.ops.armature.select_linked:

Select Linked
=============

.. reference::

   :Mode:      Edit Mode
   :Menu:      :menuselection:`Select --> Select Linked`
   :Shortcut:  :kbd:`Ctrl-L`

Selects all the bones in the chain which the active (last selected) bone belongs to.

All Forks
   Selects all bones connected to the active bone even if the branch off from the current bone.

.. list-table:: Linked bones selection.

   * - .. figure:: /images/animation_armatures_bones_selecting_single-bone.png
          :width: 320px

          A single selected bone.

     - .. figure:: /images/animation_armatures_bones_selecting_whole-chain.png
          :width: 320px

          Its whole chain selected with Linked.


.. _bpy.ops.armature.select_similar:

Select Similar
==============

.. reference::

   :Mode:      Edit Mode
   :Menu:      :menuselection:`Select --> Select Similar`
   :Shortcut:  :kbd:`Shift-G`

Children
   Extends the selection to all hierarchical descendant bones.
Immediate Children
   Extends the selection to all direct child bones.
Siblings
   Selects bones that have the same parent as the active bone.
Length
   Selects bones with a similar :ref:`bone length <bpy.types.EditBone.length>` under the specified *Threshold*.
Direction (Y axis)
   Select bones aligned on the Y axis (along the bone's length).
Prefix
   Select bones with matching name prefix (separated by ``.``).
Suffix
   Select bones with matching name suffix (separated by ``.``).
Bone Collection
   Select bones that share one or more bone collections with the active bone.
Color
   Select bones that have the same color as the active bone.
Shape
   Select bones using the same shape object (in Pose Mode).


Select Pattern
==============

.. reference::

   :Mode:      Pose & Armature Edit Modes
   :Menu:      :menuselection:`Select --> Select Pattern...`

Select bones by names, see :ref:`Object Select Pattern <bpy.ops.object.select_pattern>` for details.


.. _bpy.ops.armature.select_hierarchy:

Parent/Child
============

Parent :kbd:`[`, Child :kbd:`]`
   You can deselect the active bone and select its immediate parent or one of its children.


Extend Parent/Child
===================

Extend Parent :kbd:`Shift-[`, Extend Child :kbd:`Shift-]`
   Similar to *Parent*/*Child* but it keeps the active bone in the selection.