I posted over on the “Things Ive Made” section about an image I made using a python extension I found. There was interest in a guide on how to do it so I figured id make a nice tutorial so that other people can generate these for their machine. This seems like the best section since the guide is all software use.
The Guide can be found here, Its rather long as i tried to be as thorough as possible.
That is a very thorough tutorial. Is python in windows really that hard? Can’t you use the subsystem for linux, or cygwin or mobixterm? It’s been a while since I tried. No wonder I get nasty looks when I say it’s easy in Python.
Speaking of which. Making the a python scruot that just removes the () comments would be pretty easy
Python in Windows 10 is pretty awful. Python itself is great. It’s windows 10 that’s the problem.
It’s been ages since I’ve done anything with Cygwin I suppose it’s a possibility but that’s pretty far out of my wheel house.
I’m not by any means a programmer. Even script kiddie might be overselling my programming experience. I dabble enough to eventually usually sometimes get things to work which is definitely the case here.
I know that GcodeTools has a field for a “postprocessor” and I’m wondering if it’s actually asking for the location of a script. Might be worth checking out.
I considered writing either a batch script or, since I had a shiny new python install to play with a python script to do the post processing but ended up just recording a macro in notepad++ haha. If I end up doing a lot of these it might be worth making a stand alone script though.
For what it’s worth, a PR making Marlin (optionally) ignore () comments has been integrated recently. That could ease a bit the process (cf. https://github.com/MarlinFirmware/Marlin/pull/12013 ). I’m also considering writing an update to have G0 make fast moves instead of feed-rates moves…
It doesn’t even have to be fast moves, it just needs to have it’s own memory for tue F parameter.
G1 Z5 F300
G0 X100 F3600
Will currently move the Z at 3600. What EstlCAM (and I’m guessing a lot of CAM) does by default is just set G0 F3600 at the top and then expects it to remember that for all other travel moves. It doesn’t expect a G1 F to change it.
Wow, so I am loving this. It seems like this is actually a really good way to get pictures out of the laser really fast. As in the perfect in between of a raster and vector picture both in terms of speed and how recognizable it is. On top of that it looks great a cool style.
All 4 of those first pics are clear but each has it’s own character. I think we will be seeing a lot more of this.
Hooray! I think how it is now makes a ton of sense, but I also see GMagicians point. I don’t think anyone will try to configure it with a strict MAX FEEDRATE unless their CAM really required it. The CAM would be pretty crazy to need that though.
I’m just happy that it got merged so fast. It’s quite the moving target, Marlin.
I’m far from knowing what I am doing with this. I can’t really find a good description (that I can understand) of all the parameters for each of the drawing types; sketchy, spiral, and crossed. I’m not crazy about the sketchy one, so have played only with crossed and spiral. There are some example scripts, however, so have simply played with them a bit… spiral is the easiest I think.
For the engravings I’ve shown the only things I’ve adjusted are (1) brightness/contrast/scale of grayscale source picture, (2) laser power and feed, (3) for spiral, the nib-size and line spacing parameters, (4) and final scaling in Inkscape. Cereal-box cardboard and craft sticks make nice test material and I’ve done all these with a Banggood 3.5 watt laser, using Inkscape with JTech laser plugin.