Inkscape Lasertools Tutorial
Вставка
- Опубліковано 5 вер 2024
- ============== Description ==============
In this video I show how to convert raster graphics to Gcode for DIY Laser engravers using the Lasertools extension for Inkscape.
Get the extension here:
github.com/Chr...
============= Further Questions ==============
Feel free to leave a comment.
I've just bought for myself a cheap chinese 450mW laser to use with my Creality Ender 5 Pro. My PC runs linux and so I installed your extension as suggested. Works really well, exactly as expected, thank you very much.
Thank you so much for this tool Christoph. It's the only tool I found that give decent results on the ender 3.
hi! why did i get this "Directory does not exist! Please specify existing directory at options tab!" ? how can i solve it?
Thanks, this is the only tool that works correctly in my ender 3 pro.
Great Job
hey there Agus, did you get your laser to work well with your ender 3? im using the extention on a ender3 with a 2.5w diode laser. the results are not bad at all. just wanted to know what settings you use wrt speed and pwm frequency. im trying to engrave on wood.
I have downloaded the files but I do not get the same output drop down that you got in your video with the preference tab and be able to select to be able to fill? Different extension drop down. Is the plug in you used in the video not available? Any help would be appreciated.looking to be able to select fill like you did in the video.
Thank you - I've been looking for help with those Inkscape GCODE Tools as far as improving what I can accomplish with the laser. Very nice!
Thank you for the tool and the video, been looking for something for a few days to try with my Ender 3 laser engraver. Will test this first thing tomorrow morning to see if it really out perform the other options that I have right now. Nice job.
hey there Aravind, did you get your laser to work well with your ender 3? im using the extention on a ender3 with a 2.5w diode laser. the results are not bead at all. just wanted to know what settings you use wrt speed and pwm frequency
Awesome video and plug in, did exactly what I was looking for.
Good job man, I will give it a try.
Thank you for a very comprehensive and clear video. Good luck with the project.
Thanks so much chris! Works beautifully on a little 3018cnc
This looks pretty good to run the laser on my DIY CNC.
Hope it's still available...
Subscribed 😉👌🏻
I am not sure that I can understand this generated Gcode. Made 10x10 mm square and got strange Gcode:
;Inkscape Lasertools G-code
G90 ;Absolute programming
G21 ;Programming in millimeters (mm)
M03 S1 ;Activate laser and set power to 0 (CUSTOM)
(spindle on, CW rotation, enable laser but not fire)
; START perimeter strategy
G01 F700.0
(move in a straight line at that feedrate, 700.0, but where to move?)
S0
(turn laser off)
G00 X0.07 Y0. F3000.0
(set X and Y as zero position, well almost, not exactly zero because of square being out of 0X, 0Y, move at 3000 mm/min)
S1 F3000.0
(turn on laser, and move? where to move? and why feedrate for turning on the laser?)
G01 Y9.0 F700.0
(since laser is on, begin to cut at 700 mm/min - vertically, go almost to the end)
G01 Y10.0 F700.0
(move one millimeter more to finish first line - vertically, why is that separate from other 9 millimeters?)
G01 F700.0
(move at 700 mm/min, but where?)
G01 F700.0
(again move... where?)
G01 X9.07 F700.0
(from current position, cut first 9 millimeters - to the right, then...)
G01 X10.07 F700.0
(continue for last millimeter - to the right)
G01 F700.0
(move nowhere, again???)
G01 Y1.0 F700.0
(cut vertically back, again only 9 mm at 700 mm/min)
G01 Y0.0 F700.0
(cut last millimeter at 700 mm/min)
G01 F700.0
(move... whatever)
G01 X1.07 F700.0
(cut horizontally back to zero position on X and Y at 700 mm/min)
G01 X0.07 F700.0
(cut last millimeter...)
G01 F700.0
(move nowhere again at this rate)
S0
(turn off laser)
;END perimeter
G00 X0 Y0
(Move at rapid speed F3000.0 mm/min to true home)
M05 S0 ;Deactivate laser and set power to 0 (CUSTOM)
(spindle stop, disable laser)
M02 ;End of program (agree...)
---------------
Why this code goofing with moving 9 of 10 millimeters, then continuing for remaining millimeter? Then two empty movements?
Thank you, bro!
I have the following issue while using the laser in my Ender 3-Pro from Creality:
The height can be customized, and the printer responds to Z offset changes. (software, screen, or Gcode)
The machine, I heard it switch on/off, although it does not engrave at all from laser speed 15 to 3,000 mm/min that I tried.
I just see a mild sign of work when I put my eye close, but nothing noticeable.
The laser won't light up by itself. I have to go to the screen of the printer and adjust the Fan Speed 100% for every print.
Even though, the gcode file has M106 S255 in several sections..... and M107 at the end.
CAN YOU HELP ME TO MAKE THE LASER WORK....? it had not been an easy process, I am almost frustrated.
Thanks.
Thank you so much for this tool and video tutorial. Do you have a dithering option?
Hello Christoph. Congratulations for this laser tool. Could you tell what python version did you use ? This is beacause when I use it it throws a deprication warning. Best regards.
Hello! The extension is very good. But I have a problem: when it finishes laser engraving the vector, the laser is still on and burning the trajectory until it reaches the origin (x=0 / y=0).
I have tried various laser off commands, and even modifying the g-code by hand, but the problem persists.
Any possible solution?
Ottimo, ho apprezzato molto il tuo video.
Tested the tool for Ender 3 laser engraver. Works fine. Currently, there is option to add three lines as prefix to the gcode generator. I would like to have exactly 6 more lines or an option to enter multiple lines in a single input.
Thanks for the feedback. You could try to put a bunch of G-Code instructions in a single Line. But I'll check if it is possible to replace the single line textboxes with multiline ones in the new version of Inkscape.
@@ChristophWagnerChrisDesign Modified the python file and .inx file to get 6 prefix lines. Tested it and it is working as expected. So I have your extension customized for Creality Ender 3 now. Thanks again.
@@ChristophWagnerChrisDesign There are still blank vertical lines on the final engraving. What could be the reason? Will infill overshoot settings have any effect on that?
@@aravindpvk Did you get the vertical lines on the preview in inkscape or only in the final engraving? Could you send me the files (svg and Gcode) you used?
@@ChristophWagnerChrisDesign The major issues got resolved after trying out the bug fixes mentioned in ur Github page. After which the Gcode simulation stopped showing any empty vertical spaces. However, I still have narrow vertical lines on the final engraving. U can find the relevant files in this link >> drive.google.com/drive/folders/1CfPLFHUve5jJXHSUU5n4E_ZutcgCHIsQ?usp=sharing
How do I set up the setting screen on the right side? My Inkscape pops up the setting window I am working with. I want the window to be steady on the right side. I have a View-Wide screen.
Lieber Christoph
Vielen herzlichen Dank für dein Tool, welches du erst noch Open Source anbietest.
Ich habe dein Tool heute mit meinem Opt Lasers auf meiner Stepcraft ausprobiert. Und so weit wie heute bin ich bisher mit keinem G-Code-Generator gekommen.
Leider werden im Moment jedoch auch noch die Verfahrenslinien gelasert, was natürlich sehr unschön aussieht. Hast du mir einen Tipp, wie ich das ausschalten könnte?
Liebe Grüsse und vielen Dank im Voraus
Pascal
Thanks for the tutorial, I was engraving just fine with this until I tried modifying the gcode preferences. I reverted all the settings back, but when I click apply in the lasertools interface, it splits the vector points from the object, and won't center them on top of eachother, so the gcode is screwed up. Has anyone had this issue? Were you able to fix it?
Follow up just incase: The issue I'm having isn't with the LASERTOOLS, its actually when I resize the document, when I resize it so it fits the design, my bitmap gets offset by a random amount... still working to understand if its something with the pictures I'm trying to etch, or a bug in the software.
Can your extension be used to cut? When I draw a test square, it just shades it all in. I want to to just follow the line. Using Inkscape 1.2
Very nice. Thank you
Hi Chris.
Ist zwar schon einige Zeit her, dass du das Video online gestellt hast, hoffentlich siehst du meinen Kommentar trotzdem noch.
Leider finde ich in den Extensions (nachdem ich alle 3 Dateien in das Extensions-Verzeichnis kopiert habe) deine Erweiterung nicht. Ich bin an einem Win7 32bit Notebook und habe beide Inkscape Versionen versucht, leider ohne Erfolg...Hast du da einen Rat für mich??
SG
Please suggest me gcode setting of default x and y coordinate for bibo dual extruder. Printer.
Thank you! very good tool :)
Thanks for this tool, I much prefer it to the other other tools i've used! I have a question - I sometimes want to engrave an open path, let's say it's a curved line like a C. It seems that "contours" will close this line, turning it into an O, treating it as a closed path. I've also noticed that simple straight lines will often be engraved twice, like they're being "closed" too. Is there a way around this? Thanks!
actually, I found that this is already an issue on github. I have made some changes to the code that seems to fix this problem. I'll try to make a pull request.
This is a fantastic tool. I run into a small issue when converting a stroke - I seem to get both sides of a single line being converted to g-code. Any idea what setting or workflow error I have caused?
It should work if you convert the line to a shape by using Path/Stroke to Path
Vielen Dank für dieses Video. Kann ich damit auch Buchstaben ausschneiden? Also dass die Umrandung Graviert wird?
Ja, das funktioniert: Zuerst Text erstellen, dann Text in Pfad konvertieren und dann mit dem Lasertools Plugin nur die "Parimeter" generieren (also kein Infill)
This is the only plugin tool that will work with my laser thank you! every other plugin has a syntax error. I had one question do you have a solution for the laser suddenly stopping mid engraving? Loading with SD and I get errors that stop my laser.
Does it always stop at the same g-code instruction or at random points?
@@ChristophWagnerChrisDesign random points for some prints and exactly at the same spots for others. It varies and I can't pinpoint the issue.
Hi Chris, super Tool - auch bei mir das erste, welches verlässlich funktioniert! Allerdings habe - auch ich - eine Frage: Wie bringe ich den Laser dazu, unten links an meinem Bett anzufangen? Also quasi den XY inkl Offset zu "homen" und von dort zu starten? Gerade startet er gefühlt irgendwo...
Hallo, der Startpunkt ist immer an der linken unteren Ecke des Blatts in Inkscape. Wenn du willst, dass sich dieser Punkt mit dem Nullpunkt der Maschine deckt, müsstest du bei "Prefix GCode" eine Zeile einfügen die X und Y abnullt. Z.B.: G28 X Y;. Offsets sollten sich evlt. so realisieren lassen: G92 X-10 Y-10. Habe das aber nicht getestet
@@ChristophWagnerChrisDesign Danke! Ich versuch es mal und gebe Rückmeldung
Hello, is there any way to add offset to the coordinates?
Hi, This tool seems to work great, thank you. Do you know if there is a way to do different shades (or power ratings) without creating different files? I'm struggling to find a way and have scoured the internet.
Unfortunately there is no way to do that at the moment. It should be possible to implement the use of opacity to define different laser power levels in one design, but that would require rewriting quite a chunk of the code. I will look into that as soon as I have some spare time on hand.
@@ChristophWagnerChrisDesign thanks for the response. The other I noticed is when applying the extension to fonts (after converting them), and then running it on the laser, I'm getting one or two missing fill lines on every letter. At first I thought it was missing steps but its too consistent. When i run it for a shape it seems fine, really weird
Which version are you using?
@@ChristophWagnerChrisDesign Inkscape 1.0.1 and the 1.0 extension. Its really strange, because on screen it looks like the lines are there but but the laser seems to miss them. I just doesn't make sense
I tried it with Inkscape 1.0 with my Ender 3 and used M 106 and M 107 for lasercontrol. But the laserpower will always stay at S1 as in the prefix. No change to S255. The gcode listing only says S255 or S1 for change of power, but only when I change it manually in each line in to "M 106 S255" and "M106 S01" it works ok. Any idee what I did wrong?
Did you try entering "M106 S255" into the "Laser on" fields instead of "S255" (and "M106 S1" or "M107" in the "Laser Off command") field?
@@ChristophWagnerChrisDesign Thanks a lot, that works ok. Was easy to solve, but was not so clear to see in your video.
Hi Chris, this is just what I need, but unfortunately using Inkscape V0.92 the Lasertools dialogue box is far too big to see the bottom commands, and the pop up window refuses to resize. I don't want to upgrade to a later version of Inkscape, because that has an "orientation points are wrong" bug, that I don't know how to fix. Is there a fix for Lasertools that will work? I am using windows 10
I just changed a few things regarding the orientation points in v 1.0. Please check if that solved the problem for you.
@@ChristophWagnerChrisDesign I did upgrade to V1 and for some reason the "orientation points are wrong" message went away. It took some twiddling with laser diameter, but now things are working fine, it takes a lot of wasted raster travel time out, and increases efficiency enormously. Big thank you!
@@ChristophWagnerChrisDesign I may have spoken too soon. With inkscape v1 lasertools only works once, then gives the orientation points error. If I open one of your demos, it makes the correct raster gcode file, but if I try again, it throws the error. So to clarify, v.9x gives a huge textbox that cannot be resized to press the bottom buttons, and v1 keeps throwing an "orientation points are wrong" if you try to make a second run.
@@normmorse3250 Unfortunately I can't reproduce this bug. (Tested with several of the test files) In my tests the extension creates a gcode file each time I run it without any errors. Can you send me the file in which you got the error. You can use Github Issues or send me a link to a cloud folder.
@@ChristophWagnerChrisDesign I reinstalled the latest version of Inkscape, V1, and re-downloaded lasertools, and the problem is gone. It takes a long time, then says " lasertools.py:1130: DeprecationWarning: in the future out of bounds indices will raise an error instead of being ignored by `numpy.delete`.
np_finalLines = np.delete(np_finalLines, index_zeros, axis=0)" but it does the job. The orientation points error is fixed! Thanks!
Hallo Chris! Danke für das tolle Video und die Anleitung. ich habe immer das Problem dass dich bei der Erstellung des GCodes diese Meldung bekomme File"Lasergraver.py", line 54 def bezierslopeatt(((.................. was mache ich nur Falsch? DANKE für Deine Tips!
Hi, welche Version von Inkscape und den Lasertools nutzt du? Welches OS?
@@ChristophWagnerChrisDesign Guten Morgen Chris! zuerst mal noch ein gutes gesundes neues Jahr!! Also ich habe inkscape für Windows 10 64bit Version 1.01 geladen. von Deinem Github habe ich mir das Packet geladen und die Plugins für V1.0 installiert. die Dateien in die Extensions kopiert. dann kommt die Fehlermeldung. Ich habe nun testweise Inkscape komplett deinstalliert und die Version 0.92.5 installiert und das passende Plugin. dann funktioniert es ohne die Fehlermeldug, aber ich kann die Lasersettings nicht aufrufen. eigentlich möchte ich schon die aktuelle Version 1.01 nutzen. an was kann das liegen? DANKE für DEINE Hilfe!
so sieht das in Verison 0.92.5 aus. :-/
Habe deine Konfiguration an einem meiner Windows System geprüft. Bei dem Versuch hat das Plugin einwandfrei funktioniert.
Bei den Extensions sollte es auch kein File "Lasergraver.py" geben, sondern "lasertools.py". Darin gibt es auch keine Methode "bezierslopeatt(...". Sieht so aus, als ob du hier ein falsches Plugin erwischt hast...
you move too dang fast, can't follow you
Hi, First time user, getting following error message and not sure how to correct. Any suggestions appreciated.
C:\Program Files\Inkscape\share\inkscape\extensions\lasertools.py:1557: DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead
transf = Transform(transf) * Transform(node.get("transform", None)) Installed files from both versions and getting same error.
Hi Chris, I am looking for some one who can make for me a custom addon for Inkscape. If you are interessted pls contact me. Regards Peter