This repository contains a Blender Python script that creates a mechanical piston assembly similar to the aged animatronic mechanisms found in 1980s-era theme parks. The script builds geometry, applies procedural rusty materials, sets up dim lighting and a basic camera, then animates the piston with jerky servo-like motion.
piston_anim.py– Python script for Blender. Run this inside Blender's scripting workspace or from the command line withblender --python piston_anim.pyto generate the scene and animation.wax_candle.py– Creates a melted wax candle with materials and a wick. Run withblender --python wax_candle.py.
- Open Blender (version 3.x or newer recommended).
- Load the desired script (
piston_anim.pyorwax_candle.py) in the text editor and press Run Script. - The scene objects and animation will be created automatically.
- Optionally supply your own servo audio by editing the commented section near the bottom of
piston_anim.py. - Use Cycles to render the animation frames.
The lighting simulates a dim backstage bulb and the animation includes random jitter to imitate worn mechanical parts. Adjust the materials or keyframes as desired to refine the look.