Chapter 4 · Recipes

4.8Stitches

A Stitch sews the painted points of one garment to another garment in the same Solver group, or to the garment's own folded parts.

undo "TenPix: sew the pocket" on (
    local st = tpaAddBelowSolver $Pocket (Tnpix_Stitch())
    st.channel = "pocket_seam"       -- only painted points stitch
    append st.stitchTo $Jacket       -- must carry the same Tnpix Solver as $Pocket
    st.tightness = 1.0               -- 1 sewn shut; 0 a rigid tack that keeps the modelled gap
    st.strength = 1.0                -- about 0.5 holds; 0.8 and above is sewn shut
)
  • Stitch to self. stitchToSelf = true stitches a rolled cuff or a tucked flap to the cloth's own folded parts.
  • Search distance. searchDistance is how far a painted point looks for a surface. A new modifier takes 0.5 inch in the scene's unit. Raise it, or move the pieces closer, when the Stitch status line says the points are out of reach.
  • A seam that opens between stitch points has sparse paint: paint more of the seam.