Giter VIP home page Giter VIP logo

inkscape-lasertools-plugin's Introduction

Inkscape-Lasertools-Plugin

A simple plugin to convert Inkscape vector graphics to Gcode for DIY laser engravers

Version 0.91

Tested with Inkscape 0.92 This project is based on the Gcodetools extension.

This Version is work in progress. Please feel free to test it, but don't rely on it in production.


How to use Lasertools

Watch this Video for a quick introduction:

Detailed Youtube Video


step by step instructions:

If you work from a picture (.png, .jpeg ...):

  1. import picture to Inkscape
  2. set the size of the page to the size you want your engraving to be [under File/Document Properties/Page]
  3. IMPORTANT: set Display Units and Units to mm and set Scale x to 1 [under File/Document Properties/Page]
  4. convert your picture to vector graphics [Path/Trace Bitmap]
  5. remove the bitmap/png/jpeg... so that only the path is left
  6. open Lasertools and set your parameters [under Extensions/Lasertools]
  7. click Apply
  8. IMPORTANT: the calculation takes some time, so be patient
  9. finished

If you work from a svg file:

  1. ungroup all objects
  2. convert all objects to paths (especially text) using [Path/Object to Path] or [Path/Stroke to Path]
  3. set the size of the page to the size you want your engraving to be [under File/Document Properties/Page]
  4. IMPORTANT: set Display Units and Units to mm and set Scale x to 1 [under File/Document Properties/Page]
  5. convert your picture to vector graphics [Path/Trace Bitmap]
  6. open Lasertools and set your parameters [under Extensions/Lasertools]
  7. click Apply
  8. IMPORTANT: the calculation takes some time, so be patient
  9. finished

Hint: If you end up with very complex paths (paths with thousands of points) you can simplify the path before exporting it to Gcode. Use the function Path/Simplify. The amount of simplification can be set under Edit/Preferences/Behavior. A value of 0,0002 should work for most applications.

As of now, the first method seems to be more reliable.

Make sure the specified directory exists. Calculating the Gcode can take quite some time on larger engravings. I would advice to test with a small engraving.


Installation

Copy the .py and .inx file to the Inkscape Extentions folder.

under linux: /usr/share/inkscape/extensions under windows C:\Program Files\Inkscape\share\extensions

Dependencies

  • python2-lxml
  • python2-numpy

Warning

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY Without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

License text: https://github.com/nevir/readable-licenses/blob/master/markdown/GPLv2-LICENSE.md


Open Bugs

  • Fix infill glitches which appear on some paths
    • Workaround: make Path/Difference or Path Union operation which does not change the shape. That will fix the glitch.
    • Workaround: export as png, reimport and convert to paths again
  • Scaling factor needs to be Set to 1
  • Displayed units needs to be set to mm
  • Multithreading currently disabled on Windows systems

Features to be implemented / tested

  • Automatically convert text to paths
  • Make a help section in the UI with the step by step instructions
  • Performance improvements / multithreading

Help appreciated

If you find bugs or want to implement a feature, please feel free to commit a change to the project.

inkscape-lasertools-plugin's People

Contributors

chriswag91 avatar pppalain avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.