Generate wood patterns with temperature changes
by MoonCactus, published
**Update**: this script is now available as a simpler webservice here: tecrd.com/page/liens/stl_wood&lang=fr (with no support for huge files though).
The owl is Cushwa's popular design at thingiverse.com/thing:18218
It was printed here with LAYWOO-D3 wood filament thingiverse.com/thing:30552
It works also somehow with some other filament (just tweak the temperature), with a less drastic effect.
This is a piece of source code of mine, originally made for Skeinforge within Cura 12.08, now part of the official releases, and is now also an independent standalone Python script.
Recent Commentsview all
Rather than attempt to modify the exported X3G file, export gcode from MakerWare instead. I can't be sure that this script will work correctly, but it's worth trying.
Once you have exported and modified the gcode, you can use MakerWare to "Print From File" on the gcode.
You may have a look at python howto. Eg. on windows, here is a good starting point: http://docs.python.org/2/faq/w...
It is really easy once you open a console (aka terminal), move to the right place and put the files in the proper place. On linux/mac I guess it is even much easier because most of the requirements are met by default:
If you put both the script and the gcode file at the same place, then move to this place in the terminal, just rune this:
python wood_standalone.py -f yourfile.gcode
And it should work. Then you can play with other options such as min/max temp. Just run again like this to get some information:
I do not know and I will even not try. Now my license allows anyone to adapt it to a format that was made to lock you on a much advertized closed-source printer... You'll get more detailed explanations on my blog, I hope you will understand: http://www.tridimake.com/2013/...
Liked Byview all
Give a Shout Out
Sun Jul 7 21:43:12 UTC 2013
- web service hosted on tecrd.com/page/liens/stl_wood&lang=fr
Tue Feb 12 08:35:53 UTC 2013
- more readable ASCII art plot
- can be re-run on itself, it will no more duplicate the commands and graph
- fixed a bug in the numeric arguments (thanks to Fused3D)
This script was an official plugin in Cura (version 12.11+). Check it here: wiki.ultimaker.com/CuraPlugin:_Wood Thanks to Daid for porting my old Skeinforge/Cura version to the new and much cleaner plugin system. The tgz archive could be useful only to Skeinforge users or old-timers of Cura. Better ignore it ;)
After multiple requests and at last, I finally converted it to a standalone Python script that no more needs Cura nor Skeinforge. I documented the process here by the way: betterprinter.blogspot.fr/2013/02/how-tun-run-python-cura-plugin-without.html
You'll need Python on your computer. Then run the wood_standalone.py script as follows:
python wood_standalone.py --min minTemp --max maxTemp --grain grainSize --file gcodeFile
or in brief mode:
python wood_standalone.py -i minTemp -a maxTemp -g grainSize -f gcodeFile
This will "patch" your gcode file in place (it will be modified), so keep a backup if you need one.
- minTemp is the minimum temperature to use (the code ensures that it is reached)
- maxTemp is the maximum temperature to use (the code ensures that it is reached)
- grainSize lets you tweak the "average thickness" of the layers
The gcodeFile is the only compulsory parameter.
Initial temperature settings will be overridden by the varying pattern that is generated by this script (a variant of recursive Perlin noise). You can run it multiple times to test different values and generated temperature curve until you like it.
Default values are minTemp=190, maxTemp=240 and grainSize=3. Higher themperature give darker bands (due to the wood being burnt). Do not let the wood stay too long in your nozzle else you will most probably clog it with carbon!
Finally, to run it on windows you may want to check the FAQ here: docs.python.org/2/faq/windows.html
You must be logged in to post a comment.