The attached patch does the following:
- Removes broken/unused code that would attempt to delete already added easy-lattices
- Allows the creation of multiple easy-lattices in the same scene AND for the same object (incl. support for multiple vertex groups)
- Add scale factor so the user can create lattices smaller/larger than the target mesh
- Add Catmull-Rom option
- Code style (variable naming, UI naming, return values, etc.)
The code that attempted to delete lattices added by the add-on did not really work, especially in the cases where the user has changed the name of the modifier etc. Additionally, all that code prevented the usage of the add-on more than once in a given scene and more than once on a given object. These changes addresses those problems and cleans up along the way.
It also adds another property, the scale factor, allowing the user to create a lattice that is smaller or larger than the target object.