This script is greatly inspired by Komojo's work from the following thread : https://blenderartists.org/t/playstation-1-jittery-texture-effect-not-for-a-game/1167818 ...
Basically just select objects/vertices and run>SimpleLattice. This will add a lattice object, creates modifiers and vertex groups. You can choose the alignment of the lattice, the number of control ...