API

Getting Lattice points coordinates

The Lattice modifier is used to simplify the process of deforming high-poly meshes using simple wireframe objects with a few points – lattice. The lattice is superimposed on the mesh and associated with it, after which, by manipulating its point, we can deform the mesh itself. We can access the coordinates of the lattice points with the Blender Python API through its “points” property.

Filtering values ​​available for selection through the UILayout.prop()

When creating custom properties, the values ​​of which the user can choose from a list, it is often necessary to filter the list of values ​​offered for selection. We can use the poll function to shorten the proposed list of values by removing unwanted elements.