Enabling / Disabling Lattices
One initial issue that you must consider if you wish to export
lattices is that you should disable the effect of the lattice
deformers before reading the geometry data. The reason is to ensure
that we export the un-deformed surfaces rather than after a lattice
deformation has been applied.
All lattice deformers in maya have an envelope
(en) attribute. This attribute can be set to 0 to disable
the actual effect. Therefore, before we export, we can disable
all of the lattices, and then re-enable them after exporting the
data.
|