create_lattice
Wrap an object in a lattice cage to deform it by moving cage points, enabling bend, taper, or bulge without editing vertices.
Instructions
Wrap an object in a lattice cage and deform it through the cage.
The lattice is fitted to the object's bounding box and a Lattice modifier is added. Then bend, taper or bulge the whole shape with move_lattice_points instead of editing vertices.
Args: object_name: Object to deform (mesh, curve, text...). resolution: Points along [u, v, w] (the object's X, Y, Z), 2 to 64 each. More points give more local control. Default [2, 2, 2]. interpolation: KEY_LINEAR (default) follows the points exactly: scale them to 0.5 and the shape halves. KEY_BSPLINE is smoother but only approximates the points (the same move gives about 0.67). KEY_CATMULL_ROM and KEY_CARDINAL sit between. lattice_name: Name for the lattice object; defaults to " Lattice".
Returns: Dict with the lattice name, its point count and the modifier name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolution | No | ||
| object_name | Yes | ||
| lattice_name | No | ||
| interpolation | No | KEY_LINEAR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||