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:

12 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!

Would it be possible to make the bounding box calculation ignore hidden modifiers? For example if I use Mirror I might want to conform the lattice to the original object before Mirror is applied depending on whether or not Mirror is visible when I create the lattice.

Hi,
try to replace op_LatticeCreate.py
in the c:\Users\User_Name\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\SimpleLattice-master\
with this test file (save the old just in case):

op_LatticeCreate.py (18.2 KB)

It now when you choose “On Top” - creates lattice at the top of stack and ignores Mirrors modifiers.
I think this is what you mean.

OR ignors all modifiers in stuck if “On Top” chosen:
op_LatticeCreate.py (18.2 KB)

1 Like

Hi,
try new 0.1.3 version.

Update 0.1.3

  1. Added option “Ignore Modifiers”. For cases where you need to modify only original object. update 0 1 3

  2. Added Addon preference for “Ignore Modifiers”. update 0 1 3 prefs

3 Likes

Thank for the lightning fast response! The new version does exactly what I wanted. I hope this will benefit others as well!

1 Like

Update 0.1.6

  1. More accurate bbox calculation for MESH objects if object have custom rotation

  2. New feature to tweak angles for created lattice object
    Tweak_Angles_0_1_6

Also look at other minor 0.1.4 and 0.1.5 updates. Sorry to not lighting it up.

3 Likes