By request, this is the famous, fabulous lampshade script. We've used it to produce lampshades, bracelets, faux ABS LPs, small storage cups, and in any situation where a hollow cylindrical or conical form optionally with a solid bottom is called for.
This script takes an image file as input and produces a gcode file that will create a conical form of the specified parameters, with the image embossed on the surface. It's recommended that you use the -c flag, which will cause the form to be built as a single, continuous spiral.
You may need to edit the script or its output to add your own pre- and post- print gcodes. Be sure to cast an eye over the output before you print!
Printing these forms in clear PLA is particularly pleasing!
The code is maintained in git; the latest version is always available at:
Here's the usage info. Go crazy!
Usage: lampshade.py [options] image.png
-h, --help show this help message and exit
-r RADIUS, --radius=RADIUS
set the top and bottom radius of a right cylinder
-l LAYERHEIGHT, --layerheight=LAYERHEIGHT
set the height of a single layer, in mm
--rtop=RTOP set the top radius of a conical shade
--rbot=RBOT set the bottom radius of a conical shade
-H HEIGHT, --height=HEIGHT
set the height of the shade
-s SPEEDFACTOR, --speed-factor=SPEEDFACTOR
the factor to multiply the feedrate by for a
completely dark pixel
-c, --continuous use continuous Z movement
-a, --ABP use automated build platform
number of layers in the floor
-f FEEDRATE, --feedrate=FEEDRATE
set the base feedrate