创建元装备#

  1. 添加一个单段骨骼 (添加 ‣ 骨架)。

  2. 进入骨架编辑模式,通过样品或Rigify类型构建元装配器。

  3. Define the Rigify bone collection UI, color sets, and selection sets.

  4. 在骨架属性中,单击 生成 按钮以生成装配器。

Rigify工作方式#

Rigify Meta-Rigs在多个子Rig中拆分

元装配器是骨链的组合。骨链由 Connected 属性标识。骨骼链可以通过抚养它们来进一步连接在一起,而无需使用 Connected 属性(即在抚养子女时使用 Keep Offset 选项)。

在子钻链的第一个骨头上设置自定义属性

骨骼链的每个第一个骨骼在其上都有一个自定义属性,这是标识子装配器类型的Rigify自定义属性。在装配器生成时, Rigify将确定将创建哪些控制和变形骨骼,处理从每个链的第一个骨头到最后一个骨骼的元装配器。

../../../_images/addons_rigging_rigify_metarigs_split-samples.png

按样品分解的人类元装配器。#

组装子装配器样本时创建新的元装配器

由于元装配器只是子装配器的集合,因此可以通过不同的方式组装子装配器来构建新的元装配器。通过这种方式,可以从相同的索具块构建无限数量的元索具。

../../../_images/addons_rigging_rigify_metarigs_built-samples.png

Cat meta-rig built by samples.#

所有的力学,变形骨骼和小部件都是一键创建的

元装配器比可视化骨骼包含更多的信息。事实上,在生成时, Rigify将识别每个子装配器类型,并且根据所选选项,只需单击一次即可创建所有复杂的控件、开关和变形骨骼。

创建新的 Meta-rig#

添加一个新骨架物体#

参考

模式:

物体模式

菜单:

添加 ‣ 骨架 ‣ 单段骨骼

快捷键:

Shift-A

从零开始构建自己的meta-rig需要一个骨干对象才能使用。只需从 添加 菜单中添加一个骨骼即可。

Tip

At this stage naming the newly added armature metarig is a good idea. You can do it at any time (or not at all) but it's suggested to do it before going on so it will always be clear on which armature you have to work when editing the meta-rig structure.

骨架#

现在有一个骨架对象可以工作--选择了骨架--进入骨架编辑模式。在 "编辑" 模式下从头开始构建元装配器可以通过两种方式完成:

  1. 按样品分解的人类元装配器。

  2. 创建骨骼链。

采样#

Adding pre-defined samples in Edit Mode is a good way to start building a meta-rig. This way you can become familiar with the available building blocks and how they are meant to be used. To add a rig sample:

  1. 在骨架选项卡中的运动路径面板。

  2. 向下滚动到 "里格化" 面板。

  3. 从物体列表选择一个对象来对齐视图.

  4. 单击 添加 按钮添加一个新的工作区。

  5. 编辑骨骼位置以匹配您的角色。

有关可用示例的列表,请参阅 绑定类型 页面。

绑定类型#

../../../_images/addons_rigging_rigify_metarigs_rigify-type-panel.png

For full control, you can use the Rigify Type panel of bone properties in Pose Mode to assign any Rigify sub-rig type to any bone, as well as change its options.

For the list of available sub-rig types and their options, see the Rig Types page.

At the top of the panel you can find a field specifying the rig type for the active bone. The drop-down list can be optionally filtered by the Feature Set it belongs to.

Below that you can change options relevant to the selected rig type, if it has any.

Bone Collection References#

Some rig types that generate many control bones have options that reference Bone Collections. These reference lists have a standard UI with the following features:

  • A checkbox controlling whether the reference should be used.

  • A button to copy the reference list contents from the active to all selected bones.

  • A plus button to add a new reference to the list.

  • A list of references, each entry with a field to specify the target collection, and a button to remove the entry from the list.

Note

每个子装配器都有所需数量的骨骼作为输入。如果您不确定如何使用装配器类型属性,请将装配器样本添加到您的骨架中,以查看应如何使用它。

维持骨骼属性#

Certain properties of the metarig bones are often copied to the generated rig control, deform and mechanism bones.

The exact set depends on the sub-rig and the specific generated bone, and the sub-rig may override some properties even when it preserves others from the same subset, but there are certain common patterns:

