# WKit Blender Plugin: AKL Autofitter

## Summary

**Published**: ??? by [mana vortex](mailto:undefined)\
**Last documented edit**: Feb 12 2024 by [mana vortex](mailto:undefined)

The auto-refitter is a tool developed by [AllKnowingLion](mailto:undefined) that automates the tedious process of refitting meshes for the various body mods. This wiki page will show you how to use it.

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

* If you want to manually refit an item, check [R\&R: Refitting (step by step)](/cyberpunk-2077-modding/modding-guides/items-equipment/recolours-and-refits/r-and-r-refitting-step-by-step.md) or follow the links from there

## How to auto-refit

With a mesh selected, you can find it in the **Mesh Tools** section of the **CP77** panel. Use the dropdown to select a target body, then click the button to apply the changes:

<figure><img src="/files/b2tanUcRB9piXA1eBMjW" alt=""><figcaption></figcaption></figure>

#### It shrinks too far!

OK, that's a bit nasty, because it means you'll have to either **merge** the shapekeys, or create [Garment support from scratch](/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/garment-support-how-does-it-work/garment-support-from-scratch.md) (which is easier than it sounds like).

If you want to merge, select the shapekey that you want to change, and set its value as high as you can without clipping. Then, select the "New Shape from Mix" entry in the dropdown menu (see the screenshot above).

You can now delete your original shapekey and rename the newly-created one (which will be called "Key 2" or something like that) to the original's name.

## The body I want is not supported!

The lattice modifier has to be created from hand and added to the Wolvenkit Blender IO suite.

TODO: This section will eventually document the steps how you can

* add a body mod to your local version of the plugin
* share that edit with everyone else by having it added officially

<details>

<summary>Archived: Modifier cannot be applied to a mesh with shapekeys</summary>

<figure><img src="/files/GbE9zT697uKWVuTUD1bs" alt=""><figcaption></figcaption></figure>

Manual process:

1. Duplicate the mesh (Hotkey: `Shift+D`, `Esc`)
2. [Delete the shapekeys](/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/troubleshooting-your-mesh-edits.md#option-2-guaranteed-to-work-delete-garmentsupport-from-the-mesh) from one of the meshes
3. Delete the modifier from the other mesh
4. After the shapekeys are gone, apply the modifier:

<div align="left"><figure><img src="/files/nZuxGj21GdqalgSvYQNy" alt=""><figcaption></figcaption></figure></div>

5. Select the mesh **without shapekeys** (the one you changed by applying the modifier)
6. Switch to the Data tab and create a modifyer by hitting the + button
7. Name your new shapekey `Basis`. This is how it's supposed to look when no shapekeys are active.
8. Select the mesh **with shapekeys** (the one with the original shape)
9. Switch to the Data tab, select the second shapekey in the list, and transfer it:

<div align="left"><figure><img src="/files/Qfg0aqBBfPGbE9iG8w0W" alt=""><figcaption></figcaption></figure></div>

10. Repeat the process with all other shapekeys
11. You can now delete the original mesh.

</details>


---

# 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/modding-tools/wolvenkit-blender-io-suite/wkit-blender-plugin-akl-autofitter.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.
