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: script, lattice, geometry, add, object, mel, and maya
Maxya (Maya MEL Script Editor) for Maya 5.2.0 (maya plugin)
asNode -- A Node based auto rigging in Maya Python Scripting for Maya 2.0.0 (maya script)
The Alchemy Tools for Maya for Maya 1.0.0 (maya script)
Organic Object 3D Model
Animated Olympic Fire 2014 (Maya) 3D Model
Elephant 3d textured model 3ds max and maya scene files 3D Model
Commandbox for Maya (code collector-shelf alternative) for Maya 1.0.9 (maya script)
Automatic Rigging System written in MEL for Maya 0.2.8 (maya script)
"Rapid Rig: Poser" for Maya for Maya 2.0.9 (maya script)