Git Product home page Git Product logo

Comments (9)

stephanschulz avatar stephanschulz commented on May 28, 2024 1

Thanks for the marching directions.
For now I will test different fills to see what works best for my use case.

When setting the output file path to use .SVG is there a way to not export the connecting island lines? The Axidraw draw those lines too even though they are not part of the image. I know I could manually delete them, but ...

Screen Shot 2020-09-03 at 3 05 15 PM

from pembroider.

LingDong- avatar LingDong- commented on May 28, 2024 1

Hi @golanlevin @stephanschulz

The easiest hack to omit the connecting lines is to use a different color for each stroke. For example, iterate through E.colors and assign each a different random color. (e.g. alternate between #000000 and #010101 to make it invisible to human eye)

However don't worry about the hack since now SVG and PDF exports will omit the connecting lines in the newest commit: e8a945a :)

from pembroider.

LingDong- avatar LingDong- commented on May 28, 2024

Added: 0ca31e8

E.toggleResample(false); //plotter
E.toggleResample(true); //embroidery

from pembroider.

stephanschulz avatar stephanschulz commented on May 28, 2024

We just got an axidraw se/a3 at the studio.
What would be the best way to go about interfacing with it and take advantage of the PEmbroider functions?
Axidraw works well through Inkspace and also their live draw Processing examples.

I assume I would try to export not to .jef but .svg, open that file again in their live draw Processing examples and have it trace the paths. I wonder though if you have a quicker method ?

from pembroider.

golanlevin avatar golanlevin commented on May 28, 2024

If you're controlling the AxiDraw "offline" (from a file), then I would do your designs with toggleResample(false) set, and then export .SVG files, then load those files in InkScape and control the AxiDraw from there.

If you were controlling the AxiDraw in real-time from Processing (it's possible), then you would need to reach into the PEmbroider object to get the locations of the stitch points, and then (in separate Processing code) tell the AxiDraw to move there. See https://github.com/evil-mad/AxiDraw-Processing, https://github.com/koblin/AxiDrawProcessing2 .

from pembroider.

golanlevin avatar golanlevin commented on May 28, 2024

Hi @LingDong- ,
Omitting the connecting lines would be very important for plotter stuff! Could you please add this option?
Thanks for testing this @stephanschulz!
Golan

from pembroider.

stephanschulz avatar stephanschulz commented on May 28, 2024

thx for looking in to this.
we are trying to draw in seeds, similar to sand animation.

2020-09-03 15 10 19

from pembroider.

stephanschulz avatar stephanschulz commented on May 28, 2024

thanks. Indeed your new commit solved it.

from pembroider.

stephanschulz avatar stephanschulz commented on May 28, 2024

This seems to have solved it for most cases.
But when using satin it still safe the connecting lines in the SVG

  //E.noStroke(); 
    E.fill(int(red(layerColors[colorIndex])), int(green(layerColors[colorIndex])), int(blue(layerColors[colorIndex]))); 

    E.hatchSpacing(6);
    E.PARALLEL_RESAMPLING_OFFSET_FACTOR = 0.5;
    E.hatchAngleDeg(0);
    E.hatchMode(PEmbroiderGraphics.SATIN);
    E.setStitch(10, 50, 0); 
    E.image(myImage, 0, 0);

Screen Shot 2020-09-09 at 12 08 23 PM

from pembroider.

Related Issues (20)

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.