Bending with Lattice modifier

I'm trying to bend a simple snake-like model (see the figures) using a curve in order to tune the shape for my needs. I first tried to use the curve modifier, but since I'm already given a mesh with deformed axis it didn't work as expected. I next thought of using the lattice modifier, deformed itself by the curve I set, i.e. I first bend the lattice to match the form of my mesh (using a Bezier curve) and then apply it as a modifier to my mesh.

Unfortunately, it didn't work either: the lattice twists and squeezes the shape the way I don't want (see the figure).

What am I doing wrong? How to make the mesh deformation follow the curve I specify?

• Probably you haven't applied transforms on some of your objects. With curve specified lattice will follow its deformation, and the cube will follow the lattice. Commented Sep 8, 2015 at 18:33
• Thanks @Mr Zak for suggestion, but in my case, the lattice follows the curve, though the mesh doesn't. Which transforms did you mean? The gif looks encouraging!
– neek
Commented Sep 8, 2015 at 19:26
• The problem is already visible when I'm trying to "align" my mesh: I need to keep it's volume, but however I move it, it gets squeezed in the best case
– neek
Commented Sep 8, 2015 at 19:39
• I meant applying scaling and rotation made in Object mode. It can influnce on the modifiers' result, rather drastically sometimes. Still, in your case the mesh does follow the lattice as I saw, it simply gets transformed not in desired way. "Aligning" mesh may be tricky, but you can start with grabbing yours by Z axis (or start tweaking objects' origins etc). Commented Sep 8, 2015 at 19:49
• In the reference they mention that the lattice should fit around the object, but nothing is mentioned about the origin. Should the origin of the mesh and the lattice match? I tried moving the mesh around, but I still can't get an expected deformation.
– neek
Commented Sep 8, 2015 at 20:38