Firstly you need to create your lattice -
- Make sure you are on the animation menu set then goto – Create Deformers > Lattice and open up the dialog box.
- Set the number of divisions of the lattice that you require.
- Set the behaviour of the lattice on points outside of the lattice from the drop-down box.
Next position your object where you want it in relation to the lattice.
Select the lattice, then the objects.
Open up the script editor
Type in the following -
string $selSet = `ls -sl`;
string $lattice = $selSet;
string $object = $selSet;
lattice -e -g $object $lattice;
Highlight the MEL code and hit enter (the one beside the keypad, not the main one).
[This can be repeated for as many objects as you wish]
Author: Stephen Kershaw
Submitted: 2010-11-16 18:03:14 UTC
Tags: maya, mel, object, add, geometry, lattice, and script
Maxya (Maya MEL Script Editor) for Maya 5.2.0 (maya plugin)
Commandbox for Maya (code collector-shelf alternative) 1.0.9 for Maya (maya script)
Animated Olympic Fire 2014 (Maya) 3D Model
Elephant 3d textured model 3ds max and maya scene files 3D Model
Automatic Rigging System written in MEL 0.2.8 for Maya (maya script)
"Rapid Rig: Poser" for Maya for Maya 2.0.9 (maya script)
Gradient Data Manager script for Maya for Maya 1.1.1 (maya script)
Maya sdd_UIDesigner stand-alone 2.1.0 for Maya (maya script)
Bob rig for Maya 1.0.0 for Maya