Chapter 3 · Modifier Properties

3.12Tnpix_Stitch

Panel name Tnpix Stitch · also reachable as TnpixStitch

Holds cloth to cloth on the same Solver, or to its own folded parts. Stitches form when the simulation starts.

PropertyTypeADefaultRangeDescription
tnEnabledbooleantrueOn/off.
stitchTonode arrayemptyThe garments to stitch to; each must be on this cloth's Solver. Append to it.
stitchToSelfbooleanfalseAlso stitch to this cloth's own folded-close parts.
searchDistancefloat (distance)0.5 inch†0.0 – 100,000How far a painted point looks for a surface, in scene units. A new modifier takes 0.5 inch in the scene's unit.
tightnessfloat1.00.0 – 1.01 = sewn onto the surface, 0 = keeps the starting gap (a rigid tack).
strengthfloat1.00.0 – 1.0How rigid the hold is: about 0.5 holds, 0.8 and above is sewn shut.
channelstring""The painted channel that says where stitching is allowed.
thresholdfloat0.50.001 – 1.0Paint at or above this value stitches.
showStitchesbooleantrueDraw the stitches while the Stitch panel is open.
seamPassesfloat1.01.0 – 10.0Solver passes for the seam each step; whole numbers (fractions are rounded).
stitchToHandlesinteger arrayemptyStorage: the targets by node handle, as the panel keeps them. Write stitchTo, not this.
offsetfloat (distance)0.00.0 – 100,000A gap, in scene units, the seam keeps between the two cloths (this cloth keeps it).
activeTimebooleanfalsetrue = the stitch holds only from activeFrom to activeTo.
activeFrominteger0-100,000 – 100,000First frame the stitch holds; the pairs are found where the cloths are on this frame.
activeTointeger100-100,000 – 100,000Last frame the stitch holds.
zoneOnbooleanfalseActive Zone: a stitch pulls only while the zone reaches its seam, with its strength times the zone's value there. Works inside the Active time.
zoneHelpersnode arrayemptyThe Influence Helpers that make the zone. Empty with zoneOn = no stitch pulls.
zoneStaybooleantrueStays sewn once touched (the default): a stitch the zone has reached keeps pulling - a zipper. false = only the stitches inside the zone now.
zoneInvertbooleanfalseInvert: a stitch pulls where the zone does NOT reach its seam (its strength times one minus the zone's value). With zoneStay, a stitch the helper has touched lets go for good. Empty zoneHelpers = every stitch pulls.
slidebooleanfalsetrue = the stitched points stay on the surface they are sewn to, at the stitch's gap, but can slide along it.
frictionfloat0.30.0 – 1.0How hard the sliding is: 0 slides freely, 1 does not slide. Used while slide is true.