Fit Lattice

by Mark Kingsnorth in Scripts and Addons


(Blender 2.8 users: use the file for the instructions below)


  1. Go to File -> User Preferences.
  2. Select the Add-ons tab at the top.
  3. Select the Install Add-on from File... button along the bottom.
  4. A file dialogue will pop up. Navigate to the file location where you downloaded the .zip file and double click it.
  5. Search for the add-on by typing "Fit Lattice" in the search box if it does not already appear. Make sure the checkbox next to the Add-on (Mesh: Fit Lattice) is ticked.
  6. Click the Save User Settings button to make sure the add-on is installed next time you open Blender.
  7. Close the User Preferences dialog box and enjoy!


This is an optional step if you wish to load some pre-configured presets.

Depending on your operating system, navigate to one of the following directories.

  • If you are on Linux, navigate to ~/.config/blender
  • On a Mac: /Users/<username>/Library/Application Support/Blender/
  • If you are on Windows, navigate to: %APPDATA%\Roaming\Blender Foundation\Blender

Once there you should see folder(s) corresponding to the version(s) you currently have, for instance the 2.79 folder.  Within that folder, go to scripts/presets/operator/ and create the folder mesh.fit_lattice. Unzip the contents of the .zip file to that location.

You should then be able to access a set of pre-configured presets when using the operator.  

IMPORTANT: When moving Blender versions, make sure you have backed up this directory as it contains any presets you have saved.

How it works

The add-on works out the size and position of the bounding box(es) of the object(s) you select and then creates a Blender lattice object that fits to that size.  It then adds a 'Lattice Modifier' to the original object (or objects), and then automatically links that modifier to the lattice object.


  1. Select the object or objects (by pressing shift + right-click) you want to fit the lattice around.
  2. Press Alt+L or go to Object -> Fit Lattice. You can also access the tool by pressing space and then starting to type Fit Lattice.
  3. The lattice object should appear around the object(s), ready for editing by pressing the tab key.

When the lattice object is created, you can also configure the lattice object segments at the time through the toolbar, described below.


On the toolbar menu (accessed by pressing the 'T' key), you can also configure the lattice object being created:

Operator Presets

You can load, edit or save a selection of pre-prepared configurations.  Press the '+' and '-' keys to add or delete entries.

The presets contained in the file contain the following presets, although you can add more:

  • 2x2x2: a lattice split into 2x2x2 segments.
  • 3x3x3: a lattice split into 3x3x3 segments.
  • 4x4x4: a lattice split into 3x3x3 segments.

U, V, W:

These settings control the the subdivisions of the lattice in the x, y and z direction.

You can also change the parameters of the Lattice or the Lattice modifier after it has been created.  See the Blender documentation for Lattices and the Blender Lattice Modifier.

Any Questions?

Do not hesitate to get in touch with me if you have a question, a new feature suggestion, or an image you'd like to share.  You can contact me through this website, my blog, or by my Twitter page.