mbastl / bastl-laser-tool Goto Github PK
View Code? Open in Web Editor NEWInkscape extension to generate gcode laser cutter comptible with 3D printer firmwares
License: GNU General Public License v3.0
Inkscape extension to generate gcode laser cutter comptible with 3D printer firmwares
License: GNU General Public License v3.0
Errant Issue post. Apologies
Hello, I am testing out the Gcode extension tool for the plotter Sovol SO-1 and ran into some problems. Windows version works flawlessly, but I'm having trouble when running on Inkscape on mac. When I run the Sovol extension to create a Gcode path I get this message:
File "Gcode_generation.py", line 51
def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
^
SyntaxError: invalid syntax
A quick search shows a few other reports of this but I did not find any solutions - any guidance helps!
I am using Inkscape 1.1
thanks
I love this extension and am considering to add two new (optional) features.
Whenever I want to convert a svg into gcode, I first need to run "Path->Object to path" and then "Extensions->Modify Path->Flatten Beziers" (to turn Beziers into Polygons, because my device does not support G3). So my feature proposal would be to add two checkboxes to have this happen automatically (if the user so wishes) before converting.
What do you think about this? Do you want to give me any advice before I set out for this?
As we figured out in #3, this plugin does not work for newer Inkscape versions (afaik >0.92).
File "bastl_laser.py", line 52
def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
^
SyntaxError: invalid syntax
whats the issue?
Hi,
I love this plugin! Unfortunately I can't get any output with sensible scaling. Let me give an example:
In Inkscape 0.91, I draw a rectangle 100x100mm, set "File->Document Properties->Default units->mm" and "File->Document Properties->Resize page to content->0 margin->Resize page to drawing or selection". Then I select the rectangle, "Path->Object to path". Lastly, "Extensions->BASTL Tools...->BASTL Laser Tool", settings:
And I get this gcode:
G90
;--- end of default header
G21
G28
G91
G1 Z59.000
G90
G1 F3000
G1 X5.6272 Y358.7035
G4 P0
M106 S255
M106 S255
G4 P0
G1 F80.000000
G1 X358.7036 Y358.7035
G1 X358.7036 Y5.6272
G1 X5.6272 Y5.6272
G1 X5.6272 Y358.7035
G4 P0
M106 S0
G1 F3000
;--- start of default footer
G1 X0 Y0
M18
where I would expect the rectangle coordinates to be
G1 X100 Y0
G1 X0 Y0
G1 X0 Y100
since one of the first commands is G21
, which means, that everything is in mm.
Is this a bug or am I doing something wrong? I also tried using Repetier Code and changing the steps per mm, or changing everything to inches.
Hi all,
can this tool generate GCODE from grayscale GIF image, or maybe only from bitmap traces?
I'm trying it on Inkscape 0,92: no error emessages, but it only save header and footer G commands.
My reply:
As far as I know, this addon can only do vector graphics.
Also note, that GCODE is in general not very suitable for grayscale stuff.
Especially bitmaps (each pixel would require two lines of gcode, which would mean GB of GCODE and probably really bad results).
For grayscale line figures (i.e. a vector graphic with different laser power levels); What you can do is to use different colors for different power levels, convert each separately into gcode (and select a different power value) and then run them one after the other or combine them.
You might however try this tricky solution, which has its github repo here.
Or give laser GRBL a shot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.