父级设置

This subset consists of the parent ORG bone, Use Connect, Use Inherit Rotation, Use Local Location, and Inherit Scale.

It is usually copied to deform bones, FK controls, and in other cases where the sub-rig doesn't have a reason to completely override them.

Bendy Bone Settings (Edit Mode)

Consist of the segment count, Vertex Mapping Mode, Ease In/Out, Roll In/Out, Curve In/Out and Scale In/Out.

The segment count is often overridden via a sub-rig option, but other settings are usually copied to deform bones as is.

Transformation Settings

Consist of the rotation mode, pose mode rotation values, and channel locks.

These settings are usually copied to FK controls.

自定义属性

Usually copied to one of the controls generated based on the metarig bone (mainly FK). Intra-armature drivers that access the property are retargeted to the copied instance.

自定义权重

Usually copied to one of the controls generated based on the metarig bone (mainly FK), and suppresses automatic generation of a widget for the bone if specified.

自定义根骨骼#

If the meta-rig contains a bone called root, it is used as the root control bone instead of creating a new one. This allows changing the rest position of the root bone, assigning a custom widget, or adding custom properties to the bone.

自定义根骨骼必须没有父级,并使用 basic.raw_copy 子类型或无子类型。

配色集#

../../../_images/addons_rigging_rigify_metarigs_color-sets-panel.png

The Color Sets panel is used to define the bone color scheme for the final rig. The colors from the list can be associated with bone collections from the relevant panel.

The top two rows of the Color Sets panel are used to define the general behavior of the bone colors. Usually color themes use a gradient of colors to define the different bone states: default, selected and active. When multiple color themes are used in the same rig, identifying which bone is selected or active can be tricky since each color will have its corresponding state.

To override this behavior Rigify unifies the active and selected states using the same color. This is defined by two values:

所选物体 -> 活动物体

When this option is active adding a bone group in the list will always keep the colors consistent. When a color scheme is added from a theme, the color scheme is loaded as is. Click on the Apply button to force the system to unify selected and active colors.

所选物体 -> 活动物体

This two color fields define respectively the Selected and Active colors. By default Rigify reads these colors from the theme defined by the user in the Blender preferences. This way the Selected/Active colors can always have a predictable and consistent behavior in the UI. The colors can be customized by clicking on the relevant color field. To reset them to the Blender current theme value just click on the button with the update icon.

Color Sets can be added and deleted by clicking on the + or - buttons. All color sets can be deleted at once by clicking on the Specials menu.

To add the colors from the predefined Rigify default color scheme (as shown in the image) to the list click the Add Standard button.

要添加具有自己的配色方案的特定主题,请从列表中选择它,然后单击 从主题添加 按钮。

Bone Collections UI#

../../../_images/addons_rigging_rigify_metarigs_bone-collections-panel.png

Bone Collections are used to group related bones together so that they can be hidden or revealed together.

Rigify can take advantage of collections to generate extra features and the user interface for the final rig. A panel named Rig Layers is generated with buttons for hiding the collections, arranged in an intuitive layout.

The Bone Collections UI panel allows configuring the layout of that generated panel, as well as specifying some other settings for bone collections, such as the color set to use.

The top of the panel is occupied by a list that duplicates the main bone collection list, but displays additional properties, such as the color set, whether the collection has a button, or whether it generates a selection set.

Validate Collection References

Some sub-rig types have references to bone collections in their properties. Rigify uses a referencing scheme that is robust to collection renames, but deleting collections or joining armatures can still lead to broken references.

This button runs a scan that validates and normalizes all collection references, reporting any errors, and reducing the chance of breakage being caused by subsequent user actions.

This scan is also performed automatically every time the rig is generated.

Warning

To avoid breakage this operation should be used both immediately before and after joining two metarig armatures. More specifically, it must be always done between the actions of renaming any collections and joining.

色彩设置

Specifies the color set to use for bones in this collection. If a bone belongs to multiple collections, in general the collection located earlier in the list has priority.

Add Selection Set

Specifies whether a selection set should be generated for this collection.

UI Row

If nonzero, specifies which row of the Rig Layers panel should contain the button controlling the visibility of this collection. When zero, no button is generated, and the collection is hidden.

UI Title

