Using Inkscape with the Laser Cutter: Difference between revisions

From Knox Makers Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This page should be a tutorial on how to use our Inkscape Plugin, with screen shots, directions, caveats, etc.


Link back to [[Laser Cutter]].
The preferred method for creating files for the [[Laser Cutter]] is Inkscape  It can be downloaded here: [https://inkscape.org/en/download Inkscape].
In addition, Knox Makers has a bundle of Inkscape extensions for use with our machine.  They can be downloaded here: [https://github.com/KnoxMakers/KM-Laser KM-LASER].


==Inkscape Basics==
==Inkscape Basics==
* The first thing you will need to do is create/download a design in Inkscape.   
This tutorial shows how to make simple shape in Inkscape.  It is the same tutorial that is used in the [[Laser Operation Class]]
** [https://www.youtube.com/results?search_query=inkscape+tutorials Youtube Inkscape Tutorials]
====Creating a shape====
# Open a new file in Inkscape.
# Go to Edit>Preferences and select Geometric Bounding Box
# Create a shape (square, circle, or star button)
# Choose select tool (arrow button)
# Select your shape
# Set X and Y positions to 0
# Set width and height (click padlock button to keep image proportional)
# Create a text object (A button), select it, and use the X and Y positions to center it in your shape


====Setting the color of your shape to determine the level of engraving ====
# On the bottom, to the right of the color bar is a small arrow ( < ).  Click this and select '''KM-Laser by Color'''
:: When using the By Color option the following stroke colors translate to the labeled actions:


* Once you have created your design you'll want to make sure all your objects are paths so all your extensions will work with them.  You can do CTRL+A to select everything then use the method in the video.
{| cellspacing="0" cellpadding="5" border="1"
<youtube>dxTmhtvMNoo</youtube>
!Color
!Action
|-
|#000000
|Cut
|-
|#ff0000
|Cut
|-
|#0000ff
|Engrave (Heavy)
|-
|#00ffff
|Engrave (Light)
|}


:: Clicking palate color will select object's fill color.  Shift+clicking palette will set the object's stroke color.
# Set your shape to black stroke with no fill.
# Set your text to light blue stroke with no fill.


* You'll also need to either move your design to X = 0, Y = 0 or resize the document to match your design (which essentially moves it to X = 0, Y = 0).  This way you can more accurately predict where the laser will start cutting.
<youtube>Zv7N2yBfSFA</youtube>
<youtube>gw6DDrSgjog</youtube>


*From time to time you'll end up with designs in the (root) layer instead of an actual named layer.  You'll need to fix this before turning your design to gcode.  You can just cut and paste it into an actual layer as the video shows.  Once there is nothing in the (root) it will go away.
<youtube>RypRpm81QiY</youtube>
* Setting the stroke color of the paths you want to cut/engrave will be important when you want different laser settings in one design (both engrave and cut for example).
<youtube>o9fBSIwVvGs</youtube>
* Sizing your designs to the desired size will be important.  Here is a video on how to do that while keeping everything aligned and keeping the aspect ratio.
<youtube>m8iAdZxmLXI</youtube>
==KMLaser Bundle==
We've put together a bundle of Inkscape extensions that you might find useful.  You can download the bundle at [https://github.com/KnoxMakers/KM-Laser our github].





Revision as of 15:40, 18 April 2017

The preferred method for creating files for the Laser Cutter is Inkscape It can be downloaded here: Inkscape. In addition, Knox Makers has a bundle of Inkscape extensions for use with our machine. They can be downloaded here: KM-LASER.

Inkscape Basics

This tutorial shows how to make simple shape in Inkscape. It is the same tutorial that is used in the Laser Operation Class

Creating a shape

  1. Open a new file in Inkscape.
  2. Go to Edit>Preferences and select Geometric Bounding Box
  3. Create a shape (square, circle, or star button)
  4. Choose select tool (arrow button)
  5. Select your shape
  6. Set X and Y positions to 0
  7. Set width and height (click padlock button to keep image proportional)
  8. Create a text object (A button), select it, and use the X and Y positions to center it in your shape

Setting the color of your shape to determine the level of engraving

  1. On the bottom, to the right of the color bar is a small arrow ( < ). Click this and select KM-Laser by Color
When using the By Color option the following stroke colors translate to the labeled actions:
Color Action
#000000 Cut
#ff0000 Cut
#0000ff Engrave (Heavy)
#00ffff Engrave (Light)
Clicking palate color will select object's fill color. Shift+clicking palette will set the object's stroke color.
  1. Set your shape to black stroke with no fill.
  2. Set your text to light blue stroke with no fill.



Path to Gcode

This extension is the work horse for the bundle. It takes the paths from your design and turns them into gcode required to run our laser cutter. This extension is based on part of Gcodetools but has been heavily altered for our purposes.


Here's a video showing how to set up the file options the first time you use Path to Gcode:

<youtube>2WTO7oB30-4</youtube>


This extension lets you use different stroke colors to represent different laser powers (cut, engrave(heavy), engrave(light)). Here's a video showing the use of the By Color presets option:

<youtube>XYkYeYYVZeM</youtube>


When using the By Color option the following stroke colors translate to the labeled actions:

Color Action
#000000 Cut
#ff0000 Cut
#0000ff Engrave (Heavy)
#00ffff Engrave (Light)

NOTICE: When setting the hex values in Inkscape, the value is actually RGBA which has an alpha (opacity) value at the end so you will need to add an ff to the end of the values above.

Hatch Fill

This extension allows you to fill in any closed figure in your design with lines or crossed lines. This is useful when you want to engrave an entire area within your design. This extension is based on part of the eggbot extensions.


Here's a quick video on how to use it:

<youtube>qdIjZXzT-QE</youtube>


Hershey Text

Hershey Text produces single-stroke text that is appropriate for cnc engraving or plotters. This extension is based on part of the eggbot extensions.


Here is a quick video on the difference between it and Inkscape fonts:

<youtube>sHNXW9Z_sps</youtube>


Tabbed Box Maker

This extension creates the paths necessary to cut out tabbed boxes. This extension is based of the extension you can find here.


Here's a quick video on how to use it:

<youtube>3bO78aQghv8</youtube>