2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: cutonfold
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-20 14:35:50 +01:00
|
|
|
The `cutonfold` macro adds a _cut on fold_ indicator to your pattern.\
|
2021-08-25 16:09:31 +02:00
|
|
|
It is provided by the [cutonfold plugin](/reference/plugins/cutonfold).
|
|
|
|
|
2022-01-19 11:31:39 +01:00
|
|
|
<Example part="plugin_cutonfold">
|
|
|
|
Example of the cut on fold indicator added by this macro
|
|
|
|
</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```js
|
|
|
|
macro('cutonfold', {
|
|
|
|
from: points.cofLeft,
|
|
|
|
to: points.cofRight,
|
|
|
|
grainline: true
|
2022-01-18 10:13:16 +01:00
|
|
|
})
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
| Property | Default | Type | Description |
|
2021-08-25 16:09:31 +02:00
|
|
|
|------------:|---------|---------------------|-------------|
|
2022-02-20 14:35:50 +01:00
|
|
|
| `from` | | [Point](/reference/api/point) | The startpoint of the _cut on fold_ indicator |
|
|
|
|
| `to` | | [Point](/reference/api/point) | The endpoint of the _cut on fold_ indicator |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `margin` | 5 | [Point](/reference/api/point) | The distance in % to keep from the start/end edge |
|
2022-01-17 18:12:49 +01:00
|
|
|
| `offset` | 15 | Number | The distance in mm to offset from the line from start to end |
|
2021-08-25 16:09:31 +02:00
|
|
|
| `grainline` | `false` | Boolean | Whether this cutonfold indicator is also the grainline |
|
2021-10-17 18:26:00 +02:00
|
|
|
|
2021-12-27 17:33:49 +01:00
|
|
|
<Note>
|
|
|
|
|
|
|
|
###### It's safe to use a corner of your pattern part for this
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
Since this is typically used on corners, the generated cut-on-fold indicator
|
2021-12-27 17:33:49 +01:00
|
|
|
will not go all the way to the `to` and `from` points.
|
|
|
|
|
|
|
|
</Note>
|
2022-07-10 16:09:12 +02:00
|
|
|
|
|
|
|
## Removing the cut on fold indicator
|
|
|
|
|
|
|
|
If you inherit a part with a cut on fold indicator and you'd like to remove it,
|
|
|
|
you can do so by passing `false` to the macro:
|
|
|
|
|
|
|
|
```js
|
|
|
|
macro('cutonfold', false)
|
|
|
|
```
|