apply_plaid
Generate a plaid (tartan) texture from a stripe sequence and apply it to a fabric, with optional twill mixing and back color for double-faced cloth.
Instructions
Make a plaid (tartan) texture from its stripe sequence and put it on a fabric. The same stripes run both ways; where two colours cross they mix in a twill, as in woven checks.
Args: fabric_index: Fabric to texture. sett: One repeat as [[colour, width_mm], ...], e.g. a grey/black workwear check: [["#1b1b1d", 45], ["#5d5d60", 6], ["#1b1b1d", 6], ["#5d5d60", 35], ["#8e8e90", 3], ["#5d5d60", 35]]. The repeat is the sum of the widths. px_per_mm: Image resolution. twill: Mix crossing colours along diagonals (woven look) instead of averaging them. back_color: For double-faced cloth, a plain back in this colour [r, g, b]. The back is separated before the plaid goes on: separated afterwards, it copies the plaid (tested in CLO 2025.2.236).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sett | Yes | ||
| twill | No | ||
| px_per_mm | No | ||
| back_color | No | ||
| fabric_index | Yes |