InkStitch - satin columns

The educational technology and digital learning wiki
Revision as of 11:44, 5 June 2018 by Daniel K. Schneider (talk | contribs) (Created page with "{{syllabus |is_part_of_syllabus=InkStitch |is_part_of_module=InkStitch |do_not_show_sub_page=No |status=to improve |last_modification=2018/06/05 |objective=Understand the purp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
InkStitch
Module: InkStitch
to improve beginner
2018/06/05 ⚒⚒ 2018/06/05
Objectives
  • Understand the purpose of InkStitch
  • Install InkStitch
  • Run a InkStitch annotated SVG file
See also

Objectives

  • Understand the purpose of InkStitch
  • Install InkStitch
  • Run a InkStitch annotated SVG file

See also

  • Quality: to improve
  • Difficulty: beginner


Creating Satin Stitches

By default, Ink/Stitch translates strokes to either lines or simple perpendicular zig-zag stitches. The simple zigzag model works works relatively fine for straight lines or circles, but it cannot handle corners as in the little rocket drawing that we will now digitized. In addition, ZigZag stitches do not look as nice as the more parallel satin stitches.

Creating satin columns requires some extra work that we shall explain now.

Example explained with a snake and an ellipsoid donut

Let's create a simple snake:

(1) Draw two lines with the bezier tool.

  • For starters you can just do this by clicking using the Bezier drawing tool (SHIFT-F6)
  • Draw both in the same direction

We got something like this:

A snake in the making. Two simple paths

For exercising, you can download the original SVG (click on the picture until you get the SVG, then save as.

A not yet stitchable snake made from two lines (SVG file)

(2) Make sure that each path has the same number of points. If not:

  • Click on the Edit Path tool (drawing tools panel next to the selection tool) or hit F2
  • Select two nodes, then click on "Insert New Nodes into selected segments" to add a new node

(3) Combine these into a single path:

  • Select both lines
  • Menu Path -> Combine or CTRL-K
A snake made from two lines

SVG file for download (click on the picture until you see the *.svg, then "save page as":

A stitchable snake made from two lines combined into a single path (SVG file)

Ellipse example

The two lines of the path do not need to be open. E.g. two embedded ellipses with the same amount of points for each line also works.

Satin stitch created from closed lines

Rocket example

Let's compare a rocket stitched quickly with one that uses proper satin stitches. We will start from a little [Rocket Ship from OpenClipArt. There are several other variants of this, e.g. rocket icon by pitr that we used here.

Cleaning the SVG file

Source: [1] needing cleanup Rocket Ship as Clip Art] (SVG file)
Source: Rocket Ship as Clip Art, but cleaned up
(SVG file)]
Source: Simple stitching without satin stitches

The drawing is fairly straight forward. In order to process this with Ink/Stick

  • Ungroup everything
  • Create a new layer, called Rocket strokes
  • Put all elements in this layer.
  • Open the XML Editor, click on each element and kill about 6 useless elements that sit underneath the windows. The resulting SVG only should have six objects.
  • The wings overlap with the body of the rocket, but let's keep this for the moment.

It now (at least for the 1.7x version we discuss here) is important to follow all the steps on the SVG before you configure the embroidery params. Else you may have contradictory instructions in your objects. If the embroidery process fails with an error message, try removing all embroidery parameters in the XML Editor. Create a copy of you SVG file and save it. Personally, I just "write the file as" before each major operation. This way, I can easily restart from a prior version .....

Now you could digitized as shown above. However if you want nice satin stitches then you should remove all the fills and transform the fat strokes into double lines.

Let's separate fills and strokes first. We will do this in the following way:

  • Select all
  • Copy and paste in place. Edit->Copy then Menu Edit-Paste in Place. We now have 12 objects instead of 6.
  • Move all the new objects to a new layer called Rocket fills (select these six in the Objects tool (Menu Object->Objects), then use the layers menu to move them)
  • Lock the layer called Rocket fills.
  • Remove all fills from the objects that sit in Layer Rocket strokes
  • Now lock this Rocket strokes layer and kill the strokes from the objects that sit in the Rocket fills layer.

The resulting object structure should look like this:

SVG with pure fills and pure strokes
Rocket Ship with separate layers for download (SVG file)

This now can be directly stitched as shown in the picture above. However, you can notice the rather ugly satin stitches.

Creating satin stitches with hand drawings

As you should recall from the "snake" example above, satin stitches are made from two lines that have the same amount of points. There are several ways to achieve this from an existing drawing. In any of these cases, you will have to do some "point surgery". Also, the result can fail. If you do not feel comfortable with using or learning more advanced path editing, you could just make some hand drawings. We suggest the following procedure:

  • Lock the fills layer but keep it visible
  • Create a new layer
  • Draw the lines as explained in the "snake example above". Use (at least provisionally) a different color to the drawings.

The result looks OK, but I didn't take time to make minor adjustments since I spent too much time on the attempt described below).

Rocket Ship that is stitchable. Click and click to get the SVG
Rocket Ship that is stitchable.
Stitch simulation

Transforming strokes into "satin path"

Now let us go through the more complicated procedure of transforming existing graphic elements (SVG path) into path that can be stitched as satin path. Remember:

  • A path must have two subpath, each with the same number of nodes that should be roughly aligned
  • Each subpath must go into the same direction (see explanations later)
  • Closed shapes must be broken, since InkScape does not allow to define a start node.

See also this video: https://inkstitch.org/tutorials/lex-neva-video-tutorial-1/

Before you start

  • Hide the "Fills" layer and maybe lock it. I.e. you only should see the strokes !
  • Unlock the "Strokes" layer if it was locked

Simplify the drawing and reduce overlaps

  • Simplify the drawing, i.e. remove all extra points that are not needed (but you can do this later). InkScape can help with that (hit CTRL-L, but not too many times!)

In order to get two strokes (lines) instead of a single fat stroke, we can translate a path to a path with both fill and strokes. An other alternative would be to use insets and outsets. Anyhow:

  • Select all strokes: CTRL-A (the fills should be hidden)
  • Menu Path -> Stroke to Path
  • Remove the fill and make the strokes smaller.

In a next step, we will have to clip the part of the wings that overlap with the body of the fuse. An easy way to do it is to use substraction again.

  • Copy/paste in place the rocket body. The easiest way to do so is the open the "Objects panel" (Menu Object->Objects), select the body and the duplicate.
  • Select the left wing and then the body (hold down the SHIFT key).
  • Menu
  • Repeat that operation for the right wing, i.e. firstly duplicated the body then subtract it.

Now make the strokes very small and remove the fill.

  • Select all (CTRL-A)
  • Menu Object -> Fill and Stroke
  • Remove fills
  • Set Stroke to 1px

Repair the wings

  • Unfortunately the wings did not fully overlap with the body, and there is some junk to remove. You must strive the obtain two single lines for each wing as shown in the picture below.
  • Drag out both wings.
  • Select the Edit path tool
  • Kill superfluous nodes
  • Kill segments at the end of both wings
  • (Maybe) transform the sharp corners into a round symmetric node.

Clean up the rocket body

  • Now make sure that you got the same amount of nodes in the outer and the inner line. To do so, we suggest rather killing nodes than adding new nodes. When you try to embroidery a path that has two subpath of different node length, InkStitch will complain and tell you which node to fix. Remember that for later.
  • Align outer and inner nodes (roughly)
  • Also make sure that no node sits on top of another one. You can find out by moving each node and then - if OK - put it back in position by hitting CTRL-Z
  • Make the inner top a bit less sharp (make it a symmetrical node)

If you try to embroider now, you will get a very bad results, since inner and outer path go into an opposite direction.

Paths that will not correctly work (click for SVG for download)
Failed attempt. InkStitch associates the wrong lines (body only shown).

Fix path directions

Problem: For InkStitch to work correctly, the two sub-path must point in the same direction. In our case they were not.

Path directions are different in the two subpath
  • To see directions, set Show path direction direction on outline in Edit -> Preferences -> Tools -> Node
  • Reverse for example the following the outer line:
Menu: Path -> Reverse

In our example, each path had a wrong subpath, e.g. the inner path went clockwise and the outer path counter-clock wise.

Fix the start point

Problem: The zizag of the satin stitch does now work but it is badly oriented now.

  • Closed paths do not have a start point and you cannot define one. As a result Inkstitch will associate "random" points, i.e. will start using the first node found in the path definition (we believe). To fix that, we will create a break in the closed path of the hull and the three windows.
  • Use the Edit Path tool to select two nodes, one for each subpath, then break the path (see the figure below)
Impossible to define a start point in a closed path
Break path at node

Let us parameterize separately the stroke and the fill layers.

  • Hide and lock one layer before you work on the other.
  • In the Embroidery -> Param popup, have all the path in the stroke layer use satin stitches if you did not do so already. Also, we suggest adding at least a center underlay since this will stabilize the tissue a bit.

The result looks like this::

Stitchable rocket ship (click for SVG for download)
Stitch simulation (as seen in the Stitch Era software)

Summary

Creating satin stitches from existing drawings seems to be a bit difficult. There might a way to do it more quickly, but we did not manage to find so far. So in some cases, we recommend re-drawing by hand two lines defining satin stitches. In fact all depends on your respective node editing or drawing skills. Personally I am better at editing than at drawing.

Creating fills and lines from dotted strokes does work well and doesn't require any special preparation.

Trim stitches do not seem to work in every case, but that is not a major issue. Anyhow, most people using InkStitch probably do not have multi-needle machines and prefer to cut away thread as opposed to re-threading.

Adding direction lines (rungs)

Good positioning of points on each of the two lines helps getting the stitch directions right. However, there are situations where you need to add so-called direction lines ("rungs" in InkStitch terminology) for satin columns:

  • Some tricky corner areas
  • Complicated drawings where moving points is both difficult and time consuming
  • Special situations where you want the stitch directions to be weird.

The directions of the zigzag lines in the following example are not exactly nice.

Round bird model (SVG File). Source Liv Iko (Noun project)
Round bird without direction lines
Round bird without direction lines

In order to tell InkStitch how to orient satin stitches you now can add "rungs" (or direction lines) into each stitchable path. There are two methods a quick one and the one I used before I have been told about the fast one by the the creator of this program.

Quick adding of rungs

  1. Make sure the existing satin column path (with the two subpaths) is selected with the Node Editor tool.
  2. Press P or select the Pencil tool.
  3. Hold Shift.
  4. Click once at the start of the rung.
  5. Click a second time at the end of the rung.

Slow method for adding rungs (not holding the SHIFT key)

  • Draw the direction lines for a given path using either the Bezier tool (click+click+right-click) or the freehand lines tool (click+click)
  • Select the path for which we made the rungs + all the direction lines. Then hit CTRL-K (Menu: Path->Combine)
  • Check if the Embroidery Parameters are still OK (Menu Extensions -> Embroidery - Params

We also fixed the departure point for the head and added an eye. The result is below and already looks much better. However, we found that the *.PES version had a mistake, so we create ad *.DST. Our Brother can stitch that too. The bug has been fixed since version 1.8.1 (see the simulation below)

Round bird with direction lines
Round bird with direction lines, Tajima DST file produced
Some extra stitches (not harmful)
Brother PES (InkStitch V.1.8.0)
Brother PES (InkStitch V.1.8.1)
Round bird model (SVG File) file for download

If you like this bird, you can modify it. However, if you publish it, please acknowledge the original design. (Liv Iko). Also, you should be aware that this design is really small (less than 3cm), stitching it properly may be a bit difficult.