Coder Social home page Coder Social logo

bastl-laser-tool's People

Contributors

mbastl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bastl-laser-tool's Issues

Error while creating gcode

File "bastl_laser.py", line 52
def bezierslopeatt(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),t):
^
SyntaxError: invalid syntax

whats the issue?

Feature proposal: Object to paths and flatten Beziers before converting

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?

Inkscape 1.1 Gcode generator for Sovol SO-1 plotter not working on Mac

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

Grayscale images

In #3 @popeye70 asked:

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.

Cannot generate output with sensible units

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:
image

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.

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.