Researchers have developed a new technique to control self-folding three-dimensional (3D) structures. Specifically, the researchers use templates to constrain deformation in certain selected areas on a two-dimensional structure, which in turn dictates the resulting 3D structure of the material.