This field can be used to override the title used on the UI button to be distinct from the true collection name. Unlike collection names, titles are not required to be unique, so this can be used to reduce clutter by relying on contextual cues within the panel.

UI 布局子面板#

../../../_images/addons_rigging_rigify_metarigs_bone-collections-layout-panel.png

The UI Layout sub-panel provides a WYSIWYG editor for the layout of the generated UI panel (as defined by the UI Row and UI Title settings above).

Each row contains three buttons at the end:

箭头

Moves the active collection button to this row.

加号+

Inserts a new row before the current one.

减号-

Removes the current row and shifts all buttons up.

To the left of the editing control buttons, rows display buttons corresponding to the collections, same as the final UI, except that rather than hiding or unhiding, clicking these buttons selects the collection.

For the active collection the selection button is replaced with an input field for editing the UI Title, and an X button to unassign the collection from the UI.

For any collections not assigned to the UI, their select buttons are displayed in a separate section at the bottom of the sub-panel.

The Root collection will be added and/or assigned a UI button automatically if necessary when the rig is generated. If desired, it is possible to manually assign UI buttons to the internal ORG, DEF and MCH collections.

Tip

Blank rows appear much thinner in the final interface, since they don't have to contain editing buttons, and can be used as logical separators.

动作#

../../../_images/addons_rigging_rigify_metarigs_actions-list-panel.png

The Action constraint allows applying poses defined by an action to bones based on the transformation of another bone. This requires adding the constraint to every bone affected by the action, which is very tedious. For this reason, Rigify includes a system to do this automatically through the Actions panel.

The panel defines a list of actions to be applied to the generated rig bones. Each action must be listed only once.

The list entries show the name of the action, the trigger (a bone or a corrective action driven by two others), and a checkbox that can be used to temporarily disable applying this action to the rig. The icon at the start of the entry is changed from an action icon to a link icon to highlight corrective actions that depend on the active normal one, or normal actions used by the active corrective action.

Note

The Action constraints are added to the bones in such an order as to exactly reproduce the intended deformation, assuming the actions were created (posed and keyframed) in the order listed.

正常动作#

../../../_images/addons_rigging_rigify_metarigs_actions-normal-panel.png

Normal actions are applied based on the transformation of a specific control bone from the generated rig. They have the following properties:

控制骨(Control Bone)

指定驱动动作的骨骼。

对称(Symmetrical)

If the control bone has a suffix that specifies that it belongs to the left or right side, this option can be enabled to automatically apply symmetry.

When enabled, left-side bones keyframed in the action will be controlled by the left-side control, and right-side bones by the right side control. Bones that don't have a a side suffix are assumed to belong to the center of the character. They are rigged with two Action constraints with influence 0.5 that are controlled by each of the control bones.

起始帧 & 结束帧

Specifies the frame range of the action that will be used by the created constraints.

目标空间、变换通道

Specifies the coordinate space and transformation channel of the target bone that should be used.

最小值,最大值

Specifies the range of the transformation channel values that is mapped to the specified action frame range.

Default Frame

Shows the frame within the action that maps to the neutral value (1 for scale and 0 otherwise) of the transformation channel, as computed from the specified range values.

矫正动作#

../../../_images/addons_rigging_rigify_metarigs_actions-corrective-panel.png

Corrective actions are applied based on the progress of two other actions from the list, and are used to improve the pose when they are used together.

起始帧 & 结束帧

Specifies the frame range of the action that will be used by the created constraints.

Trigger A & B

Specifies the two actions that control the correction. The interface rows contain buttons to show the settings for that action, or jump to it in the list.

The progress of the corrective action from the start to the end frame is calculated as the product of the progress values of the two trigger actions. Thus, the start frame is applied when either of the triggers is at the start frame, and the end frame is used when both are at their end frame.

Corrective actions must be below their triggers in the list, which is enforced via an implicit reorder even if violated.

Tip

Corrective actions behave in the most intuitive way when both triggers have the Default Frame equal to Start Frame. To create a corrective action in such case:

  • Create the two trigger actions, add them to the panel and generate the rig.

  • Pose your controls so that both trigger actions are fully activated to the end frame.

  • Pose and keyframe the necessary corrections in the end frame of the new action, while keying the start frame to the neutral values.

  • Add the newly created action to the end of the list in the panel and configure its settings.