Scientists have harnessed magnetic fields to control the molecular structure of liquid crystal elastomers and create microscopic three-dimensional polymer shapes that can be programmed to move in any direction in three-dimensional space in response to multiple types of stimuli, including light and heat. The applications of this technology include message encryption, responsive solar panels, and smart buildings.