# Meshes and Armatures: Rigging

## Summary

This page will give you a short explanation on why 3d objects are moving.

### Wait, this is not what I want!

* To learn what a rig even is, check [Armatures: .rig files](/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/armatures-.rig-files.md)
* Maybe you want the [Weight Painting for Gonks](/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/meshes-and-armatures-rigging/weight-painting-for-gonks.md) guide?
* For a documentation of the import/export options in Wolvenkit, check [here](https://wiki.redmodding.org/wolvenkit/wolvenkit-app/editor/import-export/models#choosing-rigs-correctly).
* Guides on how to transfer weights between rigs: [blender plugin](/cyberpunk-2077-modding/for-mod-creators-theory/modding-tools/wolvenkit-blender-io-suite.md#transfer-vertex-weights), [youtube video](https://www.youtube.com/watch?v=bR_Vke__voU), [wiki page](/cyberpunk-2077-modding/modding-guides/npcs/custom-facial-piercings-prc-framework.md#weight-painting)

The connection between a mesh and a rig is made via **vertex groups**. Any number of vertices can be assigned to a group, which is then matched to a rig's bone via **name**.

<figure><img src="/files/yOkQKNnqdbiVqLArWoVI" alt=""><figcaption><p>These vertices move with the bone "Spine3"</p></figcaption></figure>

How much every bone influences the vertices is determined by vertex weight, which can be altered in Blender's Weight Paint perspective:

<figure><img src="/files/xuClCU0naG09JYXGsXzy" alt=""><figcaption><p>Weight painting</p></figcaption></figure>

Vertex weights are assigned for every vertex group, and each vertex will move on the basis of the sum of all its weights.

{% hint style="success" %}
To preview the deform in Blender, you can select the mesh's parent armature and enter the "Pose Mode". There, you can either apply an [exported animation](https://wiki.redmodding.org/wolvenkit/guides/modding-community/exporting-to-blender/exporting-rigs-and-anims), or select individual bones and rotate/move them. The **Armature modifier** will morph your mesh according to the pose, letting you spot errors much faster than trying to debug them in-game.
{% endhint %}

{% hint style="info" %}
You can see a video of the process [here](/cyberpunk-2077-modding/modding-guides/npcs.md) (courtesy of Vesna).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/meshes-and-armatures-rigging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
