KnitScript: A Domain-Specific Scripting Language for Advanced Machine Knitting
Abstract
Knitting machines can fabricate complex fabric structures using robust industrial fabrication machines. However, machine knitting’s full capabilities are only available through low-level programming languages that operate on individual machine operations. We present KnitScript, a domain-specific machine knitting scripting language that supports computationally driven knitting designs. KnitScript provides a comprehensive virtual model of knitting machines, giving access to machine-level capabilities as they are needed while automating a variety of tedious and error-prone details. Programmers can extend KnitScript with Python programs to create more complex programs and user interfaces. We evaluate the expressivity of KnitScript through a user study where nine machine knitters used KnitScript code to modify knitting patterns. We demonstrate the capabilities of KnitScript through three demonstrations where we create: a program for generating knitted figures of randomized trees, a parameterized hat template that can be modified with accessibility features, and a pattern for a parametric mixed-material lampshade. KnitScript advances the state of machine-knitting research by providing a platform to develop and share complex knitting algorithms, design tools, and patterns. 1
- Venue
- UIST 2023
- Volume
- Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology
- DOI
- 10.1145/3586183.3606789
- https://dl.acm.org/doi/pdf/10.1145/3586183.3606789
- Anthology ID
2023.uist.77
Cite
@inproceedings{hofmann-etal-2023-knitscript,
title = {{KnitScript: A Domain-Specific Scripting Language for Advanced Machine Knitting}},
author = {Megan Hofmann and Lea Albaugh and Tongyan Wang and Jennifer Mankoff and Scott E Hudson},
booktitle = {Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology},
isbn = {9798400701320},
year = {2023},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3586183.3606789},
url = {https://doi.org/10.1145/3586183.3606789},
abstract = {Knitting machines can fabricate complex fabric structures using robust industrial fabrication machines. However, machine knitting’s full capabilities are only available through low-level programming languages that operate on individual machine operations. We present KnitScript, a domain-specific machine knitting scripting language that supports computationally driven knitting designs. KnitScript provides a comprehensive virtual model of knitting machines, giving access to machine-level capabilities as they are needed while automating a variety of tedious and error-prone details. Programmers can extend KnitScript with Python programs to create more complex programs and user interfaces. We evaluate the expressivity of KnitScript through a user study where nine machine knitters used KnitScript code to modify knitting patterns. We demonstrate the capabilities of KnitScript through three demonstrations where we create: a program for generating knitted figures of randomized trees, a parameterized hat template that can be modified with accessibility features, and a pattern for a parametric mixed-material lampshade. KnitScript advances the state of machine-knitting research by providing a platform to develop and share complex knitting algorithms, design tools, and patterns. 1}
}