Unicorn G-Code Extension for Inkscape
by schmarty, published
mifga did an awesome tutorial that made it possible to understand the steps needed to work all of these tools, but it was obvious that something better was needed.
So, I made a mashup of scribbles.py and the Egg-Bot Driver for Inkscape to bring you the inkscape-unicorn extension for Inkscape!
Once installed, this extension allows you to save files in "MakerBot Unicorn G-Code (*.gcode)" format!
Learn more, download, and contribute at the GitHub page for this project:
If you're desperate, you can also download the zip file attached to this thing, but it is guaranteed to be out of date. Please get the latest version from GitHub. :)
Thanks to langfordw for the original Unicorn Logo used as an example on this Thing.
I'm updating and adding features to this script as my first days for the February Thing-A-Day. Updates below:
* Day 1, Release: thing-a-day.com/thing-a-day-2011-1-unicorn-pen-plotter-extens
* Day 2, Registration and Homing: thing-a-day.com/new-features-for-inkscape-unicorn-pen-registr
* Day 3, Copies and Continuous Plotting: thing-a-day.com/thing-a-day-2011-3-copies-and-continuous-plot
 Unicorn - store.makerbot.com/makerbot-unicorn-pen-plotter-kit.html
 mifga's Unicorn Tutorial - wiki.makerbot.com/unicorn-tutorial-01
 scribbles.py - github.com/makerbot/Makerbot/tree/master/Unicorn/Scribbles%20Scripts
 Egg-Bot Driver for Inkscape - code.google.com/p/eggbotcode/
 Unicorn Logo by langfordw thingiverse.com/thing:4197
Recent Commentsview all
I haven't used this in a bit, but I have seen similar errors in the past.
The plugin is pretty sensitive to weird paths. Open up the XML editor in Inkscape (Ctrl-Shift-x) and check your SVG's XML to look for empty paths. These show up as <svg:path> elements with a missing or empty "d" attribute. If you find any, delete them.
This plugin was written for the Cupcake's cartesian coordinates and platform size. This probably won't map super well onto a sphere, which work on rotational coordinates and has different extents for each motor.
If you're driving it with an EiBotBoard, you would probably have better luck using the EggBot driver/plugin for Inkscape, instead. :)
Anyone use this lately? I keep getting this error trying to save an svg to use on my new spherebot / eggbot:
Traceback (most recent call last):
File "unicorn.py", line 108, in <module>
File "/Applications/Inkscape.app/Contents/Resources/extensions/inkex.py", line 215, in affect
File "unicorn.py", line 104, in effect
File "/Applications/Inkscape.app/Contents/Resources/extensions/unicorn/entities.py", line 77, in get_gcode
for points in self.segments:
AttributeError: SvgPath instance has no attribute 'segments'</module>
Liked Byview all
Give a Shout Out
Copy the contents of src/ to your Inkscape extensions/ folder.
Typical locations include:
* OS X - /Applications/Inkscape.app/Contents/Resources/extensions
* Linux - /usr/share/inkscape/extensions
* Windows - C:Program FilesInkscapeshareextensions
* Size and locate your image appropriately:
** The CupCake CNC build platform size is 100mm x 100mm.
** Setting units to mm in Inkscape makes it easy to size your drawing.
** The extension will automatically attempt to center everything.
* Convert all text to paths:
** Select all text objects.
** Choose Path | Object to Path.
* Save as G-Code:
** File | Save a Copy.
** Select MakerBot Unicorn G-Code (*.gcode).
** Save your file.
** For OS X, Pleasant3D is great for this.
** For other operating systems... I don't know!
** Open your .gcode file in ReplicatorG
** Set up your Unicorn and pen.
** Center your build platform.
** Click the Build button!
You must be logged in to post a comment.