SimpleLattice - deform with pleasure

Quickly adds Lattice to selected objects and aligns it by the chosen orientation.

SimpleLattice

How to use:

  1. RMB on selected objects or elements - Create Lattice.
  2. RMB on lattice object - Apply/Remove or tweak strength.

Examples:

  1. Object mode - multiple objects

  2. Edit mode - multiple objects

  3. Single object editing

Special thanks to:

10 Likes

This is fantastic! Any chance you could automatically align the lattice to the selection in edit mode?
Right now I can snap the cursor and use that, but it would save me some steps.

Thanks for developing this!

Hi,
how it should behave in edit mode, what orientation it should choose with selection in Edit mode? Selection Normal?

1 Like

An averaged normal , yeah. Or optionally only the normal of the active vert/edge/face!

Hi,
try this
SimpleLattice-master_2021.08.13.zip (22.9 KB)
I added Normal orientation by default, it uses selection normal in Edit mode to align Lattice,
for Object mode it’s same as Local

3 Likes

Perfect! Very nice default to have.

Updated to 0.1.1:

  1. Added new orientation - Normal. It simply create orientation from selection and align Lattice.

  2. Added possibility to change Lattice resolution in RMB menu, when Lattice is selected. Restricted values from 2 to 20 (for now you can change in __init__.py for any you need in class RESOLUTIONUVW_PG_main(PropertyGroup): )

8 Likes

I found a little bug. tested in fresh latest 293.
if a mesh is under " Scene Collection" and use create lattice, it has following error:

Python: Traceback (most recent call last):
  File "C:\Users\I\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SimpleLattice-master\op_LatticeCreate.py", line 160, in execute
    lattice = self.createLattice(context)
  File "C:\Users\I\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SimpleLattice-master\op_LatticeCreate.py", line 276, in createLattice
    bpy.data.collections[layerColl.name].objects.link(lattice_obj)
KeyError: 'bpy_prop_collection[key]: key "Master Collection" not found'

location: <unknown location>:-1

Hi.
Thanks!
Fixed.
Download updated version on github.

1 Like

Update 0.1.2:

  1. Little UI tweaks.
  2. Added Addon preferences - where you can define default values for adding Lattice.

SimpleLattice_0.1.2

Before creating SimpleLattice, define your defaults if needed,
otherwise, they will take effect after restarting the Blender.

6 Likes

You’ve read my mind! I actually set this up manually with Pie Menu Editor, nice to have it included by default in this addon.

By far the best lattice script Ive seen so far, and I worked with some over the years. :slight_smile:

Thanks!